@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.
The overrides are used to override the instance type specified by the launch template with multiple instance types that can be used to launch On-Demand Instances and Spot Instances.
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() |
LaunchTemplateSpecification |
launchTemplateSpecification()
The launch template to use.
|
List<LaunchTemplateOverrides> |
overrides()
An optional setting.
|
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 LaunchTemplateSpecification launchTemplateSpecification()
The launch template to use. You must specify either the launch template ID or launch template name in the request.
public List<LaunchTemplateOverrides> overrides()
An optional setting. Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type. You can specify between 1 and 20 instance types.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public LaunchTemplate.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LaunchTemplate.Builder,LaunchTemplate>public static LaunchTemplate.Builder builder()
public static Class<? extends LaunchTemplate.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.