Class AccountReference.Builder
java.lang.Object
software.amazon.awscdk.services.organizations.AccountReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccountReference>
- Enclosing interface:
AccountReference
@Stability(Stable)
public static final class AccountReference.Builder
extends Object
implements software.amazon.jsii.Builder<AccountReference>
A builder for
AccountReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountArn
(String accountArn) Sets the value ofAccountReference.getAccountArn()
Sets the value ofAccountReference.getAccountId()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountArn
Sets the value ofAccountReference.getAccountArn()
- Parameters:
accountArn
- The ARN of the Account resource. This parameter is required.- Returns:
this
-
accountId
Sets the value ofAccountReference.getAccountId()
- Parameters:
accountId
- The AccountId of the Account resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AccountReference>
- Returns:
- a new instance of
AccountReference
- Throws:
NullPointerException
- if any required attribute was not provided
-