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

/**
 * Details of an app installation request.
 *
 * <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 Chrome 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 GoogleChromeManagementV1ChromeAppRequest extends com.google.api.client.json.GenericJson {

  /**
   * Output only. Format: app_details=customers/{customer_id}/apps/chrome/{app_id}
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String appDetails;

  /**
   * Output only. Unique store identifier for the app. Example: "gmbmikajjgmnabiglmofipeabaddhgne"
   * for the Save to Google Drive Chrome extension.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String appId;

  /**
   * Output only. The uri for the detail page of the item.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String detailUri;

  /**
   * Output only. App's display name.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String displayName;

  /**
   * Output only. A link to an image that can be used as an icon for the product.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String iconUri;

  /**
   * Output only. The timestamp of the most recently made request for this app.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String latestRequestTime;

  /**
   * Output only. Total count of requests for this app.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long requestCount;

  /**
   * Output only. Format: app_details=customers/{customer_id}/apps/chrome/{app_id}
   * @return value or {@code null} for none
   */
  public java.lang.String getAppDetails() {
    return appDetails;
  }

  /**
   * Output only. Format: app_details=customers/{customer_id}/apps/chrome/{app_id}
   * @param appDetails appDetails or {@code null} for none
   */
  public GoogleChromeManagementV1ChromeAppRequest setAppDetails(java.lang.String appDetails) {
    this.appDetails = appDetails;
    return this;
  }

  /**
   * Output only. Unique store identifier for the app. Example: "gmbmikajjgmnabiglmofipeabaddhgne"
   * for the Save to Google Drive Chrome extension.
   * @return value or {@code null} for none
   */
  public java.lang.String getAppId() {
    return appId;
  }

  /**
   * Output only. Unique store identifier for the app. Example: "gmbmikajjgmnabiglmofipeabaddhgne"
   * for the Save to Google Drive Chrome extension.
   * @param appId appId or {@code null} for none
   */
  public GoogleChromeManagementV1ChromeAppRequest setAppId(java.lang.String appId) {
    this.appId = appId;
    return this;
  }

  /**
   * Output only. The uri for the detail page of the item.
   * @return value or {@code null} for none
   */
  public java.lang.String getDetailUri() {
    return detailUri;
  }

  /**
   * Output only. The uri for the detail page of the item.
   * @param detailUri detailUri or {@code null} for none
   */
  public GoogleChromeManagementV1ChromeAppRequest setDetailUri(java.lang.String detailUri) {
    this.detailUri = detailUri;
    return this;
  }

  /**
   * Output only. App's display name.
   * @return value or {@code null} for none
   */
  public java.lang.String getDisplayName() {
    return displayName;
  }

  /**
   * Output only. App's display name.
   * @param displayName displayName or {@code null} for none
   */
  public GoogleChromeManagementV1ChromeAppRequest setDisplayName(java.lang.String displayName) {
    this.displayName = displayName;
    return this;
  }

  /**
   * Output only. A link to an image that can be used as an icon for the product.
   * @return value or {@code null} for none
   */
  public java.lang.String getIconUri() {
    return iconUri;
  }

  /**
   * Output only. A link to an image that can be used as an icon for the product.
   * @param iconUri iconUri or {@code null} for none
   */
  public GoogleChromeManagementV1ChromeAppRequest setIconUri(java.lang.String iconUri) {
    this.iconUri = iconUri;
    return this;
  }

  /**
   * Output only. The timestamp of the most recently made request for this app.
   * @return value or {@code null} for none
   */
  public String getLatestRequestTime() {
    return latestRequestTime;
  }

  /**
   * Output only. The timestamp of the most recently made request for this app.
   * @param latestRequestTime latestRequestTime or {@code null} for none
   */
  public GoogleChromeManagementV1ChromeAppRequest setLatestRequestTime(String latestRequestTime) {
    this.latestRequestTime = latestRequestTime;
    return this;
  }

  /**
   * Output only. Total count of requests for this app.
   * @return value or {@code null} for none
   */
  public java.lang.Long getRequestCount() {
    return requestCount;
  }

  /**
   * Output only. Total count of requests for this app.
   * @param requestCount requestCount or {@code null} for none
   */
  public GoogleChromeManagementV1ChromeAppRequest setRequestCount(java.lang.Long requestCount) {
    this.requestCount = requestCount;
    return this;
  }

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

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

}
