Class MFAOptionType

java.lang.Object
com.amazonaws.services.cognitoidp.model.MFAOptionType
All Implemented Interfaces:
Serializable, Cloneable

public class MFAOptionType extends Object implements Serializable, Cloneable

Specifies the different settings for multi-factor authentication (MFA).

See Also:
  • Constructor Details

    • MFAOptionType

      public MFAOptionType()
  • Method Details

    • setDeliveryMedium

      public void setDeliveryMedium(String deliveryMedium)

      The delivery medium (email message or SMS message) to send the MFA code.

      Parameters:
      deliveryMedium - The delivery medium (email message or SMS message) to send the MFA code.
      See Also:
    • getDeliveryMedium

      public String getDeliveryMedium()

      The delivery medium (email message or SMS message) to send the MFA code.

      Returns:
      The delivery medium (email message or SMS message) to send the MFA code.
      See Also:
    • withDeliveryMedium

      public MFAOptionType withDeliveryMedium(String deliveryMedium)

      The delivery medium (email message or SMS message) to send the MFA code.

      Parameters:
      deliveryMedium - The delivery medium (email message or SMS message) to send the MFA code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setDeliveryMedium

      public void setDeliveryMedium(DeliveryMediumType deliveryMedium)

      The delivery medium (email message or SMS message) to send the MFA code.

      Parameters:
      deliveryMedium - The delivery medium (email message or SMS message) to send the MFA code.
      See Also:
    • withDeliveryMedium

      public MFAOptionType withDeliveryMedium(DeliveryMediumType deliveryMedium)

      The delivery medium (email message or SMS message) to send the MFA code.

      Parameters:
      deliveryMedium - The delivery medium (email message or SMS message) to send the MFA code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setAttributeName

      public void setAttributeName(String attributeName)

      The attribute name of the MFA option type.

      Parameters:
      attributeName - The attribute name of the MFA option type.
    • getAttributeName

      public String getAttributeName()

      The attribute name of the MFA option type.

      Returns:
      The attribute name of the MFA option type.
    • withAttributeName

      public MFAOptionType withAttributeName(String attributeName)

      The attribute name of the MFA option type.

      Parameters:
      attributeName - The attribute name of the MFA option type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public MFAOptionType clone()
      Overrides:
      clone in class Object