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

/**
 * 
 */
@ApiModel(description = "")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-11-17T16:38:34.097Z")
public class ApiOzoneBucketInfo {
  @SerializedName("volumeName")
  private String volumeName = null;

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

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

  @SerializedName("bucketEncrypted")
  private Boolean bucketEncrypted = null;

  @SerializedName("bucketInS3Volume")
  private Boolean bucketInS3Volume = null;

  @SerializedName("bucketLinked")
  private Boolean bucketLinked = null;

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

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

  public ApiOzoneBucketInfo volumeName(String volumeName) {
    this.volumeName = volumeName;
    return this;
  }

   /**
   * 
   * @return volumeName
  **/
  @ApiModelProperty(value = "")
  public String getVolumeName() {
    return volumeName;
  }

  public void setVolumeName(String volumeName) {
    this.volumeName = volumeName;
  }

  public ApiOzoneBucketInfo bucketName(String bucketName) {
    this.bucketName = bucketName;
    return this;
  }

   /**
   * 
   * @return bucketName
  **/
  @ApiModelProperty(value = "")
  public String getBucketName() {
    return bucketName;
  }

  public void setBucketName(String bucketName) {
    this.bucketName = bucketName;
  }

  public ApiOzoneBucketInfo bucketType(String bucketType) {
    this.bucketType = bucketType;
    return this;
  }

   /**
   * 
   * @return bucketType
  **/
  @ApiModelProperty(value = "")
  public String getBucketType() {
    return bucketType;
  }

  public void setBucketType(String bucketType) {
    this.bucketType = bucketType;
  }

  public ApiOzoneBucketInfo bucketEncrypted(Boolean bucketEncrypted) {
    this.bucketEncrypted = bucketEncrypted;
    return this;
  }

   /**
   * 
   * @return bucketEncrypted
  **/
  @ApiModelProperty(required = true, value = "")
  public Boolean getBucketEncrypted() {
    return bucketEncrypted;
  }

  public void setBucketEncrypted(Boolean bucketEncrypted) {
    this.bucketEncrypted = bucketEncrypted;
  }

  public ApiOzoneBucketInfo bucketInS3Volume(Boolean bucketInS3Volume) {
    this.bucketInS3Volume = bucketInS3Volume;
    return this;
  }

   /**
   * 
   * @return bucketInS3Volume
  **/
  @ApiModelProperty(required = true, value = "")
  public Boolean getBucketInS3Volume() {
    return bucketInS3Volume;
  }

  public void setBucketInS3Volume(Boolean bucketInS3Volume) {
    this.bucketInS3Volume = bucketInS3Volume;
  }

  public ApiOzoneBucketInfo bucketLinked(Boolean bucketLinked) {
    this.bucketLinked = bucketLinked;
    return this;
  }

   /**
   * 
   * @return bucketLinked
  **/
  @ApiModelProperty(required = true, value = "")
  public Boolean getBucketLinked() {
    return bucketLinked;
  }

  public void setBucketLinked(Boolean bucketLinked) {
    this.bucketLinked = bucketLinked;
  }

  public ApiOzoneBucketInfo sourceVolumeName(String sourceVolumeName) {
    this.sourceVolumeName = sourceVolumeName;
    return this;
  }

   /**
   * 
   * @return sourceVolumeName
  **/
  @ApiModelProperty(value = "")
  public String getSourceVolumeName() {
    return sourceVolumeName;
  }

  public void setSourceVolumeName(String sourceVolumeName) {
    this.sourceVolumeName = sourceVolumeName;
  }

  public ApiOzoneBucketInfo sourceBucketName(String sourceBucketName) {
    this.sourceBucketName = sourceBucketName;
    return this;
  }

   /**
   * 
   * @return sourceBucketName
  **/
  @ApiModelProperty(value = "")
  public String getSourceBucketName() {
    return sourceBucketName;
  }

  public void setSourceBucketName(String sourceBucketName) {
    this.sourceBucketName = sourceBucketName;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiOzoneBucketInfo apiOzoneBucketInfo = (ApiOzoneBucketInfo) o;
    return Objects.equals(this.volumeName, apiOzoneBucketInfo.volumeName) &&
        Objects.equals(this.bucketName, apiOzoneBucketInfo.bucketName) &&
        Objects.equals(this.bucketType, apiOzoneBucketInfo.bucketType) &&
        Objects.equals(this.bucketEncrypted, apiOzoneBucketInfo.bucketEncrypted) &&
        Objects.equals(this.bucketInS3Volume, apiOzoneBucketInfo.bucketInS3Volume) &&
        Objects.equals(this.bucketLinked, apiOzoneBucketInfo.bucketLinked) &&
        Objects.equals(this.sourceVolumeName, apiOzoneBucketInfo.sourceVolumeName) &&
        Objects.equals(this.sourceBucketName, apiOzoneBucketInfo.sourceBucketName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(volumeName, bucketName, bucketType, bucketEncrypted, bucketInS3Volume, bucketLinked, sourceVolumeName, sourceBucketName);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiOzoneBucketInfo {\n");
    
    sb.append("    volumeName: ").append(toIndentedString(volumeName)).append("\n");
    sb.append("    bucketName: ").append(toIndentedString(bucketName)).append("\n");
    sb.append("    bucketType: ").append(toIndentedString(bucketType)).append("\n");
    sb.append("    bucketEncrypted: ").append(toIndentedString(bucketEncrypted)).append("\n");
    sb.append("    bucketInS3Volume: ").append(toIndentedString(bucketInS3Volume)).append("\n");
    sb.append("    bucketLinked: ").append(toIndentedString(bucketLinked)).append("\n");
    sb.append("    sourceVolumeName: ").append(toIndentedString(sourceVolumeName)).append("\n");
    sb.append("    sourceBucketName: ").append(toIndentedString(sourceBucketName)).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    ");
  }
  
}

