public class AssumedRoleUser
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The identifiers for the temporary security credentials that the operation returns.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The ARN of the temporary security credentials that are returned from the
AssumeRole action.
|
private java.lang.String |
assumedRoleId
A unique identifier that contains the role ID and the role session name
of the role that is being assumed.
|
Constructor and Description |
---|
AssumedRoleUser() |
Modifier and Type | Method and Description |
---|---|
AssumedRoleUser |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The ARN of the temporary security credentials that are returned from the
AssumeRole action.
|
java.lang.String |
getAssumedRoleId()
A unique identifier that contains the role ID and the role session name
of the role that is being assumed.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The ARN of the temporary security credentials that are returned from the
AssumeRole action.
|
void |
setAssumedRoleId(java.lang.String assumedRoleId)
A unique identifier that contains the role ID and the role session name
of the role that is being assumed.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AssumedRoleUser |
withArn(java.lang.String arn)
The ARN of the temporary security credentials that are returned from the
AssumeRole action.
|
AssumedRoleUser |
withAssumedRoleId(java.lang.String assumedRoleId)
A unique identifier that contains the role ID and the role session name
of the role that is being assumed.
|
private java.lang.String assumedRoleId
A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role ID is generated by AWS when the role is created.
private java.lang.String arn
The ARN of the temporary security credentials that are returned from the AssumeRole action. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.
public void setAssumedRoleId(java.lang.String assumedRoleId)
A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role ID is generated by AWS when the role is created.
assumedRoleId
- A unique identifier that contains the role ID and the role session
name of the role that is being assumed. The role ID is generated
by AWS when the role is created.public java.lang.String getAssumedRoleId()
A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role ID is generated by AWS when the role is created.
public AssumedRoleUser withAssumedRoleId(java.lang.String assumedRoleId)
A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role ID is generated by AWS when the role is created.
assumedRoleId
- A unique identifier that contains the role ID and the role session
name of the role that is being assumed. The role ID is generated
by AWS when the role is created.public void setArn(java.lang.String arn)
The ARN of the temporary security credentials that are returned from the AssumeRole action. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.
arn
- The ARN of the temporary security credentials that are returned
from the AssumeRole action. For more information about ARNs
and how to use them in policies, see IAM Identifiers in Using IAM.public java.lang.String getArn()
The ARN of the temporary security credentials that are returned from the AssumeRole action. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.
public AssumedRoleUser withArn(java.lang.String arn)
The ARN of the temporary security credentials that are returned from the AssumeRole action. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.
arn
- The ARN of the temporary security credentials that are returned
from the AssumeRole action. For more information about ARNs
and how to use them in policies, see IAM Identifiers in Using IAM.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AssumedRoleUser clone()
clone
in class java.lang.Object