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

/**
 * Request for UpdateAppGroupAppKey
 *
 * <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 Apigee 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 GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest extends com.google.api.client.json.GenericJson {

  /**
   * Approve or revoke the consumer key by setting this value to `approve` or `revoke` respectively.
   * The `Content-Type` header, if set, must be set to `application/octet-stream`, with empty body.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String action;

  /**
   * The list of API products that will be associated with the credential. This list will be
   * appended to the existing list of associated API Products for this App Key. Duplicates will be
   * ignored.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> apiProducts;

  /**
   * The new AppGroupKey to be amended. Note that the status can be updated only via action.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudApigeeV1AppGroupAppKey appGroupAppKey;

  /**
   * Approve or revoke the consumer key by setting this value to `approve` or `revoke` respectively.
   * The `Content-Type` header, if set, must be set to `application/octet-stream`, with empty body.
   * @return value or {@code null} for none
   */
  public java.lang.String getAction() {
    return action;
  }

  /**
   * Approve or revoke the consumer key by setting this value to `approve` or `revoke` respectively.
   * The `Content-Type` header, if set, must be set to `application/octet-stream`, with empty body.
   * @param action action or {@code null} for none
   */
  public GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest setAction(java.lang.String action) {
    this.action = action;
    return this;
  }

  /**
   * The list of API products that will be associated with the credential. This list will be
   * appended to the existing list of associated API Products for this App Key. Duplicates will be
   * ignored.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getApiProducts() {
    return apiProducts;
  }

  /**
   * The list of API products that will be associated with the credential. This list will be
   * appended to the existing list of associated API Products for this App Key. Duplicates will be
   * ignored.
   * @param apiProducts apiProducts or {@code null} for none
   */
  public GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest setApiProducts(java.util.List<java.lang.String> apiProducts) {
    this.apiProducts = apiProducts;
    return this;
  }

  /**
   * The new AppGroupKey to be amended. Note that the status can be updated only via action.
   * @return value or {@code null} for none
   */
  public GoogleCloudApigeeV1AppGroupAppKey getAppGroupAppKey() {
    return appGroupAppKey;
  }

  /**
   * The new AppGroupKey to be amended. Note that the status can be updated only via action.
   * @param appGroupAppKey appGroupAppKey or {@code null} for none
   */
  public GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest setAppGroupAppKey(GoogleCloudApigeeV1AppGroupAppKey appGroupAppKey) {
    this.appGroupAppKey = appGroupAppKey;
    return this;
  }

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

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

}
