Class PrincipalAssociationReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.ram.PrincipalAssociationReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrincipalAssociationReference>
- Enclosing interface:
PrincipalAssociationReference
@Stability(Stable)
public static final class PrincipalAssociationReference.Builder
extends Object
implements software.amazon.jsii.Builder<PrincipalAssociationReference>
A builder for
PrincipalAssociationReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofPrincipalAssociationReference.getPrincipal()resourceShareArn(String resourceShareArn) Sets the value ofPrincipalAssociationReference.getResourceShareArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
principal
Sets the value ofPrincipalAssociationReference.getPrincipal()- Parameters:
principal- The Principal of the PrincipalAssociation resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PrincipalAssociationReference>- Returns:
- a new instance of
PrincipalAssociationReference - Throws:
NullPointerException- if any required attribute was not provided
-