@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateFleetCapacityRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input for a request operation.
NOOP
Constructor and Description |
---|
UpdateFleetCapacityRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateFleetCapacityRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Integer |
getDesiredInstances()
Number of EC2 instances you want this fleet to host.
|
String |
getFleetId()
A unique identifier for a fleet to update capacity for.
|
Integer |
getMaxSize()
The maximum value allowed for the fleet's instance count.
|
Integer |
getMinSize()
The minimum value allowed for the fleet's instance count.
|
int |
hashCode() |
void |
setDesiredInstances(Integer desiredInstances)
Number of EC2 instances you want this fleet to host.
|
void |
setFleetId(String fleetId)
A unique identifier for a fleet to update capacity for.
|
void |
setMaxSize(Integer maxSize)
The maximum value allowed for the fleet's instance count.
|
void |
setMinSize(Integer minSize)
The minimum value allowed for the fleet's instance count.
|
String |
toString()
Returns a string representation of this object.
|
UpdateFleetCapacityRequest |
withDesiredInstances(Integer desiredInstances)
Number of EC2 instances you want this fleet to host.
|
UpdateFleetCapacityRequest |
withFleetId(String fleetId)
A unique identifier for a fleet to update capacity for.
|
UpdateFleetCapacityRequest |
withMaxSize(Integer maxSize)
The maximum value allowed for the fleet's instance count.
|
UpdateFleetCapacityRequest |
withMinSize(Integer minSize)
The minimum value allowed for the fleet's instance count.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setFleetId(String fleetId)
A unique identifier for a fleet to update capacity for. You can use either the fleet ID or ARN value.
fleetId
- A unique identifier for a fleet to update capacity for. You can use either the fleet ID or ARN value.public String getFleetId()
A unique identifier for a fleet to update capacity for. You can use either the fleet ID or ARN value.
public UpdateFleetCapacityRequest withFleetId(String fleetId)
A unique identifier for a fleet to update capacity for. You can use either the fleet ID or ARN value.
fleetId
- A unique identifier for a fleet to update capacity for. You can use either the fleet ID or ARN value.public void setDesiredInstances(Integer desiredInstances)
Number of EC2 instances you want this fleet to host.
desiredInstances
- Number of EC2 instances you want this fleet to host.public Integer getDesiredInstances()
Number of EC2 instances you want this fleet to host.
public UpdateFleetCapacityRequest withDesiredInstances(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(Integer minSize)
The minimum value allowed for the fleet's instance count. Default if not set is 0.
minSize
- The minimum value allowed for the fleet's instance count. Default if not set is 0.public Integer getMinSize()
The minimum value allowed for the fleet's instance count. Default if not set is 0.
public UpdateFleetCapacityRequest withMinSize(Integer minSize)
The minimum value allowed for the fleet's instance count. Default if not set is 0.
minSize
- The minimum value allowed for the fleet's instance count. Default if not set is 0.public void setMaxSize(Integer maxSize)
The maximum value allowed for the fleet's instance count. Default if not set is 1.
maxSize
- The maximum value allowed for the fleet's instance count. Default if not set is 1.public Integer getMaxSize()
The maximum value allowed for the fleet's instance count. Default if not set is 1.
public UpdateFleetCapacityRequest withMaxSize(Integer maxSize)
The maximum value allowed for the fleet's instance count. Default if not set is 1.
maxSize
- The maximum value allowed for the fleet's instance count. Default if not set is 1.public String toString()
toString
in class Object
Object.toString()
public UpdateFleetCapacityRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()