@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFleetInstance extends Object implements Serializable, Cloneable
Describes the instances that were launched by the fleet.
| Constructor and Description |
|---|
CreateFleetInstance() |
| Modifier and Type | Method and Description |
|---|---|
CreateFleetInstance |
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.
|
CreateFleetInstance |
withInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
|
CreateFleetInstance |
withInstanceIds(String... instanceIds)
The IDs of the instances.
|
CreateFleetInstance |
withInstanceType(InstanceType instanceType)
The instance type.
|
CreateFleetInstance |
withInstanceType(String instanceType)
The instance type.
|
CreateFleetInstance |
withLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse launchTemplateAndOverrides)
The launch templates and overrides that were used for launching the instances.
|
CreateFleetInstance |
withLifecycle(InstanceLifecycle lifecycle)
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
|
CreateFleetInstance |
withLifecycle(String lifecycle)
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
|
CreateFleetInstance |
withPlatform(PlatformValues platform)
The value is
Windows for Windows instances. |
CreateFleetInstance |
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 CreateFleetInstance 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.InstanceLifecyclepublic String getLifecycle()
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
InstanceLifecyclepublic CreateFleetInstance 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.InstanceLifecyclepublic CreateFleetInstance 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.InstanceLifecyclepublic 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 CreateFleetInstance 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 CreateFleetInstance 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.InstanceTypepublic String getInstanceType()
The instance type.
InstanceTypepublic CreateFleetInstance withInstanceType(String instanceType)
The instance type.
instanceType - The instance type.InstanceTypepublic CreateFleetInstance withInstanceType(InstanceType instanceType)
The instance type.
instanceType - The instance type.InstanceTypepublic 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.PlatformValuespublic String getPlatform()
The value is Windows for Windows instances. Otherwise, the value is blank.
Windows for Windows instances. Otherwise, the value is blank.PlatformValuespublic CreateFleetInstance 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.PlatformValuespublic CreateFleetInstance 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.PlatformValuespublic String toString()
toString in class ObjectObject.toString()public CreateFleetInstance clone()