@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RoleCredentials extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the role credentials that are assigned to the user.
Constructor and Description |
---|
RoleCredentials() |
Modifier and Type | Method and Description |
---|---|
RoleCredentials |
clone() |
boolean |
equals(Object obj) |
String |
getAccessKeyId()
The identifier used for the temporary security credentials.
|
Long |
getExpiration()
The date on which temporary security credentials expire.
|
String |
getSecretAccessKey()
The key that is used to sign the request.
|
String |
getSessionToken()
The token used for temporary credentials.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessKeyId(String accessKeyId)
The identifier used for the temporary security credentials.
|
void |
setExpiration(Long expiration)
The date on which temporary security credentials expire.
|
void |
setSecretAccessKey(String secretAccessKey)
The key that is used to sign the request.
|
void |
setSessionToken(String sessionToken)
The token used for temporary credentials.
|
String |
toString()
Returns a string representation of this object.
|
RoleCredentials |
withAccessKeyId(String accessKeyId)
The identifier used for the temporary security credentials.
|
RoleCredentials |
withExpiration(Long expiration)
The date on which temporary security credentials expire.
|
RoleCredentials |
withSecretAccessKey(String secretAccessKey)
The key that is used to sign the request.
|
RoleCredentials |
withSessionToken(String sessionToken)
The token used for temporary credentials.
|
public void setAccessKeyId(String accessKeyId)
The identifier used for the temporary security credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
accessKeyId
- The identifier used for the temporary security credentials. For more information, see Using
Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.public String getAccessKeyId()
The identifier used for the temporary security credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
public RoleCredentials withAccessKeyId(String accessKeyId)
The identifier used for the temporary security credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
accessKeyId
- The identifier used for the temporary security credentials. For more information, see Using
Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.public void setSecretAccessKey(String secretAccessKey)
The key that is used to sign the request. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
secretAccessKey
- The key that is used to sign the request. For more information, see Using
Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.public String getSecretAccessKey()
The key that is used to sign the request. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
public RoleCredentials withSecretAccessKey(String secretAccessKey)
The key that is used to sign the request. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
secretAccessKey
- The key that is used to sign the request. For more information, see Using
Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.public void setSessionToken(String sessionToken)
The token used for temporary credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
sessionToken
- The token used for temporary credentials. For more information, see Using
Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.public String getSessionToken()
The token used for temporary credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
public RoleCredentials withSessionToken(String sessionToken)
The token used for temporary credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
sessionToken
- The token used for temporary credentials. For more information, see Using
Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.public void setExpiration(Long expiration)
The date on which temporary security credentials expire.
expiration
- The date on which temporary security credentials expire.public Long getExpiration()
The date on which temporary security credentials expire.
public RoleCredentials withExpiration(Long expiration)
The date on which temporary security credentials expire.
expiration
- The date on which temporary security credentials expire.public String toString()
toString
in class Object
Object.toString()
public RoleCredentials clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.