@Generated(value="software.amazon.awssdk:codegen") public final class DescribeFleetsInstances extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DescribeFleetsInstances.Builder,DescribeFleetsInstances>
Describes the instances that were launched by the fleet.
Modifier and Type | Class and Description |
---|---|
static interface |
DescribeFleetsInstances.Builder |
Modifier and Type | Method and Description |
---|---|
static DescribeFleetsInstances.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInstanceIds()
For responses, this returns true if the service returned a value for the InstanceIds property.
|
List<String> |
instanceIds()
The IDs of the instances.
|
InstanceType |
instanceType()
The instance type.
|
String |
instanceTypeAsString()
The instance type.
|
LaunchTemplateAndOverridesResponse |
launchTemplateAndOverrides()
The launch templates and overrides that were used for launching the instances.
|
InstanceLifecycle |
lifecycle()
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
|
String |
lifecycleAsString()
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
|
PlatformValues |
platform()
The value is
Windows for Windows instances. |
String |
platformAsString()
The value is
Windows for Windows instances. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends DescribeFleetsInstances.Builder> |
serializableBuilderClass() |
DescribeFleetsInstances.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final LaunchTemplateAndOverridesResponse launchTemplateAndOverrides()
The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.
public final InstanceLifecycle lifecycle()
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
If the service returns an enum value that is not available in the current SDK version, lifecycle
will
return InstanceLifecycle.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
lifecycleAsString()
.
InstanceLifecycle
public final String lifecycleAsString()
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
If the service returns an enum value that is not available in the current SDK version, lifecycle
will
return InstanceLifecycle.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
lifecycleAsString()
.
InstanceLifecycle
public final boolean hasInstanceIds()
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<String> instanceIds()
The IDs of the instances.
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 hasInstanceIds()
method.
public final InstanceType instanceType()
The instance type.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
instanceTypeAsString()
.
InstanceType
public final String instanceTypeAsString()
The instance type.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
instanceTypeAsString()
.
InstanceType
public final PlatformValues platform()
The value is Windows
for Windows instances. Otherwise, the value is blank.
If the service returns an enum value that is not available in the current SDK version, platform
will
return PlatformValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
platformAsString()
.
Windows
for Windows instances. Otherwise, the value is blank.PlatformValues
public final String platformAsString()
The value is Windows
for Windows instances. Otherwise, the value is blank.
If the service returns an enum value that is not available in the current SDK version, platform
will
return PlatformValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
platformAsString()
.
Windows
for Windows instances. Otherwise, the value is blank.PlatformValues
public DescribeFleetsInstances.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<DescribeFleetsInstances.Builder,DescribeFleetsInstances>
public static DescribeFleetsInstances.Builder builder()
public static Class<? extends DescribeFleetsInstances.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.