/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package dev.plexapi.sdk.models.operations; import com.fasterxml.jackson.core.JacksonException; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import java.io.IOException; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; import java.util.Optional; /** *
Wrapper class for an "open" enum. "Open" enums are those that are expected * to evolve (particularly with the addition of enum members over time). If an * open enum is used then the appearance of unexpected enum values (say in a * response from an updated an API) will not bring about a runtime error thus * ensuring that non-updated client versions can continue to work without error. * *
Note that instances are immutable and are singletons (an internal thread-safe * cache is maintained to ensure that). As a consequence instances created with the * same value will satisfy reference equality (via {@code ==}). * *
This class is intended to emulate an enum (in terms of common usage and with * reference equality) but with the ability to carry unknown values. Unfortunately * Java does not permit the use of an instance in a switch expression but you can * use the {@code asEnum()} method (after dealing with the `Optional` appropriately). * */ /** * Status * *
Current friend request status
*/
@JsonDeserialize(using = Status._Deserializer.class)
@JsonSerialize(using = Status._Serializer.class)
public class Status {
public static final Status ACCEPTED = new Status("accepted");
// This map will grow whenever a Color gets created with a new
// unrecognized value (a potential memory leak if the user is not
// careful). Keep this field lower case to avoid clashing with
// generated member names which will always be upper cased (Java
// convention)
private static final Map