Class ContextInstanceRecord


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2026-03-05T10:45:26.516033Z[Etc/UTC]",
               comments="Generator version: 7.18.0")
    public class ContextInstanceRecord
    extends java.lang.Object
    ContextInstanceRecord
    • Field Detail

      • SERIALIZED_NAME_LAST_SEEN

        public static final java.lang.String SERIALIZED_NAME_LAST_SEEN
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ID

        public static final java.lang.String SERIALIZED_NAME_ID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_APPLICATION_ID

        public static final java.lang.String SERIALIZED_NAME_APPLICATION_ID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ANONYMOUS_KINDS

        public static final java.lang.String SERIALIZED_NAME_ANONYMOUS_KINDS
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_CONTEXT

        public static final java.lang.String SERIALIZED_NAME_CONTEXT
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_LINKS

        public static final java.lang.String SERIALIZED_NAME_LINKS
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ACCESS

        public static final java.lang.String SERIALIZED_NAME_ACCESS
        See Also:
        Constant Field Values
      • openapiFields

        public static java.util.HashSet<java.lang.String> openapiFields
      • openapiRequiredFields

        public static java.util.HashSet<java.lang.String> openapiRequiredFields
    • Constructor Detail

      • ContextInstanceRecord

        public ContextInstanceRecord()
    • Method Detail

      • getLastSeen

        @Nullable
        public java.time.OffsetDateTime getLastSeen()
        Timestamp of the last time an evaluation occurred for this context instance
        Returns:
        lastSeen
      • setLastSeen

        public void setLastSeen​(@Nullable
                                java.time.OffsetDateTime lastSeen)
      • getId

        @Nonnull
        public java.lang.String getId()
        The context instance ID
        Returns:
        id
      • setId

        public void setId​(@Nonnull
                          java.lang.String id)
      • applicationId

        public ContextInstanceRecord applicationId​(@Nullable
                                                   java.lang.String applicationId)
      • getApplicationId

        @Nullable
        public java.lang.String getApplicationId()
        An identifier representing the application where the LaunchDarkly SDK is running
        Returns:
        applicationId
      • setApplicationId

        public void setApplicationId​(@Nullable
                                     java.lang.String applicationId)
      • anonymousKinds

        public ContextInstanceRecord anonymousKinds​(@Nullable
                                                    java.util.List<java.lang.String> anonymousKinds)
      • addAnonymousKindsItem

        public ContextInstanceRecord addAnonymousKindsItem​(java.lang.String anonymousKindsItem)
      • getAnonymousKinds

        @Nullable
        public java.util.List<java.lang.String> getAnonymousKinds()
        A list of the context kinds this context was associated with that the SDK removed because they were marked as anonymous at flag evaluation
        Returns:
        anonymousKinds
      • setAnonymousKinds

        public void setAnonymousKinds​(@Nullable
                                      java.util.List<java.lang.String> anonymousKinds)
      • getContext

        @Nullable
        public java.lang.Object getContext()
        The context, including its kind and attributes
        Returns:
        context
      • setContext

        public void setContext​(@Nullable
                               java.lang.Object context)
      • getLinks

        @Nullable
        public java.util.Map<java.lang.String,​Link> getLinks()
        The location and content type of related resources
        Returns:
        links
      • setLinks

        public void setLinks​(@Nullable
                             java.util.Map<java.lang.String,​Link> links)
      • getAccess

        @Nullable
        public Access getAccess()
        Get access
        Returns:
        access
      • setAccess

        public void setAccess​(@Nullable
                              Access access)
      • putAdditionalProperty

        public ContextInstanceRecord putAdditionalProperty​(java.lang.String key,
                                                           java.lang.Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
        Parameters:
        key - name of the property
        value - value of the property
        Returns:
        the ContextInstanceRecord instance itself
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) property.
        Returns:
        a map of objects
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - name of the property
        Returns:
        an object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws java.io.IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        java.io.IOException - if the JSON Element is invalid with respect to ContextInstanceRecord
      • fromJson

        public static ContextInstanceRecord fromJson​(java.lang.String jsonString)
                                              throws java.io.IOException
        Create an instance of ContextInstanceRecord given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ContextInstanceRecord
        Throws:
        java.io.IOException - if the JSON string is invalid with respect to ContextInstanceRecord
      • toJson

        public java.lang.String toJson()
        Convert an instance of ContextInstanceRecord to an JSON string
        Returns:
        JSON string