Class DescribeFleetsInstances
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.DescribeFleetsInstances
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DescribeFleetsInstances.Builder,DescribeFleetsInstances>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DescribeFleetsInstances.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 isWindows
for Windows instances.String
platformAsString()
The value isWindows
for Windows instances.List<SdkField<?>>
sdkFields()
static Class<? extends DescribeFleetsInstances.Builder>
serializableBuilderClass()
DescribeFleetsInstances.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
launchTemplateAndOverrides
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.
- Returns:
- 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.
-
lifecycle
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 returnInstanceLifecycle.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlifecycleAsString()
.- Returns:
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
- See Also:
InstanceLifecycle
-
lifecycleAsString
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 returnInstanceLifecycle.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlifecycleAsString()
.- Returns:
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
- See Also:
InstanceLifecycle
-
hasInstanceIds
public final boolean hasInstanceIds()
For responses, this returns true if the service returned a value for the InstanceIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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.
-
instanceIds
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.- Returns:
- The IDs of the instances.
-
instanceType
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 returnInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceTypeAsString()
.- Returns:
- The instance type.
- See Also:
InstanceType
-
instanceTypeAsString
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 returnInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceTypeAsString()
.- Returns:
- The instance type.
- See Also:
InstanceType
-
platform
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 returnPlatformValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromplatformAsString()
.- Returns:
- The value is
Windows
for Windows instances. Otherwise, the value is blank. - See Also:
PlatformValues
-
platformAsString
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 returnPlatformValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromplatformAsString()
.- Returns:
- The value is
Windows
for Windows instances. Otherwise, the value is blank. - See Also:
PlatformValues
-
toBuilder
public DescribeFleetsInstances.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<DescribeFleetsInstances.Builder,DescribeFleetsInstances>
-
builder
public static DescribeFleetsInstances.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeFleetsInstances.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-