Interface ApprovalPolicy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ApprovalPolicy.Builder,,ApprovalPolicy> SdkBuilder<ApprovalPolicy.Builder,,ApprovalPolicy> SdkPojo
- Enclosing class:
ApprovalPolicy
-
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.default ApprovalPolicy.BuilderapplicableTo(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.The date and time that the approval policy was created.description(String description) A description of the approval policy.The name of the approval policy.The Amazon Resource Name (ARN) of the approval policy.The unique identifier of the approval policy.The date and time that the approval policy was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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 of the approval policy.
- Parameters:
policyId- The unique identifier of the approval policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyArn
The Amazon Resource Name (ARN) of the approval policy.
- Parameters:
policyArn- The Amazon Resource Name (ARN) of the approval 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
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.
-
createdAt
The date and time that the approval policy was created.
- Parameters:
createdAt- The date and time that the approval policy was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time that the approval policy was last updated.
- Parameters:
updatedAt- The date and time that the approval policy was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-