@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Credentials extends Object implements Serializable, Cloneable, StructuredPojo
Credentials for the provided identity ID.
Constructor and Description |
---|
Credentials() |
Modifier and Type | Method and Description |
---|---|
Credentials |
clone() |
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 void setAccessKeyId(String accessKeyId)
The Access Key portion of the credentials.
accessKeyId
- The Access Key portion of the credentials.public String getAccessKeyId()
The Access Key portion of the credentials.
public Credentials withAccessKeyId(String accessKeyId)
The Access Key portion of the credentials.
accessKeyId
- The Access Key portion of the credentials.public void setSecretKey(String secretKey)
The Secret Access Key portion of the credentials
secretKey
- The Secret Access Key portion of the credentialspublic String getSecretKey()
The Secret Access Key portion of the credentials
public Credentials withSecretKey(String secretKey)
The Secret Access Key portion of the credentials
secretKey
- The Secret Access Key portion of the credentialspublic void setSessionToken(String sessionToken)
The Session Token portion of the credentials
sessionToken
- The Session Token portion of the credentialspublic String getSessionToken()
The Session Token portion of the credentials
public Credentials withSessionToken(String sessionToken)
The Session Token portion of the credentials
sessionToken
- The Session Token portion of the credentialspublic void setExpiration(Date expiration)
The date at which these credentials will expire.
expiration
- The date at which these credentials will expire.public Date getExpiration()
The date at which these credentials will expire.
public Credentials withExpiration(Date expiration)
The date at which these credentials will expire.
expiration
- The date at which these credentials will expire.public String toString()
toString
in class Object
Object.toString()
public Credentials clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.