Package com.launchdarkly.api.model
Class ApprovalSettings
- java.lang.Object
-
- com.launchdarkly.api.model.ApprovalSettings
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class ApprovalSettings extends java.lang.ObjectApprovalSettings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApprovalSettings.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_AUTO_APPLY_APPROVED_CHANGESstatic java.lang.StringSERIALIZED_NAME_BYPASS_APPROVALS_FOR_PENDING_CHANGESstatic java.lang.StringSERIALIZED_NAME_CAN_APPLY_DECLINED_CHANGESstatic java.lang.StringSERIALIZED_NAME_CAN_REVIEW_OWN_REQUESTstatic java.lang.StringSERIALIZED_NAME_MIN_NUM_APPROVALSstatic java.lang.StringSERIALIZED_NAME_REQUIREDstatic java.lang.StringSERIALIZED_NAME_REQUIRED_APPROVAL_TAGSstatic java.lang.StringSERIALIZED_NAME_RESOURCE_KINDstatic java.lang.StringSERIALIZED_NAME_SERVICE_CONFIGstatic java.lang.StringSERIALIZED_NAME_SERVICE_KINDstatic java.lang.StringSERIALIZED_NAME_SERVICE_KIND_CONFIGURATION_ID
-
Constructor Summary
Constructors Constructor Description ApprovalSettings()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApprovalSettingsaddRequiredApprovalTagsItem(java.lang.String requiredApprovalTagsItem)ApprovalSettingsautoApplyApprovedChanges(java.lang.Boolean autoApplyApprovedChanges)ApprovalSettingsbypassApprovalsForPendingChanges(java.lang.Boolean bypassApprovalsForPendingChanges)ApprovalSettingscanApplyDeclinedChanges(java.lang.Boolean canApplyDeclinedChanges)ApprovalSettingscanReviewOwnRequest(java.lang.Boolean canReviewOwnRequest)booleanequals(java.lang.Object o)static ApprovalSettingsfromJson(java.lang.String jsonString)Create an instance of ApprovalSettings 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.BooleangetAutoApplyApprovedChanges()Automatically apply changes that have been approved by all reviewers.java.lang.BooleangetBypassApprovalsForPendingChanges()Whether to skip approvals for pending changesjava.lang.BooleangetCanApplyDeclinedChanges()Allow applying the change as long as at least one person has approvedjava.lang.BooleangetCanReviewOwnRequest()Allow someone who makes an approval request to apply their own changejava.lang.IntegergetMinNumApprovals()Sets the amount of approvals required before a member can apply a change.java.lang.BooleangetRequired()If approvals are required for this environmentjava.util.List<java.lang.String>getRequiredApprovalTags()Require approval only on flags with the provided tags.java.lang.StringgetResourceKind()The kind of resource for which the approval settings apply, for example, flag or segmentjava.util.Map<java.lang.String,java.lang.Object>getServiceConfig()Get serviceConfigjava.lang.StringgetServiceKind()Which service to use for managing approvalsjava.lang.StringgetServiceKindConfigurationId()Optional field for integration configuration ID of a custom approval integration.inthashCode()ApprovalSettingsminNumApprovals(java.lang.Integer minNumApprovals)ApprovalSettingsputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.ApprovalSettingsputServiceConfigItem(java.lang.String key, java.lang.Object serviceConfigItem)ApprovalSettingsrequired(java.lang.Boolean required)ApprovalSettingsrequiredApprovalTags(java.util.List<java.lang.String> requiredApprovalTags)ApprovalSettingsresourceKind(java.lang.String resourceKind)ApprovalSettingsserviceConfig(java.util.Map<java.lang.String,java.lang.Object> serviceConfig)ApprovalSettingsserviceKind(java.lang.String serviceKind)ApprovalSettingsserviceKindConfigurationId(java.lang.String serviceKindConfigurationId)voidsetAutoApplyApprovedChanges(java.lang.Boolean autoApplyApprovedChanges)voidsetBypassApprovalsForPendingChanges(java.lang.Boolean bypassApprovalsForPendingChanges)voidsetCanApplyDeclinedChanges(java.lang.Boolean canApplyDeclinedChanges)voidsetCanReviewOwnRequest(java.lang.Boolean canReviewOwnRequest)voidsetMinNumApprovals(java.lang.Integer minNumApprovals)voidsetRequired(java.lang.Boolean required)voidsetRequiredApprovalTags(java.util.List<java.lang.String> requiredApprovalTags)voidsetResourceKind(java.lang.String resourceKind)voidsetServiceConfig(java.util.Map<java.lang.String,java.lang.Object> serviceConfig)voidsetServiceKind(java.lang.String serviceKind)voidsetServiceKindConfigurationId(java.lang.String serviceKindConfigurationId)java.lang.StringtoJson()Convert an instance of ApprovalSettings 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_REQUIRED
public static final java.lang.String SERIALIZED_NAME_REQUIRED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BYPASS_APPROVALS_FOR_PENDING_CHANGES
public static final java.lang.String SERIALIZED_NAME_BYPASS_APPROVALS_FOR_PENDING_CHANGES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MIN_NUM_APPROVALS
public static final java.lang.String SERIALIZED_NAME_MIN_NUM_APPROVALS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CAN_REVIEW_OWN_REQUEST
public static final java.lang.String SERIALIZED_NAME_CAN_REVIEW_OWN_REQUEST
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CAN_APPLY_DECLINED_CHANGES
public static final java.lang.String SERIALIZED_NAME_CAN_APPLY_DECLINED_CHANGES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AUTO_APPLY_APPROVED_CHANGES
public static final java.lang.String SERIALIZED_NAME_AUTO_APPLY_APPROVED_CHANGES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SERVICE_KIND
public static final java.lang.String SERIALIZED_NAME_SERVICE_KIND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SERVICE_CONFIG
public static final java.lang.String SERIALIZED_NAME_SERVICE_CONFIG
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUIRED_APPROVAL_TAGS
public static final java.lang.String SERIALIZED_NAME_REQUIRED_APPROVAL_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SERVICE_KIND_CONFIGURATION_ID
public static final java.lang.String SERIALIZED_NAME_SERVICE_KIND_CONFIGURATION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESOURCE_KIND
public static final java.lang.String SERIALIZED_NAME_RESOURCE_KIND
- 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
-
required
public ApprovalSettings required(@Nonnull java.lang.Boolean required)
-
getRequired
@Nonnull public java.lang.Boolean getRequired()
If approvals are required for this environment- Returns:
- required
-
setRequired
public void setRequired(@Nonnull java.lang.Boolean required)
-
bypassApprovalsForPendingChanges
public ApprovalSettings bypassApprovalsForPendingChanges(@Nonnull java.lang.Boolean bypassApprovalsForPendingChanges)
-
getBypassApprovalsForPendingChanges
@Nonnull public java.lang.Boolean getBypassApprovalsForPendingChanges()
Whether to skip approvals for pending changes- Returns:
- bypassApprovalsForPendingChanges
-
setBypassApprovalsForPendingChanges
public void setBypassApprovalsForPendingChanges(@Nonnull java.lang.Boolean bypassApprovalsForPendingChanges)
-
minNumApprovals
public ApprovalSettings minNumApprovals(@Nonnull java.lang.Integer minNumApprovals)
-
getMinNumApprovals
@Nonnull public java.lang.Integer getMinNumApprovals()
Sets the amount of approvals required before a member can apply a change. The minimum is one and the maximum is five.- Returns:
- minNumApprovals
-
setMinNumApprovals
public void setMinNumApprovals(@Nonnull java.lang.Integer minNumApprovals)
-
canReviewOwnRequest
public ApprovalSettings canReviewOwnRequest(@Nonnull java.lang.Boolean canReviewOwnRequest)
-
getCanReviewOwnRequest
@Nonnull public java.lang.Boolean getCanReviewOwnRequest()
Allow someone who makes an approval request to apply their own change- Returns:
- canReviewOwnRequest
-
setCanReviewOwnRequest
public void setCanReviewOwnRequest(@Nonnull java.lang.Boolean canReviewOwnRequest)
-
canApplyDeclinedChanges
public ApprovalSettings canApplyDeclinedChanges(@Nonnull java.lang.Boolean canApplyDeclinedChanges)
-
getCanApplyDeclinedChanges
@Nonnull public java.lang.Boolean getCanApplyDeclinedChanges()
Allow applying the change as long as at least one person has approved- Returns:
- canApplyDeclinedChanges
-
setCanApplyDeclinedChanges
public void setCanApplyDeclinedChanges(@Nonnull java.lang.Boolean canApplyDeclinedChanges)
-
autoApplyApprovedChanges
public ApprovalSettings autoApplyApprovedChanges(@Nullable java.lang.Boolean autoApplyApprovedChanges)
-
getAutoApplyApprovedChanges
@Nullable public java.lang.Boolean getAutoApplyApprovedChanges()
Automatically apply changes that have been approved by all reviewers. This field is only applicable for approval services other than LaunchDarkly.- Returns:
- autoApplyApprovedChanges
-
setAutoApplyApprovedChanges
public void setAutoApplyApprovedChanges(@Nullable java.lang.Boolean autoApplyApprovedChanges)
-
serviceKind
public ApprovalSettings serviceKind(@Nonnull java.lang.String serviceKind)
-
getServiceKind
@Nonnull public java.lang.String getServiceKind()
Which service to use for managing approvals- Returns:
- serviceKind
-
setServiceKind
public void setServiceKind(@Nonnull java.lang.String serviceKind)
-
serviceConfig
public ApprovalSettings serviceConfig(@Nonnull java.util.Map<java.lang.String,java.lang.Object> serviceConfig)
-
putServiceConfigItem
public ApprovalSettings putServiceConfigItem(java.lang.String key, java.lang.Object serviceConfigItem)
-
getServiceConfig
@Nonnull public java.util.Map<java.lang.String,java.lang.Object> getServiceConfig()
Get serviceConfig- Returns:
- serviceConfig
-
setServiceConfig
public void setServiceConfig(@Nonnull java.util.Map<java.lang.String,java.lang.Object> serviceConfig)
-
requiredApprovalTags
public ApprovalSettings requiredApprovalTags(@Nonnull java.util.List<java.lang.String> requiredApprovalTags)
-
addRequiredApprovalTagsItem
public ApprovalSettings addRequiredApprovalTagsItem(java.lang.String requiredApprovalTagsItem)
-
getRequiredApprovalTags
@Nonnull public java.util.List<java.lang.String> getRequiredApprovalTags()
Require approval only on flags with the provided tags. Otherwise all flags will require approval.- Returns:
- requiredApprovalTags
-
setRequiredApprovalTags
public void setRequiredApprovalTags(@Nonnull java.util.List<java.lang.String> requiredApprovalTags)
-
serviceKindConfigurationId
public ApprovalSettings serviceKindConfigurationId(@Nullable java.lang.String serviceKindConfigurationId)
-
getServiceKindConfigurationId
@Nullable public java.lang.String getServiceKindConfigurationId()
Optional field for integration configuration ID of a custom approval integration. This is an Enterprise-only feature.- Returns:
- serviceKindConfigurationId
-
setServiceKindConfigurationId
public void setServiceKindConfigurationId(@Nullable java.lang.String serviceKindConfigurationId)
-
resourceKind
public ApprovalSettings resourceKind(@Nullable java.lang.String resourceKind)
-
getResourceKind
@Nullable public java.lang.String getResourceKind()
The kind of resource for which the approval settings apply, for example, flag or segment- Returns:
- resourceKind
-
setResourceKind
public void setResourceKind(@Nullable java.lang.String resourceKind)
-
putAdditionalProperty
public ApprovalSettings 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 ApprovalSettings 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 ApprovalSettings
-
fromJson
public static ApprovalSettings fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of ApprovalSettings given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApprovalSettings
- Throws:
java.io.IOException- if the JSON string is invalid with respect to ApprovalSettings
-
toJson
public java.lang.String toJson()
Convert an instance of ApprovalSettings to an JSON string- Returns:
- JSON string
-
-