@Generated(value="software.amazon.awssdk:codegen") public final class DesiredConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DesiredConfiguration.Builder,DesiredConfiguration>
Describes the desired configuration for an instance refresh.
If you specify a desired configuration, you must specify either a LaunchTemplate or a
MixedInstancesPolicy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DesiredConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DesiredConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
LaunchTemplateSpecification |
launchTemplate()
Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch
Amazon EC2 instances.
|
MixedInstancesPolicy |
mixedInstancesPolicy()
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single
Auto Scaling group.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DesiredConfiguration.Builder> |
serializableBuilderClass() |
DesiredConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final LaunchTemplateSpecification launchTemplate()
Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information about launch templates, see Launch templates in the Amazon EC2 Auto Scaling User Guide.
public final MixedInstancesPolicy mixedInstancesPolicy()
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
public DesiredConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DesiredConfiguration.Builder,DesiredConfiguration>public static DesiredConfiguration.Builder builder()
public static Class<? extends DesiredConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.