Class UpdateFleetCapacityRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.gamelift.model.UpdateFleetCapacityRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class UpdateFleetCapacityRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input for a request action.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description UpdateFleetCapacityRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateFleetCapacityRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
Integer
getDesiredInstances()
Number of EC2 instances you want this fleet to host.String
getFleetId()
Unique identifier for the fleet you want to update capacity for.Integer
getMaxSize()
Maximum value allowed for the fleet's instance count.Integer
getMinSize()
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)
Unique identifier for the fleet you want to update capacity for.void
setMaxSize(Integer maxSize)
Maximum value allowed for the fleet's instance count.void
setMinSize(Integer minSize)
Minimum value allowed for the fleet's instance count.String
toString()
Returns a string representation of this object; useful for testing and debugging.UpdateFleetCapacityRequest
withDesiredInstances(Integer desiredInstances)
Number of EC2 instances you want this fleet to host.UpdateFleetCapacityRequest
withFleetId(String fleetId)
Unique identifier for the fleet you want to update capacity for.UpdateFleetCapacityRequest
withMaxSize(Integer maxSize)
Maximum value allowed for the fleet's instance count.UpdateFleetCapacityRequest
withMinSize(Integer minSize)
Minimum value allowed for the fleet's instance count.-
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
-
setFleetId
public void setFleetId(String fleetId)
Unique identifier for the fleet you want to update capacity for.
- Parameters:
fleetId
- Unique identifier for the fleet you want to update capacity for.
-
getFleetId
public String getFleetId()
Unique identifier for the fleet you want to update capacity for.
- Returns:
- Unique identifier for the fleet you want to update capacity for.
-
withFleetId
public UpdateFleetCapacityRequest withFleetId(String fleetId)
Unique identifier for the fleet you want to update capacity for.
- Parameters:
fleetId
- Unique identifier for the fleet you want to update capacity for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDesiredInstances
public void setDesiredInstances(Integer desiredInstances)
Number of EC2 instances you want this fleet to host.
- Parameters:
desiredInstances
- Number of EC2 instances you want this fleet to host.
-
getDesiredInstances
public Integer getDesiredInstances()
Number of EC2 instances you want this fleet to host.
- Returns:
- Number of EC2 instances you want this fleet to host.
-
withDesiredInstances
public UpdateFleetCapacityRequest withDesiredInstances(Integer desiredInstances)
Number of EC2 instances you want this fleet to host.
- Parameters:
desiredInstances
- Number of EC2 instances you want this fleet to host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMinSize
public void setMinSize(Integer minSize)
Minimum value allowed for the fleet's instance count. Default if not set is 0.
- Parameters:
minSize
- Minimum value allowed for the fleet's instance count. Default if not set is 0.
-
getMinSize
public Integer getMinSize()
Minimum value allowed for the fleet's instance count. Default if not set is 0.
- Returns:
- Minimum value allowed for the fleet's instance count. Default if not set is 0.
-
withMinSize
public UpdateFleetCapacityRequest withMinSize(Integer minSize)
Minimum value allowed for the fleet's instance count. Default if not set is 0.
- Parameters:
minSize
- Minimum value allowed for the fleet's instance count. Default if not set is 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxSize
public void setMaxSize(Integer maxSize)
Maximum value allowed for the fleet's instance count. Default if not set is 1.
- Parameters:
maxSize
- Maximum value allowed for the fleet's instance count. Default if not set is 1.
-
getMaxSize
public Integer getMaxSize()
Maximum value allowed for the fleet's instance count. Default if not set is 1.
- Returns:
- Maximum value allowed for the fleet's instance count. Default if not set is 1.
-
withMaxSize
public UpdateFleetCapacityRequest withMaxSize(Integer maxSize)
Maximum value allowed for the fleet's instance count. Default if not set is 1.
- Parameters:
maxSize
- Maximum value allowed for the fleet's instance count. Default if not set is 1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 UpdateFleetCapacityRequest 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()
-
-