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.Object
FeatureFlagBody
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FeatureFlagBody.CustomTypeAdapterFactory
static class
FeatureFlagBody.PurposeEnum
Purpose of the flag
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>
openapiFields
static java.util.HashSet<java.lang.String>
openapiRequiredFields
static java.lang.String
SERIALIZED_NAME_CLIENT_SIDE_AVAILABILITY
static java.lang.String
SERIALIZED_NAME_CUSTOM_PROPERTIES
static java.lang.String
SERIALIZED_NAME_DEFAULTS
static java.lang.String
SERIALIZED_NAME_DESCRIPTION
static java.lang.String
SERIALIZED_NAME_INCLUDE_IN_SNIPPET
static java.lang.String
SERIALIZED_NAME_KEY
static java.lang.String
SERIALIZED_NAME_MIGRATION_SETTINGS
static java.lang.String
SERIALIZED_NAME_NAME
static java.lang.String
SERIALIZED_NAME_PURPOSE
static java.lang.String
SERIALIZED_NAME_TAGS
static java.lang.String
SERIALIZED_NAME_TEMPORARY
static java.lang.String
SERIALIZED_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 FeatureFlagBody
addTagsItem(java.lang.String tagsItem)
FeatureFlagBody
addVariationsItem(Variation variationsItem)
FeatureFlagBody
clientSideAvailability(ClientSideAvailabilityPost clientSideAvailability)
FeatureFlagBody
customProperties(java.util.Map<java.lang.String,CustomProperty> customProperties)
FeatureFlagBody
defaults(Defaults defaults)
FeatureFlagBody
description(java.lang.String description)
boolean
equals(java.lang.Object o)
static FeatureFlagBody
fromJson(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.Object
getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.ClientSideAvailabilityPost
getClientSideAvailability()
Get clientSideAvailabilityjava.util.Map<java.lang.String,CustomProperty>
getCustomProperties()
Get customPropertiesDefaults
getDefaults()
Get defaultsjava.lang.String
getDescription()
Description of the feature flag.java.lang.Boolean
getIncludeInSnippet()
Deprecated.java.lang.String
getKey()
A unique key used to reference the flag in your codeMigrationSettingsPost
getMigrationSettings()
Get migrationSettingsjava.lang.String
getName()
A human-friendly name for the feature flagFeatureFlagBody.PurposeEnum
getPurpose()
Purpose of the flagjava.util.List<java.lang.String>
getTags()
Tags for the feature flag.java.lang.Boolean
getTemporary()
Whether the flag is a temporary flag.java.util.List<Variation>
getVariations()
An array of possible variations for the flag.int
hashCode()
FeatureFlagBody
includeInSnippet(java.lang.Boolean includeInSnippet)
FeatureFlagBody
key(java.lang.String key)
FeatureFlagBody
migrationSettings(MigrationSettingsPost migrationSettings)
FeatureFlagBody
name(java.lang.String name)
FeatureFlagBody
purpose(FeatureFlagBody.PurposeEnum purpose)
FeatureFlagBody
putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.FeatureFlagBody
putCustomPropertiesItem(java.lang.String key, CustomProperty customPropertiesItem)
void
setClientSideAvailability(ClientSideAvailabilityPost clientSideAvailability)
void
setCustomProperties(java.util.Map<java.lang.String,CustomProperty> customProperties)
void
setDefaults(Defaults defaults)
void
setDescription(java.lang.String description)
void
setIncludeInSnippet(java.lang.Boolean includeInSnippet)
void
setKey(java.lang.String key)
void
setMigrationSettings(MigrationSettingsPost migrationSettings)
void
setName(java.lang.String name)
void
setPurpose(FeatureFlagBody.PurposeEnum purpose)
void
setTags(java.util.List<java.lang.String> tags)
void
setTemporary(java.lang.Boolean temporary)
void
setVariations(java.util.List<Variation> variations)
FeatureFlagBody
tags(java.util.List<java.lang.String> tags)
FeatureFlagBody
temporary(java.lang.Boolean temporary)
java.lang.String
toJson()
Convert an instance of FeatureFlagBody to an JSON stringjava.lang.String
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues foundFeatureFlagBody
variations(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOException
Validates 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
-
-