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

/**
 * AutopilotCompatibilityIssue contains information about a specific compatibility issue with
 * Autopilot mode.
 *
 * <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 Kubernetes Engine 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 AutopilotCompatibilityIssue extends com.google.api.client.json.GenericJson {

  /**
   * The constraint type of the issue.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String constraintType;

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

  /**
   * A URL to a public documnetation, which addresses resolving this issue.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String documentationUrl;

  /**
   * The incompatibility type of this issue.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String incompatibilityType;

  /**
   * The last time when this issue was observed.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String lastObservation;

  /**
   * The name of the resources which are subject to this issue.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> subjects;

  /**
   * The constraint type of the issue.
   * @return value or {@code null} for none
   */
  public java.lang.String getConstraintType() {
    return constraintType;
  }

  /**
   * The constraint type of the issue.
   * @param constraintType constraintType or {@code null} for none
   */
  public AutopilotCompatibilityIssue setConstraintType(java.lang.String constraintType) {
    this.constraintType = constraintType;
    return this;
  }

  /**
   * The description of the issue.
   * @return value or {@code null} for none
   */
  public java.lang.String getDescription() {
    return description;
  }

  /**
   * The description of the issue.
   * @param description description or {@code null} for none
   */
  public AutopilotCompatibilityIssue setDescription(java.lang.String description) {
    this.description = description;
    return this;
  }

  /**
   * A URL to a public documnetation, which addresses resolving this issue.
   * @return value or {@code null} for none
   */
  public java.lang.String getDocumentationUrl() {
    return documentationUrl;
  }

  /**
   * A URL to a public documnetation, which addresses resolving this issue.
   * @param documentationUrl documentationUrl or {@code null} for none
   */
  public AutopilotCompatibilityIssue setDocumentationUrl(java.lang.String documentationUrl) {
    this.documentationUrl = documentationUrl;
    return this;
  }

  /**
   * The incompatibility type of this issue.
   * @return value or {@code null} for none
   */
  public java.lang.String getIncompatibilityType() {
    return incompatibilityType;
  }

  /**
   * The incompatibility type of this issue.
   * @param incompatibilityType incompatibilityType or {@code null} for none
   */
  public AutopilotCompatibilityIssue setIncompatibilityType(java.lang.String incompatibilityType) {
    this.incompatibilityType = incompatibilityType;
    return this;
  }

  /**
   * The last time when this issue was observed.
   * @return value or {@code null} for none
   */
  public String getLastObservation() {
    return lastObservation;
  }

  /**
   * The last time when this issue was observed.
   * @param lastObservation lastObservation or {@code null} for none
   */
  public AutopilotCompatibilityIssue setLastObservation(String lastObservation) {
    this.lastObservation = lastObservation;
    return this;
  }

  /**
   * The name of the resources which are subject to this issue.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getSubjects() {
    return subjects;
  }

  /**
   * The name of the resources which are subject to this issue.
   * @param subjects subjects or {@code null} for none
   */
  public AutopilotCompatibilityIssue setSubjects(java.util.List<java.lang.String> subjects) {
    this.subjects = subjects;
    return this;
  }

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

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

}
