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
LaunchTemplateor aMixedInstancesPolicy.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDesiredConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DesiredConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LaunchTemplateSpecificationlaunchTemplate()Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances.MixedInstancesPolicymixedInstancesPolicy()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.BuildertoBuilder()StringtoString()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:
toBuilderin 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:
equalsBySdkFieldsin 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:
sdkFieldNameToFieldin interfaceSdkPojo
-
-