@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UserIdentityRoot extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an AWS account and entity that performed an action on an affected resource. The action was performed using the credentials for your AWS account.
Constructor and Description |
---|
UserIdentityRoot() |
Modifier and Type | Method and Description |
---|---|
UserIdentityRoot |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The unique identifier for the AWS account.
|
String |
getArn()
The Amazon Resource Name (ARN) of the principal that performed the action.
|
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 AWS account.
|
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the principal that performed the action.
|
void |
setPrincipalId(String principalId)
The unique identifier for the entity that performed the action.
|
String |
toString()
Returns a string representation of this object.
|
UserIdentityRoot |
withAccountId(String accountId)
The unique identifier for the AWS account.
|
UserIdentityRoot |
withArn(String arn)
The Amazon Resource Name (ARN) of the principal that performed the action.
|
UserIdentityRoot |
withPrincipalId(String principalId)
The unique identifier for the entity that performed the action.
|
public void setAccountId(String accountId)
The unique identifier for the AWS account.
accountId
- The unique identifier for the AWS account.public String getAccountId()
The unique identifier for the AWS account.
public UserIdentityRoot withAccountId(String accountId)
The unique identifier for the AWS account.
accountId
- The unique identifier for the AWS account.public void setArn(String arn)
The Amazon Resource Name (ARN) of the principal that performed the action. The last section of the ARN contains the name of the user or role that performed the action.
arn
- The Amazon Resource Name (ARN) of the principal that performed the action. The last section of the ARN
contains the name of the user or role that performed the action.public String getArn()
The Amazon Resource Name (ARN) of the principal that performed the action. The last section of the ARN contains the name of the user or role that performed the action.
public UserIdentityRoot withArn(String arn)
The Amazon Resource Name (ARN) of the principal that performed the action. The last section of the ARN contains the name of the user or role that performed the action.
arn
- The Amazon Resource Name (ARN) of the principal that performed the action. The last section of the ARN
contains the name of the user or role that performed the action.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 UserIdentityRoot 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 UserIdentityRoot clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.