Class PortfolioPrincipalAssociationReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.servicecatalog.PortfolioPrincipalAssociationReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PortfolioPrincipalAssociationReference>
- Enclosing interface:
PortfolioPrincipalAssociationReference
@Stability(Stable)
public static final class PortfolioPrincipalAssociationReference.Builder
extends Object
implements software.amazon.jsii.Builder<PortfolioPrincipalAssociationReference>
A builder for
PortfolioPrincipalAssociationReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.portfolioId(String portfolioId) Sets the value ofPortfolioPrincipalAssociationReference.getPortfolioId()principalArn(String principalArn) Sets the value ofPortfolioPrincipalAssociationReference.getPrincipalArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
portfolioId
@Stability(Stable) public PortfolioPrincipalAssociationReference.Builder portfolioId(String portfolioId) Sets the value ofPortfolioPrincipalAssociationReference.getPortfolioId()- Parameters:
portfolioId- The PortfolioId of the PortfolioPrincipalAssociation resource. This parameter is required.- Returns:
this
-
principalArn
@Stability(Stable) public PortfolioPrincipalAssociationReference.Builder principalArn(String principalArn) Sets the value ofPortfolioPrincipalAssociationReference.getPrincipalArn()- Parameters:
principalArn- The PrincipalARN of the PortfolioPrincipalAssociation resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PortfolioPrincipalAssociationReference>- Returns:
- a new instance of
PortfolioPrincipalAssociationReference - Throws:
NullPointerException- if any required attribute was not provided
-