@Generated(value="software.amazon.awssdk:codegen") public final class FleetLaunchTemplateSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FleetLaunchTemplateSpecification.Builder,FleetLaunchTemplateSpecification>
Describes the Amazon EC2 launch template and the launch template version that can be used by a Spot Fleet request to configure Amazon EC2 instances. For information about launch templates, see Launching an instance from a launch template in the Amazon EC2 User Guide for Linux Instances.
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, wait
copy
public String launchTemplateId()
The ID of the launch template. If you specify the template ID, you can't specify the template name.
public String launchTemplateName()
The name of the launch template. If you specify the template name, you can't specify the template ID.
public 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 boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.