@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Instance extends Object implements Serializable, Cloneable, StructuredPojo
Represents an EC2 instance provisioned as part of cluster.
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
boolean |
equals(Object obj) |
List<EbsVolume> |
getEbsVolumes()
The list of EBS volumes that are attached to this instance.
|
String |
getEc2InstanceId()
The unique identifier of the instance in Amazon EC2.
|
String |
getId()
The unique identifier for the instance in Amazon EMR.
|
String |
getInstanceFleetId()
The unique identifier of the instance fleet to which an EC2 instance belongs.
|
String |
getInstanceGroupId()
The identifier of the instance group to which this instance belongs.
|
String |
getInstanceType()
The EC2 instance type, for example
m3.xlarge . |
String |
getMarket()
The instance purchasing option.
|
String |
getPrivateDnsName()
The private DNS name of the instance.
|
String |
getPrivateIpAddress()
The private IP address of the instance.
|
String |
getPublicDnsName()
The public DNS name of the instance.
|
String |
getPublicIpAddress()
The public IP address of the instance.
|
InstanceStatus |
getStatus()
The current status of the instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEbsVolumes(Collection<EbsVolume> ebsVolumes)
The list of EBS volumes that are attached to this instance.
|
void |
setEc2InstanceId(String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
|
void |
setId(String id)
The unique identifier for the instance in Amazon EMR.
|
void |
setInstanceFleetId(String instanceFleetId)
The unique identifier of the instance fleet to which an EC2 instance belongs.
|
void |
setInstanceGroupId(String instanceGroupId)
The identifier of the instance group to which this instance belongs.
|
void |
setInstanceType(String instanceType)
The EC2 instance type, for example
m3.xlarge . |
void |
setMarket(MarketType market)
The instance purchasing option.
|
void |
setMarket(String market)
The instance purchasing option.
|
void |
setPrivateDnsName(String privateDnsName)
The private DNS name of the instance.
|
void |
setPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
|
void |
setPublicDnsName(String publicDnsName)
The public DNS name of the instance.
|
void |
setPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
|
void |
setStatus(InstanceStatus status)
The current status of the instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Instance |
withEbsVolumes(Collection<EbsVolume> ebsVolumes)
The list of EBS volumes that are attached to this instance.
|
Instance |
withEbsVolumes(EbsVolume... ebsVolumes)
The list of EBS volumes that are attached to this instance.
|
Instance |
withEc2InstanceId(String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
|
Instance |
withId(String id)
The unique identifier for the instance in Amazon EMR.
|
Instance |
withInstanceFleetId(String instanceFleetId)
The unique identifier of the instance fleet to which an EC2 instance belongs.
|
Instance |
withInstanceGroupId(String instanceGroupId)
The identifier of the instance group to which this instance belongs.
|
Instance |
withInstanceType(String instanceType)
The EC2 instance type, for example
m3.xlarge . |
Instance |
withMarket(MarketType market)
The instance purchasing option.
|
Instance |
withMarket(String market)
The instance purchasing option.
|
Instance |
withPrivateDnsName(String privateDnsName)
The private DNS name of the instance.
|
Instance |
withPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
|
Instance |
withPublicDnsName(String publicDnsName)
The public DNS name of the instance.
|
Instance |
withPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
|
Instance |
withStatus(InstanceStatus status)
The current status of the instance.
|
public void setId(String id)
The unique identifier for the instance in Amazon EMR.
id
- The unique identifier for the instance in Amazon EMR.public String getId()
The unique identifier for the instance in Amazon EMR.
public Instance withId(String id)
The unique identifier for the instance in Amazon EMR.
id
- The unique identifier for the instance in Amazon EMR.public void setEc2InstanceId(String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
ec2InstanceId
- The unique identifier of the instance in Amazon EC2.public String getEc2InstanceId()
The unique identifier of the instance in Amazon EC2.
public Instance withEc2InstanceId(String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
ec2InstanceId
- The unique identifier of the instance in Amazon EC2.public void setPublicDnsName(String publicDnsName)
The public DNS name of the instance.
publicDnsName
- The public DNS name of the instance.public String getPublicDnsName()
The public DNS name of the instance.
public Instance withPublicDnsName(String publicDnsName)
The public DNS name of the instance.
publicDnsName
- The public DNS name of the instance.public void setPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
publicIpAddress
- The public IP address of the instance.public String getPublicIpAddress()
The public IP address of the instance.
public Instance withPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
publicIpAddress
- The public IP address of the instance.public void setPrivateDnsName(String privateDnsName)
The private DNS name of the instance.
privateDnsName
- The private DNS name of the instance.public String getPrivateDnsName()
The private DNS name of the instance.
public Instance withPrivateDnsName(String privateDnsName)
The private DNS name of the instance.
privateDnsName
- The private DNS name of the instance.public void setPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
privateIpAddress
- The private IP address of the instance.public String getPrivateIpAddress()
The private IP address of the instance.
public Instance withPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
privateIpAddress
- The private IP address of the instance.public void setStatus(InstanceStatus status)
The current status of the instance.
status
- The current status of the instance.public InstanceStatus getStatus()
The current status of the instance.
public Instance withStatus(InstanceStatus status)
The current status of the instance.
status
- The current status of the instance.public void setInstanceGroupId(String instanceGroupId)
The identifier of the instance group to which this instance belongs.
instanceGroupId
- The identifier of the instance group to which this instance belongs.public String getInstanceGroupId()
The identifier of the instance group to which this instance belongs.
public Instance withInstanceGroupId(String instanceGroupId)
The identifier of the instance group to which this instance belongs.
instanceGroupId
- The identifier of the instance group to which this instance belongs.public void setInstanceFleetId(String instanceFleetId)
The unique identifier of the instance fleet to which an EC2 instance belongs.
instanceFleetId
- The unique identifier of the instance fleet to which an EC2 instance belongs.public String getInstanceFleetId()
The unique identifier of the instance fleet to which an EC2 instance belongs.
public Instance withInstanceFleetId(String instanceFleetId)
The unique identifier of the instance fleet to which an EC2 instance belongs.
instanceFleetId
- The unique identifier of the instance fleet to which an EC2 instance belongs.public void setMarket(String market)
The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
market
- The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.MarketType
public String getMarket()
The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
ON_DEMAND
or SPOT
.MarketType
public Instance withMarket(String market)
The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
market
- The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.MarketType
public void setMarket(MarketType market)
The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
market
- The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.MarketType
public Instance withMarket(MarketType market)
The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
market
- The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.MarketType
public void setInstanceType(String instanceType)
The EC2 instance type, for example m3.xlarge
.
instanceType
- The EC2 instance type, for example m3.xlarge
.public String getInstanceType()
The EC2 instance type, for example m3.xlarge
.
m3.xlarge
.public Instance withInstanceType(String instanceType)
The EC2 instance type, for example m3.xlarge
.
instanceType
- The EC2 instance type, for example m3.xlarge
.public List<EbsVolume> getEbsVolumes()
The list of EBS volumes that are attached to this instance.
public void setEbsVolumes(Collection<EbsVolume> ebsVolumes)
The list of EBS volumes that are attached to this instance.
ebsVolumes
- The list of EBS volumes that are attached to this instance.public Instance withEbsVolumes(EbsVolume... ebsVolumes)
The list of EBS volumes that are attached to this instance.
NOTE: This method appends the values to the existing list (if any). Use
setEbsVolumes(java.util.Collection)
or withEbsVolumes(java.util.Collection)
if you want to
override the existing values.
ebsVolumes
- The list of EBS volumes that are attached to this instance.public Instance withEbsVolumes(Collection<EbsVolume> ebsVolumes)
The list of EBS volumes that are attached to this instance.
ebsVolumes
- The list of EBS volumes that are attached to this instance.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.