Interface CreateFleetInstance.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CreateFleetInstance.Builder,
,CreateFleetInstance> SdkBuilder<CreateFleetInstance.Builder,
,CreateFleetInstance> SdkPojo
- Enclosing class:
CreateFleetInstance
-
Method Summary
Modifier and TypeMethodDescriptioninstanceIds
(String... instanceIds) The IDs of the instances.instanceIds
(Collection<String> instanceIds) The IDs of the instances.instanceType
(String instanceType) The instance type.instanceType
(InstanceType instanceType) The instance type.default CreateFleetInstance.Builder
launchTemplateAndOverrides
(Consumer<LaunchTemplateAndOverridesResponse.Builder> launchTemplateAndOverrides) The launch templates and overrides that were used for launching the instances.launchTemplateAndOverrides
(LaunchTemplateAndOverridesResponse launchTemplateAndOverrides) The launch templates and overrides that were used for launching the instances.Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.lifecycle
(InstanceLifecycle lifecycle) Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.The value isWindows
for Windows instances.platform
(PlatformValues platform) The value isWindows
for Windows instances.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
launchTemplateAndOverrides
CreateFleetInstance.Builder launchTemplateAndOverrides(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateAndOverrides
default CreateFleetInstance.Builder launchTemplateAndOverrides(Consumer<LaunchTemplateAndOverridesResponse.Builder> 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.
This is a convenience method that creates an instance of theLaunchTemplateAndOverridesResponse.Builder
avoiding the need to create one manually viaLaunchTemplateAndOverridesResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse)
.- Parameters:
launchTemplateAndOverrides
- a consumer that will call methods onLaunchTemplateAndOverridesResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lifecycle
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
- Parameters:
lifecycle
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lifecycle
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
- Parameters:
lifecycle
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceIds
The IDs of the instances.
- Parameters:
instanceIds
- The IDs of the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceIds
The IDs of the instances.
- Parameters:
instanceIds
- The IDs of the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The value is
Windows
for Windows instances. Otherwise, the value is blank.- Parameters:
platform
- The value isWindows
for Windows instances. Otherwise, the value is blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The value is
Windows
for Windows instances. Otherwise, the value is blank.- Parameters:
platform
- The value isWindows
for Windows instances. Otherwise, the value is blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-