@Generated(value="software.amazon.awssdk:codegen") public final class FleetLaunchTemplateSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FleetLaunchTemplateSpecification.Builder,FleetLaunchTemplateSpecification>
The Amazon EC2 launch template that can be used by a Spot Fleet to configure Amazon EC2 instances. You must specify either the ID or name of the launch template in the request, but not both.
For information about launch templates, see Launch an instance from a launch template in the Amazon EC2 User Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
FleetLaunchTemplateSpecification.Builder |
| Modifier and Type | Method and Description |
|---|---|
static FleetLaunchTemplateSpecification.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
launchTemplateId()
The ID of the launch template.
|
String |
launchTemplateName()
The name of the launch template.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FleetLaunchTemplateSpecification.Builder> |
serializableBuilderClass() |
FleetLaunchTemplateSpecification.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
version()
The launch template version number,
$Latest, or $Default. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String launchTemplateId()
The ID of the launch template.
You must specify the LaunchTemplateId or the LaunchTemplateName, but not both.
You must specify the LaunchTemplateId or the LaunchTemplateName, but not both.
public final String launchTemplateName()
The name of the launch template.
You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.
You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.
public final String version()
The launch template version number, $Latest, or $Default. You must specify a value,
otherwise the request fails.
If the value is $Latest, Amazon EC2 uses the latest version of the launch template.
If the value is $Default, Amazon EC2 uses the default version of the launch template.
$Latest, or $Default. You must specify a
value, otherwise the request fails.
If the value is $Latest, Amazon EC2 uses the latest version of the launch template.
If the value is $Default, Amazon EC2 uses the default version of the launch template.
public FleetLaunchTemplateSpecification.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<FleetLaunchTemplateSpecification.Builder,FleetLaunchTemplateSpecification>public static FleetLaunchTemplateSpecification.Builder builder()
public static Class<? extends FleetLaunchTemplateSpecification.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.