@Generated(value="software.amazon.awssdk:codegen") public final class FleetLaunchTemplateSpecificationRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FleetLaunchTemplateSpecificationRequest.Builder,FleetLaunchTemplateSpecificationRequest>
The Amazon EC2 launch template that can be used by an EC2 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 |
FleetLaunchTemplateSpecificationRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static FleetLaunchTemplateSpecificationRequest.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 FleetLaunchTemplateSpecificationRequest.Builder> |
serializableBuilderClass() |
FleetLaunchTemplateSpecificationRequest.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 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 FleetLaunchTemplateSpecificationRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<FleetLaunchTemplateSpecificationRequest.Builder,FleetLaunchTemplateSpecificationRequest>
public static FleetLaunchTemplateSpecificationRequest.Builder builder()
public static Class<? extends FleetLaunchTemplateSpecificationRequest.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.