@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.
Modifier and Type | Class and Description |
---|---|
static interface |
LaunchTemplate.Builder |
Modifier and Type | Method and Description |
---|---|
static LaunchTemplate.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
LaunchTemplateSpecification |
launchTemplateSpecification()
The launch template to use.
|
List<LaunchTemplateOverrides> |
overrides()
Any parameters that you specify override the same parameters in the launch template.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LaunchTemplate.Builder> |
serializableBuilderClass() |
LaunchTemplate.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public 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()
Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type.
You must specify between 2 and 20 overrides.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You must specify between 2 and 20 overrides.
public LaunchTemplate.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<LaunchTemplate.Builder,LaunchTemplate>
public static LaunchTemplate.Builder builder()
public static Class<? extends LaunchTemplate.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.