Package com.launchdarkly.api.model
Class Environment
- java.lang.Object
-
- com.launchdarkly.api.model.Environment
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-11-16T23:57:26.096741Z[Etc/UTC]") public class Environment extends java.lang.ObjectEnvironment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnvironment.CustomTypeAdapterFactory
-
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_API_KEYstatic java.lang.StringSERIALIZED_NAME_APPROVAL_SETTINGSstatic java.lang.StringSERIALIZED_NAME_COLORstatic java.lang.StringSERIALIZED_NAME_CONFIRM_CHANGESstatic java.lang.StringSERIALIZED_NAME_DEFAULT_TRACK_EVENTSstatic java.lang.StringSERIALIZED_NAME_DEFAULT_TTLstatic java.lang.StringSERIALIZED_NAME_IDstatic java.lang.StringSERIALIZED_NAME_KEYstatic java.lang.StringSERIALIZED_NAME_LINKSstatic java.lang.StringSERIALIZED_NAME_MOBILE_KEYstatic java.lang.StringSERIALIZED_NAME_NAMEstatic java.lang.StringSERIALIZED_NAME_REQUIRE_COMMENTSstatic java.lang.StringSERIALIZED_NAME_SECURE_MODEstatic java.lang.StringSERIALIZED_NAME_TAGS
-
Constructor Summary
Constructors Constructor Description Environment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvironmentaddTagsItem(java.lang.String tagsItem)EnvironmentapiKey(java.lang.String apiKey)EnvironmentapprovalSettings(ApprovalSettings approvalSettings)Environmentcolor(java.lang.String color)EnvironmentconfirmChanges(java.lang.Boolean confirmChanges)EnvironmentdefaultTrackEvents(java.lang.Boolean defaultTrackEvents)EnvironmentdefaultTtl(java.lang.Integer defaultTtl)booleanequals(java.lang.Object o)static EnvironmentfromJson(java.lang.String jsonString)Create an instance of Environment 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.java.lang.StringgetApiKey()The SDK key for the environment.ApprovalSettingsgetApprovalSettings()Get approvalSettingsjava.lang.StringgetColor()The color used to indicate this environment in the UIjava.lang.BooleangetConfirmChanges()Whether members who modify flags and segments through the LaunchDarkly user interface are required to confirm those changesjava.lang.BooleangetDefaultTrackEvents()Enables tracking detailed information for new flags by defaultjava.lang.IntegergetDefaultTtl()The default time (in minutes) that the PHP SDK can cache feature flag rules locallyjava.lang.StringgetId()The ID for the environment.java.lang.StringgetKey()A project-unique key for the new environmentjava.util.Map<java.lang.String,Link>getLinks()The location and content type of related resourcesjava.lang.StringgetMobileKey()The mobile key for the environment.java.lang.StringgetName()A human-friendly name for the new environmentjava.lang.BooleangetRequireComments()Whether members who modify flags and segments through the LaunchDarkly user interface are required to add a commentjava.lang.BooleangetSecureMode()Ensures that one end user of the client-side SDK cannot inspect the variations for another end userjava.util.List<java.lang.String>getTags()A list of tags for this environmentinthashCode()Environmentid(java.lang.String id)Environmentkey(java.lang.String key)Environmentlinks(java.util.Map<java.lang.String,Link> links)EnvironmentmobileKey(java.lang.String mobileKey)Environmentname(java.lang.String name)EnvironmentputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.EnvironmentputLinksItem(java.lang.String key, Link linksItem)EnvironmentrequireComments(java.lang.Boolean requireComments)EnvironmentsecureMode(java.lang.Boolean secureMode)voidsetApiKey(java.lang.String apiKey)voidsetApprovalSettings(ApprovalSettings approvalSettings)voidsetColor(java.lang.String color)voidsetConfirmChanges(java.lang.Boolean confirmChanges)voidsetDefaultTrackEvents(java.lang.Boolean defaultTrackEvents)voidsetDefaultTtl(java.lang.Integer defaultTtl)voidsetId(java.lang.String id)voidsetKey(java.lang.String key)voidsetLinks(java.util.Map<java.lang.String,Link> links)voidsetMobileKey(java.lang.String mobileKey)voidsetName(java.lang.String name)voidsetRequireComments(java.lang.Boolean requireComments)voidsetSecureMode(java.lang.Boolean secureMode)voidsetTags(java.util.List<java.lang.String> tags)Environmenttags(java.util.List<java.lang.String> tags)java.lang.StringtoJson()Convert an instance of Environment to an JSON stringjava.lang.StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LINKS
public static final java.lang.String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final java.lang.String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_KEY
public static final java.lang.String SERIALIZED_NAME_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final java.lang.String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_API_KEY
public static final java.lang.String SERIALIZED_NAME_API_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MOBILE_KEY
public static final java.lang.String SERIALIZED_NAME_MOBILE_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COLOR
public static final java.lang.String SERIALIZED_NAME_COLOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULT_TTL
public static final java.lang.String SERIALIZED_NAME_DEFAULT_TTL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SECURE_MODE
public static final java.lang.String SERIALIZED_NAME_SECURE_MODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULT_TRACK_EVENTS
public static final java.lang.String SERIALIZED_NAME_DEFAULT_TRACK_EVENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUIRE_COMMENTS
public static final java.lang.String SERIALIZED_NAME_REQUIRE_COMMENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONFIRM_CHANGES
public static final java.lang.String SERIALIZED_NAME_CONFIRM_CHANGES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final java.lang.String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPROVAL_SETTINGS
public static final java.lang.String SERIALIZED_NAME_APPROVAL_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
-
links
public Environment links(java.util.Map<java.lang.String,Link> links)
-
putLinksItem
public Environment putLinksItem(java.lang.String key, Link linksItem)
-
getLinks
@Nonnull public java.util.Map<java.lang.String,Link> getLinks()
The location and content type of related resources- Returns:
- links
-
setLinks
public void setLinks(java.util.Map<java.lang.String,Link> links)
-
id
public Environment id(java.lang.String id)
-
getId
@Nonnull public java.lang.String getId()
The ID for the environment. Use this as the client-side ID for authorization in some client-side SDKs, and to associate LaunchDarkly environments with CDN integrations in edge SDKs.- Returns:
- id
-
setId
public void setId(java.lang.String id)
-
key
public Environment key(java.lang.String key)
-
getKey
@Nonnull public java.lang.String getKey()
A project-unique key for the new environment- Returns:
- key
-
setKey
public void setKey(java.lang.String key)
-
name
public Environment name(java.lang.String name)
-
getName
@Nonnull public java.lang.String getName()
A human-friendly name for the new environment- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
apiKey
public Environment apiKey(java.lang.String apiKey)
-
getApiKey
@Nonnull public java.lang.String getApiKey()
The SDK key for the environment. Use this for authorization in server-side SDKs.- Returns:
- apiKey
-
setApiKey
public void setApiKey(java.lang.String apiKey)
-
mobileKey
public Environment mobileKey(java.lang.String mobileKey)
-
getMobileKey
@Nonnull public java.lang.String getMobileKey()
The mobile key for the environment. Use this for authorization in mobile SDKs.- Returns:
- mobileKey
-
setMobileKey
public void setMobileKey(java.lang.String mobileKey)
-
color
public Environment color(java.lang.String color)
-
getColor
@Nonnull public java.lang.String getColor()
The color used to indicate this environment in the UI- Returns:
- color
-
setColor
public void setColor(java.lang.String color)
-
defaultTtl
public Environment defaultTtl(java.lang.Integer defaultTtl)
-
getDefaultTtl
@Nonnull public java.lang.Integer getDefaultTtl()
The default time (in minutes) that the PHP SDK can cache feature flag rules locally- Returns:
- defaultTtl
-
setDefaultTtl
public void setDefaultTtl(java.lang.Integer defaultTtl)
-
secureMode
public Environment secureMode(java.lang.Boolean secureMode)
-
getSecureMode
@Nonnull public java.lang.Boolean getSecureMode()
Ensures that one end user of the client-side SDK cannot inspect the variations for another end user- Returns:
- secureMode
-
setSecureMode
public void setSecureMode(java.lang.Boolean secureMode)
-
defaultTrackEvents
public Environment defaultTrackEvents(java.lang.Boolean defaultTrackEvents)
-
getDefaultTrackEvents
@Nonnull public java.lang.Boolean getDefaultTrackEvents()
Enables tracking detailed information for new flags by default- Returns:
- defaultTrackEvents
-
setDefaultTrackEvents
public void setDefaultTrackEvents(java.lang.Boolean defaultTrackEvents)
-
requireComments
public Environment requireComments(java.lang.Boolean requireComments)
-
getRequireComments
@Nonnull public java.lang.Boolean getRequireComments()
Whether members who modify flags and segments through the LaunchDarkly user interface are required to add a comment- Returns:
- requireComments
-
setRequireComments
public void setRequireComments(java.lang.Boolean requireComments)
-
confirmChanges
public Environment confirmChanges(java.lang.Boolean confirmChanges)
-
getConfirmChanges
@Nonnull public java.lang.Boolean getConfirmChanges()
Whether members who modify flags and segments through the LaunchDarkly user interface are required to confirm those changes- Returns:
- confirmChanges
-
setConfirmChanges
public void setConfirmChanges(java.lang.Boolean confirmChanges)
-
tags
public Environment tags(java.util.List<java.lang.String> tags)
-
addTagsItem
public Environment addTagsItem(java.lang.String tagsItem)
-
getTags
@Nonnull public java.util.List<java.lang.String> getTags()
A list of tags for this environment- Returns:
- tags
-
setTags
public void setTags(java.util.List<java.lang.String> tags)
-
approvalSettings
public Environment approvalSettings(ApprovalSettings approvalSettings)
-
getApprovalSettings
@Nullable public ApprovalSettings getApprovalSettings()
Get approvalSettings- Returns:
- approvalSettings
-
setApprovalSettings
public void setApprovalSettings(ApprovalSettings approvalSettings)
-
putAdditionalProperty
public Environment 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 Environment
-
fromJson
public static Environment fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of Environment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Environment
- Throws:
java.io.IOException- if the JSON string is invalid with respect to Environment
-
toJson
public java.lang.String toJson()
Convert an instance of Environment to an JSON string- Returns:
- JSON string
-
-