All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.cognitoidp.model.SetUserPoolMfaConfigResult Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.cognitoidp.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see AWS
 *      API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class SetUserPoolMfaConfigResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* The SMS text message MFA configuration. *

*/ private SmsMfaConfigType smsMfaConfiguration; /** *

* The software token MFA configuration. *

*/ private SoftwareTokenMfaConfigType softwareTokenMfaConfiguration; /** *

* The MFA configuration. Valid values include: *

*
    *
  • *

    * OFF MFA won't be used for any users. *

    *
  • *
  • *

    * ON MFA is required for all users to sign in. *

    *
  • *
  • *

    * OPTIONAL MFA will be required only for individual users who have an MFA factor enabled. *

    *
  • *
*/ private String mfaConfiguration; /** *

* The SMS text message MFA configuration. *

* * @param smsMfaConfiguration * The SMS text message MFA configuration. */ public void setSmsMfaConfiguration(SmsMfaConfigType smsMfaConfiguration) { this.smsMfaConfiguration = smsMfaConfiguration; } /** *

* The SMS text message MFA configuration. *

* * @return The SMS text message MFA configuration. */ public SmsMfaConfigType getSmsMfaConfiguration() { return this.smsMfaConfiguration; } /** *

* The SMS text message MFA configuration. *

* * @param smsMfaConfiguration * The SMS text message MFA configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public SetUserPoolMfaConfigResult withSmsMfaConfiguration(SmsMfaConfigType smsMfaConfiguration) { setSmsMfaConfiguration(smsMfaConfiguration); return this; } /** *

* The software token MFA configuration. *

* * @param softwareTokenMfaConfiguration * The software token MFA configuration. */ public void setSoftwareTokenMfaConfiguration(SoftwareTokenMfaConfigType softwareTokenMfaConfiguration) { this.softwareTokenMfaConfiguration = softwareTokenMfaConfiguration; } /** *

* The software token MFA configuration. *

* * @return The software token MFA configuration. */ public SoftwareTokenMfaConfigType getSoftwareTokenMfaConfiguration() { return this.softwareTokenMfaConfiguration; } /** *

* The software token MFA configuration. *

* * @param softwareTokenMfaConfiguration * The software token MFA configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public SetUserPoolMfaConfigResult withSoftwareTokenMfaConfiguration(SoftwareTokenMfaConfigType softwareTokenMfaConfiguration) { setSoftwareTokenMfaConfiguration(softwareTokenMfaConfiguration); return this; } /** *

* The MFA configuration. Valid values include: *

*
    *
  • *

    * OFF MFA won't be used for any users. *

    *
  • *
  • *

    * ON MFA is required for all users to sign in. *

    *
  • *
  • *

    * OPTIONAL MFA will be required only for individual users who have an MFA factor enabled. *

    *
  • *
* * @param mfaConfiguration * The MFA configuration. Valid values include:

*
    *
  • *

    * OFF MFA won't be used for any users. *

    *
  • *
  • *

    * ON MFA is required for all users to sign in. *

    *
  • *
  • *

    * OPTIONAL MFA will be required only for individual users who have an MFA factor enabled. *

    *
  • * @see UserPoolMfaType */ public void setMfaConfiguration(String mfaConfiguration) { this.mfaConfiguration = mfaConfiguration; } /** *

    * The MFA configuration. Valid values include: *

    *
      *
    • *

      * OFF MFA won't be used for any users. *

      *
    • *
    • *

      * ON MFA is required for all users to sign in. *

      *
    • *
    • *

      * OPTIONAL MFA will be required only for individual users who have an MFA factor enabled. *

      *
    • *
    * * @return The MFA configuration. Valid values include:

    *
      *
    • *

      * OFF MFA won't be used for any users. *

      *
    • *
    • *

      * ON MFA is required for all users to sign in. *

      *
    • *
    • *

      * OPTIONAL MFA will be required only for individual users who have an MFA factor enabled. *

      *
    • * @see UserPoolMfaType */ public String getMfaConfiguration() { return this.mfaConfiguration; } /** *

      * The MFA configuration. Valid values include: *

      *
        *
      • *

        * OFF MFA won't be used for any users. *

        *
      • *
      • *

        * ON MFA is required for all users to sign in. *

        *
      • *
      • *

        * OPTIONAL MFA will be required only for individual users who have an MFA factor enabled. *

        *
      • *
      * * @param mfaConfiguration * The MFA configuration. Valid values include:

      *
        *
      • *

        * OFF MFA won't be used for any users. *

        *
      • *
      • *

        * ON MFA is required for all users to sign in. *

        *
      • *
      • *

        * OPTIONAL MFA will be required only for individual users who have an MFA factor enabled. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see UserPoolMfaType */ public SetUserPoolMfaConfigResult withMfaConfiguration(String mfaConfiguration) { setMfaConfiguration(mfaConfiguration); return this; } /** *

        * The MFA configuration. Valid values include: *

        *
          *
        • *

          * OFF MFA won't be used for any users. *

          *
        • *
        • *

          * ON MFA is required for all users to sign in. *

          *
        • *
        • *

          * OPTIONAL MFA will be required only for individual users who have an MFA factor enabled. *

          *
        • *
        * * @param mfaConfiguration * The MFA configuration. Valid values include:

        *
          *
        • *

          * OFF MFA won't be used for any users. *

          *
        • *
        • *

          * ON MFA is required for all users to sign in. *

          *
        • *
        • *

          * OPTIONAL MFA will be required only for individual users who have an MFA factor enabled. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see UserPoolMfaType */ public SetUserPoolMfaConfigResult withMfaConfiguration(UserPoolMfaType mfaConfiguration) { this.mfaConfiguration = mfaConfiguration.toString(); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSmsMfaConfiguration() != null) sb.append("SmsMfaConfiguration: ").append(getSmsMfaConfiguration()).append(","); if (getSoftwareTokenMfaConfiguration() != null) sb.append("SoftwareTokenMfaConfiguration: ").append(getSoftwareTokenMfaConfiguration()).append(","); if (getMfaConfiguration() != null) sb.append("MfaConfiguration: ").append(getMfaConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SetUserPoolMfaConfigResult == false) return false; SetUserPoolMfaConfigResult other = (SetUserPoolMfaConfigResult) obj; if (other.getSmsMfaConfiguration() == null ^ this.getSmsMfaConfiguration() == null) return false; if (other.getSmsMfaConfiguration() != null && other.getSmsMfaConfiguration().equals(this.getSmsMfaConfiguration()) == false) return false; if (other.getSoftwareTokenMfaConfiguration() == null ^ this.getSoftwareTokenMfaConfiguration() == null) return false; if (other.getSoftwareTokenMfaConfiguration() != null && other.getSoftwareTokenMfaConfiguration().equals(this.getSoftwareTokenMfaConfiguration()) == false) return false; if (other.getMfaConfiguration() == null ^ this.getMfaConfiguration() == null) return false; if (other.getMfaConfiguration() != null && other.getMfaConfiguration().equals(this.getMfaConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSmsMfaConfiguration() == null) ? 0 : getSmsMfaConfiguration().hashCode()); hashCode = prime * hashCode + ((getSoftwareTokenMfaConfiguration() == null) ? 0 : getSoftwareTokenMfaConfiguration().hashCode()); hashCode = prime * hashCode + ((getMfaConfiguration() == null) ? 0 : getMfaConfiguration().hashCode()); return hashCode; } @Override public SetUserPoolMfaConfigResult clone() { try { return (SetUserPoolMfaConfigResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy