Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreateFeatureFlagAttributes(String key, String name, ValueType valueType, List<CreateVariant> variants) -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem(String tagsItem) addVariantsItem(CreateVariant variantsItem) defaultVariantKey(String defaultVariantKey) description(String description) distributionChannel(FeatureFlagDistributionChannel distributionChannel) booleanReturn true if this CreateFeatureFlagAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The key of the default variant.org.openapitools.jackson.nullable.JsonNullable<String>The description of the feature flag.The distribution channel for the feature flag.JSON schema for validation when value_type is JSON.org.openapitools.jackson.nullable.JsonNullable<String>getKey()The unique key of the feature flag.getName()The name of the feature flag.Indicates whether this feature flag requires approval for changes.The staleness status for the feature flag at creation.getTags()Tags associated with the feature flag.The type of values for the feature flag variants.The variants of the feature flag.inthashCode()jsonSchema(String jsonSchema) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.requireApproval(Boolean requireApproval) voidsetDefaultVariantKey(String defaultVariantKey) voidsetDefaultVariantKey_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> defaultVariantKey) voidsetDescription(String description) voidsetDistributionChannel(FeatureFlagDistributionChannel distributionChannel) voidsetJsonSchema(String jsonSchema) voidsetJsonSchema_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> jsonSchema) voidvoidvoidsetRequireApproval(Boolean requireApproval) voidsetStalenessStatus(CreateFeatureFlagStalenessStatus stalenessStatus) voidvoidsetValueType(ValueType valueType) voidsetVariants(List<CreateVariant> variants) stalenessStatus(CreateFeatureFlagStalenessStatus stalenessStatus) toString()variants(List<CreateVariant> variants)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DEFAULT_VARIANT_KEY
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_DISTRIBUTION_CHANNEL
- See Also:
-
JSON_PROPERTY_JSON_SCHEMA
- See Also:
-
JSON_PROPERTY_KEY
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_REQUIRE_APPROVAL
- See Also:
-
JSON_PROPERTY_STALENESS_STATUS
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_VALUE_TYPE
- See Also:
-
JSON_PROPERTY_VARIANTS
- See Also:
-
-
Constructor Details
-
CreateFeatureFlagAttributes
public CreateFeatureFlagAttributes() -
CreateFeatureFlagAttributes
public CreateFeatureFlagAttributes(String key, String name, ValueType valueType, List<CreateVariant> variants)
-
-
Method Details
-
defaultVariantKey
-
getDefaultVariantKey
The key of the default variant.- Returns:
- defaultVariantKey
-
getDefaultVariantKey_JsonNullable
-
setDefaultVariantKey_JsonNullable
public void setDefaultVariantKey_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> defaultVariantKey) -
setDefaultVariantKey
-
description
-
getDescription
The description of the feature flag.- Returns:
- description
-
setDescription
-
distributionChannel
public CreateFeatureFlagAttributes distributionChannel(FeatureFlagDistributionChannel distributionChannel) -
getDistributionChannel
The distribution channel for the feature flag.- Returns:
- distributionChannel
-
setDistributionChannel
-
jsonSchema
-
getJsonSchema
JSON schema for validation when value_type is JSON.- Returns:
- jsonSchema
-
getJsonSchema_JsonNullable
-
setJsonSchema_JsonNullable
public void setJsonSchema_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> jsonSchema) -
setJsonSchema
-
key
-
getKey
The unique key of the feature flag.- Returns:
- key
-
setKey
-
name
-
getName
The name of the feature flag.- Returns:
- name
-
setName
-
requireApproval
-
getRequireApproval
Indicates whether this feature flag requires approval for changes.- Returns:
- requireApproval
-
setRequireApproval
-
stalenessStatus
public CreateFeatureFlagAttributes stalenessStatus(CreateFeatureFlagStalenessStatus stalenessStatus) -
getStalenessStatus
The staleness status for the feature flag at creation.- Returns:
- stalenessStatus
-
setStalenessStatus
-
tags
-
addTagsItem
-
getTags
Tags associated with the feature flag.- Returns:
- tags
-
setTags
-
valueType
-
getValueType
The type of values for the feature flag variants.- Returns:
- valueType
-
setValueType
-
variants
-
addVariantsItem
-
getVariants
The variants of the feature flag.- Returns:
- variants
-
setVariants
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- CreateFeatureFlagAttributes
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this CreateFeatureFlagAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-