Class CfnPortfolioPrincipalAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalog.CfnPortfolioPrincipalAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPortfolioPrincipalAssociationProps>
- Enclosing interface:
CfnPortfolioPrincipalAssociationProps
@Stability(Stable)
public static final class CfnPortfolioPrincipalAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPortfolioPrincipalAssociationProps>
A builder for
CfnPortfolioPrincipalAssociationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionacceptLanguage
(String acceptLanguage) Sets the value ofCfnPortfolioPrincipalAssociationProps.getAcceptLanguage()
build()
Builds the configured instance.portfolioId
(String portfolioId) Sets the value ofCfnPortfolioPrincipalAssociationProps.getPortfolioId()
principalArn
(String principalArn) Sets the value ofCfnPortfolioPrincipalAssociationProps.getPrincipalArn()
principalType
(String principalType) Sets the value ofCfnPortfolioPrincipalAssociationProps.getPrincipalType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
portfolioId
@Stability(Stable) public CfnPortfolioPrincipalAssociationProps.Builder portfolioId(String portfolioId) Sets the value ofCfnPortfolioPrincipalAssociationProps.getPortfolioId()
- Parameters:
portfolioId
- The portfolio identifier. This parameter is required.- Returns:
this
-
principalArn
@Stability(Stable) public CfnPortfolioPrincipalAssociationProps.Builder principalArn(String principalArn) Sets the value ofCfnPortfolioPrincipalAssociationProps.getPrincipalArn()
- Parameters:
principalArn
- The ARN of the principal ( IAM user, role, or group). This parameter is required.- Returns:
this
-
principalType
@Stability(Stable) public CfnPortfolioPrincipalAssociationProps.Builder principalType(String principalType) Sets the value ofCfnPortfolioPrincipalAssociationProps.getPrincipalType()
- Parameters:
principalType
- The principal type. This parameter is required. The supported values areIAM
andIAM_PATTERN
.- Returns:
this
-
acceptLanguage
@Stability(Stable) public CfnPortfolioPrincipalAssociationProps.Builder acceptLanguage(String acceptLanguage) Sets the value ofCfnPortfolioPrincipalAssociationProps.getAcceptLanguage()
- Parameters:
acceptLanguage
- The language code.jp
- Japanesezh
- Chinese
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPortfolioPrincipalAssociationProps>
- Returns:
- a new instance of
CfnPortfolioPrincipalAssociationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-