@Generated(value="software.amazon.awssdk:codegen") public final class LaunchTemplate extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchTemplate.Builder,LaunchTemplate>
Describes a launch template and overrides.
You specify these properties as part of a mixed instances policy.
When you update the launch template or overrides, existing Amazon EC2 instances continue to run. When scale out occurs, Amazon EC2 Auto Scaling launches instances to match the new settings. When scale in occurs, Amazon EC2 Auto Scaling terminates instances according to the group's termination policies.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LaunchTemplate.Builder |
| Modifier and Type | Method and Description |
|---|---|
static LaunchTemplate.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasOverrides()
Returns true if the Overrides property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
LaunchTemplateSpecification |
launchTemplateSpecification()
The launch template to use.
|
List<LaunchTemplateOverrides> |
overrides()
Any properties that you specify override the same properties in the launch template.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LaunchTemplate.Builder> |
serializableBuilderClass() |
LaunchTemplate.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final LaunchTemplateSpecification launchTemplateSpecification()
The launch template to use.
public final boolean hasOverrides()
public final List<LaunchTemplateOverrides> overrides()
Any properties that you specify override the same properties in the launch template. If not provided, Amazon EC2 Auto Scaling uses the instance type specified in the launch template when it launches an instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasOverrides() to see if a value was sent in this field.
public LaunchTemplate.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LaunchTemplate.Builder,LaunchTemplate>public static LaunchTemplate.Builder builder()
public static Class<? extends LaunchTemplate.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.