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

/**
 * The template that returns individual ASP (Access Code) data.
 *
 * <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 Admin Directory 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 Asp extends com.google.api.client.json.GenericJson {

  /**
   * The unique ID of the ASP.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer codeId;

  /**
   * The time when the ASP was created. Expressed in Unix time format.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long creationTime;

  /**
   * ETag of the ASP.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String etag;

  /**
   * The type of the API resource. This is always admin#directory#asp.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String kind;

  /**
   * The time when the ASP was last used. Expressed in Unix time format.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long lastTimeUsed;

  /**
   * The name of the application that the user, represented by their userId, entered when the ASP
   * was created.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * The unique ID of the user who issued the ASP.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String userKey;

  /**
   * The unique ID of the ASP.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getCodeId() {
    return codeId;
  }

  /**
   * The unique ID of the ASP.
   * @param codeId codeId or {@code null} for none
   */
  public Asp setCodeId(java.lang.Integer codeId) {
    this.codeId = codeId;
    return this;
  }

  /**
   * The time when the ASP was created. Expressed in Unix time format.
   * @return value or {@code null} for none
   */
  public java.lang.Long getCreationTime() {
    return creationTime;
  }

  /**
   * The time when the ASP was created. Expressed in Unix time format.
   * @param creationTime creationTime or {@code null} for none
   */
  public Asp setCreationTime(java.lang.Long creationTime) {
    this.creationTime = creationTime;
    return this;
  }

  /**
   * ETag of the ASP.
   * @return value or {@code null} for none
   */
  public java.lang.String getEtag() {
    return etag;
  }

  /**
   * ETag of the ASP.
   * @param etag etag or {@code null} for none
   */
  public Asp setEtag(java.lang.String etag) {
    this.etag = etag;
    return this;
  }

  /**
   * The type of the API resource. This is always admin#directory#asp.
   * @return value or {@code null} for none
   */
  public java.lang.String getKind() {
    return kind;
  }

  /**
   * The type of the API resource. This is always admin#directory#asp.
   * @param kind kind or {@code null} for none
   */
  public Asp setKind(java.lang.String kind) {
    this.kind = kind;
    return this;
  }

  /**
   * The time when the ASP was last used. Expressed in Unix time format.
   * @return value or {@code null} for none
   */
  public java.lang.Long getLastTimeUsed() {
    return lastTimeUsed;
  }

  /**
   * The time when the ASP was last used. Expressed in Unix time format.
   * @param lastTimeUsed lastTimeUsed or {@code null} for none
   */
  public Asp setLastTimeUsed(java.lang.Long lastTimeUsed) {
    this.lastTimeUsed = lastTimeUsed;
    return this;
  }

  /**
   * The name of the application that the user, represented by their userId, entered when the ASP
   * was created.
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * The name of the application that the user, represented by their userId, entered when the ASP
   * was created.
   * @param name name or {@code null} for none
   */
  public Asp setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * The unique ID of the user who issued the ASP.
   * @return value or {@code null} for none
   */
  public java.lang.String getUserKey() {
    return userKey;
  }

  /**
   * The unique ID of the user who issued the ASP.
   * @param userKey userKey or {@code null} for none
   */
  public Asp setUserKey(java.lang.String userKey) {
    this.userKey = userKey;
    return this;
  }

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

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

}
