public static interface MixedInstancesPolicy.Builder extends SdkPojo, CopyableBuilder<MixedInstancesPolicy.Builder,MixedInstancesPolicy>
| Modifier and Type | Method and Description |
|---|---|
default MixedInstancesPolicy.Builder |
instancesDistribution(Consumer<InstancesDistribution.Builder> instancesDistribution)
Specifies the instances distribution.
|
MixedInstancesPolicy.Builder |
instancesDistribution(InstancesDistribution instancesDistribution)
Specifies the instances distribution.
|
default MixedInstancesPolicy.Builder |
launchTemplate(Consumer<LaunchTemplate.Builder> launchTemplate)
Specifies the launch template to use and optionally the instance types (overrides) that are used to provision
EC2 instances to fulfill On-Demand and Spot capacities.
|
MixedInstancesPolicy.Builder |
launchTemplate(LaunchTemplate launchTemplate)
Specifies the launch template to use and optionally the instance types (overrides) that are used to provision
EC2 instances to fulfill On-Demand and Spot capacities.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMixedInstancesPolicy.Builder launchTemplate(LaunchTemplate launchTemplate)
Specifies the launch template to use and optionally the instance types (overrides) that are used to provision EC2 instances to fulfill On-Demand and Spot capacities. Required when creating a mixed instances policy.
launchTemplate - Specifies the launch template to use and optionally the instance types (overrides) that are used to
provision EC2 instances to fulfill On-Demand and Spot capacities. Required when creating a mixed
instances policy.default MixedInstancesPolicy.Builder launchTemplate(Consumer<LaunchTemplate.Builder> launchTemplate)
Specifies the launch template to use and optionally the instance types (overrides) that are used to provision EC2 instances to fulfill On-Demand and Spot capacities. Required when creating a mixed instances policy.
This is a convenience that creates an instance of theLaunchTemplate.Builder avoiding the need to
create one manually via LaunchTemplate.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to launchTemplate(LaunchTemplate).launchTemplate - a consumer that will call methods on LaunchTemplate.BuilderlaunchTemplate(LaunchTemplate)MixedInstancesPolicy.Builder instancesDistribution(InstancesDistribution instancesDistribution)
Specifies the instances distribution. If not provided, the value for each property in
InstancesDistribution uses a default value.
instancesDistribution - Specifies the instances distribution. If not provided, the value for each property in
InstancesDistribution uses a default value.default MixedInstancesPolicy.Builder instancesDistribution(Consumer<InstancesDistribution.Builder> instancesDistribution)
Specifies the instances distribution. If not provided, the value for each property in
InstancesDistribution uses a default value.
InstancesDistribution.Builder avoiding the need
to create one manually via InstancesDistribution.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to instancesDistribution(InstancesDistribution).instancesDistribution - a consumer that will call methods on InstancesDistribution.BuilderinstancesDistribution(InstancesDistribution)Copyright © 2021. All rights reserved.