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