public class Credentials extends Object implements Serializable
Credentials for the provided identity ID.
Constructor and Description |
---|
Credentials() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAccessKeyId()
The Access Key portion of the credentials.
|
Date |
getExpiration()
The date at which these credentials will expire.
|
String |
getSecretKey()
The Secret Access Key portion of the credentials
|
String |
getSessionToken()
The Session Token portion of the credentials
|
int |
hashCode() |
void |
setAccessKeyId(String accessKeyId)
The Access Key portion of the credentials.
|
void |
setExpiration(Date expiration)
The date at which these credentials will expire.
|
void |
setSecretKey(String secretKey)
The Secret Access Key portion of the credentials
|
void |
setSessionToken(String sessionToken)
The Session Token portion of the credentials
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Credentials |
withAccessKeyId(String accessKeyId)
The Access Key portion of the credentials.
|
Credentials |
withExpiration(Date expiration)
The date at which these credentials will expire.
|
Credentials |
withSecretKey(String secretKey)
The Secret Access Key portion of the credentials
|
Credentials |
withSessionToken(String sessionToken)
The Session Token portion of the credentials
|
public String getAccessKeyId()
public void setAccessKeyId(String accessKeyId)
accessKeyId
- The Access Key portion of the credentials.public Credentials withAccessKeyId(String accessKeyId)
Returns a reference to this object so that method calls can be chained together.
accessKeyId
- The Access Key portion of the credentials.public String getSecretKey()
public void setSecretKey(String secretKey)
secretKey
- The Secret Access Key portion of the credentialspublic Credentials withSecretKey(String secretKey)
Returns a reference to this object so that method calls can be chained together.
secretKey
- The Secret Access Key portion of the credentialspublic String getSessionToken()
public void setSessionToken(String sessionToken)
sessionToken
- The Session Token portion of the credentialspublic Credentials withSessionToken(String sessionToken)
Returns a reference to this object so that method calls can be chained together.
sessionToken
- The Session Token portion of the credentialspublic Date getExpiration()
public void setExpiration(Date expiration)
expiration
- The date at which these credentials will expire.public Credentials withExpiration(Date expiration)
Returns a reference to this object so that method calls can be chained together.
expiration
- The date at which these credentials will expire.public String toString()
toString
in class Object
Object.toString()
Copyright © 2016. All rights reserved.