@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthenticationResultType extends Object implements Serializable, Cloneable, StructuredPojo
The authentication result.
Constructor and Description |
---|
AuthenticationResultType() |
Modifier and Type | Method and Description |
---|---|
AuthenticationResultType |
clone() |
boolean |
equals(Object obj) |
String |
getAccessToken()
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
|
Integer |
getExpiresIn()
The expiration period of the authentication result in seconds.
|
String |
getIdToken()
The ID token.
|
NewDeviceMetadataType |
getNewDeviceMetadata()
The new device metadata from an authentication result.
|
String |
getRefreshToken()
The refresh token.
|
String |
getTokenType()
The token type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessToken(String accessToken)
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
|
void |
setExpiresIn(Integer expiresIn)
The expiration period of the authentication result in seconds.
|
void |
setIdToken(String idToken)
The ID token.
|
void |
setNewDeviceMetadata(NewDeviceMetadataType newDeviceMetadata)
The new device metadata from an authentication result.
|
void |
setRefreshToken(String refreshToken)
The refresh token.
|
void |
setTokenType(String tokenType)
The token type.
|
String |
toString()
Returns a string representation of this object.
|
AuthenticationResultType |
withAccessToken(String accessToken)
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
|
AuthenticationResultType |
withExpiresIn(Integer expiresIn)
The expiration period of the authentication result in seconds.
|
AuthenticationResultType |
withIdToken(String idToken)
The ID token.
|
AuthenticationResultType |
withNewDeviceMetadata(NewDeviceMetadataType newDeviceMetadata)
The new device metadata from an authentication result.
|
AuthenticationResultType |
withRefreshToken(String refreshToken)
The refresh token.
|
AuthenticationResultType |
withTokenType(String tokenType)
The token type.
|
public void setAccessToken(String accessToken)
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
accessToken
- A valid access token that Amazon Cognito issued to the user who you want to authenticate.public String getAccessToken()
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
public AuthenticationResultType withAccessToken(String accessToken)
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
accessToken
- A valid access token that Amazon Cognito issued to the user who you want to authenticate.public void setExpiresIn(Integer expiresIn)
The expiration period of the authentication result in seconds.
expiresIn
- The expiration period of the authentication result in seconds.public Integer getExpiresIn()
The expiration period of the authentication result in seconds.
public AuthenticationResultType withExpiresIn(Integer expiresIn)
The expiration period of the authentication result in seconds.
expiresIn
- The expiration period of the authentication result in seconds.public void setTokenType(String tokenType)
The token type.
tokenType
- The token type.public String getTokenType()
The token type.
public AuthenticationResultType withTokenType(String tokenType)
The token type.
tokenType
- The token type.public void setRefreshToken(String refreshToken)
The refresh token.
refreshToken
- The refresh token.public String getRefreshToken()
The refresh token.
public AuthenticationResultType withRefreshToken(String refreshToken)
The refresh token.
refreshToken
- The refresh token.public void setIdToken(String idToken)
The ID token.
idToken
- The ID token.public String getIdToken()
The ID token.
public AuthenticationResultType withIdToken(String idToken)
The ID token.
idToken
- The ID token.public void setNewDeviceMetadata(NewDeviceMetadataType newDeviceMetadata)
The new device metadata from an authentication result.
newDeviceMetadata
- The new device metadata from an authentication result.public NewDeviceMetadataType getNewDeviceMetadata()
The new device metadata from an authentication result.
public AuthenticationResultType withNewDeviceMetadata(NewDeviceMetadataType newDeviceMetadata)
The new device metadata from an authentication result.
newDeviceMetadata
- The new device metadata from an authentication result.public String toString()
toString
in class Object
Object.toString()
public AuthenticationResultType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.