@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 you provide to ensure the idempotency of the request.
|
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()
The allocation strategy of On-Demand Instances in an EC2 Fleet.
|
Boolean |
getReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy 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
TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity, and
DefaultCapacityType structure. |
Boolean |
getTerminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
String |
getType()
The type of the request.
|
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 instances.
|
Boolean |
isTerminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
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)
The allocation strategy of On-Demand Instances in an EC2 Fleet.
|
void |
setReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy 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
TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity, and
DefaultCapacityType structure. |
void |
setTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
void |
setType(String type)
The type of the request.
|
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 you provide to ensure the idempotency of the request.
|
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)
The allocation strategy of On-Demand Instances in an EC2 Fleet.
|
CreateFleetRequest |
withReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy 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
TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity, and
DefaultCapacityType structure. |
CreateFleetRequest |
withTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
CreateFleetRequest |
withType(FleetType type)
The type of the request.
|
CreateFleetRequest |
withType(String type)
The type of the request.
|
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, withSdkRequestTimeoutpublic void setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more
information, see Ensuring
Idempotency.public String getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
public CreateFleetRequest withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
clientToken - Unique, case-sensitive identifier 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)
The allocation strategy of On-Demand Instances in an EC2 Fleet.
onDemandOptions - The allocation strategy of On-Demand Instances in an EC2 Fleet.public OnDemandOptionsRequest getOnDemandOptions()
The allocation strategy of On-Demand Instances in an EC2 Fleet.
public CreateFleetRequest withOnDemandOptions(OnDemandOptionsRequest onDemandOptions)
The allocation strategy of On-Demand Instances in an EC2 Fleet.
onDemandOptions - The allocation strategy 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.
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.FleetExcessCapacityTerminationPolicypublic 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.
FleetExcessCapacityTerminationPolicypublic 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.
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.FleetExcessCapacityTerminationPolicypublic 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.
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.FleetExcessCapacityTerminationPolicypublic 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 TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity, and
DefaultCapacityType structure.
targetCapacitySpecification - The TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity
, and DefaultCapacityType structure.public TargetCapacitySpecificationRequest getTargetCapacitySpecification()
The TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity, and
DefaultCapacityType structure.
TotalTargetCapacity, OnDemandTargetCapacity,
SpotTargetCapacity, and DefaultCapacityType structure.public CreateFleetRequest withTargetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity, and
DefaultCapacityType structure.
targetCapacitySpecification - The TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity
, and DefaultCapacityType structure.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 type of the request. By default, the EC2 Fleet places an asynchronous request for your desired capacity, and
maintains it by replenishing interrupted Spot Instances (maintain). A value of instant
places a synchronous one-time request, and returns errors for any instances that could not be launched. A value
of request places an asynchronous one-time request without maintaining capacity or submitting
requests in alternative capacity pools if capacity is unavailable. For more information, see EC2 Fleet Request Types in the Amazon Elastic Compute Cloud User Guide.
type - The type of the request. By default, the EC2 Fleet places an asynchronous request for your desired
capacity, and maintains it by replenishing interrupted Spot Instances (maintain). A value of
instant places a synchronous one-time request, and returns errors for any instances that
could not be launched. A value of request places an asynchronous one-time request without
maintaining capacity or submitting requests in alternative capacity pools if capacity is unavailable. For
more information, see EC2 Fleet Request Types in the Amazon Elastic Compute Cloud User Guide.FleetTypepublic String getType()
The type of the request. By default, the EC2 Fleet places an asynchronous request for your desired capacity, and
maintains it by replenishing interrupted Spot Instances (maintain). A value of instant
places a synchronous one-time request, and returns errors for any instances that could not be launched. A value
of request places an asynchronous one-time request without maintaining capacity or submitting
requests in alternative capacity pools if capacity is unavailable. For more information, see EC2 Fleet Request Types in the Amazon Elastic Compute Cloud User Guide.
maintain). A value of
instant places a synchronous one-time request, and returns errors for any instances that
could not be launched. A value of request places an asynchronous one-time request without
maintaining capacity or submitting requests in alternative capacity pools if capacity is unavailable. For
more information, see EC2 Fleet Request Types in the Amazon Elastic Compute Cloud User Guide.FleetTypepublic CreateFleetRequest withType(String type)
The type of the request. By default, the EC2 Fleet places an asynchronous request for your desired capacity, and
maintains it by replenishing interrupted Spot Instances (maintain). A value of instant
places a synchronous one-time request, and returns errors for any instances that could not be launched. A value
of request places an asynchronous one-time request without maintaining capacity or submitting
requests in alternative capacity pools if capacity is unavailable. For more information, see EC2 Fleet Request Types in the Amazon Elastic Compute Cloud User Guide.
type - The type of the request. By default, the EC2 Fleet places an asynchronous request for your desired
capacity, and maintains it by replenishing interrupted Spot Instances (maintain). A value of
instant places a synchronous one-time request, and returns errors for any instances that
could not be launched. A value of request places an asynchronous one-time request without
maintaining capacity or submitting requests in alternative capacity pools if capacity is unavailable. For
more information, see EC2 Fleet Request Types in the Amazon Elastic Compute Cloud User Guide.FleetTypepublic CreateFleetRequest withType(FleetType type)
The type of the request. By default, the EC2 Fleet places an asynchronous request for your desired capacity, and
maintains it by replenishing interrupted Spot Instances (maintain). A value of instant
places a synchronous one-time request, and returns errors for any instances that could not be launched. A value
of request places an asynchronous one-time request without maintaining capacity or submitting
requests in alternative capacity pools if capacity is unavailable. For more information, see EC2 Fleet Request Types in the Amazon Elastic Compute Cloud User Guide.
type - The type of the request. By default, the EC2 Fleet places an asynchronous request for your desired
capacity, and maintains it by replenishing interrupted Spot Instances (maintain). A value of
instant places a synchronous one-time request, and returns errors for any instances that
could not be launched. A value of request places an asynchronous one-time request without
maintaining capacity or submitting requests in alternative capacity pools if capacity is unavailable. For
more information, see EC2 Fleet Request Types in the Amazon Elastic Compute Cloud User Guide.FleetTypepublic 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 instances.
replaceUnhealthyInstances - Indicates whether EC2 Fleet should replace unhealthy instances.public Boolean getReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy instances.
public CreateFleetRequest withReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy instances.
replaceUnhealthyInstances - Indicates whether EC2 Fleet should replace unhealthy instances.public Boolean isReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy instances.
public List<TagSpecification> getTagSpecifications()
The key-value pair for tagging the EC2 Fleet request on creation. The value for ResourceType must be
fleet, otherwise the fleet request fails. To tag instances at launch, specify the tags in the launch
template. For information about tagging after launch, see Tagging Your
Resources.
ResourceType
must be fleet, otherwise the fleet request fails. To tag instances at launch, specify the
tags in the launch template. For information about tagging after launch, see Tagging Your
Resources.public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The key-value pair for tagging the EC2 Fleet request on creation. The value for ResourceType must be
fleet, otherwise the fleet request fails. To tag instances at launch, specify the tags in the launch
template. For information about tagging after launch, see Tagging Your
Resources.
tagSpecifications - The key-value pair for tagging the EC2 Fleet request on creation. The value for ResourceType
must be fleet, otherwise the fleet request fails. To tag instances at launch, specify the
tags in the launch template. For information about tagging after launch, see Tagging Your
Resources.public CreateFleetRequest withTagSpecifications(TagSpecification... tagSpecifications)
The key-value pair for tagging the EC2 Fleet request on creation. The value for ResourceType must be
fleet, otherwise the fleet request fails. To tag instances at launch, specify the tags in the launch
template. For information about tagging after launch, see Tagging Your
Resources.
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. The value for ResourceType
must be fleet, otherwise the fleet request fails. To tag instances at launch, specify the
tags in the launch template. For information about tagging after launch, see Tagging Your
Resources.public CreateFleetRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The key-value pair for tagging the EC2 Fleet request on creation. The value for ResourceType must be
fleet, otherwise the fleet request fails. To tag instances at launch, specify the tags in the launch
template. For information about tagging after launch, see Tagging Your
Resources.
tagSpecifications - The key-value pair for tagging the EC2 Fleet request on creation. The value for ResourceType
must be fleet, otherwise the fleet request fails. To tag instances at launch, specify the
tags in the launch template. For information about tagging after launch, see Tagging Your
Resources.public Request<CreateFleetRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateFleetRequest>public String toString()
toString in class ObjectObject.toString()public CreateFleetRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.