Class ModifySpotFleetRequestRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.ModifySpotFleetRequestRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ModifySpotFleetRequestRequest>
,Serializable
,Cloneable
public class ModifySpotFleetRequestRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifySpotFleetRequestRequest>
Contains the parameters for ModifySpotFleetRequest.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ModifySpotFleetRequestRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifySpotFleetRequestRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
Request<ModifySpotFleetRequestRequest>
getDryRunRequest()
This method is intended for internal use only.String
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.String
getSpotFleetRequestId()
The ID of the Spot fleet request.Integer
getTargetCapacity()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.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.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.ModifySpotFleetRequestRequest
withSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot fleet request.ModifySpotFleetRequestRequest
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
-
-
-
-
Method Detail
-
setSpotFleetRequestId
public void setSpotFleetRequestId(String spotFleetRequestId)
The ID of the Spot fleet request.
- Parameters:
spotFleetRequestId
- The ID of the Spot fleet request.
-
getSpotFleetRequestId
public String getSpotFleetRequestId()
The ID of the Spot fleet request.
- Returns:
- The ID of the Spot fleet request.
-
withSpotFleetRequestId
public ModifySpotFleetRequestRequest withSpotFleetRequestId(String spotFleetRequestId)
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
public void setTargetCapacity(Integer targetCapacity)
The size of the fleet.
- Parameters:
targetCapacity
- The size of the fleet.
-
getTargetCapacity
public Integer getTargetCapacity()
The size of the fleet.
- Returns:
- The size of the fleet.
-
withTargetCapacity
public ModifySpotFleetRequestRequest withTargetCapacity(Integer targetCapacity)
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
public 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.
- 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:
ExcessCapacityTerminationPolicy
-
getExcessCapacityTerminationPolicy
public String 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:
ExcessCapacityTerminationPolicy
-
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:
ExcessCapacityTerminationPolicy
-
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:
ExcessCapacityTerminationPolicy
-
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:
ExcessCapacityTerminationPolicy
-
getDryRunRequest
public Request<ModifySpotFleetRequestRequest> 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ModifySpotFleetRequestRequest 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:
Object.clone()
-
-