Class CfnPolicyGrantProps.Builder
java.lang.Object
software.amazon.awscdk.services.datazone.CfnPolicyGrantProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyGrantProps>
- Enclosing interface:
CfnPolicyGrantProps
@Stability(Stable)
public static final class CfnPolicyGrantProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyGrantProps>
A builder for
CfnPolicyGrantProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.detail
(IResolvable detail) Sets the value ofCfnPolicyGrantProps.getDetail()
Sets the value ofCfnPolicyGrantProps.getDetail()
domainIdentifier
(String domainIdentifier) Sets the value ofCfnPolicyGrantProps.getDomainIdentifier()
entityIdentifier
(String entityIdentifier) Sets the value ofCfnPolicyGrantProps.getEntityIdentifier()
entityType
(String entityType) Sets the value ofCfnPolicyGrantProps.getEntityType()
policyType
(String policyType) Sets the value ofCfnPolicyGrantProps.getPolicyType()
principal
(IResolvable principal) Sets the value ofCfnPolicyGrantProps.getPrincipal()
Sets the value ofCfnPolicyGrantProps.getPrincipal()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainIdentifier
Sets the value ofCfnPolicyGrantProps.getDomainIdentifier()
- Parameters:
domainIdentifier
- The ID of the domain where you want to add a policy grant. This parameter is required.- Returns:
this
-
entityIdentifier
Sets the value ofCfnPolicyGrantProps.getEntityIdentifier()
- Parameters:
entityIdentifier
- The ID of the entity (resource) to which you want to add a policy grant. This parameter is required.- Returns:
this
-
entityType
Sets the value ofCfnPolicyGrantProps.getEntityType()
- Parameters:
entityType
- The type of entity (resource) to which the grant is added. This parameter is required.- Returns:
this
-
policyType
Sets the value ofCfnPolicyGrantProps.getPolicyType()
- Parameters:
policyType
- The type of policy that you want to grant. This parameter is required.- Returns:
this
-
detail
Sets the value ofCfnPolicyGrantProps.getDetail()
- Parameters:
detail
- The details of the policy grant member.- Returns:
this
-
detail
@Stability(Stable) public CfnPolicyGrantProps.Builder detail(CfnPolicyGrant.PolicyGrantDetailProperty detail) Sets the value ofCfnPolicyGrantProps.getDetail()
- Parameters:
detail
- The details of the policy grant member.- Returns:
this
-
principal
Sets the value ofCfnPolicyGrantProps.getPrincipal()
- Parameters:
principal
- The principal of the policy grant member.- Returns:
this
-
principal
@Stability(Stable) public CfnPolicyGrantProps.Builder principal(CfnPolicyGrant.PolicyGrantPrincipalProperty principal) Sets the value ofCfnPolicyGrantProps.getPrincipal()
- Parameters:
principal
- The principal of the policy grant member.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPolicyGrantProps>
- Returns:
- a new instance of
CfnPolicyGrantProps
- Throws:
NullPointerException
- if any required attribute was not provided
-