Class CfnPolicyGrant.PolicyGrantPrincipalProperty.Builder
java.lang.Object
software.amazon.awscdk.services.datazone.CfnPolicyGrant.PolicyGrantPrincipalProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyGrant.PolicyGrantPrincipalProperty>
- Enclosing interface:
CfnPolicyGrant.PolicyGrantPrincipalProperty
@Stability(Stable)
public static final class CfnPolicyGrant.PolicyGrantPrincipalProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyGrant.PolicyGrantPrincipalProperty>
A builder for
CfnPolicyGrant.PolicyGrantPrincipalProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.domainUnit
(IResolvable domainUnit) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getDomainUnit()
Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getDomainUnit()
group
(IResolvable group) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getGroup()
Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getGroup()
project
(IResolvable project) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getProject()
Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getProject()
user
(IResolvable user) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getUser()
Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getUser()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainUnit
@Stability(Stable) public CfnPolicyGrant.PolicyGrantPrincipalProperty.Builder domainUnit(IResolvable domainUnit) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getDomainUnit()
- Parameters:
domainUnit
- The domain unit of the policy grant principal.- Returns:
this
-
domainUnit
@Stability(Stable) public CfnPolicyGrant.PolicyGrantPrincipalProperty.Builder domainUnit(CfnPolicyGrant.DomainUnitPolicyGrantPrincipalProperty domainUnit) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getDomainUnit()
- Parameters:
domainUnit
- The domain unit of the policy grant principal.- Returns:
this
-
group
@Stability(Stable) public CfnPolicyGrant.PolicyGrantPrincipalProperty.Builder group(IResolvable group) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getGroup()
- Parameters:
group
- The group of the policy grant principal.- Returns:
this
-
group
@Stability(Stable) public CfnPolicyGrant.PolicyGrantPrincipalProperty.Builder group(CfnPolicyGrant.GroupPolicyGrantPrincipalProperty group) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getGroup()
- Parameters:
group
- The group of the policy grant principal.- Returns:
this
-
project
@Stability(Stable) public CfnPolicyGrant.PolicyGrantPrincipalProperty.Builder project(IResolvable project) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getProject()
- Parameters:
project
- The project of the policy grant principal.- Returns:
this
-
project
@Stability(Stable) public CfnPolicyGrant.PolicyGrantPrincipalProperty.Builder project(CfnPolicyGrant.ProjectPolicyGrantPrincipalProperty project) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getProject()
- Parameters:
project
- The project of the policy grant principal.- Returns:
this
-
user
@Stability(Stable) public CfnPolicyGrant.PolicyGrantPrincipalProperty.Builder user(IResolvable user) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getUser()
- Parameters:
user
- The user of the policy grant principal.- Returns:
this
-
user
@Stability(Stable) public CfnPolicyGrant.PolicyGrantPrincipalProperty.Builder user(CfnPolicyGrant.UserPolicyGrantPrincipalProperty user) Sets the value ofCfnPolicyGrant.PolicyGrantPrincipalProperty.getUser()
- Parameters:
user
- The user of the policy grant principal.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPolicyGrant.PolicyGrantPrincipalProperty>
- Returns:
- a new instance of
CfnPolicyGrant.PolicyGrantPrincipalProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-