/*
 * 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;

/**
 * NEXT ID: 7 Trace configuration override for a specific API proxy in an environment.
 *
 * <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 GoogleCloudApigeeV1RuntimeTraceConfigOverride extends com.google.api.client.json.GenericJson {

  /**
   * Name of the API proxy that will have its trace configuration overridden following format:
   * `organizations/{org}/apis/{api}`
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String apiProxy;

  /**
   * Name of the trace config override in the following format:
   * `organizations/{org}/environment/{env}/traceConfig/overrides/{override}`
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * The timestamp that the revision was created or updated.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String revisionCreateTime;

  /**
   * Revision number which can be used by the runtime to detect if the trace config override has
   * changed between two versions.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String revisionId;

  /**
   * Trace configuration override for a specific API proxy in an environment.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudApigeeV1RuntimeTraceSamplingConfig samplingConfig;

  /**
   * Unique ID for the configuration override. The ID will only change if the override is deleted
   * and recreated. Corresponds to name's "override" field.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String uid;

  /**
   * Name of the API proxy that will have its trace configuration overridden following format:
   * `organizations/{org}/apis/{api}`
   * @return value or {@code null} for none
   */
  public java.lang.String getApiProxy() {
    return apiProxy;
  }

  /**
   * Name of the API proxy that will have its trace configuration overridden following format:
   * `organizations/{org}/apis/{api}`
   * @param apiProxy apiProxy or {@code null} for none
   */
  public GoogleCloudApigeeV1RuntimeTraceConfigOverride setApiProxy(java.lang.String apiProxy) {
    this.apiProxy = apiProxy;
    return this;
  }

  /**
   * Name of the trace config override in the following format:
   * `organizations/{org}/environment/{env}/traceConfig/overrides/{override}`
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Name of the trace config override in the following format:
   * `organizations/{org}/environment/{env}/traceConfig/overrides/{override}`
   * @param name name or {@code null} for none
   */
  public GoogleCloudApigeeV1RuntimeTraceConfigOverride setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * The timestamp that the revision was created or updated.
   * @return value or {@code null} for none
   */
  public String getRevisionCreateTime() {
    return revisionCreateTime;
  }

  /**
   * The timestamp that the revision was created or updated.
   * @param revisionCreateTime revisionCreateTime or {@code null} for none
   */
  public GoogleCloudApigeeV1RuntimeTraceConfigOverride setRevisionCreateTime(String revisionCreateTime) {
    this.revisionCreateTime = revisionCreateTime;
    return this;
  }

  /**
   * Revision number which can be used by the runtime to detect if the trace config override has
   * changed between two versions.
   * @return value or {@code null} for none
   */
  public java.lang.String getRevisionId() {
    return revisionId;
  }

  /**
   * Revision number which can be used by the runtime to detect if the trace config override has
   * changed between two versions.
   * @param revisionId revisionId or {@code null} for none
   */
  public GoogleCloudApigeeV1RuntimeTraceConfigOverride setRevisionId(java.lang.String revisionId) {
    this.revisionId = revisionId;
    return this;
  }

  /**
   * Trace configuration override for a specific API proxy in an environment.
   * @return value or {@code null} for none
   */
  public GoogleCloudApigeeV1RuntimeTraceSamplingConfig getSamplingConfig() {
    return samplingConfig;
  }

  /**
   * Trace configuration override for a specific API proxy in an environment.
   * @param samplingConfig samplingConfig or {@code null} for none
   */
  public GoogleCloudApigeeV1RuntimeTraceConfigOverride setSamplingConfig(GoogleCloudApigeeV1RuntimeTraceSamplingConfig samplingConfig) {
    this.samplingConfig = samplingConfig;
    return this;
  }

  /**
   * Unique ID for the configuration override. The ID will only change if the override is deleted
   * and recreated. Corresponds to name's "override" field.
   * @return value or {@code null} for none
   */
  public java.lang.String getUid() {
    return uid;
  }

  /**
   * Unique ID for the configuration override. The ID will only change if the override is deleted
   * and recreated. Corresponds to name's "override" field.
   * @param uid uid or {@code null} for none
   */
  public GoogleCloudApigeeV1RuntimeTraceConfigOverride setUid(java.lang.String uid) {
    this.uid = uid;
    return this;
  }

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

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

}
