org.finra.herd.sdk.model.EmrClusterSpotProvisioningSpecification 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;
/**
* EmrClusterSpotProvisioningSpecification
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class EmrClusterSpotProvisioningSpecification {
@JsonProperty("timeoutDurationMinutes")
private Integer timeoutDurationMinutes = null;
@JsonProperty("timeoutAction")
private String timeoutAction = null;
@JsonProperty("blockDurationMinutes")
private Integer blockDurationMinutes = null;
public EmrClusterSpotProvisioningSpecification timeoutDurationMinutes(Integer timeoutDurationMinutes) {
this.timeoutDurationMinutes = timeoutDurationMinutes;
return this;
}
/**
* The spot provisioning timeout period in minutes
* @return timeoutDurationMinutes
**/
@ApiModelProperty(value = "The spot provisioning timeout period in minutes ")
public Integer getTimeoutDurationMinutes() {
return timeoutDurationMinutes;
}
public void setTimeoutDurationMinutes(Integer timeoutDurationMinutes) {
this.timeoutDurationMinutes = timeoutDurationMinutes;
}
public EmrClusterSpotProvisioningSpecification timeoutAction(String timeoutAction) {
this.timeoutAction = timeoutAction;
return this;
}
/**
* The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired
* @return timeoutAction
**/
@ApiModelProperty(value = "The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired ")
public String getTimeoutAction() {
return timeoutAction;
}
public void setTimeoutAction(String timeoutAction) {
this.timeoutAction = timeoutAction;
}
public EmrClusterSpotProvisioningSpecification blockDurationMinutes(Integer blockDurationMinutes) {
this.blockDurationMinutes = blockDurationMinutes;
return this;
}
/**
* The defined duration for Spot instances (also known as Spot blocks) in minutes
* @return blockDurationMinutes
**/
@ApiModelProperty(value = "The defined duration for Spot instances (also known as Spot blocks) in minutes ")
public Integer getBlockDurationMinutes() {
return blockDurationMinutes;
}
public void setBlockDurationMinutes(Integer blockDurationMinutes) {
this.blockDurationMinutes = blockDurationMinutes;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmrClusterSpotProvisioningSpecification emrClusterSpotProvisioningSpecification = (EmrClusterSpotProvisioningSpecification) o;
return Objects.equals(this.timeoutDurationMinutes, emrClusterSpotProvisioningSpecification.timeoutDurationMinutes) &&
Objects.equals(this.timeoutAction, emrClusterSpotProvisioningSpecification.timeoutAction) &&
Objects.equals(this.blockDurationMinutes, emrClusterSpotProvisioningSpecification.blockDurationMinutes);
}
@Override
public int hashCode() {
return Objects.hash(timeoutDurationMinutes, timeoutAction, blockDurationMinutes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmrClusterSpotProvisioningSpecification {\n");
sb.append(" timeoutDurationMinutes: ").append(toIndentedString(timeoutDurationMinutes)).append("\n");
sb.append(" timeoutAction: ").append(toIndentedString(timeoutAction)).append("\n");
sb.append(" blockDurationMinutes: ").append(toIndentedString(blockDurationMinutes)).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 ");
}
}