Class CfnApprovalPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnApprovalPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApprovalPolicyProps>
- Enclosing interface:
CfnApprovalPolicyProps
@Stability(Stable)
public static final class CfnApprovalPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApprovalPolicyProps>
A builder for
CfnApprovalPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnApprovalPolicyProps.getActions()actions(IResolvable actions) Sets the value ofCfnApprovalPolicyProps.getActions()applicableTo(IResolvable applicableTo) Sets the value ofCfnApprovalPolicyProps.getApplicableTo()applicableTo(CfnApprovalPolicy.ApplicableToProperty applicableTo) Sets the value ofCfnApprovalPolicyProps.getApplicableTo()approvalGroups(List<String> approvalGroups) Sets the value ofCfnApprovalPolicyProps.getApprovalGroups()assetTypes(List<? extends Object> assetTypes) Sets the value ofCfnApprovalPolicyProps.getAssetTypes()assetTypes(IResolvable assetTypes) Sets the value ofCfnApprovalPolicyProps.getAssetTypes()build()Builds the configured instance.description(String description) Sets the value ofCfnApprovalPolicyProps.getDescription()Sets the value ofCfnApprovalPolicyProps.getName()Sets the value ofCfnApprovalPolicyProps.getPolicyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnApprovalPolicyProps.getActions()- Parameters:
actions- List of governed actions a policy applies to. This parameter is required.- Returns:
this
-
actions
Sets the value ofCfnApprovalPolicyProps.getActions()- Parameters:
actions- List of governed actions a policy applies to. This parameter is required.- Returns:
this
-
applicableTo
Sets the value ofCfnApprovalPolicyProps.getApplicableTo()- Parameters:
applicableTo- Scoping: who the policy applies to. This parameter is required. GROUP:groupArnsrequired (one or more group ARNs).- Returns:
this
-
applicableTo
@Stability(Stable) public CfnApprovalPolicyProps.Builder applicableTo(CfnApprovalPolicy.ApplicableToProperty applicableTo) Sets the value ofCfnApprovalPolicyProps.getApplicableTo()- Parameters:
applicableTo- Scoping: who the policy applies to. This parameter is required. GROUP:groupArnsrequired (one or more group ARNs).- Returns:
this
-
approvalGroups
@Stability(Stable) public CfnApprovalPolicyProps.Builder approvalGroups(List<String> approvalGroups) Sets the value ofCfnApprovalPolicyProps.getApprovalGroups()- Parameters:
approvalGroups- List of approval group ARNs (e.g. QuickSight group ARNs). At least one approval group is required; the upper bound is enforced per-account at the service layer via the configurable approver-group limit. This parameter is required.- Returns:
this
-
assetTypes
@Stability(Stable) public CfnApprovalPolicyProps.Builder assetTypes(List<? extends Object> assetTypes) Sets the value ofCfnApprovalPolicyProps.getAssetTypes()- Parameters:
assetTypes- List of asset types a policy applies to. This parameter is required. At least one asset type is required.- Returns:
this
-
assetTypes
Sets the value ofCfnApprovalPolicyProps.getAssetTypes()- Parameters:
assetTypes- List of asset types a policy applies to. This parameter is required. At least one asset type is required.- Returns:
this
-
name
Sets the value ofCfnApprovalPolicyProps.getName()- Parameters:
name- the value to be set. This parameter is required.- Returns:
this
-
policyId
Sets the value ofCfnApprovalPolicyProps.getPolicyId()- Parameters:
policyId- the value to be set. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnApprovalPolicyProps.getDescription()- Parameters:
description- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApprovalPolicyProps>- Returns:
- a new instance of
CfnApprovalPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-