@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeFleetsInstances extends Object implements Serializable, Cloneable
Describes the instances that were launched by the fleet.
Constructor and Description |
---|
DescribeFleetsInstances() |
Modifier and Type | Method and Description |
---|---|
DescribeFleetsInstances |
clone() |
boolean |
equals(Object obj) |
List<String> |
getInstanceIds()
The IDs of the instances.
|
String |
getInstanceType()
The instance type.
|
LaunchTemplateAndOverridesResponse |
getLaunchTemplateAndOverrides()
The launch templates and overrides that were used for launching the instances.
|
String |
getLifecycle()
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
|
String |
getPlatform()
The value is
Windows for Windows instances. |
int |
hashCode() |
void |
setInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse launchTemplateAndOverrides)
The launch templates and overrides that were used for launching the instances.
|
void |
setLifecycle(String lifecycle)
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
|
void |
setPlatform(String platform)
The value is
Windows for Windows instances. |
String |
toString()
Returns a string representation of this object.
|
DescribeFleetsInstances |
withInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
|
DescribeFleetsInstances |
withInstanceIds(String... instanceIds)
The IDs of the instances.
|
DescribeFleetsInstances |
withInstanceType(InstanceType instanceType)
The instance type.
|
DescribeFleetsInstances |
withInstanceType(String instanceType)
The instance type.
|
DescribeFleetsInstances |
withLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse launchTemplateAndOverrides)
The launch templates and overrides that were used for launching the instances.
|
DescribeFleetsInstances |
withLifecycle(InstanceLifecycle lifecycle)
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
|
DescribeFleetsInstances |
withLifecycle(String lifecycle)
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
|
DescribeFleetsInstances |
withPlatform(PlatformValues platform)
The value is
Windows for Windows instances. |
DescribeFleetsInstances |
withPlatform(String platform)
The value is
Windows for Windows instances. |
public void setLaunchTemplateAndOverrides(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.
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 LaunchTemplateAndOverridesResponse getLaunchTemplateAndOverrides()
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 DescribeFleetsInstances withLaunchTemplateAndOverrides(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.
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 void setLifecycle(String lifecycle)
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
lifecycle
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.InstanceLifecycle
public String getLifecycle()
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
InstanceLifecycle
public DescribeFleetsInstances withLifecycle(String lifecycle)
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
lifecycle
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.InstanceLifecycle
public DescribeFleetsInstances withLifecycle(InstanceLifecycle lifecycle)
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
lifecycle
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.InstanceLifecycle
public List<String> getInstanceIds()
The IDs of the instances.
public void setInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
instanceIds
- The IDs of the instances.public DescribeFleetsInstances withInstanceIds(String... instanceIds)
The IDs of the instances.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceIds(java.util.Collection)
or withInstanceIds(java.util.Collection)
if you want to
override the existing values.
instanceIds
- The IDs of the instances.public DescribeFleetsInstances withInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
instanceIds
- The IDs of the instances.public void setInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public String getInstanceType()
The instance type.
InstanceType
public DescribeFleetsInstances withInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public DescribeFleetsInstances withInstanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public void setPlatform(String platform)
The value is Windows
for Windows instances. Otherwise, the value is blank.
platform
- The value is Windows
for Windows instances. Otherwise, the value is blank.PlatformValues
public String getPlatform()
The value is Windows
for Windows instances. Otherwise, the value is blank.
Windows
for Windows instances. Otherwise, the value is blank.PlatformValues
public DescribeFleetsInstances withPlatform(String platform)
The value is Windows
for Windows instances. Otherwise, the value is blank.
platform
- The value is Windows
for Windows instances. Otherwise, the value is blank.PlatformValues
public DescribeFleetsInstances withPlatform(PlatformValues platform)
The value is Windows
for Windows instances. Otherwise, the value is blank.
platform
- The value is Windows
for Windows instances. Otherwise, the value is blank.PlatformValues
public String toString()
toString
in class Object
Object.toString()
public DescribeFleetsInstances clone()