Class DesiredConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.autoscaling.model.DesiredConfiguration
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DesiredConfiguration.Builder,DesiredConfiguration>
@Generated("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 aMixedInstancesPolicy
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DesiredConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends DesiredConfiguration.Builder>
serializableBuilderClass()
DesiredConfiguration.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
launchTemplate
public 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.
- Returns:
- 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.
-
mixedInstancesPolicy
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.
- Returns:
- 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.
-
toBuilder
public DesiredConfiguration.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<DesiredConfiguration.Builder,DesiredConfiguration>
-
builder
public static DesiredConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends DesiredConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-