@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 Amazon 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()
For responses, this returns true if the service returned a value for the EbsVolumes property.
|
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, wait
copy
public 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
.MarketType
public 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
.MarketType
public final String instanceType()
The EC2 instance type, for example m3.xlarge
.
m3.xlarge
.public final boolean hasEbsVolumes()
isEmpty()
method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<EbsVolume> ebsVolumes()
The list of Amazon EBS volumes that are attached to this instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasEbsVolumes()
method.
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 SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.