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