@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ChallengeResponse extends Object implements Serializable, Cloneable, StructuredPojo
The result from the inspection of the web request for a valid challenge token.
Constructor and Description |
---|
ChallengeResponse() |
Modifier and Type | Method and Description |
---|---|
ChallengeResponse |
clone() |
boolean |
equals(Object obj) |
String |
getFailureReason()
The reason for failure, populated when the evaluation of the token fails.
|
Integer |
getResponseCode()
The HTTP response code indicating the status of the challenge token in the web request.
|
Long |
getSolveTimestamp()
The time that the challenge was last solved for the supplied token.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFailureReason(String failureReason)
The reason for failure, populated when the evaluation of the token fails.
|
void |
setResponseCode(Integer responseCode)
The HTTP response code indicating the status of the challenge token in the web request.
|
void |
setSolveTimestamp(Long solveTimestamp)
The time that the challenge was last solved for the supplied token.
|
String |
toString()
Returns a string representation of this object.
|
ChallengeResponse |
withFailureReason(FailureReason failureReason)
The reason for failure, populated when the evaluation of the token fails.
|
ChallengeResponse |
withFailureReason(String failureReason)
The reason for failure, populated when the evaluation of the token fails.
|
ChallengeResponse |
withResponseCode(Integer responseCode)
The HTTP response code indicating the status of the challenge token in the web request.
|
ChallengeResponse |
withSolveTimestamp(Long solveTimestamp)
The time that the challenge was last solved for the supplied token.
|
public void setResponseCode(Integer responseCode)
The HTTP response code indicating the status of the challenge token in the web request. If the token is missing,
invalid, or expired, this code is 202 Request Accepted
.
responseCode
- The HTTP response code indicating the status of the challenge token in the web request. If the token is
missing, invalid, or expired, this code is 202 Request Accepted
.public Integer getResponseCode()
The HTTP response code indicating the status of the challenge token in the web request. If the token is missing,
invalid, or expired, this code is 202 Request Accepted
.
202 Request Accepted
.public ChallengeResponse withResponseCode(Integer responseCode)
The HTTP response code indicating the status of the challenge token in the web request. If the token is missing,
invalid, or expired, this code is 202 Request Accepted
.
responseCode
- The HTTP response code indicating the status of the challenge token in the web request. If the token is
missing, invalid, or expired, this code is 202 Request Accepted
.public void setSolveTimestamp(Long solveTimestamp)
The time that the challenge was last solved for the supplied token.
solveTimestamp
- The time that the challenge was last solved for the supplied token.public Long getSolveTimestamp()
The time that the challenge was last solved for the supplied token.
public ChallengeResponse withSolveTimestamp(Long solveTimestamp)
The time that the challenge was last solved for the supplied token.
solveTimestamp
- The time that the challenge was last solved for the supplied token.public void setFailureReason(String failureReason)
The reason for failure, populated when the evaluation of the token fails.
failureReason
- The reason for failure, populated when the evaluation of the token fails.FailureReason
public String getFailureReason()
The reason for failure, populated when the evaluation of the token fails.
FailureReason
public ChallengeResponse withFailureReason(String failureReason)
The reason for failure, populated when the evaluation of the token fails.
failureReason
- The reason for failure, populated when the evaluation of the token fails.FailureReason
public ChallengeResponse withFailureReason(FailureReason failureReason)
The reason for failure, populated when the evaluation of the token fails.
failureReason
- The reason for failure, populated when the evaluation of the token fails.FailureReason
public String toString()
toString
in class Object
Object.toString()
public ChallengeResponse clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.