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

org.finra.herd.sdk.model.MasterInstanceDefinition Maven / Gradle / Ivy

There is a newer version: 0.160.0
Show newest version
/*
 * 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;
import java.math.BigDecimal;
import org.finra.herd.sdk.model.EmrClusterDefinitionEbsConfiguration;

/**
 * MasterInstanceDefinition
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class MasterInstanceDefinition {
  @JsonProperty("instanceCount")
  private Integer instanceCount = null;

  @JsonProperty("instanceType")
  private String instanceType = null;

  @JsonProperty("ebsConfiguration")
  private EmrClusterDefinitionEbsConfiguration ebsConfiguration = null;

  @JsonProperty("instanceSpotPrice")
  private BigDecimal instanceSpotPrice = null;

  @JsonProperty("instanceMaxSearchPrice")
  private BigDecimal instanceMaxSearchPrice = null;

  @JsonProperty("instanceOnDemandThreshold")
  private BigDecimal instanceOnDemandThreshold = null;

  public MasterInstanceDefinition instanceCount(Integer instanceCount) {
    this.instanceCount = instanceCount;
    return this;
  }

   /**
   * Get instanceCount
   * @return instanceCount
  **/
  @ApiModelProperty(value = "")
  public Integer getInstanceCount() {
    return instanceCount;
  }

  public void setInstanceCount(Integer instanceCount) {
    this.instanceCount = instanceCount;
  }

  public MasterInstanceDefinition instanceType(String instanceType) {
    this.instanceType = instanceType;
    return this;
  }

   /**
   * Get instanceType
   * @return instanceType
  **/
  @ApiModelProperty(required = true, value = "")
  public String getInstanceType() {
    return instanceType;
  }

  public void setInstanceType(String instanceType) {
    this.instanceType = instanceType;
  }

  public MasterInstanceDefinition ebsConfiguration(EmrClusterDefinitionEbsConfiguration ebsConfiguration) {
    this.ebsConfiguration = ebsConfiguration;
    return this;
  }

   /**
   * Get ebsConfiguration
   * @return ebsConfiguration
  **/
  @ApiModelProperty(value = "")
  public EmrClusterDefinitionEbsConfiguration getEbsConfiguration() {
    return ebsConfiguration;
  }

  public void setEbsConfiguration(EmrClusterDefinitionEbsConfiguration ebsConfiguration) {
    this.ebsConfiguration = ebsConfiguration;
  }

  public MasterInstanceDefinition instanceSpotPrice(BigDecimal instanceSpotPrice) {
    this.instanceSpotPrice = instanceSpotPrice;
    return this;
  }

   /**
   * The instance bid price, in USD. If not specified, uses on-demand
   * @return instanceSpotPrice
  **/
  @ApiModelProperty(value = "The instance bid price, in USD. If not specified, uses on-demand")
  public BigDecimal getInstanceSpotPrice() {
    return instanceSpotPrice;
  }

  public void setInstanceSpotPrice(BigDecimal instanceSpotPrice) {
    this.instanceSpotPrice = instanceSpotPrice;
  }

  public MasterInstanceDefinition instanceMaxSearchPrice(BigDecimal instanceMaxSearchPrice) {
    this.instanceMaxSearchPrice = instanceMaxSearchPrice;
    return this;
  }

   /**
   * The maximum amount, in USD, to search for the best price. The best price search will only search for prices lower than this                   value. If a spot instance is selected by the search, this value will be the bid price                
   * @return instanceMaxSearchPrice
  **/
  @ApiModelProperty(value = "The maximum amount, in USD, to search for the best price. The best price search will only search for prices lower than this                   value. If a spot instance is selected by the search, this value will be the bid price                ")
  public BigDecimal getInstanceMaxSearchPrice() {
    return instanceMaxSearchPrice;
  }

  public void setInstanceMaxSearchPrice(BigDecimal instanceMaxSearchPrice) {
    this.instanceMaxSearchPrice = instanceMaxSearchPrice;
  }

  public MasterInstanceDefinition instanceOnDemandThreshold(BigDecimal instanceOnDemandThreshold) {
    this.instanceOnDemandThreshold = instanceOnDemandThreshold;
    return this;
  }

   /**
   * <p>The amount, in USD, you are willing to pay over the lowest spot price for an on-demand instance. Use this to                   dynamically balance the cost vs. stability of your instances.</p>                   <p>If not specified, the search will not attempt to find an on-demand instance when a spot is found. This is the same behavior as when                   this parameter is set to $0.</p>                
   * @return instanceOnDemandThreshold
  **/
  @ApiModelProperty(value = "

The amount, in USD, you are willing to pay over the lowest spot price for an on-demand instance. Use this to dynamically balance the cost vs. stability of your instances.

If not specified, the search will not attempt to find an on-demand instance when a spot is found. This is the same behavior as when this parameter is set to $0.

") public BigDecimal getInstanceOnDemandThreshold() { return instanceOnDemandThreshold; } public void setInstanceOnDemandThreshold(BigDecimal instanceOnDemandThreshold) { this.instanceOnDemandThreshold = instanceOnDemandThreshold; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MasterInstanceDefinition masterInstanceDefinition = (MasterInstanceDefinition) o; return Objects.equals(this.instanceCount, masterInstanceDefinition.instanceCount) && Objects.equals(this.instanceType, masterInstanceDefinition.instanceType) && Objects.equals(this.ebsConfiguration, masterInstanceDefinition.ebsConfiguration) && Objects.equals(this.instanceSpotPrice, masterInstanceDefinition.instanceSpotPrice) && Objects.equals(this.instanceMaxSearchPrice, masterInstanceDefinition.instanceMaxSearchPrice) && Objects.equals(this.instanceOnDemandThreshold, masterInstanceDefinition.instanceOnDemandThreshold); } @Override public int hashCode() { return Objects.hash(instanceCount, instanceType, ebsConfiguration, instanceSpotPrice, instanceMaxSearchPrice, instanceOnDemandThreshold); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MasterInstanceDefinition {\n"); sb.append(" instanceCount: ").append(toIndentedString(instanceCount)).append("\n"); sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); sb.append(" ebsConfiguration: ").append(toIndentedString(ebsConfiguration)).append("\n"); sb.append(" instanceSpotPrice: ").append(toIndentedString(instanceSpotPrice)).append("\n"); sb.append(" instanceMaxSearchPrice: ").append(toIndentedString(instanceMaxSearchPrice)).append("\n"); sb.append(" instanceOnDemandThreshold: ").append(toIndentedString(instanceOnDemandThreshold)).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 "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy