Class CreateFeatureFlagAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CreateFeatureFlagAttributes extends Object
Attributes for creating a new feature flag.
  • Field Details

  • Constructor Details

    • CreateFeatureFlagAttributes

      public CreateFeatureFlagAttributes()
    • CreateFeatureFlagAttributes

      public CreateFeatureFlagAttributes(String key, String name, ValueType valueType, List<CreateVariant> variants)
  • Method Details

    • defaultVariantKey

      public CreateFeatureFlagAttributes defaultVariantKey(String defaultVariantKey)
    • getDefaultVariantKey

      @Nullable public String getDefaultVariantKey()
      The key of the default variant.
      Returns:
      defaultVariantKey
    • getDefaultVariantKey_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getDefaultVariantKey_JsonNullable()
    • setDefaultVariantKey_JsonNullable

      public void setDefaultVariantKey_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> defaultVariantKey)
    • setDefaultVariantKey

      public void setDefaultVariantKey(String defaultVariantKey)
    • description

      public CreateFeatureFlagAttributes description(String description)
    • getDescription

      @Nullable public String getDescription()
      The description of the feature flag.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • distributionChannel

      public CreateFeatureFlagAttributes distributionChannel(FeatureFlagDistributionChannel distributionChannel)
    • getDistributionChannel

      @Nullable public FeatureFlagDistributionChannel getDistributionChannel()
      The distribution channel for the feature flag.
      Returns:
      distributionChannel
    • setDistributionChannel

      public void setDistributionChannel(FeatureFlagDistributionChannel distributionChannel)
    • jsonSchema

      public CreateFeatureFlagAttributes jsonSchema(String jsonSchema)
    • getJsonSchema

      @Nullable public String getJsonSchema()
      JSON schema for validation when value_type is JSON.
      Returns:
      jsonSchema
    • getJsonSchema_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getJsonSchema_JsonNullable()
    • setJsonSchema_JsonNullable

      public void setJsonSchema_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> jsonSchema)
    • setJsonSchema

      public void setJsonSchema(String jsonSchema)
    • key

    • getKey

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

      public void setKey(String key)
    • name

      public CreateFeatureFlagAttributes name(String name)
    • getName

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

      public void setName(String name)
    • requireApproval

      public CreateFeatureFlagAttributes requireApproval(Boolean requireApproval)
    • getRequireApproval

      @Nullable public Boolean getRequireApproval()
      Indicates whether this feature flag requires approval for changes.
      Returns:
      requireApproval
    • setRequireApproval

      public void setRequireApproval(Boolean requireApproval)
    • stalenessStatus

      public CreateFeatureFlagAttributes stalenessStatus(CreateFeatureFlagStalenessStatus stalenessStatus)
    • getStalenessStatus

      @Nullable public CreateFeatureFlagStalenessStatus getStalenessStatus()
      The staleness status for the feature flag at creation.
      Returns:
      stalenessStatus
    • setStalenessStatus

      public void setStalenessStatus(CreateFeatureFlagStalenessStatus stalenessStatus)
    • tags

    • addTagsItem

      public CreateFeatureFlagAttributes addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      Tags associated with the feature flag.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • valueType

      public CreateFeatureFlagAttributes valueType(ValueType valueType)
    • getValueType

      public ValueType getValueType()
      The type of values for the feature flag variants.
      Returns:
      valueType
    • setValueType

      public void setValueType(ValueType valueType)
    • variants

      public CreateFeatureFlagAttributes variants(List<CreateVariant> variants)
    • addVariantsItem

      public CreateFeatureFlagAttributes addVariantsItem(CreateVariant variantsItem)
    • getVariants

      public List<CreateVariant> getVariants()
      The variants of the feature flag.
      Returns:
      variants
    • setVariants

      public void setVariants(List<CreateVariant> variants)
    • putAdditionalProperty

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