@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UserIdentity extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the type and other characteristics of an entity that performed an action on an affected resource.
Constructor and Description |
---|
UserIdentity() |
Modifier and Type | Method and Description |
---|---|
UserIdentity |
clone() |
boolean |
equals(Object obj) |
AssumedRole |
getAssumedRole()
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation
of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
|
AwsAccount |
getAwsAccount()
If the action was performed using the credentials for another Amazon Web Services account, the details of that
account.
|
AwsService |
getAwsService()
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the name of
the service.
|
FederatedUser |
getFederatedUser()
If the action was performed with temporary security credentials that were obtained using the GetFederationToken
operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the
identity.
|
IamUser |
getIamUser()
If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and
other details about the user.
|
UserIdentityRoot |
getRoot()
If the action was performed using the credentials for your Amazon Web Services account, the details of your
account.
|
String |
getType()
The type of entity that performed the action.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssumedRole(AssumedRole assumedRole)
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation
of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
|
void |
setAwsAccount(AwsAccount awsAccount)
If the action was performed using the credentials for another Amazon Web Services account, the details of that
account.
|
void |
setAwsService(AwsService awsService)
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the name of
the service.
|
void |
setFederatedUser(FederatedUser federatedUser)
If the action was performed with temporary security credentials that were obtained using the GetFederationToken
operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the
identity.
|
void |
setIamUser(IamUser iamUser)
If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and
other details about the user.
|
void |
setRoot(UserIdentityRoot root)
If the action was performed using the credentials for your Amazon Web Services account, the details of your
account.
|
void |
setType(String type)
The type of entity that performed the action.
|
String |
toString()
Returns a string representation of this object.
|
UserIdentity |
withAssumedRole(AssumedRole assumedRole)
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation
of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
|
UserIdentity |
withAwsAccount(AwsAccount awsAccount)
If the action was performed using the credentials for another Amazon Web Services account, the details of that
account.
|
UserIdentity |
withAwsService(AwsService awsService)
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the name of
the service.
|
UserIdentity |
withFederatedUser(FederatedUser federatedUser)
If the action was performed with temporary security credentials that were obtained using the GetFederationToken
operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the
identity.
|
UserIdentity |
withIamUser(IamUser iamUser)
If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and
other details about the user.
|
UserIdentity |
withRoot(UserIdentityRoot root)
If the action was performed using the credentials for your Amazon Web Services account, the details of your
account.
|
UserIdentity |
withType(String type)
The type of entity that performed the action.
|
UserIdentity |
withType(UserIdentityType type)
The type of entity that performed the action.
|
public void setAssumedRole(AssumedRole assumedRole)
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
assumedRole
- If the action was performed with temporary security credentials that were obtained using the AssumeRole
operation of the Security Token Service (STS) API, the identifiers, session context, and other details
about the identity.public AssumedRole getAssumedRole()
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
public UserIdentity withAssumedRole(AssumedRole assumedRole)
If the action was performed with temporary security credentials that were obtained using the AssumeRole operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
assumedRole
- If the action was performed with temporary security credentials that were obtained using the AssumeRole
operation of the Security Token Service (STS) API, the identifiers, session context, and other details
about the identity.public void setAwsAccount(AwsAccount awsAccount)
If the action was performed using the credentials for another Amazon Web Services account, the details of that account.
awsAccount
- If the action was performed using the credentials for another Amazon Web Services account, the details of
that account.public AwsAccount getAwsAccount()
If the action was performed using the credentials for another Amazon Web Services account, the details of that account.
public UserIdentity withAwsAccount(AwsAccount awsAccount)
If the action was performed using the credentials for another Amazon Web Services account, the details of that account.
awsAccount
- If the action was performed using the credentials for another Amazon Web Services account, the details of
that account.public void setAwsService(AwsService awsService)
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the name of the service.
awsService
- If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the
name of the service.public AwsService getAwsService()
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the name of the service.
public UserIdentity withAwsService(AwsService awsService)
If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the name of the service.
awsService
- If the action was performed by an Amazon Web Services account that belongs to an Amazon Web Service, the
name of the service.public void setFederatedUser(FederatedUser federatedUser)
If the action was performed with temporary security credentials that were obtained using the GetFederationToken operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
federatedUser
- If the action was performed with temporary security credentials that were obtained using the
GetFederationToken operation of the Security Token Service (STS) API, the identifiers, session context,
and other details about the identity.public FederatedUser getFederatedUser()
If the action was performed with temporary security credentials that were obtained using the GetFederationToken operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
public UserIdentity withFederatedUser(FederatedUser federatedUser)
If the action was performed with temporary security credentials that were obtained using the GetFederationToken operation of the Security Token Service (STS) API, the identifiers, session context, and other details about the identity.
federatedUser
- If the action was performed with temporary security credentials that were obtained using the
GetFederationToken operation of the Security Token Service (STS) API, the identifiers, session context,
and other details about the identity.public void setIamUser(IamUser iamUser)
If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and other details about the user.
iamUser
- If the action was performed using the credentials for an Identity and Access Management (IAM) user, the
name and other details about the user.public IamUser getIamUser()
If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and other details about the user.
public UserIdentity withIamUser(IamUser iamUser)
If the action was performed using the credentials for an Identity and Access Management (IAM) user, the name and other details about the user.
iamUser
- If the action was performed using the credentials for an Identity and Access Management (IAM) user, the
name and other details about the user.public void setRoot(UserIdentityRoot root)
If the action was performed using the credentials for your Amazon Web Services account, the details of your account.
root
- If the action was performed using the credentials for your Amazon Web Services account, the details of
your account.public UserIdentityRoot getRoot()
If the action was performed using the credentials for your Amazon Web Services account, the details of your account.
public UserIdentity withRoot(UserIdentityRoot root)
If the action was performed using the credentials for your Amazon Web Services account, the details of your account.
root
- If the action was performed using the credentials for your Amazon Web Services account, the details of
your account.public void setType(String type)
The type of entity that performed the action.
type
- The type of entity that performed the action.UserIdentityType
public String getType()
The type of entity that performed the action.
UserIdentityType
public UserIdentity withType(String type)
The type of entity that performed the action.
type
- The type of entity that performed the action.UserIdentityType
public UserIdentity withType(UserIdentityType type)
The type of entity that performed the action.
type
- The type of entity that performed the action.UserIdentityType
public String toString()
toString
in class Object
Object.toString()
public UserIdentity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.