@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Account extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about an Amazon Web Services account that is a member of an organization.
Constructor and Description |
---|
Account() |
Modifier and Type | Method and Description |
---|---|
Account |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the account.
|
String |
getEmail()
The email address associated with the Amazon Web Services account.
|
String |
getId()
The unique identifier (ID) of the account.
|
String |
getJoinedMethod()
The method by which the account joined the organization.
|
Date |
getJoinedTimestamp()
The date the account became a part of the organization.
|
String |
getName()
The friendly name of the account.
|
String |
getStatus()
The status of the account in the organization.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the account.
|
void |
setEmail(String email)
The email address associated with the Amazon Web Services account.
|
void |
setId(String id)
The unique identifier (ID) of the account.
|
void |
setJoinedMethod(AccountJoinedMethod joinedMethod)
The method by which the account joined the organization.
|
void |
setJoinedMethod(String joinedMethod)
The method by which the account joined the organization.
|
void |
setJoinedTimestamp(Date joinedTimestamp)
The date the account became a part of the organization.
|
void |
setName(String name)
The friendly name of the account.
|
void |
setStatus(AccountStatus status)
The status of the account in the organization.
|
void |
setStatus(String status)
The status of the account in the organization.
|
String |
toString()
Returns a string representation of this object.
|
Account |
withArn(String arn)
The Amazon Resource Name (ARN) of the account.
|
Account |
withEmail(String email)
The email address associated with the Amazon Web Services account.
|
Account |
withId(String id)
The unique identifier (ID) of the account.
|
Account |
withJoinedMethod(AccountJoinedMethod joinedMethod)
The method by which the account joined the organization.
|
Account |
withJoinedMethod(String joinedMethod)
The method by which the account joined the organization.
|
Account |
withJoinedTimestamp(Date joinedTimestamp)
The date the account became a part of the organization.
|
Account |
withName(String name)
The friendly name of the account.
|
Account |
withStatus(AccountStatus status)
The status of the account in the organization.
|
Account |
withStatus(String status)
The status of the account in the organization.
|
public void setId(String id)
The unique identifier (ID) of the account.
The regex pattern for an account ID string requires exactly 12 digits.
id
- The unique identifier (ID) of the account.
The regex pattern for an account ID string requires exactly 12 digits.
public String getId()
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 Account withId(String id)
The unique identifier (ID) of the account.
The regex pattern for an account ID string requires exactly 12 digits.
id
- The unique identifier (ID) of the account.
The regex pattern for an account ID string requires exactly 12 digits.
public void setArn(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.
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.
public String getArn()
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.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
public Account withArn(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.
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.
public void setEmail(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.
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.
public String getEmail()
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.
The regex pattern for this parameter is a string of characters that represents a standard internet email address.
public Account withEmail(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.
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.
public void setName(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.
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.
public String getName()
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 Account withName(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.
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.
public void setStatus(String status)
The status of the account in the organization.
status
- The status of the account in the organization.AccountStatus
public String getStatus()
The status of the account in the organization.
AccountStatus
public Account withStatus(String status)
The status of the account in the organization.
status
- The status of the account in the organization.AccountStatus
public void setStatus(AccountStatus status)
The status of the account in the organization.
status
- The status of the account in the organization.AccountStatus
public Account withStatus(AccountStatus status)
The status of the account in the organization.
status
- The status of the account in the organization.AccountStatus
public void setJoinedMethod(String joinedMethod)
The method by which the account joined the organization.
joinedMethod
- The method by which the account joined the organization.AccountJoinedMethod
public String getJoinedMethod()
The method by which the account joined the organization.
AccountJoinedMethod
public Account withJoinedMethod(String joinedMethod)
The method by which the account joined the organization.
joinedMethod
- The method by which the account joined the organization.AccountJoinedMethod
public void setJoinedMethod(AccountJoinedMethod joinedMethod)
The method by which the account joined the organization.
joinedMethod
- The method by which the account joined the organization.AccountJoinedMethod
public Account withJoinedMethod(AccountJoinedMethod joinedMethod)
The method by which the account joined the organization.
joinedMethod
- The method by which the account joined the organization.AccountJoinedMethod
public void setJoinedTimestamp(Date joinedTimestamp)
The date the account became a part of the organization.
joinedTimestamp
- The date the account became a part of the organization.public Date getJoinedTimestamp()
The date the account became a part of the organization.
public Account withJoinedTimestamp(Date joinedTimestamp)
The date the account became a part of the organization.
joinedTimestamp
- The date the account became a part of the organization.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.