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:
  • Constructor Details

    • UpdateFleetCapacityRequest

      public UpdateFleetCapacityRequest()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: