Interface MixedInstancesPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MixedInstancesPolicy.Builder,
,MixedInstancesPolicy> SdkBuilder<MixedInstancesPolicy.Builder,
,MixedInstancesPolicy> SdkPojo
- Enclosing class:
MixedInstancesPolicy
@Mutable
@NotThreadSafe
public static interface MixedInstancesPolicy.Builder
extends SdkPojo, CopyableBuilder<MixedInstancesPolicy.Builder,MixedInstancesPolicy>
-
Method Summary
Modifier and TypeMethodDescriptiondefault MixedInstancesPolicy.Builder
instancesDistribution
(Consumer<InstancesDistribution.Builder> instancesDistribution) The instances distribution.instancesDistribution
(InstancesDistribution instancesDistribution) The instances distribution.default MixedInstancesPolicy.Builder
launchTemplate
(Consumer<LaunchTemplate.Builder> launchTemplate) One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities.launchTemplate
(LaunchTemplate launchTemplate) One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities.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, sdkFieldNameToField, sdkFields
-
Method Details
-
launchTemplate
One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities.
- Parameters:
launchTemplate
- One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplate
default MixedInstancesPolicy.Builder launchTemplate(Consumer<LaunchTemplate.Builder> launchTemplate) One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities.
This is a convenience method that creates an instance of theLaunchTemplate.Builder
avoiding the need to create one manually viaLaunchTemplate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplate(LaunchTemplate)
.- Parameters:
launchTemplate
- a consumer that will call methods onLaunchTemplate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instancesDistribution
The instances distribution.
- Parameters:
instancesDistribution
- The instances distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instancesDistribution
default MixedInstancesPolicy.Builder instancesDistribution(Consumer<InstancesDistribution.Builder> instancesDistribution) The instances distribution.
This is a convenience method that creates an instance of theInstancesDistribution.Builder
avoiding the need to create one manually viaInstancesDistribution.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstancesDistribution(InstancesDistribution)
.- Parameters:
instancesDistribution
- a consumer that will call methods onInstancesDistribution.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-