public class AssociateSoftwareTokenRequest extends AmazonWebServiceRequest implements Serializable
Returns a unique generated shared secret key code for the user account. The request takes an access token or a session string, but not both.
Constructor and Description |
---|
AssociateSoftwareTokenRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAccessToken()
The access token.
|
String |
getSession()
The session which should be passed both ways in challenge-response calls
to the service.
|
int |
hashCode() |
void |
setAccessToken(String accessToken)
The access token.
|
void |
setSession(String session)
The session which should be passed both ways in challenge-response calls
to the service.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AssociateSoftwareTokenRequest |
withAccessToken(String accessToken)
The access token.
|
AssociateSoftwareTokenRequest |
withSession(String session)
The session which should be passed both ways in challenge-response calls
to the service.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getAccessToken()
The access token.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
The access token.
public void setAccessToken(String accessToken)
The access token.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken
- The access token.
public AssociateSoftwareTokenRequest withAccessToken(String accessToken)
The access token.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken
- The access token.
public String getSession()
The session which should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.
Constraints:
Length: 20 - 2048
The session which should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.
public void setSession(String session)
The session which should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.
Constraints:
Length: 20 - 2048
session
- The session which should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.
public AssociateSoftwareTokenRequest withSession(String session)
The session which should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
session
- The session which should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2020. All rights reserved.