@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Credentials extends Object implements Serializable, Cloneable, StructuredPojo
Contains credentials to use for federation.
Constructor and Description |
---|
Credentials() |
Modifier and Type | Method and Description |
---|---|
Credentials |
clone() |
boolean |
equals(Object obj) |
String |
getAccessToken()
An access token generated for a federated user to access Amazon Connect.
|
Date |
getAccessTokenExpiration()
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
|
String |
getRefreshToken()
Renews a token generated for a user to access the Amazon Connect instance.
|
Date |
getRefreshTokenExpiration()
Renews the expiration timer for a generated token.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessToken(String accessToken)
An access token generated for a federated user to access Amazon Connect.
|
void |
setAccessTokenExpiration(Date accessTokenExpiration)
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
|
void |
setRefreshToken(String refreshToken)
Renews a token generated for a user to access the Amazon Connect instance.
|
void |
setRefreshTokenExpiration(Date refreshTokenExpiration)
Renews the expiration timer for a generated token.
|
String |
toString()
Returns a string representation of this object.
|
Credentials |
withAccessToken(String accessToken)
An access token generated for a federated user to access Amazon Connect.
|
Credentials |
withAccessTokenExpiration(Date accessTokenExpiration)
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
|
Credentials |
withRefreshToken(String refreshToken)
Renews a token generated for a user to access the Amazon Connect instance.
|
Credentials |
withRefreshTokenExpiration(Date refreshTokenExpiration)
Renews the expiration timer for a generated token.
|
public void setAccessToken(String accessToken)
An access token generated for a federated user to access Amazon Connect.
accessToken
- An access token generated for a federated user to access Amazon Connect.public String getAccessToken()
An access token generated for a federated user to access Amazon Connect.
public Credentials withAccessToken(String accessToken)
An access token generated for a federated user to access Amazon Connect.
accessToken
- An access token generated for a federated user to access Amazon Connect.public void setAccessTokenExpiration(Date accessTokenExpiration)
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
accessTokenExpiration
- A token generated with an expiration time for the session a user is logged in to Amazon Connect.public Date getAccessTokenExpiration()
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
public Credentials withAccessTokenExpiration(Date accessTokenExpiration)
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
accessTokenExpiration
- A token generated with an expiration time for the session a user is logged in to Amazon Connect.public void setRefreshToken(String refreshToken)
Renews a token generated for a user to access the Amazon Connect instance.
refreshToken
- Renews a token generated for a user to access the Amazon Connect instance.public String getRefreshToken()
Renews a token generated for a user to access the Amazon Connect instance.
public Credentials withRefreshToken(String refreshToken)
Renews a token generated for a user to access the Amazon Connect instance.
refreshToken
- Renews a token generated for a user to access the Amazon Connect instance.public void setRefreshTokenExpiration(Date refreshTokenExpiration)
Renews the expiration timer for a generated token.
refreshTokenExpiration
- Renews the expiration timer for a generated token.public Date getRefreshTokenExpiration()
Renews the expiration timer for a generated token.
public Credentials withRefreshTokenExpiration(Date refreshTokenExpiration)
Renews the expiration timer for a generated token.
refreshTokenExpiration
- Renews the expiration timer for a generated token.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.