@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IamUser extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an Identity and Access Management (IAM) user who performed an action on an affected resource.
Constructor and Description |
---|
IamUser() |
Modifier and Type | Method and Description |
---|---|
IamUser |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The unique identifier for the Amazon Web Services account that's associated with the IAM user who performed the
action.
|
String |
getArn()
The Amazon Resource Name (ARN) of the principal that performed the action.
|
String |
getPrincipalId()
The unique identifier for the IAM user who performed the action.
|
String |
getUserName()
The username of the IAM user who 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 that's associated with the IAM user who performed the
action.
|
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 IAM user who performed the action.
|
void |
setUserName(String userName)
The username of the IAM user who performed the action.
|
String |
toString()
Returns a string representation of this object.
|
IamUser |
withAccountId(String accountId)
The unique identifier for the Amazon Web Services account that's associated with the IAM user who performed the
action.
|
IamUser |
withArn(String arn)
The Amazon Resource Name (ARN) of the principal that performed the action.
|
IamUser |
withPrincipalId(String principalId)
The unique identifier for the IAM user who performed the action.
|
IamUser |
withUserName(String userName)
The username of the IAM user who performed the action.
|
public void setAccountId(String accountId)
The unique identifier for the Amazon Web Services account that's associated with the IAM user who performed the action.
accountId
- The unique identifier for the Amazon Web Services account that's associated with the IAM user who
performed the action.public String getAccountId()
The unique identifier for the Amazon Web Services account that's associated with the IAM user who performed the action.
public IamUser withAccountId(String accountId)
The unique identifier for the Amazon Web Services account that's associated with the IAM user who performed the action.
accountId
- The unique identifier for the Amazon Web Services account that's associated with the IAM user who
performed the action.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 who 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 who 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 who performed the action.
public IamUser 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 who 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 who performed the action.public void setPrincipalId(String principalId)
The unique identifier for the IAM user who performed the action.
principalId
- The unique identifier for the IAM user who performed the action.public String getPrincipalId()
The unique identifier for the IAM user who performed the action.
public IamUser withPrincipalId(String principalId)
The unique identifier for the IAM user who performed the action.
principalId
- The unique identifier for the IAM user who performed the action.public void setUserName(String userName)
The username of the IAM user who performed the action.
userName
- The username of the IAM user who performed the action.public String getUserName()
The username of the IAM user who performed the action.
public IamUser withUserName(String userName)
The username of the IAM user who performed the action.
userName
- The username of the IAM user who performed the action.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.