Class ModifySpotFleetRequestRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ModifySpotFleetRequestRequest>
,Serializable
,Cloneable
Contains the parameters for ModifySpotFleetRequest.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
This method is intended for internal use only.Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.The ID of the Spot fleet request.The size of the fleet.int
hashCode()
void
setExcessCapacityTerminationPolicy
(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy) Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.void
setExcessCapacityTerminationPolicy
(String excessCapacityTerminationPolicy) Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.void
setSpotFleetRequestId
(String spotFleetRequestId) The ID of the Spot fleet request.void
setTargetCapacity
(Integer targetCapacity) The size of the fleet.toString()
Returns a string representation of this object; useful for testing and debugging.withExcessCapacityTerminationPolicy
(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy) Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.withExcessCapacityTerminationPolicy
(String excessCapacityTerminationPolicy) Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.withSpotFleetRequestId
(String spotFleetRequestId) The ID of the Spot fleet request.withTargetCapacity
(Integer targetCapacity) The size of the fleet.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
ModifySpotFleetRequestRequest
public ModifySpotFleetRequestRequest()
-
-
Method Details
-
setSpotFleetRequestId
The ID of the Spot fleet request.
- Parameters:
spotFleetRequestId
- The ID of the Spot fleet request.
-
getSpotFleetRequestId
The ID of the Spot fleet request.
- Returns:
- The ID of the Spot fleet request.
-
withSpotFleetRequestId
The ID of the Spot fleet request.
- Parameters:
spotFleetRequestId
- The ID of the Spot fleet request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTargetCapacity
The size of the fleet.
- Parameters:
targetCapacity
- The size of the fleet.
-
getTargetCapacity
The size of the fleet.
- Returns:
- The size of the fleet.
-
withTargetCapacity
The size of the fleet.
- Parameters:
targetCapacity
- The size of the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setExcessCapacityTerminationPolicy
Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
- Parameters:
excessCapacityTerminationPolicy
- Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.- See Also:
-
getExcessCapacityTerminationPolicy
Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
- Returns:
- Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
- See Also:
-
withExcessCapacityTerminationPolicy
public ModifySpotFleetRequestRequest withExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy) Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
- Parameters:
excessCapacityTerminationPolicy
- Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setExcessCapacityTerminationPolicy
public void setExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy) Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
- Parameters:
excessCapacityTerminationPolicy
- Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.- See Also:
-
withExcessCapacityTerminationPolicy
public ModifySpotFleetRequestRequest withExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy) Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
- Parameters:
excessCapacityTerminationPolicy
- Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<ModifySpotFleetRequestRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-