Package com.launchdarkly.api.model
Class ApprovalRequestSettingsPatch
- java.lang.Object
-
- com.launchdarkly.api.model.ApprovalRequestSettingsPatch
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class ApprovalRequestSettingsPatch extends java.lang.ObjectApprovalRequestSettingsPatch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApprovalRequestSettingsPatch.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_ENVIRONMENT_KEYstatic 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 ApprovalRequestSettingsPatch()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApprovalRequestSettingsPatchaddRequiredApprovalTagsItem(java.lang.String requiredApprovalTagsItem)ApprovalRequestSettingsPatchautoApplyApprovedChanges(java.lang.Boolean autoApplyApprovedChanges)ApprovalRequestSettingsPatchbypassApprovalsForPendingChanges(java.lang.Boolean bypassApprovalsForPendingChanges)ApprovalRequestSettingsPatchcanApplyDeclinedChanges(java.lang.Boolean canApplyDeclinedChanges)ApprovalRequestSettingsPatchcanReviewOwnRequest(java.lang.Boolean canReviewOwnRequest)ApprovalRequestSettingsPatchenvironmentKey(java.lang.String environmentKey)booleanequals(java.lang.Object o)static ApprovalRequestSettingsPatchfromJson(java.lang.String jsonString)Create an instance of ApprovalRequestSettingsPatch 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.StringgetEnvironmentKey()Get environmentKeyjava.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()Get resourceKindjava.util.Map<java.lang.String,java.lang.Object>getServiceConfig()Arbitrary service-specific configurationjava.lang.StringgetServiceKind()Which service to use for managing approvalsjava.lang.StringgetServiceKindConfigurationId()Optional integration configuration ID of a custom approval integration.inthashCode()ApprovalRequestSettingsPatchminNumApprovals(java.lang.Integer minNumApprovals)ApprovalRequestSettingsPatchputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.ApprovalRequestSettingsPatchputServiceConfigItem(java.lang.String key, java.lang.Object serviceConfigItem)ApprovalRequestSettingsPatchrequired(java.lang.Boolean required)ApprovalRequestSettingsPatchrequiredApprovalTags(java.util.List<java.lang.String> requiredApprovalTags)ApprovalRequestSettingsPatchresourceKind(java.lang.String resourceKind)ApprovalRequestSettingsPatchserviceConfig(java.util.Map<java.lang.String,java.lang.Object> serviceConfig)ApprovalRequestSettingsPatchserviceKind(java.lang.String serviceKind)ApprovalRequestSettingsPatchserviceKindConfigurationId(java.lang.String serviceKindConfigurationId)voidsetAutoApplyApprovedChanges(java.lang.Boolean autoApplyApprovedChanges)voidsetBypassApprovalsForPendingChanges(java.lang.Boolean bypassApprovalsForPendingChanges)voidsetCanApplyDeclinedChanges(java.lang.Boolean canApplyDeclinedChanges)voidsetCanReviewOwnRequest(java.lang.Boolean canReviewOwnRequest)voidsetEnvironmentKey(java.lang.String environmentKey)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 ApprovalRequestSettingsPatch 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_AUTO_APPLY_APPROVED_CHANGES
public static final java.lang.String SERIALIZED_NAME_AUTO_APPLY_APPROVED_CHANGES
- 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_CAN_APPLY_DECLINED_CHANGES
public static final java.lang.String SERIALIZED_NAME_CAN_APPLY_DECLINED_CHANGES
- 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_ENVIRONMENT_KEY
public static final java.lang.String SERIALIZED_NAME_ENVIRONMENT_KEY
- 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_REQUIRED
public static final java.lang.String SERIALIZED_NAME_REQUIRED
- 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_RESOURCE_KIND
public static final java.lang.String SERIALIZED_NAME_RESOURCE_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_SERVICE_KIND
public static final java.lang.String SERIALIZED_NAME_SERVICE_KIND
- 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
-
openapiFields
public static java.util.HashSet<java.lang.String> openapiFields
-
openapiRequiredFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
-
-
Method Detail
-
autoApplyApprovedChanges
public ApprovalRequestSettingsPatch 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)
-
bypassApprovalsForPendingChanges
public ApprovalRequestSettingsPatch bypassApprovalsForPendingChanges(@Nullable java.lang.Boolean bypassApprovalsForPendingChanges)
-
getBypassApprovalsForPendingChanges
@Nullable public java.lang.Boolean getBypassApprovalsForPendingChanges()
Whether to skip approvals for pending changes- Returns:
- bypassApprovalsForPendingChanges
-
setBypassApprovalsForPendingChanges
public void setBypassApprovalsForPendingChanges(@Nullable java.lang.Boolean bypassApprovalsForPendingChanges)
-
canApplyDeclinedChanges
public ApprovalRequestSettingsPatch canApplyDeclinedChanges(@Nullable java.lang.Boolean canApplyDeclinedChanges)
-
getCanApplyDeclinedChanges
@Nullable public java.lang.Boolean getCanApplyDeclinedChanges()
Allow applying the change as long as at least one person has approved- Returns:
- canApplyDeclinedChanges
-
setCanApplyDeclinedChanges
public void setCanApplyDeclinedChanges(@Nullable java.lang.Boolean canApplyDeclinedChanges)
-
canReviewOwnRequest
public ApprovalRequestSettingsPatch canReviewOwnRequest(@Nullable java.lang.Boolean canReviewOwnRequest)
-
getCanReviewOwnRequest
@Nullable public java.lang.Boolean getCanReviewOwnRequest()
Allow someone who makes an approval request to apply their own change- Returns:
- canReviewOwnRequest
-
setCanReviewOwnRequest
public void setCanReviewOwnRequest(@Nullable java.lang.Boolean canReviewOwnRequest)
-
environmentKey
public ApprovalRequestSettingsPatch environmentKey(@Nonnull java.lang.String environmentKey)
-
getEnvironmentKey
@Nonnull public java.lang.String getEnvironmentKey()
Get environmentKey- Returns:
- environmentKey
-
setEnvironmentKey
public void setEnvironmentKey(@Nonnull java.lang.String environmentKey)
-
minNumApprovals
public ApprovalRequestSettingsPatch minNumApprovals(@Nullable java.lang.Integer minNumApprovals)
-
getMinNumApprovals
@Nullable 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(@Nullable java.lang.Integer minNumApprovals)
-
required
public ApprovalRequestSettingsPatch required(@Nullable java.lang.Boolean required)
-
getRequired
@Nullable public java.lang.Boolean getRequired()
If approvals are required for this environment- Returns:
- required
-
setRequired
public void setRequired(@Nullable java.lang.Boolean required)
-
requiredApprovalTags
public ApprovalRequestSettingsPatch requiredApprovalTags(@Nullable java.util.List<java.lang.String> requiredApprovalTags)
-
addRequiredApprovalTagsItem
public ApprovalRequestSettingsPatch addRequiredApprovalTagsItem(java.lang.String requiredApprovalTagsItem)
-
getRequiredApprovalTags
@Nullable 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(@Nullable java.util.List<java.lang.String> requiredApprovalTags)
-
resourceKind
public ApprovalRequestSettingsPatch resourceKind(@Nonnull java.lang.String resourceKind)
-
getResourceKind
@Nonnull public java.lang.String getResourceKind()
Get resourceKind- Returns:
- resourceKind
-
setResourceKind
public void setResourceKind(@Nonnull java.lang.String resourceKind)
-
serviceConfig
public ApprovalRequestSettingsPatch serviceConfig(@Nullable java.util.Map<java.lang.String,java.lang.Object> serviceConfig)
-
putServiceConfigItem
public ApprovalRequestSettingsPatch putServiceConfigItem(java.lang.String key, java.lang.Object serviceConfigItem)
-
getServiceConfig
@Nullable public java.util.Map<java.lang.String,java.lang.Object> getServiceConfig()
Arbitrary service-specific configuration- Returns:
- serviceConfig
-
setServiceConfig
public void setServiceConfig(@Nullable java.util.Map<java.lang.String,java.lang.Object> serviceConfig)
-
serviceKind
public ApprovalRequestSettingsPatch serviceKind(@Nullable java.lang.String serviceKind)
-
getServiceKind
@Nullable public java.lang.String getServiceKind()
Which service to use for managing approvals- Returns:
- serviceKind
-
setServiceKind
public void setServiceKind(@Nullable java.lang.String serviceKind)
-
serviceKindConfigurationId
public ApprovalRequestSettingsPatch serviceKindConfigurationId(@Nullable java.lang.String serviceKindConfigurationId)
-
getServiceKindConfigurationId
@Nullable public java.lang.String getServiceKindConfigurationId()
Optional 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)
-
putAdditionalProperty
public ApprovalRequestSettingsPatch 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 ApprovalRequestSettingsPatch 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 ApprovalRequestSettingsPatch
-
fromJson
public static ApprovalRequestSettingsPatch fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of ApprovalRequestSettingsPatch given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApprovalRequestSettingsPatch
- Throws:
java.io.IOException- if the JSON string is invalid with respect to ApprovalRequestSettingsPatch
-
toJson
public java.lang.String toJson()
Convert an instance of ApprovalRequestSettingsPatch to an JSON string- Returns:
- JSON string
-
-