StructuredPojo
, ToCopyableBuilder<Instance.Builder,Instance>
@Generated("software.amazon.awssdk:codegen") public class Instance extends Object implements StructuredPojo, ToCopyableBuilder<Instance.Builder,Instance>
Represents an EC2 instance provisioned as part of cluster.
Modifier and Type | Class | Description |
---|---|---|
static interface |
Instance.Builder |
Modifier and Type | Method | 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) |
|
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 . |
String |
market() |
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() |
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 String market()
The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
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.
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.