java.lang.Object
software.amazon.awssdk.services.cognitoidentityprovider.model.EventRiskType
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<EventRiskType.Builder,EventRiskType>

@Generated("software.amazon.awssdk:codegen") public final class EventRiskType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EventRiskType.Builder,EventRiskType>

The risk evaluation by adaptive authentication, as displayed in an AdminListUserAuthEvents response. Contains evaluations of compromised-credentials detection and assessed risk level and action taken by adaptive authentication.

See Also:
  • Method Details

    • riskDecision

      public final RiskDecisionType riskDecision()

      The action taken by adaptive authentication. If NoRisk, your user pool took no action. If AccountTakeover, your user pool applied the adaptive authentication automated response that you configured. If Block, your user pool prevented the attempt.

      If the service returns an enum value that is not available in the current SDK version, riskDecision will return RiskDecisionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from riskDecisionAsString().

      Returns:
      The action taken by adaptive authentication. If NoRisk, your user pool took no action. If AccountTakeover, your user pool applied the adaptive authentication automated response that you configured. If Block, your user pool prevented the attempt.
      See Also:
    • riskDecisionAsString

      public final String riskDecisionAsString()

      The action taken by adaptive authentication. If NoRisk, your user pool took no action. If AccountTakeover, your user pool applied the adaptive authentication automated response that you configured. If Block, your user pool prevented the attempt.

      If the service returns an enum value that is not available in the current SDK version, riskDecision will return RiskDecisionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from riskDecisionAsString().

      Returns:
      The action taken by adaptive authentication. If NoRisk, your user pool took no action. If AccountTakeover, your user pool applied the adaptive authentication automated response that you configured. If Block, your user pool prevented the attempt.
      See Also:
    • riskLevel

      public final RiskLevelType riskLevel()

      The risk level that adaptive authentication assessed for the authentication event.

      If the service returns an enum value that is not available in the current SDK version, riskLevel will return RiskLevelType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from riskLevelAsString().

      Returns:
      The risk level that adaptive authentication assessed for the authentication event.
      See Also:
    • riskLevelAsString

      public final String riskLevelAsString()

      The risk level that adaptive authentication assessed for the authentication event.

      If the service returns an enum value that is not available in the current SDK version, riskLevel will return RiskLevelType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from riskLevelAsString().

      Returns:
      The risk level that adaptive authentication assessed for the authentication event.
      See Also:
    • compromisedCredentialsDetected

      public final Boolean compromisedCredentialsDetected()

      Indicates whether compromised credentials were detected during an authentication event.

      Returns:
      Indicates whether compromised credentials were detected during an authentication event.
    • toBuilder

      public EventRiskType.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<EventRiskType.Builder,EventRiskType>
    • builder

      public static EventRiskType.Builder builder()
    • serializableBuilderClass

      public static Class<? extends EventRiskType.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo