@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFleetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateFleetRequest>
NOOP
Constructor and Description |
---|
CreateFleetRequest() |
Modifier and Type | Method and Description |
---|---|
CreateFleetRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getContext()
Reserved.
|
Request<CreateFleetRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getExcessCapacityTerminationPolicy()
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
|
List<FleetLaunchTemplateConfigRequest> |
getLaunchTemplateConfigs()
The configuration for the EC2 Fleet.
|
OnDemandOptionsRequest |
getOnDemandOptions()
Describes the configuration of On-Demand Instances in an EC2 Fleet.
|
Boolean |
getReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
|
SpotOptionsRequest |
getSpotOptions()
Describes the configuration of Spot Instances in an EC2 Fleet.
|
List<TagSpecification> |
getTagSpecifications()
The key-value pair for tagging the EC2 Fleet request on creation.
|
TargetCapacitySpecificationRequest |
getTargetCapacitySpecification()
The number of units to request.
|
Boolean |
getTerminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
String |
getType()
The fleet type.
|
Date |
getValidFrom()
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
Date |
getValidUntil()
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
int |
hashCode() |
Boolean |
isReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
|
Boolean |
isTerminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setContext(String context)
Reserved.
|
void |
setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
|
void |
setLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs)
The configuration for the EC2 Fleet.
|
void |
setOnDemandOptions(OnDemandOptionsRequest onDemandOptions)
Describes the configuration of On-Demand Instances in an EC2 Fleet.
|
void |
setReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
|
void |
setSpotOptions(SpotOptionsRequest spotOptions)
Describes the configuration of Spot Instances in an EC2 Fleet.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The key-value pair for tagging the EC2 Fleet request on creation.
|
void |
setTargetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The number of units to request.
|
void |
setTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
void |
setType(String type)
The fleet type.
|
void |
setValidFrom(Date validFrom)
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
void |
setValidUntil(Date validUntil)
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
String |
toString()
Returns a string representation of this object.
|
CreateFleetRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateFleetRequest |
withContext(String context)
Reserved.
|
CreateFleetRequest |
withExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
|
CreateFleetRequest |
withExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
|
CreateFleetRequest |
withLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs)
The configuration for the EC2 Fleet.
|
CreateFleetRequest |
withLaunchTemplateConfigs(FleetLaunchTemplateConfigRequest... launchTemplateConfigs)
The configuration for the EC2 Fleet.
|
CreateFleetRequest |
withOnDemandOptions(OnDemandOptionsRequest onDemandOptions)
Describes the configuration of On-Demand Instances in an EC2 Fleet.
|
CreateFleetRequest |
withReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
|
CreateFleetRequest |
withSpotOptions(SpotOptionsRequest spotOptions)
Describes the configuration of Spot Instances in an EC2 Fleet.
|
CreateFleetRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The key-value pair for tagging the EC2 Fleet request on creation.
|
CreateFleetRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The key-value pair for tagging the EC2 Fleet request on creation.
|
CreateFleetRequest |
withTargetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The number of units to request.
|
CreateFleetRequest |
withTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
CreateFleetRequest |
withType(FleetType type)
The fleet type.
|
CreateFleetRequest |
withType(String type)
The fleet type.
|
CreateFleetRequest |
withValidFrom(Date validFrom)
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
CreateFleetRequest |
withValidUntil(Date validUntil)
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
idempotency.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
public CreateFleetRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
idempotency.public void setSpotOptions(SpotOptionsRequest spotOptions)
Describes the configuration of Spot Instances in an EC2 Fleet.
spotOptions
- Describes the configuration of Spot Instances in an EC2 Fleet.public SpotOptionsRequest getSpotOptions()
Describes the configuration of Spot Instances in an EC2 Fleet.
public CreateFleetRequest withSpotOptions(SpotOptionsRequest spotOptions)
Describes the configuration of Spot Instances in an EC2 Fleet.
spotOptions
- Describes the configuration of Spot Instances in an EC2 Fleet.public void setOnDemandOptions(OnDemandOptionsRequest onDemandOptions)
Describes the configuration of On-Demand Instances in an EC2 Fleet.
onDemandOptions
- Describes the configuration of On-Demand Instances in an EC2 Fleet.public OnDemandOptionsRequest getOnDemandOptions()
Describes the configuration of On-Demand Instances in an EC2 Fleet.
public CreateFleetRequest withOnDemandOptions(OnDemandOptionsRequest onDemandOptions)
Describes the configuration of On-Demand Instances in an EC2 Fleet.
onDemandOptions
- Describes the configuration of On-Demand Instances in an EC2 Fleet.public void setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
excessCapacityTerminationPolicy
- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
FleetExcessCapacityTerminationPolicy
public String getExcessCapacityTerminationPolicy()
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
Supported only for fleets of type maintain
.
FleetExcessCapacityTerminationPolicy
public CreateFleetRequest withExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
excessCapacityTerminationPolicy
- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
FleetExcessCapacityTerminationPolicy
public CreateFleetRequest withExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
excessCapacityTerminationPolicy
- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
FleetExcessCapacityTerminationPolicy
public List<FleetLaunchTemplateConfigRequest> getLaunchTemplateConfigs()
The configuration for the EC2 Fleet.
public void setLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs)
The configuration for the EC2 Fleet.
launchTemplateConfigs
- The configuration for the EC2 Fleet.public CreateFleetRequest withLaunchTemplateConfigs(FleetLaunchTemplateConfigRequest... launchTemplateConfigs)
The configuration for the EC2 Fleet.
NOTE: This method appends the values to the existing list (if any). Use
setLaunchTemplateConfigs(java.util.Collection)
or
withLaunchTemplateConfigs(java.util.Collection)
if you want to override the existing values.
launchTemplateConfigs
- The configuration for the EC2 Fleet.public CreateFleetRequest withLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs)
The configuration for the EC2 Fleet.
launchTemplateConfigs
- The configuration for the EC2 Fleet.public void setTargetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The number of units to request.
targetCapacitySpecification
- The number of units to request.public TargetCapacitySpecificationRequest getTargetCapacitySpecification()
The number of units to request.
public CreateFleetRequest withTargetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The number of units to request.
targetCapacitySpecification
- The number of units to request.public void setTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running instances should be terminated when the EC2 Fleet expires.
terminateInstancesWithExpiration
- Indicates whether running instances should be terminated when the EC2 Fleet expires.public Boolean getTerminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
public CreateFleetRequest withTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running instances should be terminated when the EC2 Fleet expires.
terminateInstancesWithExpiration
- Indicates whether running instances should be terminated when the EC2 Fleet expires.public Boolean isTerminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
public void setType(String type)
The fleet type. The default value is maintain
.
maintain
- The EC2 Fleet places an asynchronous request for your desired capacity, and continues to
maintain your desired Spot capacity by replenishing interrupted Spot Instances.
request
- The EC2 Fleet places an asynchronous one-time request for your desired capacity, but does
submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not maintain Spot
capacity if Spot Instances are interrupted.
instant
- The EC2 Fleet places a synchronous one-time request for your desired capacity, and returns
errors for any instances that could not be launched.
For more information, see EC2 Fleet request types in the Amazon EC2 User Guide.
type
- The fleet type. The default value is maintain
.
maintain
- The EC2 Fleet places an asynchronous request for your desired capacity, and
continues to maintain your desired Spot capacity by replenishing interrupted Spot Instances.
request
- The EC2 Fleet places an asynchronous one-time request for your desired capacity,
but does submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not
maintain Spot capacity if Spot Instances are interrupted.
instant
- The EC2 Fleet places a synchronous one-time request for your desired capacity, and
returns errors for any instances that could not be launched.
For more information, see EC2 Fleet request types in the Amazon EC2 User Guide.
FleetType
public String getType()
The fleet type. The default value is maintain
.
maintain
- The EC2 Fleet places an asynchronous request for your desired capacity, and continues to
maintain your desired Spot capacity by replenishing interrupted Spot Instances.
request
- The EC2 Fleet places an asynchronous one-time request for your desired capacity, but does
submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not maintain Spot
capacity if Spot Instances are interrupted.
instant
- The EC2 Fleet places a synchronous one-time request for your desired capacity, and returns
errors for any instances that could not be launched.
For more information, see EC2 Fleet request types in the Amazon EC2 User Guide.
maintain
.
maintain
- The EC2 Fleet places an asynchronous request for your desired capacity, and
continues to maintain your desired Spot capacity by replenishing interrupted Spot Instances.
request
- The EC2 Fleet places an asynchronous one-time request for your desired capacity,
but does submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not
maintain Spot capacity if Spot Instances are interrupted.
instant
- The EC2 Fleet places a synchronous one-time request for your desired capacity, and
returns errors for any instances that could not be launched.
For more information, see EC2 Fleet request types in the Amazon EC2 User Guide.
FleetType
public CreateFleetRequest withType(String type)
The fleet type. The default value is maintain
.
maintain
- The EC2 Fleet places an asynchronous request for your desired capacity, and continues to
maintain your desired Spot capacity by replenishing interrupted Spot Instances.
request
- The EC2 Fleet places an asynchronous one-time request for your desired capacity, but does
submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not maintain Spot
capacity if Spot Instances are interrupted.
instant
- The EC2 Fleet places a synchronous one-time request for your desired capacity, and returns
errors for any instances that could not be launched.
For more information, see EC2 Fleet request types in the Amazon EC2 User Guide.
type
- The fleet type. The default value is maintain
.
maintain
- The EC2 Fleet places an asynchronous request for your desired capacity, and
continues to maintain your desired Spot capacity by replenishing interrupted Spot Instances.
request
- The EC2 Fleet places an asynchronous one-time request for your desired capacity,
but does submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not
maintain Spot capacity if Spot Instances are interrupted.
instant
- The EC2 Fleet places a synchronous one-time request for your desired capacity, and
returns errors for any instances that could not be launched.
For more information, see EC2 Fleet request types in the Amazon EC2 User Guide.
FleetType
public CreateFleetRequest withType(FleetType type)
The fleet type. The default value is maintain
.
maintain
- The EC2 Fleet places an asynchronous request for your desired capacity, and continues to
maintain your desired Spot capacity by replenishing interrupted Spot Instances.
request
- The EC2 Fleet places an asynchronous one-time request for your desired capacity, but does
submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not maintain Spot
capacity if Spot Instances are interrupted.
instant
- The EC2 Fleet places a synchronous one-time request for your desired capacity, and returns
errors for any instances that could not be launched.
For more information, see EC2 Fleet request types in the Amazon EC2 User Guide.
type
- The fleet type. The default value is maintain
.
maintain
- The EC2 Fleet places an asynchronous request for your desired capacity, and
continues to maintain your desired Spot capacity by replenishing interrupted Spot Instances.
request
- The EC2 Fleet places an asynchronous one-time request for your desired capacity,
but does submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not
maintain Spot capacity if Spot Instances are interrupted.
instant
- The EC2 Fleet places a synchronous one-time request for your desired capacity, and
returns errors for any instances that could not be launched.
For more information, see EC2 Fleet request types in the Amazon EC2 User Guide.
FleetType
public void setValidFrom(Date validFrom)
The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
validFrom
- The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the
request immediately.public Date getValidFrom()
The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
public CreateFleetRequest withValidFrom(Date validFrom)
The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
validFrom
- The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the
request immediately.public void setValidUntil(Date validUntil)
The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.
validUntil
- The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests
are placed or able to fulfill the request. If no value is specified, the request remains until you cancel
it.public Date getValidUntil()
The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.
public CreateFleetRequest withValidUntil(Date validUntil)
The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.
validUntil
- The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests
are placed or able to fulfill the request. If no value is specified, the request remains until you cancel
it.public void setReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2
Fleet health checks in the Amazon EC2 User Guide.
replaceUnhealthyInstances
- Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide.public Boolean getReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2
Fleet health checks in the Amazon EC2 User Guide.
maintain
. For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide.public CreateFleetRequest withReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2
Fleet health checks in the Amazon EC2 User Guide.
replaceUnhealthyInstances
- Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide.public Boolean isReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2
Fleet health checks in the Amazon EC2 User Guide.
maintain
. For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide.public List<TagSpecification> getTagSpecifications()
The key-value pair for tagging the EC2 Fleet request on creation. For more information, see Tag your resources.
If the fleet type is instant
, specify a resource type of fleet
to tag the fleet or
instance
to tag the instances at launch.
If the fleet type is maintain
or request
, specify a resource type of fleet
to tag the fleet. You cannot specify a resource type of instance
. To tag instances at launch,
specify the tags in a launch template.
If the fleet type is instant
, specify a resource type of fleet
to tag the fleet
or instance
to tag the instances at launch.
If the fleet type is maintain
or request
, specify a resource type of
fleet
to tag the fleet. You cannot specify a resource type of instance
. To tag
instances at launch, specify the tags in a launch template.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The key-value pair for tagging the EC2 Fleet request on creation. For more information, see Tag your resources.
If the fleet type is instant
, specify a resource type of fleet
to tag the fleet or
instance
to tag the instances at launch.
If the fleet type is maintain
or request
, specify a resource type of fleet
to tag the fleet. You cannot specify a resource type of instance
. To tag instances at launch,
specify the tags in a launch template.
tagSpecifications
- The key-value pair for tagging the EC2 Fleet request on creation. For more information, see Tag your
resources.
If the fleet type is instant
, specify a resource type of fleet
to tag the fleet
or instance
to tag the instances at launch.
If the fleet type is maintain
or request
, specify a resource type of
fleet
to tag the fleet. You cannot specify a resource type of instance
. To tag
instances at launch, specify the tags in a launch template.
public CreateFleetRequest withTagSpecifications(TagSpecification... tagSpecifications)
The key-value pair for tagging the EC2 Fleet request on creation. For more information, see Tag your resources.
If the fleet type is instant
, specify a resource type of fleet
to tag the fleet or
instance
to tag the instances at launch.
If the fleet type is maintain
or request
, specify a resource type of fleet
to tag the fleet. You cannot specify a resource type of instance
. To tag instances at launch,
specify the tags in a launch template.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The key-value pair for tagging the EC2 Fleet request on creation. For more information, see Tag your
resources.
If the fleet type is instant
, specify a resource type of fleet
to tag the fleet
or instance
to tag the instances at launch.
If the fleet type is maintain
or request
, specify a resource type of
fleet
to tag the fleet. You cannot specify a resource type of instance
. To tag
instances at launch, specify the tags in a launch template.
public CreateFleetRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The key-value pair for tagging the EC2 Fleet request on creation. For more information, see Tag your resources.
If the fleet type is instant
, specify a resource type of fleet
to tag the fleet or
instance
to tag the instances at launch.
If the fleet type is maintain
or request
, specify a resource type of fleet
to tag the fleet. You cannot specify a resource type of instance
. To tag instances at launch,
specify the tags in a launch template.
tagSpecifications
- The key-value pair for tagging the EC2 Fleet request on creation. For more information, see Tag your
resources.
If the fleet type is instant
, specify a resource type of fleet
to tag the fleet
or instance
to tag the instances at launch.
If the fleet type is maintain
or request
, specify a resource type of
fleet
to tag the fleet. You cannot specify a resource type of instance
. To tag
instances at launch, specify the tags in a launch template.
public void setContext(String context)
Reserved.
context
- Reserved.public String getContext()
Reserved.
public CreateFleetRequest withContext(String context)
Reserved.
context
- Reserved.public Request<CreateFleetRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateFleetRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateFleetRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()