Interface AuthEventType.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AuthEventType.Builder,,AuthEventType> SdkBuilder<AuthEventType.Builder,,AuthEventType> SdkPojo
- Enclosing class:
- AuthEventType
-
Method Summary
Modifier and TypeMethodDescriptionchallengeResponses(Collection<ChallengeResponseType> challengeResponses) A list of the challenges that the user was requested to answer, for examplePassword, and the result, for exampleSuccess.challengeResponses(Consumer<ChallengeResponseType.Builder>... challengeResponses) A list of the challenges that the user was requested to answer, for examplePassword, and the result, for exampleSuccess.challengeResponses(ChallengeResponseType... challengeResponses) A list of the challenges that the user was requested to answer, for examplePassword, and the result, for exampleSuccess.creationDate(Instant creationDate) The date and time when the item was created.default AuthEventType.BuildereventContextData(Consumer<EventContextDataType.Builder> eventContextData) The user context data captured at the time of an event request.eventContextData(EventContextDataType eventContextData) The user context data captured at the time of an event request.default AuthEventType.BuildereventFeedback(Consumer<EventFeedbackType.Builder> eventFeedback) TheUpdateAuthEventFeedbackorAdminUpdateAuthEventFeedbackfeedback that you or your user provided in response to the event.eventFeedback(EventFeedbackType eventFeedback) TheUpdateAuthEventFeedbackorAdminUpdateAuthEventFeedbackfeedback that you or your user provided in response to the event.The event ID.eventResponse(String eventResponse) The event response.eventResponse(EventResponseType eventResponse) The event response.default AuthEventType.BuildereventRisk(Consumer<EventRiskType.Builder> eventRisk) The threat evaluation from your user pool about an event.eventRisk(EventRiskType eventRisk) The threat evaluation from your user pool about an event.The type of authentication event.The type of authentication event.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
eventId
The event ID.
- Parameters:
eventId- The event ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventType
The type of authentication event.
-
eventType
The type of authentication event.
-
creationDate
The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java
Dateobject.- Parameters:
creationDate- The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a JavaDateobject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventResponse
The event response.
- Parameters:
eventResponse- The event response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventResponse
The event response.
- Parameters:
eventResponse- The event response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventRisk
The threat evaluation from your user pool about an event. Contains information about whether your user pool detected compromised credentials, whether the event triggered an automated response, and the level of risk.
- Parameters:
eventRisk- The threat evaluation from your user pool about an event. Contains information about whether your user pool detected compromised credentials, whether the event triggered an automated response, and the level of risk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventRisk
The threat evaluation from your user pool about an event. Contains information about whether your user pool detected compromised credentials, whether the event triggered an automated response, and the level of risk.
This is a convenience method that creates an instance of theEventRiskType.Builderavoiding the need to create one manually viaEventRiskType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventRisk(EventRiskType).- Parameters:
eventRisk- a consumer that will call methods onEventRiskType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
challengeResponses
A list of the challenges that the user was requested to answer, for example
Password, and the result, for exampleSuccess.- Parameters:
challengeResponses- A list of the challenges that the user was requested to answer, for examplePassword, and the result, for exampleSuccess.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
challengeResponses
A list of the challenges that the user was requested to answer, for example
Password, and the result, for exampleSuccess.- Parameters:
challengeResponses- A list of the challenges that the user was requested to answer, for examplePassword, and the result, for exampleSuccess.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
challengeResponses
AuthEventType.Builder challengeResponses(Consumer<ChallengeResponseType.Builder>... challengeResponses) A list of the challenges that the user was requested to answer, for example
This is a convenience method that creates an instance of thePassword, and the result, for exampleSuccess.ChallengeResponseType.Builderavoiding the need to create one manually viaChallengeResponseType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochallengeResponses(List<ChallengeResponseType>).- Parameters:
challengeResponses- a consumer that will call methods onChallengeResponseType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventContextData
The user context data captured at the time of an event request. This value provides additional information about the client from which event the request is received.
- Parameters:
eventContextData- The user context data captured at the time of an event request. This value provides additional information about the client from which event the request is received.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventContextData
default AuthEventType.Builder eventContextData(Consumer<EventContextDataType.Builder> eventContextData) The user context data captured at the time of an event request. This value provides additional information about the client from which event the request is received.
This is a convenience method that creates an instance of theEventContextDataType.Builderavoiding the need to create one manually viaEventContextDataType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventContextData(EventContextDataType).- Parameters:
eventContextData- a consumer that will call methods onEventContextDataType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventFeedback
The
UpdateAuthEventFeedbackorAdminUpdateAuthEventFeedbackfeedback that you or your user provided in response to the event. A value ofValidindicates that you disagreed with the level of risk that your user pool assigned, and evaluated a session to be valid, or likely safe. A value ofInvalidindicates that you agreed with the user pool risk level and evaluated a session to be invalid, or likely malicious.- Parameters:
eventFeedback- TheUpdateAuthEventFeedbackorAdminUpdateAuthEventFeedbackfeedback that you or your user provided in response to the event. A value ofValidindicates that you disagreed with the level of risk that your user pool assigned, and evaluated a session to be valid, or likely safe. A value ofInvalidindicates that you agreed with the user pool risk level and evaluated a session to be invalid, or likely malicious.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventFeedback
The
This is a convenience method that creates an instance of theUpdateAuthEventFeedbackorAdminUpdateAuthEventFeedbackfeedback that you or your user provided in response to the event. A value ofValidindicates that you disagreed with the level of risk that your user pool assigned, and evaluated a session to be valid, or likely safe. A value ofInvalidindicates that you agreed with the user pool risk level and evaluated a session to be invalid, or likely malicious.EventFeedbackType.Builderavoiding the need to create one manually viaEventFeedbackType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventFeedback(EventFeedbackType).- Parameters:
eventFeedback- a consumer that will call methods onEventFeedbackType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-