Class CfnLaunchRoleConstraintMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.servicecatalog.CfnLaunchRoleConstraintMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchRoleConstraintMixinProps>
- Enclosing interface:
CfnLaunchRoleConstraintMixinProps
@Stability(Stable)
public static final class CfnLaunchRoleConstraintMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchRoleConstraintMixinProps>
A builder for
CfnLaunchRoleConstraintMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptLanguage(String acceptLanguage) Sets the value ofCfnLaunchRoleConstraintMixinProps.getAcceptLanguage()build()Builds the configured instance.description(String description) Sets the value ofCfnLaunchRoleConstraintMixinProps.getDescription()localRoleName(String localRoleName) Sets the value ofCfnLaunchRoleConstraintMixinProps.getLocalRoleName()portfolioId(String portfolioId) Sets the value ofCfnLaunchRoleConstraintMixinProps.getPortfolioId()Sets the value ofCfnLaunchRoleConstraintMixinProps.getProductId()Sets the value ofCfnLaunchRoleConstraintMixinProps.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acceptLanguage
@Stability(Stable) public CfnLaunchRoleConstraintMixinProps.Builder acceptLanguage(String acceptLanguage) Sets the value ofCfnLaunchRoleConstraintMixinProps.getAcceptLanguage()- Parameters:
acceptLanguage- The language code.jp- Japanesezh- Chinese
- Returns:
this
-
description
Sets the value ofCfnLaunchRoleConstraintMixinProps.getDescription()- Parameters:
description- The description of the constraint.- Returns:
this
-
localRoleName
@Stability(Stable) public CfnLaunchRoleConstraintMixinProps.Builder localRoleName(String localRoleName) Sets the value ofCfnLaunchRoleConstraintMixinProps.getLocalRoleName()- Parameters:
localRoleName- You are required to specify either theRoleArnor theLocalRoleNamebut can't use both. If you specify theLocalRoleNameproperty, when an account uses the launch constraint, the IAM role with that name in the account will be used. This allows launch-role constraints to be account-agnostic so the administrator can create fewer resources per shared account.The given role name must exist in the account used to create the launch constraint and the account of the user who launches a product with this launch constraint.
- Returns:
this
-
portfolioId
Sets the value ofCfnLaunchRoleConstraintMixinProps.getPortfolioId()- Parameters:
portfolioId- The portfolio identifier.- Returns:
this
-
productId
Sets the value ofCfnLaunchRoleConstraintMixinProps.getProductId()- Parameters:
productId- The product identifier.- Returns:
this
-
roleArn
Sets the value ofCfnLaunchRoleConstraintMixinProps.getRoleArn()- Parameters:
roleArn- The ARN of the launch role. You are required to specifyRoleArnorLocalRoleNamebut can't use both.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchRoleConstraintMixinProps>- Returns:
- a new instance of
CfnLaunchRoleConstraintMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-