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