Class FleetCapacity

java.lang.Object
com.amazonaws.services.gamelift.model.FleetCapacity
All Implemented Interfaces:
Serializable, Cloneable

public class FleetCapacity extends Object implements Serializable, Cloneable

Information about the fleet's capacity. Fleet capacity is measured in EC2 instances. By default, new fleets have a capacity of one instance, but can be updated as needed. The maximum number of instances for a fleet is determined by the fleet's instance type.

See Also:
  • Constructor Details

    • FleetCapacity

      public FleetCapacity()
  • Method Details

    • setFleetId

      public void setFleetId(String fleetId)

      Unique identifier for a fleet.

      Parameters:
      fleetId - Unique identifier for a fleet.
    • getFleetId

      public String getFleetId()

      Unique identifier for a fleet.

      Returns:
      Unique identifier for a fleet.
    • withFleetId

      public FleetCapacity withFleetId(String fleetId)

      Unique identifier for a fleet.

      Parameters:
      fleetId - Unique identifier for a fleet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setInstanceType

      public void setInstanceType(String instanceType)

      Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.

      Parameters:
      instanceType - Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.
      See Also:
    • getInstanceType

      public String getInstanceType()

      Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.

      Returns:
      Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.
      See Also:
    • withInstanceType

      public FleetCapacity withInstanceType(String instanceType)

      Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.

      Parameters:
      instanceType - Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setInstanceType

      public void setInstanceType(EC2InstanceType instanceType)

      Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.

      Parameters:
      instanceType - Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.
      See Also:
    • withInstanceType

      public FleetCapacity withInstanceType(EC2InstanceType instanceType)

      Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.

      Parameters:
      instanceType - Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setInstanceCounts

      public void setInstanceCounts(EC2InstanceCounts instanceCounts)

      Current status of fleet capacity.

      Parameters:
      instanceCounts - Current status of fleet capacity.
    • getInstanceCounts

      public EC2InstanceCounts getInstanceCounts()

      Current status of fleet capacity.

      Returns:
      Current status of fleet capacity.
    • withInstanceCounts

      public FleetCapacity withInstanceCounts(EC2InstanceCounts instanceCounts)

      Current status of fleet capacity.

      Parameters:
      instanceCounts - Current status of fleet capacity.
      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

      public FleetCapacity clone()
      Overrides:
      clone in class Object