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

/**
 * UpgradeAvailableEvent is a notification sent to customers when a new available version is
 * released.
 *
 * <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 UpgradeAvailableEvent extends com.google.api.client.json.GenericJson {

  /**
   * The release channel of the version. If empty, it means a non-channel release.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private ReleaseChannel releaseChannel;

  /**
   * Optional relative path to the resource. For example, the relative path of the node pool.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String resource;

  /**
   * The resource type of the release version.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String resourceType;

  /**
   * The release version available for upgrade.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String version;

  /**
   * Windows node versions info.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private WindowsVersions windowsVersions;

  /**
   * The release channel of the version. If empty, it means a non-channel release.
   * @return value or {@code null} for none
   */
  public ReleaseChannel getReleaseChannel() {
    return releaseChannel;
  }

  /**
   * The release channel of the version. If empty, it means a non-channel release.
   * @param releaseChannel releaseChannel or {@code null} for none
   */
  public UpgradeAvailableEvent setReleaseChannel(ReleaseChannel releaseChannel) {
    this.releaseChannel = releaseChannel;
    return this;
  }

  /**
   * Optional relative path to the resource. For example, the relative path of the node pool.
   * @return value or {@code null} for none
   */
  public java.lang.String getResource() {
    return resource;
  }

  /**
   * Optional relative path to the resource. For example, the relative path of the node pool.
   * @param resource resource or {@code null} for none
   */
  public UpgradeAvailableEvent setResource(java.lang.String resource) {
    this.resource = resource;
    return this;
  }

  /**
   * The resource type of the release version.
   * @return value or {@code null} for none
   */
  public java.lang.String getResourceType() {
    return resourceType;
  }

  /**
   * The resource type of the release version.
   * @param resourceType resourceType or {@code null} for none
   */
  public UpgradeAvailableEvent setResourceType(java.lang.String resourceType) {
    this.resourceType = resourceType;
    return this;
  }

  /**
   * The release version available for upgrade.
   * @return value or {@code null} for none
   */
  public java.lang.String getVersion() {
    return version;
  }

  /**
   * The release version available for upgrade.
   * @param version version or {@code null} for none
   */
  public UpgradeAvailableEvent setVersion(java.lang.String version) {
    this.version = version;
    return this;
  }

  /**
   * Windows node versions info.
   * @return value or {@code null} for none
   */
  public WindowsVersions getWindowsVersions() {
    return windowsVersions;
  }

  /**
   * Windows node versions info.
   * @param windowsVersions windowsVersions or {@code null} for none
   */
  public UpgradeAvailableEvent setWindowsVersions(WindowsVersions windowsVersions) {
    this.windowsVersions = windowsVersions;
    return this;
  }

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

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

}
