Package com.launchdarkly.api.model
Class FeatureFlagBody
- java.lang.Object
-
- com.launchdarkly.api.model.FeatureFlagBody
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-11-16T23:57:26.096741Z[Etc/UTC]") public class FeatureFlagBody extends java.lang.ObjectFeatureFlagBody
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeatureFlagBody.CustomTypeAdapterFactorystatic classFeatureFlagBody.PurposeEnumPurpose of the flag
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_CLIENT_SIDE_AVAILABILITYstatic java.lang.StringSERIALIZED_NAME_CUSTOM_PROPERTIESstatic java.lang.StringSERIALIZED_NAME_DEFAULTSstatic java.lang.StringSERIALIZED_NAME_DESCRIPTIONstatic java.lang.StringSERIALIZED_NAME_INCLUDE_IN_SNIPPETstatic java.lang.StringSERIALIZED_NAME_KEYstatic java.lang.StringSERIALIZED_NAME_MIGRATION_SETTINGSstatic java.lang.StringSERIALIZED_NAME_NAMEstatic java.lang.StringSERIALIZED_NAME_PURPOSEstatic java.lang.StringSERIALIZED_NAME_TAGSstatic java.lang.StringSERIALIZED_NAME_TEMPORARYstatic java.lang.StringSERIALIZED_NAME_VARIATIONS
-
Constructor Summary
Constructors Constructor Description FeatureFlagBody()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FeatureFlagBodyaddTagsItem(java.lang.String tagsItem)FeatureFlagBodyaddVariationsItem(Variation variationsItem)FeatureFlagBodyclientSideAvailability(ClientSideAvailabilityPost clientSideAvailability)FeatureFlagBodycustomProperties(java.util.Map<java.lang.String,CustomProperty> customProperties)FeatureFlagBodydefaults(Defaults defaults)FeatureFlagBodydescription(java.lang.String description)booleanequals(java.lang.Object o)static FeatureFlagBodyfromJson(java.lang.String jsonString)Create an instance of FeatureFlagBody given an JSON stringjava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.ClientSideAvailabilityPostgetClientSideAvailability()Get clientSideAvailabilityjava.util.Map<java.lang.String,CustomProperty>getCustomProperties()Get customPropertiesDefaultsgetDefaults()Get defaultsjava.lang.StringgetDescription()Description of the feature flag.java.lang.BooleangetIncludeInSnippet()Deprecated.java.lang.StringgetKey()A unique key used to reference the flag in your codeMigrationSettingsPostgetMigrationSettings()Get migrationSettingsjava.lang.StringgetName()A human-friendly name for the feature flagFeatureFlagBody.PurposeEnumgetPurpose()Purpose of the flagjava.util.List<java.lang.String>getTags()Tags for the feature flag.java.lang.BooleangetTemporary()Whether the flag is a temporary flag.java.util.List<Variation>getVariations()An array of possible variations for the flag.inthashCode()FeatureFlagBodyincludeInSnippet(java.lang.Boolean includeInSnippet)FeatureFlagBodykey(java.lang.String key)FeatureFlagBodymigrationSettings(MigrationSettingsPost migrationSettings)FeatureFlagBodyname(java.lang.String name)FeatureFlagBodypurpose(FeatureFlagBody.PurposeEnum purpose)FeatureFlagBodyputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.FeatureFlagBodyputCustomPropertiesItem(java.lang.String key, CustomProperty customPropertiesItem)voidsetClientSideAvailability(ClientSideAvailabilityPost clientSideAvailability)voidsetCustomProperties(java.util.Map<java.lang.String,CustomProperty> customProperties)voidsetDefaults(Defaults defaults)voidsetDescription(java.lang.String description)voidsetIncludeInSnippet(java.lang.Boolean includeInSnippet)voidsetKey(java.lang.String key)voidsetMigrationSettings(MigrationSettingsPost migrationSettings)voidsetName(java.lang.String name)voidsetPurpose(FeatureFlagBody.PurposeEnum purpose)voidsetTags(java.util.List<java.lang.String> tags)voidsetTemporary(java.lang.Boolean temporary)voidsetVariations(java.util.List<Variation> variations)FeatureFlagBodytags(java.util.List<java.lang.String> tags)FeatureFlagBodytemporary(java.lang.Boolean temporary)java.lang.StringtoJson()Convert an instance of FeatureFlagBody to an JSON stringjava.lang.StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundFeatureFlagBodyvariations(java.util.List<Variation> variations)
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final java.lang.String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_KEY
public static final java.lang.String SERIALIZED_NAME_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final java.lang.String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INCLUDE_IN_SNIPPET
public static final java.lang.String SERIALIZED_NAME_INCLUDE_IN_SNIPPET
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CLIENT_SIDE_AVAILABILITY
public static final java.lang.String SERIALIZED_NAME_CLIENT_SIDE_AVAILABILITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VARIATIONS
public static final java.lang.String SERIALIZED_NAME_VARIATIONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TEMPORARY
public static final java.lang.String SERIALIZED_NAME_TEMPORARY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final java.lang.String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CUSTOM_PROPERTIES
public static final java.lang.String SERIALIZED_NAME_CUSTOM_PROPERTIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULTS
public static final java.lang.String SERIALIZED_NAME_DEFAULTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PURPOSE
public static final java.lang.String SERIALIZED_NAME_PURPOSE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MIGRATION_SETTINGS
public static final java.lang.String SERIALIZED_NAME_MIGRATION_SETTINGS
- 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
-
-
Method Detail
-
name
public FeatureFlagBody name(java.lang.String name)
-
getName
@Nonnull public java.lang.String getName()
A human-friendly name for the feature flag- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
key
public FeatureFlagBody key(java.lang.String key)
-
getKey
@Nonnull public java.lang.String getKey()
A unique key used to reference the flag in your code- Returns:
- key
-
setKey
public void setKey(java.lang.String key)
-
description
public FeatureFlagBody description(java.lang.String description)
-
getDescription
@Nullable public java.lang.String getDescription()
Description of the feature flag. Defaults to an empty string.- Returns:
- description
-
setDescription
public void setDescription(java.lang.String description)
-
includeInSnippet
public FeatureFlagBody includeInSnippet(java.lang.Boolean includeInSnippet)
-
getIncludeInSnippet
@Deprecated @Nullable public java.lang.Boolean getIncludeInSnippet()
Deprecated.Deprecated, use <code>clientSideAvailability</code>. Whether this flag should be made available to the client-side JavaScript SDK. Defaults to <code>false</code>.- Returns:
- includeInSnippet
-
setIncludeInSnippet
public void setIncludeInSnippet(java.lang.Boolean includeInSnippet)
-
clientSideAvailability
public FeatureFlagBody clientSideAvailability(ClientSideAvailabilityPost clientSideAvailability)
-
getClientSideAvailability
@Nullable public ClientSideAvailabilityPost getClientSideAvailability()
Get clientSideAvailability- Returns:
- clientSideAvailability
-
setClientSideAvailability
public void setClientSideAvailability(ClientSideAvailabilityPost clientSideAvailability)
-
variations
public FeatureFlagBody variations(java.util.List<Variation> variations)
-
addVariationsItem
public FeatureFlagBody addVariationsItem(Variation variationsItem)
-
getVariations
@Nullable public java.util.List<Variation> getVariations()
An array of possible variations for the flag. The variation values must be unique. If omitted, two boolean variations of <code>true</code> and <code>false</code> will be used.- Returns:
- variations
-
setVariations
public void setVariations(java.util.List<Variation> variations)
-
temporary
public FeatureFlagBody temporary(java.lang.Boolean temporary)
-
getTemporary
@Nullable public java.lang.Boolean getTemporary()
Whether the flag is a temporary flag. Defaults to <code>true</code>.- Returns:
- temporary
-
setTemporary
public void setTemporary(java.lang.Boolean temporary)
-
tags
public FeatureFlagBody tags(java.util.List<java.lang.String> tags)
-
addTagsItem
public FeatureFlagBody addTagsItem(java.lang.String tagsItem)
-
getTags
@Nullable public java.util.List<java.lang.String> getTags()
Tags for the feature flag. Defaults to an empty array.- Returns:
- tags
-
setTags
public void setTags(java.util.List<java.lang.String> tags)
-
customProperties
public FeatureFlagBody customProperties(java.util.Map<java.lang.String,CustomProperty> customProperties)
-
putCustomPropertiesItem
public FeatureFlagBody putCustomPropertiesItem(java.lang.String key, CustomProperty customPropertiesItem)
-
getCustomProperties
@Nullable public java.util.Map<java.lang.String,CustomProperty> getCustomProperties()
Get customProperties- Returns:
- customProperties
-
setCustomProperties
public void setCustomProperties(java.util.Map<java.lang.String,CustomProperty> customProperties)
-
defaults
public FeatureFlagBody defaults(Defaults defaults)
-
getDefaults
@Nullable public Defaults getDefaults()
Get defaults- Returns:
- defaults
-
setDefaults
public void setDefaults(Defaults defaults)
-
purpose
public FeatureFlagBody purpose(FeatureFlagBody.PurposeEnum purpose)
-
getPurpose
@Nullable public FeatureFlagBody.PurposeEnum getPurpose()
Purpose of the flag- Returns:
- purpose
-
setPurpose
public void setPurpose(FeatureFlagBody.PurposeEnum purpose)
-
migrationSettings
public FeatureFlagBody migrationSettings(MigrationSettingsPost migrationSettings)
-
getMigrationSettings
@Nullable public MigrationSettingsPost getMigrationSettings()
Get migrationSettings- Returns:
- migrationSettings
-
setMigrationSettings
public void setMigrationSettings(MigrationSettingsPost migrationSettings)
-
putAdditionalProperty
public FeatureFlagBody 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.
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
java.io.IOException- if the JSON Object is invalid with respect to FeatureFlagBody
-
fromJson
public static FeatureFlagBody fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of FeatureFlagBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FeatureFlagBody
- Throws:
java.io.IOException- if the JSON string is invalid with respect to FeatureFlagBody
-
toJson
public java.lang.String toJson()
Convert an instance of FeatureFlagBody to an JSON string- Returns:
- JSON string
-
-