@Generated(value="software.amazon.awssdk:codegen") public final class Instance extends Object implements StructuredPojo, ToCopyableBuilder<Instance.Builder,Instance>
Represents an EC2 instance provisioned as part of cluster.
Modifier and Type | Class and Description |
---|---|
static interface |
Instance.Builder |
Modifier and Type | Method and Description |
---|---|
static Instance.Builder |
builder() |
List<EbsVolume> |
ebsVolumes()
The list of EBS volumes that are attached to this instance.
|
String |
ec2InstanceId()
The unique identifier of the instance in Amazon EC2.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The unique identifier for the instance in Amazon EMR.
|
String |
instanceFleetId()
The unique identifier of the instance fleet to which an EC2 instance belongs.
|
String |
instanceGroupId()
The identifier of the instance group to which this instance belongs.
|
String |
instanceType()
The EC2 instance type, for example
m3.xlarge . |
MarketType |
market()
The instance purchasing option.
|
String |
marketAsString()
The instance purchasing option.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
privateDnsName()
The private DNS name of the instance.
|
String |
privateIpAddress()
The private IP address of the instance.
|
String |
publicDnsName()
The public DNS name of the instance.
|
String |
publicIpAddress()
The public IP address of the instance.
|
static Class<? extends Instance.Builder> |
serializableBuilderClass() |
InstanceStatus |
status()
The current status of the instance.
|
Instance.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String id()
The unique identifier for the instance in Amazon EMR.
public String ec2InstanceId()
The unique identifier of the instance in Amazon EC2.
public String publicDnsName()
The public DNS name of the instance.
public String publicIpAddress()
The public IP address of the instance.
public String privateDnsName()
The private DNS name of the instance.
public String privateIpAddress()
The private IP address of the instance.
public InstanceStatus status()
The current status of the instance.
public String instanceGroupId()
The identifier of the instance group to which this instance belongs.
public String instanceFleetId()
The unique identifier of the instance fleet to which an EC2 instance belongs.
public MarketType market()
The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
If the service returns an enum value that is not available in the current SDK version, market
will
return MarketType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
marketAsString()
.
ON_DEMAND
or SPOT
.MarketType
public String marketAsString()
The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
If the service returns an enum value that is not available in the current SDK version, market
will
return MarketType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
marketAsString()
.
ON_DEMAND
or SPOT
.MarketType
public String instanceType()
The EC2 instance type, for example m3.xlarge
.
m3.xlarge
.public List<EbsVolume> ebsVolumes()
The list of EBS volumes that are attached to this instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Instance.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Instance.Builder,Instance>
public static Instance.Builder builder()
public static Class<? extends Instance.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.