@Generated(value="software.amazon.awssdk:codegen") public final class Account extends Object implements StructuredPojo, ToCopyableBuilder<Account.Builder,Account>
Contains information about an AWS account that is a member of an organization.
Modifier and Type | Class and Description |
---|---|
static interface |
Account.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) of the account.
|
static Account.Builder |
builder() |
String |
email()
The email address associated with the AWS account.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The unique identifier (ID) of the account.
|
AccountJoinedMethod |
joinedMethod()
The method by which the account joined the organization.
|
String |
joinedMethodAsString()
The method by which the account joined the organization.
|
Instant |
joinedTimestamp()
The date the account became a part of the organization.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The friendly name of the account.
|
static Class<? extends Account.Builder> |
serializableBuilderClass() |
AccountStatus |
status()
The status of the account in the organization.
|
String |
statusAsString()
The status of the account in the organization.
|
Account.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String id()
The unique identifier (ID) of the account.
The regex pattern for an account ID string requires exactly 12 digits.
The regex pattern for an account ID string requires exactly 12 digits.
public String arn()
The Amazon Resource Name (ARN) of the account.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
public String email()
The email address associated with the AWS account.
The regex pattern for this parameter is a string of characters that represents a standard Internet email address.
The regex pattern for this parameter is a string of characters that represents a standard Internet email address.
public String name()
The friendly name of the account.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public AccountStatus status()
The status of the account in the organization.
If the service returns an enum value that is not available in the current SDK version, status
will
return AccountStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
AccountStatus
public String statusAsString()
The status of the account in the organization.
If the service returns an enum value that is not available in the current SDK version, status
will
return AccountStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
AccountStatus
public AccountJoinedMethod joinedMethod()
The method by which the account joined the organization.
If the service returns an enum value that is not available in the current SDK version, joinedMethod
will
return AccountJoinedMethod.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from joinedMethodAsString()
.
AccountJoinedMethod
public String joinedMethodAsString()
The method by which the account joined the organization.
If the service returns an enum value that is not available in the current SDK version, joinedMethod
will
return AccountJoinedMethod.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from joinedMethodAsString()
.
AccountJoinedMethod
public Instant joinedTimestamp()
The date the account became a part of the organization.
public Account.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Account.Builder,Account>
public static Account.Builder builder()
public static Class<? extends Account.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.