Interface CreateApprovalPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateApprovalPolicyRequest.Builder,,CreateApprovalPolicyRequest> QuickSightRequest.Builder,SdkBuilder<CreateApprovalPolicyRequest.Builder,,CreateApprovalPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateApprovalPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionactions(Collection<GovernedAction> actions) The list of governed actions that trigger the approval workflow.actions(GovernedAction... actions) The list of governed actions that trigger the approval workflow.actionsWithStrings(String... actions) The list of governed actions that trigger the approval workflow.actionsWithStrings(Collection<String> actions) The list of governed actions that trigger the approval workflow.applicableTo(Consumer<ApplicableTo.Builder> applicableTo) The scoping configuration that determines who the approval policy applies to.applicableTo(ApplicableTo applicableTo) The scoping configuration that determines who the approval policy applies to.approvalGroups(String... approvalGroups) The list of group ARNs whose members can approve requests.approvalGroups(Collection<String> approvalGroups) The list of group ARNs whose members can approve requests.assetTypes(Collection<AssetType> assetTypes) The list of asset types that the approval policy applies to.assetTypes(AssetType... assetTypes) The list of asset types that the approval policy applies to.assetTypesWithStrings(String... assetTypes) The list of asset types that the approval policy applies to.assetTypesWithStrings(Collection<String> assetTypes) The list of asset types that the approval policy applies to.description(String description) A description of the approval policy.The name of the approval policy.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The unique identifier to assign to the approval policy.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.quicksight.model.QuickSightRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
policyId
The unique identifier to assign to the approval policy. You cannot change this value after you create the policy.
- Parameters:
policyId- The unique identifier to assign to the approval policy. You cannot change this value after you create the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the approval policy.
- Parameters:
name- The name of the approval policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the approval policy.
- Parameters:
description- A description of the approval policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionsWithStrings
The list of governed actions that trigger the approval workflow.
- Parameters:
actions- The list of governed actions that trigger the approval workflow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionsWithStrings
The list of governed actions that trigger the approval workflow.
- Parameters:
actions- The list of governed actions that trigger the approval workflow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The list of governed actions that trigger the approval workflow.
- Parameters:
actions- The list of governed actions that trigger the approval workflow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The list of governed actions that trigger the approval workflow.
- Parameters:
actions- The list of governed actions that trigger the approval workflow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetTypesWithStrings
The list of asset types that the approval policy applies to.
- Parameters:
assetTypes- The list of asset types that the approval policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetTypesWithStrings
The list of asset types that the approval policy applies to.
- Parameters:
assetTypes- The list of asset types that the approval policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetTypes
The list of asset types that the approval policy applies to.
- Parameters:
assetTypes- The list of asset types that the approval policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetTypes
The list of asset types that the approval policy applies to.
- Parameters:
assetTypes- The list of asset types that the approval policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicableTo
The scoping configuration that determines who the approval policy applies to.
- Parameters:
applicableTo- The scoping configuration that determines who the approval policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicableTo
default CreateApprovalPolicyRequest.Builder applicableTo(Consumer<ApplicableTo.Builder> applicableTo) The scoping configuration that determines who the approval policy applies to.
This is a convenience method that creates an instance of theApplicableTo.Builderavoiding the need to create one manually viaApplicableTo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toapplicableTo(ApplicableTo).- Parameters:
applicableTo- a consumer that will call methods onApplicableTo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
approvalGroups
The list of group ARNs whose members can approve requests.
- Parameters:
approvalGroups- The list of group ARNs whose members can approve requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approvalGroups
The list of group ARNs whose members can approve requests.
- Parameters:
approvalGroups- The list of group ARNs whose members can approve requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateApprovalPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateApprovalPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-