Class Variant

java.lang.Object
com.datadog.api.client.v2.model.Variant

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class Variant extends Object
A variant of a feature flag.
  • Field Details

  • Constructor Details

  • Method Details

    • createdAt

      public Variant createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      The timestamp when the variant was created.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • id

      public Variant id(UUID id)
    • getId

      public UUID getId()
      The unique identifier of the variant.
      Returns:
      id
    • setId

      public void setId(UUID id)
    • key

      public Variant key(String key)
    • getKey

      public String getKey()
      The unique key of the variant.
      Returns:
      key
    • setKey

      public void setKey(String key)
    • name

      public Variant name(String name)
    • getName

      public String getName()
      The name of the variant.
      Returns:
      name
    • setName

      public void setName(String name)
    • updatedAt

      public Variant updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      The timestamp when the variant was last updated.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • value

      public Variant value(String value)
    • getValue

      public String getValue()
      The value of the variant as a string.
      Returns:
      value
    • setValue

      public void setValue(String value)
    • putAdditionalProperty

      public Variant putAdditionalProperty(String key, 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 - The arbitrary key to set
      value - The associated value
      Returns:
      Variant
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this Variant object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object