/*
 * lakeFS API
 * lakeFS HTTP API
 *
 * The version of the OpenAPI document: 0.1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package io.lakefs.clients.api.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * VersionConfig
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class VersionConfig {
  public static final String SERIALIZED_NAME_VERSION = "version";
  @SerializedName(SERIALIZED_NAME_VERSION)
  private String version;

  public static final String SERIALIZED_NAME_LATEST_VERSION = "latest_version";
  @SerializedName(SERIALIZED_NAME_LATEST_VERSION)
  private String latestVersion;

  public static final String SERIALIZED_NAME_UPGRADE_RECOMMENDED = "upgrade_recommended";
  @SerializedName(SERIALIZED_NAME_UPGRADE_RECOMMENDED)
  private Boolean upgradeRecommended;

  public static final String SERIALIZED_NAME_UPGRADE_URL = "upgrade_url";
  @SerializedName(SERIALIZED_NAME_UPGRADE_URL)
  private String upgradeUrl;


  public VersionConfig version(String version) {
    
    this.version = version;
    return this;
  }

   /**
   * Get version
   * @return version
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getVersion() {
    return version;
  }


  public void setVersion(String version) {
    this.version = version;
  }


  public VersionConfig latestVersion(String latestVersion) {
    
    this.latestVersion = latestVersion;
    return this;
  }

   /**
   * Get latestVersion
   * @return latestVersion
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getLatestVersion() {
    return latestVersion;
  }


  public void setLatestVersion(String latestVersion) {
    this.latestVersion = latestVersion;
  }


  public VersionConfig upgradeRecommended(Boolean upgradeRecommended) {
    
    this.upgradeRecommended = upgradeRecommended;
    return this;
  }

   /**
   * Get upgradeRecommended
   * @return upgradeRecommended
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Boolean getUpgradeRecommended() {
    return upgradeRecommended;
  }


  public void setUpgradeRecommended(Boolean upgradeRecommended) {
    this.upgradeRecommended = upgradeRecommended;
  }


  public VersionConfig upgradeUrl(String upgradeUrl) {
    
    this.upgradeUrl = upgradeUrl;
    return this;
  }

   /**
   * Get upgradeUrl
   * @return upgradeUrl
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getUpgradeUrl() {
    return upgradeUrl;
  }


  public void setUpgradeUrl(String upgradeUrl) {
    this.upgradeUrl = upgradeUrl;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    VersionConfig versionConfig = (VersionConfig) o;
    return Objects.equals(this.version, versionConfig.version) &&
        Objects.equals(this.latestVersion, versionConfig.latestVersion) &&
        Objects.equals(this.upgradeRecommended, versionConfig.upgradeRecommended) &&
        Objects.equals(this.upgradeUrl, versionConfig.upgradeUrl);
  }

  @Override
  public int hashCode() {
    return Objects.hash(version, latestVersion, upgradeRecommended, upgradeUrl);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class VersionConfig {\n");
    sb.append("    version: ").append(toIndentedString(version)).append("\n");
    sb.append("    latestVersion: ").append(toIndentedString(latestVersion)).append("\n");
    sb.append("    upgradeRecommended: ").append(toIndentedString(upgradeRecommended)).append("\n");
    sb.append("    upgradeUrl: ").append(toIndentedString(upgradeUrl)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

