Class VariantWeight

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class VariantWeight extends Object
Variant weight details.
  • Field Details

  • Constructor Details

    • VariantWeight

      public VariantWeight()
    • VariantWeight

      public VariantWeight(Double value, UUID variantId)
  • Method Details

    • createdAt

      public VariantWeight createdAt(OffsetDateTime createdAt)
    • getCreatedAt

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

      public void setCreatedAt(OffsetDateTime createdAt)
    • id

      public VariantWeight id(UUID id)
    • getId

      @Nullable public UUID getId()
      Unique identifier of the variant weight assignment.
      Returns:
      id
    • setId

      public void setId(UUID id)
    • updatedAt

      public VariantWeight updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

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

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • value

      public VariantWeight value(Double value)
    • getValue

      public Double getValue()
      The percentage weight for the variant.
      Returns:
      value
    • setValue

      public void setValue(Double value)
    • variant

      public VariantWeight variant(Variant variant)
    • getVariant

      @Nullable public Variant getVariant()
      A variant of a feature flag.
      Returns:
      variant
    • setVariant

      public void setVariant(Variant variant)
    • variantId

      public VariantWeight variantId(UUID variantId)
    • getVariantId

      public UUID getVariantId()
      The variant ID.
      Returns:
      variantId
    • setVariantId

      public void setVariantId(UUID variantId)
    • putAdditionalProperty

      public VariantWeight 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:
      VariantWeight
    • 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 VariantWeight 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