public static interface CreateFleetInstance.Builder extends SdkPojo, CopyableBuilder<CreateFleetInstance.Builder,CreateFleetInstance>
Modifier and Type | Method and Description |
---|---|
CreateFleetInstance.Builder |
instanceIds(Collection<String> instanceIds)
The IDs of the instances.
|
CreateFleetInstance.Builder |
instanceIds(String... instanceIds)
The IDs of the instances.
|
CreateFleetInstance.Builder |
instanceType(InstanceType instanceType)
The instance type.
|
CreateFleetInstance.Builder |
instanceType(String instanceType)
The instance type.
|
default CreateFleetInstance.Builder |
launchTemplateAndOverrides(Consumer<LaunchTemplateAndOverridesResponse.Builder> launchTemplateAndOverrides)
The launch templates and overrides that were used for launching the instances.
|
CreateFleetInstance.Builder |
launchTemplateAndOverrides(LaunchTemplateAndOverridesResponse launchTemplateAndOverrides)
The launch templates and overrides that were used for launching the instances.
|
CreateFleetInstance.Builder |
lifecycle(InstanceLifecycle lifecycle)
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
|
CreateFleetInstance.Builder |
lifecycle(String lifecycle)
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
|
CreateFleetInstance.Builder |
platform(PlatformValues platform)
The value is
Windows for Windows instances. |
CreateFleetInstance.Builder |
platform(String platform)
The value is
Windows for Windows instances. |
equalsBySdkFields, sdkFields
copy
applyMutation, build
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.
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.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 that creates an instance of theLaunchTemplateAndOverridesResponse.Builder
avoiding the need to create one manually via LaunchTemplateAndOverridesResponse.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to
launchTemplateAndOverrides(LaunchTemplateAndOverridesResponse)
.launchTemplateAndOverrides
- a consumer that will call methods on LaunchTemplateAndOverridesResponse.Builder
launchTemplateAndOverrides(LaunchTemplateAndOverridesResponse)
CreateFleetInstance.Builder lifecycle(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
,
InstanceLifecycle
CreateFleetInstance.Builder lifecycle(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
,
InstanceLifecycle
CreateFleetInstance.Builder instanceIds(Collection<String> instanceIds)
The IDs of the instances.
instanceIds
- The IDs of the instances.CreateFleetInstance.Builder instanceIds(String... instanceIds)
The IDs of the instances.
instanceIds
- The IDs of the instances.CreateFleetInstance.Builder instanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
,
InstanceType
CreateFleetInstance.Builder instanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
,
InstanceType
CreateFleetInstance.Builder platform(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
,
PlatformValues
CreateFleetInstance.Builder platform(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
,
PlatformValues
Copyright © 2021. All rights reserved.