org.finra.herd.sdk.model.EmrClusterDefinitionVolumeSpecification Maven / Gradle / Ivy
/*
* herd-external
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 0.125.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 org.finra.herd.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* EmrClusterDefinitionVolumeSpecification
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class EmrClusterDefinitionVolumeSpecification {
@JsonProperty("volumeType")
private String volumeType = null;
@JsonProperty("iops")
private Integer iops = null;
@JsonProperty("sizeInGB")
private Integer sizeInGB = null;
public EmrClusterDefinitionVolumeSpecification volumeType(String volumeType) {
this.volumeType = volumeType;
return this;
}
/**
* The volume type. Volume types supported are gp2, io1, standard
* @return volumeType
**/
@ApiModelProperty(value = "The volume type. Volume types supported are gp2, io1, standard")
public String getVolumeType() {
return volumeType;
}
public void setVolumeType(String volumeType) {
this.volumeType = volumeType;
}
public EmrClusterDefinitionVolumeSpecification iops(Integer iops) {
this.iops = iops;
return this;
}
/**
* The number of I/O operations per second (IOPS) that the volume supports
* @return iops
**/
@ApiModelProperty(value = "The number of I/O operations per second (IOPS) that the volume supports")
public Integer getIops() {
return iops;
}
public void setIops(Integer iops) {
this.iops = iops;
}
public EmrClusterDefinitionVolumeSpecification sizeInGB(Integer sizeInGB) {
this.sizeInGB = sizeInGB;
return this;
}
/**
* The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10
* @return sizeInGB
**/
@ApiModelProperty(value = "The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10 ")
public Integer getSizeInGB() {
return sizeInGB;
}
public void setSizeInGB(Integer sizeInGB) {
this.sizeInGB = sizeInGB;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmrClusterDefinitionVolumeSpecification emrClusterDefinitionVolumeSpecification = (EmrClusterDefinitionVolumeSpecification) o;
return Objects.equals(this.volumeType, emrClusterDefinitionVolumeSpecification.volumeType) &&
Objects.equals(this.iops, emrClusterDefinitionVolumeSpecification.iops) &&
Objects.equals(this.sizeInGB, emrClusterDefinitionVolumeSpecification.sizeInGB);
}
@Override
public int hashCode() {
return Objects.hash(volumeType, iops, sizeInGB);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmrClusterDefinitionVolumeSpecification {\n");
sb.append(" volumeType: ").append(toIndentedString(volumeType)).append("\n");
sb.append(" iops: ").append(toIndentedString(iops)).append("\n");
sb.append(" sizeInGB: ").append(toIndentedString(sizeInGB)).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 ");
}
}