Class Account
- java.lang.Object
-
- software.amazon.awssdk.services.organizations.model.Account
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Account.Builder,Account>
@Generated("software.amazon.awssdk:codegen") public final class Account extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Account.Builder,Account>
Contains information about an Amazon Web Services account that is a member of an organization.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAccount.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon Resource Name (ARN) of the account.static Account.Builderbuilder()Stringemail()The email address associated with the Amazon Web Services account.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The unique identifier (ID) of the account.AccountJoinedMethodjoinedMethod()The method by which the account joined the organization.StringjoinedMethodAsString()The method by which the account joined the organization.InstantjoinedTimestamp()The date the account became a part of the organization.Stringname()The friendly name of the account.List<SdkField<?>>sdkFields()static Class<? extends Account.Builder>serializableBuilderClass()AccountStatusstatus()The status of the account in the organization.StringstatusAsString()The status of the account in the organization.Account.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final String id()
The unique identifier (ID) of the account.
The regex pattern for an account ID string requires exactly 12 digits.
- Returns:
- The unique identifier (ID) of the account.
The regex pattern for an account ID string requires exactly 12 digits.
-
arn
public final 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 Amazon Web Services Service Authorization Reference.
- Returns:
- The Amazon Resource Name (ARN) of the account.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
-
email
public final String email()
The email address associated with the Amazon Web Services account.
The regex pattern for this parameter is a string of characters that represents a standard internet email address.
- Returns:
- The email address associated with the Amazon Web Services account.
The regex pattern for this parameter is a string of characters that represents a standard internet email address.
-
name
public final 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.
- Returns:
- 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.
-
status
public final 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,
statuswill returnAccountStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the account in the organization.
- See Also:
AccountStatus
-
statusAsString
public final 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,
statuswill returnAccountStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the account in the organization.
- See Also:
AccountStatus
-
joinedMethod
public final 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,
joinedMethodwill returnAccountJoinedMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromjoinedMethodAsString().- Returns:
- The method by which the account joined the organization.
- See Also:
AccountJoinedMethod
-
joinedMethodAsString
public final 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,
joinedMethodwill returnAccountJoinedMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromjoinedMethodAsString().- Returns:
- The method by which the account joined the organization.
- See Also:
AccountJoinedMethod
-
joinedTimestamp
public final Instant joinedTimestamp()
The date the account became a part of the organization.
- Returns:
- The date the account became a part of the organization.
-
toBuilder
public Account.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Account.Builder,Account>
-
builder
public static Account.Builder builder()
-
serializableBuilderClass
public static Class<? extends Account.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-