All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lakefs.clients.api.model.VersionConfig Maven / Gradle / Ivy

There is a newer version: 1.43.0
Show newest version
/*
 * lakeFS API
 * lakeFS HTTP API
 *
 * The version of the OpenAPI document: 1.0.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    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy