/*
 * Cloudera Manager API
 * <h1>Cloudera Manager API v50</h1>       <p>Introduced in Cloudera Manager 7.8.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>
 *
 * OpenAPI spec version: 7.8.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.cloudera.api.swagger.model;

import java.util.Objects;
import com.cloudera.api.swagger.model.ApiOsDistributionType;
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;

/**
 * Definition of an OS distribution.
 */
@ApiModel(description = "Definition of an OS distribution.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-11-17T16:38:34.097Z")
public class ApiOsDistribution {
  @SerializedName("distributionType")
  private ApiOsDistributionType distributionType = null;

  @SerializedName("name")
  private String name = null;

  @SerializedName("version")
  private String version = null;

  public ApiOsDistribution distributionType(ApiOsDistributionType distributionType) {
    this.distributionType = distributionType;
    return this;
  }

   /**
   * High-level OS distribution type
   * @return distributionType
  **/
  @ApiModelProperty(value = "High-level OS distribution type")
  public ApiOsDistributionType getDistributionType() {
    return distributionType;
  }

  public void setDistributionType(ApiOsDistributionType distributionType) {
    this.distributionType = distributionType;
  }

  public ApiOsDistribution name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Distribution full name; &#39;redhat&#39;, &#39;centos&#39;, &#39;ubuntu&#39; etc
   * @return name
  **/
  @ApiModelProperty(value = "Distribution full name; 'redhat', 'centos', 'ubuntu' etc")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

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

   /**
   * Full OS version string; eg. 7.3.1611
   * @return version
  **/
  @ApiModelProperty(value = "Full OS version string; eg. 7.3.1611")
  public String getVersion() {
    return version;
  }

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


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiOsDistribution apiOsDistribution = (ApiOsDistribution) o;
    return Objects.equals(this.distributionType, apiOsDistribution.distributionType) &&
        Objects.equals(this.name, apiOsDistribution.name) &&
        Objects.equals(this.version, apiOsDistribution.version);
  }

  @Override
  public int hashCode() {
    return Objects.hash(distributionType, name, version);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiOsDistribution {\n");
    
    sb.append("    distributionType: ").append(toIndentedString(distributionType)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}

