/*
 * 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.androidmanagement.v1.model;

/**
 * A resource containing sign in details for an enterprise.
 *
 * <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 Android Management 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 SigninDetail extends com.google.api.client.json.GenericJson {

  /**
   * A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device
   * with this enrollment token. To enroll a device using NFC, the NFC record must contain a
   * serialized java.util.Properties representation of the properties in the JSON. This is a read-
   * only field generated by the server.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String qrCode;

  /**
   * An enterprise wide enrollment token used to trigger custom sign-in flow. This is a read-only
   * field generated by the server.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String signinEnrollmentToken;

  /**
   * Sign-in URL for authentication when device is provisioned with a sign-in enrollment token. The
   * sign-in endpoint should finish authentication flow with a URL in the form of
   * https://enterprise.google.com/android/enroll?et= for a successful login, or
   * https://enterprise.google.com/android/enroll/invalid for a failed login.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String signinUrl;

  /**
   * A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device
   * with this enrollment token. To enroll a device using NFC, the NFC record must contain a
   * serialized java.util.Properties representation of the properties in the JSON. This is a read-
   * only field generated by the server.
   * @return value or {@code null} for none
   */
  public java.lang.String getQrCode() {
    return qrCode;
  }

  /**
   * A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device
   * with this enrollment token. To enroll a device using NFC, the NFC record must contain a
   * serialized java.util.Properties representation of the properties in the JSON. This is a read-
   * only field generated by the server.
   * @param qrCode qrCode or {@code null} for none
   */
  public SigninDetail setQrCode(java.lang.String qrCode) {
    this.qrCode = qrCode;
    return this;
  }

  /**
   * An enterprise wide enrollment token used to trigger custom sign-in flow. This is a read-only
   * field generated by the server.
   * @return value or {@code null} for none
   */
  public java.lang.String getSigninEnrollmentToken() {
    return signinEnrollmentToken;
  }

  /**
   * An enterprise wide enrollment token used to trigger custom sign-in flow. This is a read-only
   * field generated by the server.
   * @param signinEnrollmentToken signinEnrollmentToken or {@code null} for none
   */
  public SigninDetail setSigninEnrollmentToken(java.lang.String signinEnrollmentToken) {
    this.signinEnrollmentToken = signinEnrollmentToken;
    return this;
  }

  /**
   * Sign-in URL for authentication when device is provisioned with a sign-in enrollment token. The
   * sign-in endpoint should finish authentication flow with a URL in the form of
   * https://enterprise.google.com/android/enroll?et= for a successful login, or
   * https://enterprise.google.com/android/enroll/invalid for a failed login.
   * @return value or {@code null} for none
   */
  public java.lang.String getSigninUrl() {
    return signinUrl;
  }

  /**
   * Sign-in URL for authentication when device is provisioned with a sign-in enrollment token. The
   * sign-in endpoint should finish authentication flow with a URL in the form of
   * https://enterprise.google.com/android/enroll?et= for a successful login, or
   * https://enterprise.google.com/android/enroll/invalid for a failed login.
   * @param signinUrl signinUrl or {@code null} for none
   */
  public SigninDetail setSigninUrl(java.lang.String signinUrl) {
    this.signinUrl = signinUrl;
    return this;
  }

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

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

}
