com.amazonaws.services.elasticmapreduce.model.JobFlowInstancesDetail Maven / Gradle / Ivy
Show all versions of aws-java-sdk-emr Show documentation
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.elasticmapreduce.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Specify the type of Amazon EC2 instances that the cluster (job flow) runs on.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class JobFlowInstancesDetail implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon EC2 master node instance type.
*
*/
private String masterInstanceType;
/**
*
* The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public
* subnet, this is the public DNS name.
*
*/
private String masterPublicDnsName;
/**
*
* The Amazon EC2 instance identifier of the master node.
*
*/
private String masterInstanceId;
/**
*
* The Amazon EC2 core and task node instance type.
*
*/
private String slaveInstanceType;
/**
*
* The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master
* and core and task node. If the value is greater than 1, one instance is the master node and all others are core
* and task nodes.
*
*/
private Integer instanceCount;
/**
*
* Details about the instance groups in a cluster.
*
*/
private com.amazonaws.internal.SdkInternalList instanceGroups;
/**
*
* An approximation of the cost of the cluster, represented in m1.small/hours. This value is increased one time for
* every hour that an m1.small instance runs. Larger instances are weighted more heavily, so an Amazon EC2 instance
* that is roughly four times more expensive would result in the normalized instance hours being increased
* incrementally four times. This result is only an approximation and does not reflect the actual billing rate.
*
*/
private Integer normalizedInstanceHours;
/**
*
* The name of an Amazon EC2 key pair that can be used to connect to the master node using SSH.
*
*/
private String ec2KeyName;
/**
*
* For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the cluster
* was launched.
*
*/
private String ec2SubnetId;
/**
*
* The Amazon EC2 Availability Zone for the cluster.
*
*/
private PlacementType placement;
/**
*
* Specifies whether the cluster should remain available after completing all steps.
*
*/
private Boolean keepJobFlowAliveWhenNoSteps;
/**
*
* Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user
* intervention, or in the event of a job-flow error.
*
*/
private Boolean terminationProtected;
/**
*
* The Hadoop version for the cluster.
*
*/
private String hadoopVersion;
/**
* Default constructor for JobFlowInstancesDetail object. Callers should use the setter or fluent setter (with...)
* methods to initialize the object after creating it.
*/
public JobFlowInstancesDetail() {
}
/**
* Constructs a new JobFlowInstancesDetail object. Callers should use the setter or fluent setter (with...) methods
* to initialize any additional object members.
*
* @param masterInstanceType
* The Amazon EC2 master node instance type.
* @param slaveInstanceType
* The Amazon EC2 core and task node instance type.
* @param instanceCount
* The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the
* master and core and task node. If the value is greater than 1, one instance is the master node and all
* others are core and task nodes.
*/
public JobFlowInstancesDetail(String masterInstanceType, String slaveInstanceType, Integer instanceCount) {
setMasterInstanceType(masterInstanceType);
setSlaveInstanceType(slaveInstanceType);
setInstanceCount(instanceCount);
}
/**
*
* The Amazon EC2 master node instance type.
*
*
* @param masterInstanceType
* The Amazon EC2 master node instance type.
*/
public void setMasterInstanceType(String masterInstanceType) {
this.masterInstanceType = masterInstanceType;
}
/**
*
* The Amazon EC2 master node instance type.
*
*
* @return The Amazon EC2 master node instance type.
*/
public String getMasterInstanceType() {
return this.masterInstanceType;
}
/**
*
* The Amazon EC2 master node instance type.
*
*
* @param masterInstanceType
* The Amazon EC2 master node instance type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withMasterInstanceType(String masterInstanceType) {
setMasterInstanceType(masterInstanceType);
return this;
}
/**
*
* The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public
* subnet, this is the public DNS name.
*
*
* @param masterPublicDnsName
* The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a
* public subnet, this is the public DNS name.
*/
public void setMasterPublicDnsName(String masterPublicDnsName) {
this.masterPublicDnsName = masterPublicDnsName;
}
/**
*
* The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public
* subnet, this is the public DNS name.
*
*
* @return The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On
* a public subnet, this is the public DNS name.
*/
public String getMasterPublicDnsName() {
return this.masterPublicDnsName;
}
/**
*
* The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public
* subnet, this is the public DNS name.
*
*
* @param masterPublicDnsName
* The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a
* public subnet, this is the public DNS name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withMasterPublicDnsName(String masterPublicDnsName) {
setMasterPublicDnsName(masterPublicDnsName);
return this;
}
/**
*
* The Amazon EC2 instance identifier of the master node.
*
*
* @param masterInstanceId
* The Amazon EC2 instance identifier of the master node.
*/
public void setMasterInstanceId(String masterInstanceId) {
this.masterInstanceId = masterInstanceId;
}
/**
*
* The Amazon EC2 instance identifier of the master node.
*
*
* @return The Amazon EC2 instance identifier of the master node.
*/
public String getMasterInstanceId() {
return this.masterInstanceId;
}
/**
*
* The Amazon EC2 instance identifier of the master node.
*
*
* @param masterInstanceId
* The Amazon EC2 instance identifier of the master node.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withMasterInstanceId(String masterInstanceId) {
setMasterInstanceId(masterInstanceId);
return this;
}
/**
*
* The Amazon EC2 core and task node instance type.
*
*
* @param slaveInstanceType
* The Amazon EC2 core and task node instance type.
*/
public void setSlaveInstanceType(String slaveInstanceType) {
this.slaveInstanceType = slaveInstanceType;
}
/**
*
* The Amazon EC2 core and task node instance type.
*
*
* @return The Amazon EC2 core and task node instance type.
*/
public String getSlaveInstanceType() {
return this.slaveInstanceType;
}
/**
*
* The Amazon EC2 core and task node instance type.
*
*
* @param slaveInstanceType
* The Amazon EC2 core and task node instance type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withSlaveInstanceType(String slaveInstanceType) {
setSlaveInstanceType(slaveInstanceType);
return this;
}
/**
*
* The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master
* and core and task node. If the value is greater than 1, one instance is the master node and all others are core
* and task nodes.
*
*
* @param instanceCount
* The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the
* master and core and task node. If the value is greater than 1, one instance is the master node and all
* others are core and task nodes.
*/
public void setInstanceCount(Integer instanceCount) {
this.instanceCount = instanceCount;
}
/**
*
* The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master
* and core and task node. If the value is greater than 1, one instance is the master node and all others are core
* and task nodes.
*
*
* @return The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both
* the master and core and task node. If the value is greater than 1, one instance is the master node and
* all others are core and task nodes.
*/
public Integer getInstanceCount() {
return this.instanceCount;
}
/**
*
* The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master
* and core and task node. If the value is greater than 1, one instance is the master node and all others are core
* and task nodes.
*
*
* @param instanceCount
* The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the
* master and core and task node. If the value is greater than 1, one instance is the master node and all
* others are core and task nodes.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withInstanceCount(Integer instanceCount) {
setInstanceCount(instanceCount);
return this;
}
/**
*
* Details about the instance groups in a cluster.
*
*
* @return Details about the instance groups in a cluster.
*/
public java.util.List getInstanceGroups() {
if (instanceGroups == null) {
instanceGroups = new com.amazonaws.internal.SdkInternalList();
}
return instanceGroups;
}
/**
*
* Details about the instance groups in a cluster.
*
*
* @param instanceGroups
* Details about the instance groups in a cluster.
*/
public void setInstanceGroups(java.util.Collection instanceGroups) {
if (instanceGroups == null) {
this.instanceGroups = null;
return;
}
this.instanceGroups = new com.amazonaws.internal.SdkInternalList(instanceGroups);
}
/**
*
* Details about the instance groups in a cluster.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setInstanceGroups(java.util.Collection)} or {@link #withInstanceGroups(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param instanceGroups
* Details about the instance groups in a cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withInstanceGroups(InstanceGroupDetail... instanceGroups) {
if (this.instanceGroups == null) {
setInstanceGroups(new com.amazonaws.internal.SdkInternalList(instanceGroups.length));
}
for (InstanceGroupDetail ele : instanceGroups) {
this.instanceGroups.add(ele);
}
return this;
}
/**
*
* Details about the instance groups in a cluster.
*
*
* @param instanceGroups
* Details about the instance groups in a cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withInstanceGroups(java.util.Collection instanceGroups) {
setInstanceGroups(instanceGroups);
return this;
}
/**
*
* An approximation of the cost of the cluster, represented in m1.small/hours. This value is increased one time for
* every hour that an m1.small instance runs. Larger instances are weighted more heavily, so an Amazon EC2 instance
* that is roughly four times more expensive would result in the normalized instance hours being increased
* incrementally four times. This result is only an approximation and does not reflect the actual billing rate.
*
*
* @param normalizedInstanceHours
* An approximation of the cost of the cluster, represented in m1.small/hours. This value is increased one
* time for every hour that an m1.small instance runs. Larger instances are weighted more heavily, so an
* Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance
* hours being increased incrementally four times. This result is only an approximation and does not reflect
* the actual billing rate.
*/
public void setNormalizedInstanceHours(Integer normalizedInstanceHours) {
this.normalizedInstanceHours = normalizedInstanceHours;
}
/**
*
* An approximation of the cost of the cluster, represented in m1.small/hours. This value is increased one time for
* every hour that an m1.small instance runs. Larger instances are weighted more heavily, so an Amazon EC2 instance
* that is roughly four times more expensive would result in the normalized instance hours being increased
* incrementally four times. This result is only an approximation and does not reflect the actual billing rate.
*
*
* @return An approximation of the cost of the cluster, represented in m1.small/hours. This value is increased one
* time for every hour that an m1.small instance runs. Larger instances are weighted more heavily, so an
* Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance
* hours being increased incrementally four times. This result is only an approximation and does not reflect
* the actual billing rate.
*/
public Integer getNormalizedInstanceHours() {
return this.normalizedInstanceHours;
}
/**
*
* An approximation of the cost of the cluster, represented in m1.small/hours. This value is increased one time for
* every hour that an m1.small instance runs. Larger instances are weighted more heavily, so an Amazon EC2 instance
* that is roughly four times more expensive would result in the normalized instance hours being increased
* incrementally four times. This result is only an approximation and does not reflect the actual billing rate.
*
*
* @param normalizedInstanceHours
* An approximation of the cost of the cluster, represented in m1.small/hours. This value is increased one
* time for every hour that an m1.small instance runs. Larger instances are weighted more heavily, so an
* Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance
* hours being increased incrementally four times. This result is only an approximation and does not reflect
* the actual billing rate.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withNormalizedInstanceHours(Integer normalizedInstanceHours) {
setNormalizedInstanceHours(normalizedInstanceHours);
return this;
}
/**
*
* The name of an Amazon EC2 key pair that can be used to connect to the master node using SSH.
*
*
* @param ec2KeyName
* The name of an Amazon EC2 key pair that can be used to connect to the master node using SSH.
*/
public void setEc2KeyName(String ec2KeyName) {
this.ec2KeyName = ec2KeyName;
}
/**
*
* The name of an Amazon EC2 key pair that can be used to connect to the master node using SSH.
*
*
* @return The name of an Amazon EC2 key pair that can be used to connect to the master node using SSH.
*/
public String getEc2KeyName() {
return this.ec2KeyName;
}
/**
*
* The name of an Amazon EC2 key pair that can be used to connect to the master node using SSH.
*
*
* @param ec2KeyName
* The name of an Amazon EC2 key pair that can be used to connect to the master node using SSH.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withEc2KeyName(String ec2KeyName) {
setEc2KeyName(ec2KeyName);
return this;
}
/**
*
* For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the cluster
* was launched.
*
*
* @param ec2SubnetId
* For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the
* cluster was launched.
*/
public void setEc2SubnetId(String ec2SubnetId) {
this.ec2SubnetId = ec2SubnetId;
}
/**
*
* For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the cluster
* was launched.
*
*
* @return For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the
* cluster was launched.
*/
public String getEc2SubnetId() {
return this.ec2SubnetId;
}
/**
*
* For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the cluster
* was launched.
*
*
* @param ec2SubnetId
* For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the
* cluster was launched.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withEc2SubnetId(String ec2SubnetId) {
setEc2SubnetId(ec2SubnetId);
return this;
}
/**
*
* The Amazon EC2 Availability Zone for the cluster.
*
*
* @param placement
* The Amazon EC2 Availability Zone for the cluster.
*/
public void setPlacement(PlacementType placement) {
this.placement = placement;
}
/**
*
* The Amazon EC2 Availability Zone for the cluster.
*
*
* @return The Amazon EC2 Availability Zone for the cluster.
*/
public PlacementType getPlacement() {
return this.placement;
}
/**
*
* The Amazon EC2 Availability Zone for the cluster.
*
*
* @param placement
* The Amazon EC2 Availability Zone for the cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withPlacement(PlacementType placement) {
setPlacement(placement);
return this;
}
/**
*
* Specifies whether the cluster should remain available after completing all steps.
*
*
* @param keepJobFlowAliveWhenNoSteps
* Specifies whether the cluster should remain available after completing all steps.
*/
public void setKeepJobFlowAliveWhenNoSteps(Boolean keepJobFlowAliveWhenNoSteps) {
this.keepJobFlowAliveWhenNoSteps = keepJobFlowAliveWhenNoSteps;
}
/**
*
* Specifies whether the cluster should remain available after completing all steps.
*
*
* @return Specifies whether the cluster should remain available after completing all steps.
*/
public Boolean getKeepJobFlowAliveWhenNoSteps() {
return this.keepJobFlowAliveWhenNoSteps;
}
/**
*
* Specifies whether the cluster should remain available after completing all steps.
*
*
* @param keepJobFlowAliveWhenNoSteps
* Specifies whether the cluster should remain available after completing all steps.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withKeepJobFlowAliveWhenNoSteps(Boolean keepJobFlowAliveWhenNoSteps) {
setKeepJobFlowAliveWhenNoSteps(keepJobFlowAliveWhenNoSteps);
return this;
}
/**
*
* Specifies whether the cluster should remain available after completing all steps.
*
*
* @return Specifies whether the cluster should remain available after completing all steps.
*/
public Boolean isKeepJobFlowAliveWhenNoSteps() {
return this.keepJobFlowAliveWhenNoSteps;
}
/**
*
* Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user
* intervention, or in the event of a job-flow error.
*
*
* @param terminationProtected
* Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls,
* user intervention, or in the event of a job-flow error.
*/
public void setTerminationProtected(Boolean terminationProtected) {
this.terminationProtected = terminationProtected;
}
/**
*
* Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user
* intervention, or in the event of a job-flow error.
*
*
* @return Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls,
* user intervention, or in the event of a job-flow error.
*/
public Boolean getTerminationProtected() {
return this.terminationProtected;
}
/**
*
* Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user
* intervention, or in the event of a job-flow error.
*
*
* @param terminationProtected
* Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls,
* user intervention, or in the event of a job-flow error.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withTerminationProtected(Boolean terminationProtected) {
setTerminationProtected(terminationProtected);
return this;
}
/**
*
* Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user
* intervention, or in the event of a job-flow error.
*
*
* @return Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls,
* user intervention, or in the event of a job-flow error.
*/
public Boolean isTerminationProtected() {
return this.terminationProtected;
}
/**
*
* The Hadoop version for the cluster.
*
*
* @param hadoopVersion
* The Hadoop version for the cluster.
*/
public void setHadoopVersion(String hadoopVersion) {
this.hadoopVersion = hadoopVersion;
}
/**
*
* The Hadoop version for the cluster.
*
*
* @return The Hadoop version for the cluster.
*/
public String getHadoopVersion() {
return this.hadoopVersion;
}
/**
*
* The Hadoop version for the cluster.
*
*
* @param hadoopVersion
* The Hadoop version for the cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobFlowInstancesDetail withHadoopVersion(String hadoopVersion) {
setHadoopVersion(hadoopVersion);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getMasterInstanceType() != null)
sb.append("MasterInstanceType: ").append(getMasterInstanceType()).append(",");
if (getMasterPublicDnsName() != null)
sb.append("MasterPublicDnsName: ").append(getMasterPublicDnsName()).append(",");
if (getMasterInstanceId() != null)
sb.append("MasterInstanceId: ").append(getMasterInstanceId()).append(",");
if (getSlaveInstanceType() != null)
sb.append("SlaveInstanceType: ").append(getSlaveInstanceType()).append(",");
if (getInstanceCount() != null)
sb.append("InstanceCount: ").append(getInstanceCount()).append(",");
if (getInstanceGroups() != null)
sb.append("InstanceGroups: ").append(getInstanceGroups()).append(",");
if (getNormalizedInstanceHours() != null)
sb.append("NormalizedInstanceHours: ").append(getNormalizedInstanceHours()).append(",");
if (getEc2KeyName() != null)
sb.append("Ec2KeyName: ").append(getEc2KeyName()).append(",");
if (getEc2SubnetId() != null)
sb.append("Ec2SubnetId: ").append(getEc2SubnetId()).append(",");
if (getPlacement() != null)
sb.append("Placement: ").append(getPlacement()).append(",");
if (getKeepJobFlowAliveWhenNoSteps() != null)
sb.append("KeepJobFlowAliveWhenNoSteps: ").append(getKeepJobFlowAliveWhenNoSteps()).append(",");
if (getTerminationProtected() != null)
sb.append("TerminationProtected: ").append(getTerminationProtected()).append(",");
if (getHadoopVersion() != null)
sb.append("HadoopVersion: ").append(getHadoopVersion());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof JobFlowInstancesDetail == false)
return false;
JobFlowInstancesDetail other = (JobFlowInstancesDetail) obj;
if (other.getMasterInstanceType() == null ^ this.getMasterInstanceType() == null)
return false;
if (other.getMasterInstanceType() != null && other.getMasterInstanceType().equals(this.getMasterInstanceType()) == false)
return false;
if (other.getMasterPublicDnsName() == null ^ this.getMasterPublicDnsName() == null)
return false;
if (other.getMasterPublicDnsName() != null && other.getMasterPublicDnsName().equals(this.getMasterPublicDnsName()) == false)
return false;
if (other.getMasterInstanceId() == null ^ this.getMasterInstanceId() == null)
return false;
if (other.getMasterInstanceId() != null && other.getMasterInstanceId().equals(this.getMasterInstanceId()) == false)
return false;
if (other.getSlaveInstanceType() == null ^ this.getSlaveInstanceType() == null)
return false;
if (other.getSlaveInstanceType() != null && other.getSlaveInstanceType().equals(this.getSlaveInstanceType()) == false)
return false;
if (other.getInstanceCount() == null ^ this.getInstanceCount() == null)
return false;
if (other.getInstanceCount() != null && other.getInstanceCount().equals(this.getInstanceCount()) == false)
return false;
if (other.getInstanceGroups() == null ^ this.getInstanceGroups() == null)
return false;
if (other.getInstanceGroups() != null && other.getInstanceGroups().equals(this.getInstanceGroups()) == false)
return false;
if (other.getNormalizedInstanceHours() == null ^ this.getNormalizedInstanceHours() == null)
return false;
if (other.getNormalizedInstanceHours() != null && other.getNormalizedInstanceHours().equals(this.getNormalizedInstanceHours()) == false)
return false;
if (other.getEc2KeyName() == null ^ this.getEc2KeyName() == null)
return false;
if (other.getEc2KeyName() != null && other.getEc2KeyName().equals(this.getEc2KeyName()) == false)
return false;
if (other.getEc2SubnetId() == null ^ this.getEc2SubnetId() == null)
return false;
if (other.getEc2SubnetId() != null && other.getEc2SubnetId().equals(this.getEc2SubnetId()) == false)
return false;
if (other.getPlacement() == null ^ this.getPlacement() == null)
return false;
if (other.getPlacement() != null && other.getPlacement().equals(this.getPlacement()) == false)
return false;
if (other.getKeepJobFlowAliveWhenNoSteps() == null ^ this.getKeepJobFlowAliveWhenNoSteps() == null)
return false;
if (other.getKeepJobFlowAliveWhenNoSteps() != null && other.getKeepJobFlowAliveWhenNoSteps().equals(this.getKeepJobFlowAliveWhenNoSteps()) == false)
return false;
if (other.getTerminationProtected() == null ^ this.getTerminationProtected() == null)
return false;
if (other.getTerminationProtected() != null && other.getTerminationProtected().equals(this.getTerminationProtected()) == false)
return false;
if (other.getHadoopVersion() == null ^ this.getHadoopVersion() == null)
return false;
if (other.getHadoopVersion() != null && other.getHadoopVersion().equals(this.getHadoopVersion()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMasterInstanceType() == null) ? 0 : getMasterInstanceType().hashCode());
hashCode = prime * hashCode + ((getMasterPublicDnsName() == null) ? 0 : getMasterPublicDnsName().hashCode());
hashCode = prime * hashCode + ((getMasterInstanceId() == null) ? 0 : getMasterInstanceId().hashCode());
hashCode = prime * hashCode + ((getSlaveInstanceType() == null) ? 0 : getSlaveInstanceType().hashCode());
hashCode = prime * hashCode + ((getInstanceCount() == null) ? 0 : getInstanceCount().hashCode());
hashCode = prime * hashCode + ((getInstanceGroups() == null) ? 0 : getInstanceGroups().hashCode());
hashCode = prime * hashCode + ((getNormalizedInstanceHours() == null) ? 0 : getNormalizedInstanceHours().hashCode());
hashCode = prime * hashCode + ((getEc2KeyName() == null) ? 0 : getEc2KeyName().hashCode());
hashCode = prime * hashCode + ((getEc2SubnetId() == null) ? 0 : getEc2SubnetId().hashCode());
hashCode = prime * hashCode + ((getPlacement() == null) ? 0 : getPlacement().hashCode());
hashCode = prime * hashCode + ((getKeepJobFlowAliveWhenNoSteps() == null) ? 0 : getKeepJobFlowAliveWhenNoSteps().hashCode());
hashCode = prime * hashCode + ((getTerminationProtected() == null) ? 0 : getTerminationProtected().hashCode());
hashCode = prime * hashCode + ((getHadoopVersion() == null) ? 0 : getHadoopVersion().hashCode());
return hashCode;
}
@Override
public JobFlowInstancesDetail clone() {
try {
return (JobFlowInstancesDetail) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.elasticmapreduce.model.transform.JobFlowInstancesDetailMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}