/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * 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.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.identitytoolkit.v2.model;

/**
 * Finalizes sign-in by verifying MFA challenge.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Identity Toolkit API. For a detailed explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest extends com.google.api.client.json.GenericJson {

  /**
   * The MFA enrollment ID from the user's list of current MFA enrollments.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String mfaEnrollmentId;

  /**
   * Required. Pending credential from first factor sign-in.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String mfaPendingCredential;

  /**
   * Proof of completion of the SMS based MFA challenge.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo phoneVerificationInfo;

  /**
   * The ID of the Identity Platform tenant the user is signing in to. If not set, the user will
   * sign in to the default Identity Platform project.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String tenantId;

  /**
   * Proof of completion of the TOTP based MFA challenge.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo totpVerificationInfo;

  /**
   * The MFA enrollment ID from the user's list of current MFA enrollments.
   * @return value or {@code null} for none
   */
  public java.lang.String getMfaEnrollmentId() {
    return mfaEnrollmentId;
  }

  /**
   * The MFA enrollment ID from the user's list of current MFA enrollments.
   * @param mfaEnrollmentId mfaEnrollmentId or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest setMfaEnrollmentId(java.lang.String mfaEnrollmentId) {
    this.mfaEnrollmentId = mfaEnrollmentId;
    return this;
  }

  /**
   * Required. Pending credential from first factor sign-in.
   * @return value or {@code null} for none
   */
  public java.lang.String getMfaPendingCredential() {
    return mfaPendingCredential;
  }

  /**
   * Required. Pending credential from first factor sign-in.
   * @param mfaPendingCredential mfaPendingCredential or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest setMfaPendingCredential(java.lang.String mfaPendingCredential) {
    this.mfaPendingCredential = mfaPendingCredential;
    return this;
  }

  /**
   * Proof of completion of the SMS based MFA challenge.
   * @return value or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo getPhoneVerificationInfo() {
    return phoneVerificationInfo;
  }

  /**
   * Proof of completion of the SMS based MFA challenge.
   * @param phoneVerificationInfo phoneVerificationInfo or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest setPhoneVerificationInfo(GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo phoneVerificationInfo) {
    this.phoneVerificationInfo = phoneVerificationInfo;
    return this;
  }

  /**
   * The ID of the Identity Platform tenant the user is signing in to. If not set, the user will
   * sign in to the default Identity Platform project.
   * @return value or {@code null} for none
   */
  public java.lang.String getTenantId() {
    return tenantId;
  }

  /**
   * The ID of the Identity Platform tenant the user is signing in to. If not set, the user will
   * sign in to the default Identity Platform project.
   * @param tenantId tenantId or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest setTenantId(java.lang.String tenantId) {
    this.tenantId = tenantId;
    return this;
  }

  /**
   * Proof of completion of the TOTP based MFA challenge.
   * @return value or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo getTotpVerificationInfo() {
    return totpVerificationInfo;
  }

  /**
   * Proof of completion of the TOTP based MFA challenge.
   * @param totpVerificationInfo totpVerificationInfo or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest setTotpVerificationInfo(GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo totpVerificationInfo) {
    this.totpVerificationInfo = totpVerificationInfo;
    return this;
  }

  @Override
  public GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest set(String fieldName, Object value) {
    return (GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest clone() {
    return (GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest) super.clone();
  }

}
