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 ModifySpotFleetRequestRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)Request<ModifySpotFleetRequestRequest>getDryRunRequest()This method is intended for internal use only.StringgetExcessCapacityTerminationPolicy()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.StringgetSpotFleetRequestId()The ID of the Spot fleet request.IntegergetTargetCapacity()The size of the fleet.inthashCode()voidsetExcessCapacityTerminationPolicy(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.voidsetExcessCapacityTerminationPolicy(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.voidsetSpotFleetRequestId(String spotFleetRequestId)The ID of the Spot fleet request.voidsetTargetCapacity(Integer targetCapacity)The size of the fleet.StringtoString()Returns a string representation of this object; useful for testing and debugging.ModifySpotFleetRequestRequestwithExcessCapacityTerminationPolicy(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.ModifySpotFleetRequestRequestwithExcessCapacityTerminationPolicy(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.ModifySpotFleetRequestRequestwithSpotFleetRequestId(String spotFleetRequestId)The ID of the Spot fleet request.ModifySpotFleetRequestRequestwithTargetCapacity(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:
getDryRunRequestin interfaceDryRunSupportedRequest<ModifySpotFleetRequestRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ModifySpotFleetRequestRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-