Class AssumedRoleUser

java.lang.Object
com.amazonaws.services.securitytoken.model.AssumedRoleUser
All Implemented Interfaces:
Serializable, Cloneable

public class AssumedRoleUser extends Object implements Serializable, Cloneable

The identifiers for the temporary security credentials that the operation returns.

See Also:
  • Constructor Details

    • AssumedRoleUser

      public AssumedRoleUser()
  • Method Details

    • setAssumedRoleId

      public void setAssumedRoleId(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.

      Parameters:
      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.
    • getAssumedRoleId

      public 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.

      Returns:
      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.
    • withAssumedRoleId

      public AssumedRoleUser withAssumedRoleId(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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setArn

      public void setArn(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.

      Parameters:
      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.
    • getArn

      public 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.

      Returns:
      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.
    • withArn

      public AssumedRoleUser withArn(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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public AssumedRoleUser clone()
      Overrides:
      clone in class Object