Class Credentials
- java.lang.Object
-
- com.amazonaws.services.cognitoidentity.model.Credentials
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Credentials extends Object implements Serializable, Cloneable
Credentials for the provided identity ID.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Credentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Credentialsclone()booleanequals(Object obj)StringgetAccessKeyId()The Access Key portion of the credentials.DategetExpiration()The date at which these credentials will expire.StringgetSecretKey()The Secret Access Key portion of the credentialsStringgetSessionToken()The Session Token portion of the credentialsinthashCode()voidsetAccessKeyId(String accessKeyId)The Access Key portion of the credentials.voidsetExpiration(Date expiration)The date at which these credentials will expire.voidsetSecretKey(String secretKey)The Secret Access Key portion of the credentialsvoidsetSessionToken(String sessionToken)The Session Token portion of the credentialsStringtoString()Returns a string representation of this object; useful for testing and debugging.CredentialswithAccessKeyId(String accessKeyId)The Access Key portion of the credentials.CredentialswithExpiration(Date expiration)The date at which these credentials will expire.CredentialswithSecretKey(String secretKey)The Secret Access Key portion of the credentialsCredentialswithSessionToken(String sessionToken)The Session Token portion of the credentials
-
-
-
Method Detail
-
setAccessKeyId
public void setAccessKeyId(String accessKeyId)
The Access Key portion of the credentials.
- Parameters:
accessKeyId- The Access Key portion of the credentials.
-
getAccessKeyId
public String getAccessKeyId()
The Access Key portion of the credentials.
- Returns:
- The Access Key portion of the credentials.
-
withAccessKeyId
public Credentials withAccessKeyId(String accessKeyId)
The Access Key portion of the credentials.
- Parameters:
accessKeyId- The Access Key portion of the credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSecretKey
public void setSecretKey(String secretKey)
The Secret Access Key portion of the credentials
- Parameters:
secretKey- The Secret Access Key portion of the credentials
-
getSecretKey
public String getSecretKey()
The Secret Access Key portion of the credentials
- Returns:
- The Secret Access Key portion of the credentials
-
withSecretKey
public Credentials withSecretKey(String secretKey)
The Secret Access Key portion of the credentials
- Parameters:
secretKey- The Secret Access Key portion of the credentials- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSessionToken
public void setSessionToken(String sessionToken)
The Session Token portion of the credentials
- Parameters:
sessionToken- The Session Token portion of the credentials
-
getSessionToken
public String getSessionToken()
The Session Token portion of the credentials
- Returns:
- The Session Token portion of the credentials
-
withSessionToken
public Credentials withSessionToken(String sessionToken)
The Session Token portion of the credentials
- Parameters:
sessionToken- The Session Token portion of the credentials- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setExpiration
public void setExpiration(Date expiration)
The date at which these credentials will expire.
- Parameters:
expiration- The date at which these credentials will expire.
-
getExpiration
public Date getExpiration()
The date at which these credentials will expire.
- Returns:
- The date at which these credentials will expire.
-
withExpiration
public Credentials withExpiration(Date expiration)
The date at which these credentials will expire.
- Parameters:
expiration- The date at which these credentials will expire.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Credentials clone()
-
-