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; otherwise blank. |
CreateFleetInstance.Builder |
platform(String platform)
The value is
Windows for Windows instances; otherwise blank. |
copy
applyMutation, build
CreateFleetInstance.Builder launchTemplateAndOverrides(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.
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.default CreateFleetInstance.Builder launchTemplateAndOverrides(Consumer<LaunchTemplateAndOverridesResponse.Builder> 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.
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 blank.
platform
- The value is Windows
for Windows instances; otherwise blank.PlatformValues
,
PlatformValues
CreateFleetInstance.Builder platform(PlatformValues platform)
The value is Windows
for Windows instances; otherwise blank.
platform
- The value is Windows
for Windows instances; otherwise blank.PlatformValues
,
PlatformValues
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.