Class AccountTakeoverActionType
- java.lang.Object
-
- software.amazon.awssdk.services.cognitoidentityprovider.model.AccountTakeoverActionType
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AccountTakeoverActionType.Builder,AccountTakeoverActionType>
@Generated("software.amazon.awssdk:codegen") public final class AccountTakeoverActionType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AccountTakeoverActionType.Builder,AccountTakeoverActionType>
Account takeover action type.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAccountTakeoverActionType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountTakeoverActionType.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)AccountTakeoverEventActionTypeeventAction()The action to take in response to the account takeover action.StringeventActionAsString()The action to take in response to the account takeover action.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()BooleansendNotification()Flag specifying whether to send a notification.static Class<? extends AccountTakeoverActionType.Builder>serializableBuilderClass()AccountTakeoverActionType.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
eventAction
public final AccountTakeoverEventActionType eventAction()
The action to take in response to the account takeover action. Valid values are as follows:
-
BLOCKChoosing this action will block the request. -
MFA_IF_CONFIGUREDPresent an MFA challenge if user has configured it, else allow the request. -
MFA_REQUIREDPresent an MFA challenge if user has configured it, else block the request. -
NO_ACTIONAllow the user to sign in.
If the service returns an enum value that is not available in the current SDK version,
eventActionwill returnAccountTakeoverEventActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventActionAsString().- Returns:
- The action to take in response to the account takeover action. Valid values are as follows:
-
BLOCKChoosing this action will block the request. -
MFA_IF_CONFIGUREDPresent an MFA challenge if user has configured it, else allow the request. -
MFA_REQUIREDPresent an MFA challenge if user has configured it, else block the request. -
NO_ACTIONAllow the user to sign in.
-
- See Also:
AccountTakeoverEventActionType
-
-
eventActionAsString
public final String eventActionAsString()
The action to take in response to the account takeover action. Valid values are as follows:
-
BLOCKChoosing this action will block the request. -
MFA_IF_CONFIGUREDPresent an MFA challenge if user has configured it, else allow the request. -
MFA_REQUIREDPresent an MFA challenge if user has configured it, else block the request. -
NO_ACTIONAllow the user to sign in.
If the service returns an enum value that is not available in the current SDK version,
eventActionwill returnAccountTakeoverEventActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventActionAsString().- Returns:
- The action to take in response to the account takeover action. Valid values are as follows:
-
BLOCKChoosing this action will block the request. -
MFA_IF_CONFIGUREDPresent an MFA challenge if user has configured it, else allow the request. -
MFA_REQUIREDPresent an MFA challenge if user has configured it, else block the request. -
NO_ACTIONAllow the user to sign in.
-
- See Also:
AccountTakeoverEventActionType
-
-
sendNotification
public final Boolean sendNotification()
Flag specifying whether to send a notification.
- Returns:
- Flag specifying whether to send a notification.
-
toBuilder
public AccountTakeoverActionType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AccountTakeoverActionType.Builder,AccountTakeoverActionType>
-
builder
public static AccountTakeoverActionType.Builder builder()
-
serializableBuilderClass
public static Class<? extends AccountTakeoverActionType.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-