Class FleetCapacity
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanUnique identifier for a fleet.Current status of fleet capacity.Type of EC2 instances used in the fleet.inthashCode()voidsetFleetId(String fleetId) Unique identifier for a fleet.voidsetInstanceCounts(EC2InstanceCounts instanceCounts) Current status of fleet capacity.voidsetInstanceType(EC2InstanceType instanceType) Type of EC2 instances used in the fleet.voidsetInstanceType(String instanceType) Type of EC2 instances used in the fleet.toString()Returns a string representation of this object; useful for testing and debugging.withFleetId(String fleetId) Unique identifier for a fleet.withInstanceCounts(EC2InstanceCounts instanceCounts) Current status of fleet capacity.withInstanceType(EC2InstanceType instanceType) Type of EC2 instances used in the fleet.withInstanceType(String instanceType) Type of EC2 instances used in the fleet.
-
Constructor Details
-
FleetCapacity
public FleetCapacity()
-
-
Method Details
-
setFleetId
Unique identifier for a fleet.
- Parameters:
fleetId- Unique identifier for a fleet.
-
getFleetId
-
withFleetId
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
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
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
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
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
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
Current status of fleet capacity.
- Parameters:
instanceCounts- Current status of fleet capacity.
-
getInstanceCounts
Current status of fleet capacity.
- Returns:
- Current status of fleet capacity.
-
withInstanceCounts
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
-
equals
-
hashCode
-
clone
-