public class UpdateFleetCapacityRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents the input for a request action.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
desiredInstances
Number of EC2 instances you want this fleet to host.
|
private java.lang.String |
fleetId
Unique identifier for the fleet you want to update capacity for.
|
private java.lang.Integer |
maxSize
Maximum value allowed for the fleet's instance count.
|
private java.lang.Integer |
minSize
Minimum value allowed for the fleet's instance count.
|
NOOP
Constructor and Description |
---|
UpdateFleetCapacityRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateFleetCapacityRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getDesiredInstances()
Number of EC2 instances you want this fleet to host.
|
java.lang.String |
getFleetId()
Unique identifier for the fleet you want to update capacity for.
|
java.lang.Integer |
getMaxSize()
Maximum value allowed for the fleet's instance count.
|
java.lang.Integer |
getMinSize()
Minimum value allowed for the fleet's instance count.
|
int |
hashCode() |
void |
setDesiredInstances(java.lang.Integer desiredInstances)
Number of EC2 instances you want this fleet to host.
|
void |
setFleetId(java.lang.String fleetId)
Unique identifier for the fleet you want to update capacity for.
|
void |
setMaxSize(java.lang.Integer maxSize)
Maximum value allowed for the fleet's instance count.
|
void |
setMinSize(java.lang.Integer minSize)
Minimum value allowed for the fleet's instance count.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateFleetCapacityRequest |
withDesiredInstances(java.lang.Integer desiredInstances)
Number of EC2 instances you want this fleet to host.
|
UpdateFleetCapacityRequest |
withFleetId(java.lang.String fleetId)
Unique identifier for the fleet you want to update capacity for.
|
UpdateFleetCapacityRequest |
withMaxSize(java.lang.Integer maxSize)
Maximum value allowed for the fleet's instance count.
|
UpdateFleetCapacityRequest |
withMinSize(java.lang.Integer minSize)
Minimum value allowed for the fleet's instance count.
|
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 fleetId
Unique identifier for the fleet you want to update capacity for.
private java.lang.Integer desiredInstances
Number of EC2 instances you want this fleet to host.
private java.lang.Integer minSize
Minimum value allowed for the fleet's instance count. Default if not set is 0.
private java.lang.Integer maxSize
Maximum value allowed for the fleet's instance count. Default if not set is 1.
public void setFleetId(java.lang.String fleetId)
Unique identifier for the fleet you want to update capacity for.
fleetId
- Unique identifier for the fleet you want to update capacity for.public java.lang.String getFleetId()
Unique identifier for the fleet you want to update capacity for.
public UpdateFleetCapacityRequest withFleetId(java.lang.String fleetId)
Unique identifier for the fleet you want to update capacity for.
fleetId
- Unique identifier for the fleet you want to update capacity for.public void setDesiredInstances(java.lang.Integer desiredInstances)
Number of EC2 instances you want this fleet to host.
desiredInstances
- Number of EC2 instances you want this fleet to host.public java.lang.Integer getDesiredInstances()
Number of EC2 instances you want this fleet to host.
public UpdateFleetCapacityRequest withDesiredInstances(java.lang.Integer desiredInstances)
Number of EC2 instances you want this fleet to host.
desiredInstances
- Number of EC2 instances you want this fleet to host.public void setMinSize(java.lang.Integer minSize)
Minimum value allowed for the fleet's instance count. Default if not set is 0.
minSize
- Minimum value allowed for the fleet's instance count. Default if
not set is 0.public java.lang.Integer getMinSize()
Minimum value allowed for the fleet's instance count. Default if not set is 0.
public UpdateFleetCapacityRequest withMinSize(java.lang.Integer minSize)
Minimum value allowed for the fleet's instance count. Default if not set is 0.
minSize
- Minimum value allowed for the fleet's instance count. Default if
not set is 0.public void setMaxSize(java.lang.Integer maxSize)
Maximum value allowed for the fleet's instance count. Default if not set is 1.
maxSize
- Maximum value allowed for the fleet's instance count. Default if
not set is 1.public java.lang.Integer getMaxSize()
Maximum value allowed for the fleet's instance count. Default if not set is 1.
public UpdateFleetCapacityRequest withMaxSize(java.lang.Integer maxSize)
Maximum value allowed for the fleet's instance count. Default if not set is 1.
maxSize
- Maximum value allowed for the fleet's instance count. Default if
not set is 1.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 UpdateFleetCapacityRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()