Class UpdateFleetCapacityRequest

    • Constructor Detail

      • UpdateFleetCapacityRequest

        public UpdateFleetCapacityRequest()
    • 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 class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object