public class ModifySpotFleetRequestRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<ModifySpotFleetRequestRequest>
Contains the parameters for ModifySpotFleetRequest.
Modifier and Type | Field and Description |
---|---|
private java.lang.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.
|
private java.lang.String |
spotFleetRequestId
The ID of the Spot fleet request.
|
private java.lang.Integer |
targetCapacity
The size of the fleet.
|
NOOP
Constructor and Description |
---|
ModifySpotFleetRequestRequest() |
Modifier and Type | Method and Description |
---|---|
ModifySpotFleetRequestRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
Request<ModifySpotFleetRequestRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.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.
|
java.lang.String |
getSpotFleetRequestId()
The ID of the Spot fleet request.
|
java.lang.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(java.lang.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(java.lang.String spotFleetRequestId)
The ID of the Spot fleet request.
|
void |
setTargetCapacity(java.lang.Integer targetCapacity)
The size of the fleet.
|
java.lang.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(java.lang.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(java.lang.String spotFleetRequestId)
The ID of the Spot fleet request.
|
ModifySpotFleetRequestRequest |
withTargetCapacity(java.lang.Integer targetCapacity)
The size of the fleet.
|
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
private java.lang.String spotFleetRequestId
The ID of the Spot fleet request.
private java.lang.Integer targetCapacity
The size of the fleet.
private java.lang.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.
public void setSpotFleetRequestId(java.lang.String spotFleetRequestId)
The ID of the Spot fleet request.
spotFleetRequestId
- The ID of the Spot fleet request.public java.lang.String getSpotFleetRequestId()
The ID of the Spot fleet request.
public ModifySpotFleetRequestRequest withSpotFleetRequestId(java.lang.String spotFleetRequestId)
The ID of the Spot fleet request.
spotFleetRequestId
- The ID of the Spot fleet request.public void setTargetCapacity(java.lang.Integer targetCapacity)
The size of the fleet.
targetCapacity
- The size of the fleet.public java.lang.Integer getTargetCapacity()
The size of the fleet.
public ModifySpotFleetRequestRequest withTargetCapacity(java.lang.Integer targetCapacity)
The size of the fleet.
targetCapacity
- The size of the fleet.public void setExcessCapacityTerminationPolicy(java.lang.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.
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.ExcessCapacityTerminationPolicy
public java.lang.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.
ExcessCapacityTerminationPolicy
public ModifySpotFleetRequestRequest withExcessCapacityTerminationPolicy(java.lang.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.
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.ExcessCapacityTerminationPolicy
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.
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.ExcessCapacityTerminationPolicy
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.
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.ExcessCapacityTerminationPolicy
public Request<ModifySpotFleetRequestRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifySpotFleetRequestRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ModifySpotFleetRequestRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()