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