@Generated(value="software.amazon.awssdk:codegen") public final class Instance extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasEbsVolumes()
Returns true if the EbsVolumes property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
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.
|
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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Instance.Builder> |
serializableBuilderClass() |
InstanceStatus |
status()
The current status of the instance.
|
Instance.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The unique identifier for the instance in Amazon EMR.
public final String ec2InstanceId()
The unique identifier of the instance in Amazon EC2.
public final String publicDnsName()
The public DNS name of the instance.
public final String publicIpAddress()
The public IP address of the instance.
public final String privateDnsName()
The private DNS name of the instance.
public final String privateIpAddress()
The private IP address of the instance.
public final InstanceStatus status()
The current status of the instance.
public final String instanceGroupId()
The identifier of the instance group to which this instance belongs.
public final String instanceFleetId()
The unique identifier of the instance fleet to which an EC2 instance belongs.
public final 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.MarketTypepublic final 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.MarketTypepublic final String instanceType()
The EC2 instance type, for example m3.xlarge.
m3.xlarge.public final boolean hasEbsVolumes()
public final 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.
You can use hasEbsVolumes() to see if a value was sent in this field.
public Instance.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Instance.Builder,Instance>public static Instance.Builder builder()
public static Class<? extends Instance.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.