public class UpdateAuthEventFeedbackRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Provides the feedback for an authentication event, whether it was from a valid user or not. This feedback is used for improving the risk evaluation decision for the user pool as part of Amazon Cognito advanced security.
Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.
| Constructor and Description |
|---|
UpdateAuthEventFeedbackRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEventId()
The event ID.
|
java.lang.String |
getFeedbackToken()
The feedback token.
|
java.lang.String |
getFeedbackValue()
The authentication event feedback value.
|
java.lang.String |
getUsername()
The user pool username.
|
java.lang.String |
getUserPoolId()
The user pool ID.
|
int |
hashCode() |
void |
setEventId(java.lang.String eventId)
The event ID.
|
void |
setFeedbackToken(java.lang.String feedbackToken)
The feedback token.
|
void |
setFeedbackValue(FeedbackValueType feedbackValue)
The authentication event feedback value.
|
void |
setFeedbackValue(java.lang.String feedbackValue)
The authentication event feedback value.
|
void |
setUsername(java.lang.String username)
The user pool username.
|
void |
setUserPoolId(java.lang.String userPoolId)
The user pool ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateAuthEventFeedbackRequest |
withEventId(java.lang.String eventId)
The event ID.
|
UpdateAuthEventFeedbackRequest |
withFeedbackToken(java.lang.String feedbackToken)
The feedback token.
|
UpdateAuthEventFeedbackRequest |
withFeedbackValue(FeedbackValueType feedbackValue)
The authentication event feedback value.
|
UpdateAuthEventFeedbackRequest |
withFeedbackValue(java.lang.String feedbackValue)
The authentication event feedback value.
|
UpdateAuthEventFeedbackRequest |
withUsername(java.lang.String username)
The user pool username.
|
UpdateAuthEventFeedbackRequest |
withUserPoolId(java.lang.String userPoolId)
The user pool ID.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getUserPoolId()
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID.
public void setUserPoolId(java.lang.String userPoolId)
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID.
public UpdateAuthEventFeedbackRequest withUserPoolId(java.lang.String userPoolId)
The user pool ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID.
public java.lang.String getUsername()
The user pool username.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The user pool username.
public void setUsername(java.lang.String username)
The user pool username.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The user pool username.
public UpdateAuthEventFeedbackRequest withUsername(java.lang.String username)
The user pool username.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The user pool username.
public java.lang.String getEventId()
The event ID.
Constraints:
Length: 1 - 50
Pattern: [\w+-]+
The event ID.
public void setEventId(java.lang.String eventId)
The event ID.
Constraints:
Length: 1 - 50
Pattern: [\w+-]+
eventId - The event ID.
public UpdateAuthEventFeedbackRequest withEventId(java.lang.String eventId)
The event ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
Pattern: [\w+-]+
eventId - The event ID.
public java.lang.String getFeedbackToken()
The feedback token.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
The feedback token.
public void setFeedbackToken(java.lang.String feedbackToken)
The feedback token.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
feedbackToken - The feedback token.
public UpdateAuthEventFeedbackRequest withFeedbackToken(java.lang.String feedbackToken)
The feedback token.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
feedbackToken - The feedback token.
public java.lang.String getFeedbackValue()
The authentication event feedback value. When you provide a
FeedbackValue value of valid, you tell Amazon
Cognito that you trust a user session where Amazon Cognito has evaluated
some level of risk. When you provide a FeedbackValue value
of invalid, you tell Amazon Cognito that you don't trust a
user session, or you don't believe that Amazon Cognito evaluated a
high-enough risk level.
Constraints:
Allowed Values: Valid, Invalid
The authentication event feedback value. When you provide a
FeedbackValue value of valid, you tell
Amazon Cognito that you trust a user session where Amazon Cognito
has evaluated some level of risk. When you provide a
FeedbackValue value of invalid, you
tell Amazon Cognito that you don't trust a user session, or you
don't believe that Amazon Cognito evaluated a high-enough risk
level.
FeedbackValueTypepublic void setFeedbackValue(java.lang.String feedbackValue)
The authentication event feedback value. When you provide a
FeedbackValue value of valid, you tell Amazon
Cognito that you trust a user session where Amazon Cognito has evaluated
some level of risk. When you provide a FeedbackValue value
of invalid, you tell Amazon Cognito that you don't trust a
user session, or you don't believe that Amazon Cognito evaluated a
high-enough risk level.
Constraints:
Allowed Values: Valid, Invalid
feedbackValue -
The authentication event feedback value. When you provide a
FeedbackValue value of valid, you
tell Amazon Cognito that you trust a user session where Amazon
Cognito has evaluated some level of risk. When you provide a
FeedbackValue value of invalid, you
tell Amazon Cognito that you don't trust a user session, or
you don't believe that Amazon Cognito evaluated a high-enough
risk level.
FeedbackValueTypepublic UpdateAuthEventFeedbackRequest withFeedbackValue(java.lang.String feedbackValue)
The authentication event feedback value. When you provide a
FeedbackValue value of valid, you tell Amazon
Cognito that you trust a user session where Amazon Cognito has evaluated
some level of risk. When you provide a FeedbackValue value
of invalid, you tell Amazon Cognito that you don't trust a
user session, or you don't believe that Amazon Cognito evaluated a
high-enough risk level.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Valid, Invalid
feedbackValue -
The authentication event feedback value. When you provide a
FeedbackValue value of valid, you
tell Amazon Cognito that you trust a user session where Amazon
Cognito has evaluated some level of risk. When you provide a
FeedbackValue value of invalid, you
tell Amazon Cognito that you don't trust a user session, or
you don't believe that Amazon Cognito evaluated a high-enough
risk level.
FeedbackValueTypepublic void setFeedbackValue(FeedbackValueType feedbackValue)
The authentication event feedback value. When you provide a
FeedbackValue value of valid, you tell Amazon
Cognito that you trust a user session where Amazon Cognito has evaluated
some level of risk. When you provide a FeedbackValue value
of invalid, you tell Amazon Cognito that you don't trust a
user session, or you don't believe that Amazon Cognito evaluated a
high-enough risk level.
Constraints:
Allowed Values: Valid, Invalid
feedbackValue -
The authentication event feedback value. When you provide a
FeedbackValue value of valid, you
tell Amazon Cognito that you trust a user session where Amazon
Cognito has evaluated some level of risk. When you provide a
FeedbackValue value of invalid, you
tell Amazon Cognito that you don't trust a user session, or
you don't believe that Amazon Cognito evaluated a high-enough
risk level.
FeedbackValueTypepublic UpdateAuthEventFeedbackRequest withFeedbackValue(FeedbackValueType feedbackValue)
The authentication event feedback value. When you provide a
FeedbackValue value of valid, you tell Amazon
Cognito that you trust a user session where Amazon Cognito has evaluated
some level of risk. When you provide a FeedbackValue value
of invalid, you tell Amazon Cognito that you don't trust a
user session, or you don't believe that Amazon Cognito evaluated a
high-enough risk level.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Valid, Invalid
feedbackValue -
The authentication event feedback value. When you provide a
FeedbackValue value of valid, you
tell Amazon Cognito that you trust a user session where Amazon
Cognito has evaluated some level of risk. When you provide a
FeedbackValue value of invalid, you
tell Amazon Cognito that you don't trust a user session, or
you don't believe that Amazon Cognito evaluated a high-enough
risk level.
FeedbackValueTypepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object