Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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.util.ArrayList;
import java.util.List;
import org.finra.herd.sdk.model.EmrClusterInstanceFleetProvisioningSpecifications;
import org.finra.herd.sdk.model.EmrClusterInstanceFleetStatus;
import org.finra.herd.sdk.model.EmrClusterInstanceTypeSpecification;
/**
* EmrClusterInstanceFleet
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class EmrClusterInstanceFleet {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("instanceFleetType")
private String instanceFleetType = null;
@JsonProperty("targetOnDemandCapacity")
private Integer targetOnDemandCapacity = null;
@JsonProperty("targetSpotCapacity")
private Integer targetSpotCapacity = null;
@JsonProperty("provisionedOnDemandCapacity")
private Integer provisionedOnDemandCapacity = null;
@JsonProperty("provisionedSpotCapacity")
private Integer provisionedSpotCapacity = null;
@JsonProperty("instanceFleetStatus")
private EmrClusterInstanceFleetStatus instanceFleetStatus = null;
@JsonProperty("instanceTypeSpecifications")
private List instanceTypeSpecifications = null;
@JsonProperty("launchSpecifications")
private EmrClusterInstanceFleetProvisioningSpecifications launchSpecifications = null;
public EmrClusterInstanceFleet id(String id) {
this.id = id;
return this;
}
/**
* The unique identifier of the instance fleet
* @return id
**/
@ApiModelProperty(value = "The unique identifier of the instance fleet")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public EmrClusterInstanceFleet name(String name) {
this.name = name;
return this;
}
/**
* The friendly name of the instance fleet
* @return name
**/
@ApiModelProperty(value = "The friendly name of the instance fleet")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public EmrClusterInstanceFleet instanceFleetType(String instanceFleetType) {
this.instanceFleetType = instanceFleetType;
return this;
}
/**
* The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK
* @return instanceFleetType
**/
@ApiModelProperty(value = "The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK")
public String getInstanceFleetType() {
return instanceFleetType;
}
public void setInstanceFleetType(String instanceFleetType) {
this.instanceFleetType = instanceFleetType;
}
public EmrClusterInstanceFleet targetOnDemandCapacity(Integer targetOnDemandCapacity) {
this.targetOnDemandCapacity = targetOnDemandCapacity;
return this;
}
/**
* The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. NOTE: If not specified or set to 0, only Spot instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.
* @return targetOnDemandCapacity
**/
@ApiModelProperty(value = "The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. NOTE: If not specified or set to 0, only Spot instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1. ")
public Integer getTargetOnDemandCapacity() {
return targetOnDemandCapacity;
}
public void setTargetOnDemandCapacity(Integer targetOnDemandCapacity) {
this.targetOnDemandCapacity = targetOnDemandCapacity;
}
public EmrClusterInstanceFleet targetSpotCapacity(Integer targetSpotCapacity) {
this.targetSpotCapacity = targetSpotCapacity;
return this;
}
/**
* The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. NOTE: If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.
* @return targetSpotCapacity
**/
@ApiModelProperty(value = "The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. NOTE: If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1. ")
public Integer getTargetSpotCapacity() {
return targetSpotCapacity;
}
public void setTargetSpotCapacity(Integer targetSpotCapacity) {
this.targetSpotCapacity = targetSpotCapacity;
}
public EmrClusterInstanceFleet provisionedOnDemandCapacity(Integer provisionedOnDemandCapacity) {
this.provisionedOnDemandCapacity = provisionedOnDemandCapacity;
return this;
}
/**
* The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity.
* @return provisionedOnDemandCapacity
**/
@ApiModelProperty(value = "The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. ")
public Integer getProvisionedOnDemandCapacity() {
return provisionedOnDemandCapacity;
}
public void setProvisionedOnDemandCapacity(Integer provisionedOnDemandCapacity) {
this.provisionedOnDemandCapacity = provisionedOnDemandCapacity;
}
public EmrClusterInstanceFleet provisionedSpotCapacity(Integer provisionedSpotCapacity) {
this.provisionedSpotCapacity = provisionedSpotCapacity;
return this;
}
/**
* The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity
* @return provisionedSpotCapacity
**/
@ApiModelProperty(value = "The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity ")
public Integer getProvisionedSpotCapacity() {
return provisionedSpotCapacity;
}
public void setProvisionedSpotCapacity(Integer provisionedSpotCapacity) {
this.provisionedSpotCapacity = provisionedSpotCapacity;
}
public EmrClusterInstanceFleet instanceFleetStatus(EmrClusterInstanceFleetStatus instanceFleetStatus) {
this.instanceFleetStatus = instanceFleetStatus;
return this;
}
/**
* Get instanceFleetStatus
* @return instanceFleetStatus
**/
@ApiModelProperty(value = "")
public EmrClusterInstanceFleetStatus getInstanceFleetStatus() {
return instanceFleetStatus;
}
public void setInstanceFleetStatus(EmrClusterInstanceFleetStatus instanceFleetStatus) {
this.instanceFleetStatus = instanceFleetStatus;
}
public EmrClusterInstanceFleet instanceTypeSpecifications(List instanceTypeSpecifications) {
this.instanceTypeSpecifications = instanceTypeSpecifications;
return this;
}
public EmrClusterInstanceFleet addInstanceTypeSpecificationsItem(EmrClusterInstanceTypeSpecification instanceTypeSpecificationsItem) {
if (this.instanceTypeSpecifications == null) {
this.instanceTypeSpecifications = new ArrayList();
}
this.instanceTypeSpecifications.add(instanceTypeSpecificationsItem);
return this;
}
/**
* The instance type configurations that define the EC2 instances in the instance fleet
* @return instanceTypeSpecifications
**/
@ApiModelProperty(value = "The instance type configurations that define the EC2 instances in the instance fleet")
public List getInstanceTypeSpecifications() {
return instanceTypeSpecifications;
}
public void setInstanceTypeSpecifications(List instanceTypeSpecifications) {
this.instanceTypeSpecifications = instanceTypeSpecifications;
}
public EmrClusterInstanceFleet launchSpecifications(EmrClusterInstanceFleetProvisioningSpecifications launchSpecifications) {
this.launchSpecifications = launchSpecifications;
return this;
}
/**
* Get launchSpecifications
* @return launchSpecifications
**/
@ApiModelProperty(value = "")
public EmrClusterInstanceFleetProvisioningSpecifications getLaunchSpecifications() {
return launchSpecifications;
}
public void setLaunchSpecifications(EmrClusterInstanceFleetProvisioningSpecifications launchSpecifications) {
this.launchSpecifications = launchSpecifications;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmrClusterInstanceFleet emrClusterInstanceFleet = (EmrClusterInstanceFleet) o;
return Objects.equals(this.id, emrClusterInstanceFleet.id) &&
Objects.equals(this.name, emrClusterInstanceFleet.name) &&
Objects.equals(this.instanceFleetType, emrClusterInstanceFleet.instanceFleetType) &&
Objects.equals(this.targetOnDemandCapacity, emrClusterInstanceFleet.targetOnDemandCapacity) &&
Objects.equals(this.targetSpotCapacity, emrClusterInstanceFleet.targetSpotCapacity) &&
Objects.equals(this.provisionedOnDemandCapacity, emrClusterInstanceFleet.provisionedOnDemandCapacity) &&
Objects.equals(this.provisionedSpotCapacity, emrClusterInstanceFleet.provisionedSpotCapacity) &&
Objects.equals(this.instanceFleetStatus, emrClusterInstanceFleet.instanceFleetStatus) &&
Objects.equals(this.instanceTypeSpecifications, emrClusterInstanceFleet.instanceTypeSpecifications) &&
Objects.equals(this.launchSpecifications, emrClusterInstanceFleet.launchSpecifications);
}
@Override
public int hashCode() {
return Objects.hash(id, name, instanceFleetType, targetOnDemandCapacity, targetSpotCapacity, provisionedOnDemandCapacity, provisionedSpotCapacity, instanceFleetStatus, instanceTypeSpecifications, launchSpecifications);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmrClusterInstanceFleet {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" instanceFleetType: ").append(toIndentedString(instanceFleetType)).append("\n");
sb.append(" targetOnDemandCapacity: ").append(toIndentedString(targetOnDemandCapacity)).append("\n");
sb.append(" targetSpotCapacity: ").append(toIndentedString(targetSpotCapacity)).append("\n");
sb.append(" provisionedOnDemandCapacity: ").append(toIndentedString(provisionedOnDemandCapacity)).append("\n");
sb.append(" provisionedSpotCapacity: ").append(toIndentedString(provisionedSpotCapacity)).append("\n");
sb.append(" instanceFleetStatus: ").append(toIndentedString(instanceFleetStatus)).append("\n");
sb.append(" instanceTypeSpecifications: ").append(toIndentedString(instanceTypeSpecifications)).append("\n");
sb.append(" launchSpecifications: ").append(toIndentedString(launchSpecifications)).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 ");
}
}