Class CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.accountaccess.CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty>
- Enclosing interface:
CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty
@Stability(Stable)
public static final class CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.getAccount()build()Builds the configured instance.Sets the value ofCfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.getPrincipal()principal(IResolvable principal) Sets the value ofCfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.getPrincipal()Sets the value ofCfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
account
@Stability(Stable) public CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.Builder account(String account) Sets the value ofCfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.getAccount()- Parameters:
account- The AWS account ID.- Returns:
this
-
principal
@Stability(Stable) public CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.Builder principal(IResolvable principal) Sets the value ofCfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.getPrincipal()- Parameters:
principal- the value to be set.- Returns:
this
-
principal
@Stability(Stable) public CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.Builder principal(CfnEntitlementPropsMixin.PrincipalProperty principal) Sets the value ofCfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.getPrincipal()- Parameters:
principal- the value to be set.- Returns:
this
-
roleArn
@Stability(Stable) public CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.Builder roleArn(String roleArn) Sets the value ofCfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty>- Returns:
- a new instance of
CfnEntitlementPropsMixin.PrincipalRoleEntitlementProperty - Throws:
NullPointerException- if any required attribute was not provided
-