Package com.launchdarkly.api.model
Class Environment
- java.lang.Object
-
- com.launchdarkly.api.model.Environment
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") 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_ACCESSstatic 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_CRITICALstatic 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_RESOURCE_APPROVAL_SETTINGSstatic 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 Environmentaccess(Access access)EnvironmentaddTagsItem(java.lang.String tagsItem)EnvironmentapiKey(java.lang.String apiKey)EnvironmentapprovalSettings(ApprovalSettings approvalSettings)Environmentcolor(java.lang.String color)EnvironmentconfirmChanges(java.lang.Boolean confirmChanges)Environmentcritical(java.lang.Boolean critical)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 stringAccessgetAccess()Get accessjava.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.BooleangetCritical()Whether the environment is criticaljava.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.util.Map<java.lang.String,ApprovalSettings>getResourceApprovalSettings()Details on the approval settings for this environment for each resource kindjava.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)EnvironmentputResourceApprovalSettingsItem(java.lang.String key, ApprovalSettings resourceApprovalSettingsItem)EnvironmentrequireComments(java.lang.Boolean requireComments)EnvironmentresourceApprovalSettings(java.util.Map<java.lang.String,ApprovalSettings> resourceApprovalSettings)EnvironmentsecureMode(java.lang.Boolean secureMode)voidsetAccess(Access access)voidsetApiKey(java.lang.String apiKey)voidsetApprovalSettings(ApprovalSettings approvalSettings)voidsetColor(java.lang.String color)voidsetConfirmChanges(java.lang.Boolean confirmChanges)voidsetCritical(java.lang.Boolean critical)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)voidsetResourceApprovalSettings(java.util.Map<java.lang.String,ApprovalSettings> resourceApprovalSettings)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 voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element 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_ACCESS
public static final java.lang.String SERIALIZED_NAME_ACCESS
- 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
-
SERIALIZED_NAME_RESOURCE_APPROVAL_SETTINGS
public static final java.lang.String SERIALIZED_NAME_RESOURCE_APPROVAL_SETTINGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CRITICAL
public static final java.lang.String SERIALIZED_NAME_CRITICAL
- 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(@Nonnull 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(@Nonnull java.util.Map<java.lang.String,Link> links)
-
id
public Environment id(@Nonnull 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(@Nonnull java.lang.String id)
-
key
public Environment key(@Nonnull 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(@Nonnull java.lang.String key)
-
name
public Environment name(@Nonnull 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(@Nonnull java.lang.String name)
-
apiKey
public Environment apiKey(@Nonnull 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(@Nonnull java.lang.String apiKey)
-
mobileKey
public Environment mobileKey(@Nonnull 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(@Nonnull java.lang.String mobileKey)
-
color
public Environment color(@Nonnull 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(@Nonnull java.lang.String color)
-
defaultTtl
public Environment defaultTtl(@Nonnull 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(@Nonnull java.lang.Integer defaultTtl)
-
secureMode
public Environment secureMode(@Nonnull 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(@Nonnull java.lang.Boolean secureMode)
-
access
public Environment access(@Nullable Access access)
-
getAccess
@Nullable public Access getAccess()
Get access- Returns:
- access
-
setAccess
public void setAccess(@Nullable Access access)
-
defaultTrackEvents
public Environment defaultTrackEvents(@Nonnull 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(@Nonnull java.lang.Boolean defaultTrackEvents)
-
requireComments
public Environment requireComments(@Nonnull 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(@Nonnull java.lang.Boolean requireComments)
-
confirmChanges
public Environment confirmChanges(@Nonnull 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(@Nonnull java.lang.Boolean confirmChanges)
-
tags
public Environment tags(@Nonnull 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(@Nonnull java.util.List<java.lang.String> tags)
-
approvalSettings
public Environment approvalSettings(@Nullable ApprovalSettings approvalSettings)
-
getApprovalSettings
@Nullable public ApprovalSettings getApprovalSettings()
Get approvalSettings- Returns:
- approvalSettings
-
setApprovalSettings
public void setApprovalSettings(@Nullable ApprovalSettings approvalSettings)
-
resourceApprovalSettings
public Environment resourceApprovalSettings(@Nullable java.util.Map<java.lang.String,ApprovalSettings> resourceApprovalSettings)
-
putResourceApprovalSettingsItem
public Environment putResourceApprovalSettingsItem(java.lang.String key, ApprovalSettings resourceApprovalSettingsItem)
-
getResourceApprovalSettings
@Nullable public java.util.Map<java.lang.String,ApprovalSettings> getResourceApprovalSettings()
Details on the approval settings for this environment for each resource kind- Returns:
- resourceApprovalSettings
-
setResourceApprovalSettings
public void setResourceApprovalSettings(@Nullable java.util.Map<java.lang.String,ApprovalSettings> resourceApprovalSettings)
-
critical
public Environment critical(@Nonnull java.lang.Boolean critical)
-
getCritical
@Nonnull public java.lang.Boolean getCritical()
Whether the environment is critical- Returns:
- critical
-
setCritical
public void setCritical(@Nonnull java.lang.Boolean critical)
-
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.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the Environment instance itself
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
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
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws java.io.IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
java.io.IOException- if the JSON Element 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
-
-