@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsAccount extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an Amazon Web Services account and entity that performed an action on an affected resource. The action was performed using the credentials for an Amazon Web Services account other than your own account.
Constructor and Description |
---|
AwsAccount() |
Modifier and Type | Method and Description |
---|---|
AwsAccount |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The unique identifier for the Amazon Web Services account.
|
String |
getPrincipalId()
The unique identifier for the entity that performed the action.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The unique identifier for the Amazon Web Services account.
|
void |
setPrincipalId(String principalId)
The unique identifier for the entity that performed the action.
|
String |
toString()
Returns a string representation of this object.
|
AwsAccount |
withAccountId(String accountId)
The unique identifier for the Amazon Web Services account.
|
AwsAccount |
withPrincipalId(String principalId)
The unique identifier for the entity that performed the action.
|
public void setAccountId(String accountId)
The unique identifier for the Amazon Web Services account.
accountId
- The unique identifier for the Amazon Web Services account.public String getAccountId()
The unique identifier for the Amazon Web Services account.
public AwsAccount withAccountId(String accountId)
The unique identifier for the Amazon Web Services account.
accountId
- The unique identifier for the Amazon Web Services account.public void setPrincipalId(String principalId)
The unique identifier for the entity that performed the action.
principalId
- The unique identifier for the entity that performed the action.public String getPrincipalId()
The unique identifier for the entity that performed the action.
public AwsAccount withPrincipalId(String principalId)
The unique identifier for the entity that performed the action.
principalId
- The unique identifier for the entity that performed the action.public String toString()
toString
in class Object
Object.toString()
public AwsAccount clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.