@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.
|
Boolean |
getReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy instances.
|
SpotOptionsRequest |
getSpotOptions()
Includes
SpotAllocationStrategy and SpotInstanceInterruptionBehavior inside this
structure. |
List<TagSpecification> |
getTagSpecifications()
The tags for an EC2 Fleet resource.
|
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 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 |
setReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy instances.
|
void |
setSpotOptions(SpotOptionsRequest spotOptions)
Includes
SpotAllocationStrategy and SpotInstanceInterruptionBehavior inside this
structure. |
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags for an EC2 Fleet resource.
|
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 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; useful for testing and debugging.
|
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 |
withReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy instances.
|
CreateFleetRequest |
withSpotOptions(SpotOptionsRequest spotOptions)
Includes
SpotAllocationStrategy and SpotInstanceInterruptionBehavior inside this
structure. |
CreateFleetRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags for an EC2 Fleet resource.
|
CreateFleetRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags for an EC2 Fleet resource.
|
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 request.
|
CreateFleetRequest |
withType(String type)
The type of 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, withSdkRequestTimeout
public 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)
Includes SpotAllocationStrategy
and SpotInstanceInterruptionBehavior
inside this
structure.
spotOptions
- Includes SpotAllocationStrategy
and SpotInstanceInterruptionBehavior
inside this
structure.public SpotOptionsRequest getSpotOptions()
Includes SpotAllocationStrategy
and SpotInstanceInterruptionBehavior
inside this
structure.
SpotAllocationStrategy
and SpotInstanceInterruptionBehavior
inside
this structure.public CreateFleetRequest withSpotOptions(SpotOptionsRequest spotOptions)
Includes SpotAllocationStrategy
and SpotInstanceInterruptionBehavior
inside this
structure.
spotOptions
- Includes SpotAllocationStrategy
and SpotInstanceInterruptionBehavior
inside this
structure.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.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.
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.
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.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.
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.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 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 request. Indicates whether the EC2 Fleet only requests
the target capacity, or also
attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places the
required requests. It does not attempt to replenish instances if capacity is diminished, and does not submit
requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2
Fleet places the required requests to meet this target capacity. It also automatically replenishes any
interrupted Spot Instances. Default: maintain
.
type
- The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or
also attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places
the required requests. It does not attempt to replenish instances if capacity is diminished, and does not
submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target
capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically
replenishes any interrupted Spot Instances. Default: maintain
.FleetType
public String getType()
The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or also
attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places the
required requests. It does not attempt to replenish instances if capacity is diminished, and does not submit
requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2
Fleet places the required requests to meet this target capacity. It also automatically replenishes any
interrupted Spot Instances. Default: maintain
.
requests
the target capacity, or
also attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only
places the required requests. It does not attempt to replenish instances if capacity is diminished, and
does not submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain
target capacity, EC2 Fleet places the required requests to meet this target capacity. It also
automatically replenishes any interrupted Spot Instances. Default: maintain
.FleetType
public CreateFleetRequest withType(String type)
The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or also
attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places the
required requests. It does not attempt to replenish instances if capacity is diminished, and does not submit
requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2
Fleet places the required requests to meet this target capacity. It also automatically replenishes any
interrupted Spot Instances. Default: maintain
.
type
- The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or
also attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places
the required requests. It does not attempt to replenish instances if capacity is diminished, and does not
submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target
capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically
replenishes any interrupted Spot Instances. Default: maintain
.FleetType
public CreateFleetRequest withType(FleetType type)
The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or also
attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places the
required requests. It does not attempt to replenish instances if capacity is diminished, and does not submit
requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2
Fleet places the required requests to meet this target capacity. It also automatically replenishes any
interrupted Spot Instances. Default: maintain
.
type
- The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or
also attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places
the required requests. It does not attempt to replenish instances if capacity is diminished, and does not
submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target
capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically
replenishes any interrupted Spot Instances. Default: maintain
.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. The default end date is 7 days from the current 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. The default end date is 7 days from the current date.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. The default end date is 7 days from the current date.
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. The default end date is 7 days from the current 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. The default end date is 7 days from the current date.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 tags for an EC2 Fleet resource.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags for an EC2 Fleet resource.
tagSpecifications
- The tags for an EC2 Fleet resource.public CreateFleetRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags for an EC2 Fleet resource.
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 tags for an EC2 Fleet resource.public CreateFleetRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags for an EC2 Fleet resource.
tagSpecifications
- The tags for an EC2 Fleet resource.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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.