Class Account
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Account.Builder,Account>
Contains information about an Amazon Web Services account that is a member of an organization.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringarn()The Amazon Resource Name (ARN) of the account.static Account.Builderbuilder()final Stringemail()The email address associated with the Amazon Web Services account.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringid()The unique identifier (ID) of the account.final AccountJoinedMethodThe method by which the account joined the organization.final StringThe method by which the account joined the organization.final InstantThe date the account became a part of the organization.final Stringname()The friendly name of the account.static Class<? extends Account.Builder> final AccountStatestate()Each state represents a specific phase in the account lifecycle.final StringEach state represents a specific phase in the account lifecycle.final AccountStatusstatus()The status of the account in the organization.final StringThe status of the account in the organization.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
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
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
The status of the account in the organization.
The
Statusparameter in theAccountobject will be retired on September 9, 2026. Although both the accountStateand accountStatusparameters are currently available in the Organizations APIs (DescribeAccount,ListAccounts,ListAccountsForParent), we recommend that you update your scripts or other code to use theStateparameter instead ofStatusbefore September 9, 2026.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.
The
Statusparameter in theAccountobject will be retired on September 9, 2026. Although both the accountStateand accountStatusparameters are currently available in the Organizations APIs (DescribeAccount,ListAccounts,ListAccountsForParent), we recommend that you update your scripts or other code to use theStateparameter instead ofStatusbefore September 9, 2026. - See Also:
-
statusAsString
The status of the account in the organization.
The
Statusparameter in theAccountobject will be retired on September 9, 2026. Although both the accountStateand accountStatusparameters are currently available in the Organizations APIs (DescribeAccount,ListAccounts,ListAccountsForParent), we recommend that you update your scripts or other code to use theStateparameter instead ofStatusbefore September 9, 2026.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.
The
Statusparameter in theAccountobject will be retired on September 9, 2026. Although both the accountStateand accountStatusparameters are currently available in the Organizations APIs (DescribeAccount,ListAccounts,ListAccountsForParent), we recommend that you update your scripts or other code to use theStateparameter instead ofStatusbefore September 9, 2026. - See Also:
-
state
Each state represents a specific phase in the account lifecycle. Use this information to manage account access, automate workflows, or trigger actions based on account state changes.
For more information about account states and their implications, see Monitor the state of your Amazon Web Services accounts in the Organizations User Guide.
If the service returns an enum value that is not available in the current SDK version,
statewill returnAccountState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- Each state represents a specific phase in the account lifecycle. Use this information to manage account
access, automate workflows, or trigger actions based on account state changes.
For more information about account states and their implications, see Monitor the state of your Amazon Web Services accounts in the Organizations User Guide.
- See Also:
-
stateAsString
Each state represents a specific phase in the account lifecycle. Use this information to manage account access, automate workflows, or trigger actions based on account state changes.
For more information about account states and their implications, see Monitor the state of your Amazon Web Services accounts in the Organizations User Guide.
If the service returns an enum value that is not available in the current SDK version,
statewill returnAccountState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- Each state represents a specific phase in the account lifecycle. Use this information to manage account
access, automate workflows, or trigger actions based on account state changes.
For more information about account states and their implications, see Monitor the state of your Amazon Web Services accounts in the Organizations User Guide.
- See Also:
-
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:
-
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:
-
joinedTimestamp
The date the account became a part of the organization.
- Returns:
- The date the account became a part of the organization.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Account.Builder,Account> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-