@Generated(value="software.amazon.awssdk:codegen") public final class CreateFleetInstance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CreateFleetInstance.Builder,CreateFleetInstance>
Describes the instances that were launched by the fleet.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateFleetInstance.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateFleetInstance.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
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; otherwise blank. |
String |
platformAsString()
The value is
Windows for Windows instances; otherwise blank. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateFleetInstance.Builder> |
serializableBuilderClass() |
CreateFleetInstance.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public LaunchTemplateAndOverridesResponse launchTemplateAndOverrides()
The launch templates and overrides that were used for launching the instances. Any parameters that you specify in the Overrides override the same parameters in the launch template.
public 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 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 List<String> instanceIds()
The IDs of the instances.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public 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 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 PlatformValues platform()
The value is Windows
for Windows instances; otherwise 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 blank.PlatformValues
public String platformAsString()
The value is Windows
for Windows instances; otherwise 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 blank.PlatformValues
public CreateFleetInstance.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateFleetInstance.Builder,CreateFleetInstance>
public static CreateFleetInstance.Builder builder()
public static Class<? extends CreateFleetInstance.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.