public class FleetCapacity
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
fleetId
Unique identifier for a fleet.
|
private EC2InstanceCounts |
instanceCounts
Current status of fleet capacity.
|
private java.lang.String |
instanceType
Type of EC2 instances used in the fleet.
|
Constructor and Description |
---|
FleetCapacity() |
Modifier and Type | Method and Description |
---|---|
FleetCapacity |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFleetId()
Unique identifier for a fleet.
|
EC2InstanceCounts |
getInstanceCounts()
Current status of fleet capacity.
|
java.lang.String |
getInstanceType()
Type of EC2 instances used in the fleet.
|
int |
hashCode() |
void |
setFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
|
void |
setInstanceCounts(EC2InstanceCounts instanceCounts)
Current status of fleet capacity.
|
void |
setInstanceType(EC2InstanceType instanceType)
Type of EC2 instances used in the fleet.
|
void |
setInstanceType(java.lang.String instanceType)
Type of EC2 instances used in the fleet.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
FleetCapacity |
withFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
|
FleetCapacity |
withInstanceCounts(EC2InstanceCounts instanceCounts)
Current status of fleet capacity.
|
FleetCapacity |
withInstanceType(EC2InstanceType instanceType)
Type of EC2 instances used in the fleet.
|
FleetCapacity |
withInstanceType(java.lang.String instanceType)
Type of EC2 instances used in the fleet.
|
private java.lang.String fleetId
Unique identifier for a fleet.
private java.lang.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.
private EC2InstanceCounts instanceCounts
Current status of fleet capacity.
public void setFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
fleetId
- Unique identifier for a fleet.public java.lang.String getFleetId()
Unique identifier for a fleet.
public FleetCapacity withFleetId(java.lang.String fleetId)
Unique identifier for a fleet.
fleetId
- Unique identifier for a fleet.public void setInstanceType(java.lang.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.
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.EC2InstanceType
public java.lang.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.
EC2InstanceType
public FleetCapacity withInstanceType(java.lang.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.
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.EC2InstanceType
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.
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.EC2InstanceType
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.
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.EC2InstanceType
public void setInstanceCounts(EC2InstanceCounts instanceCounts)
Current status of fleet capacity.
instanceCounts
- Current status of fleet capacity.public EC2InstanceCounts getInstanceCounts()
Current status of fleet capacity.
public FleetCapacity withInstanceCounts(EC2InstanceCounts instanceCounts)
Current status of fleet capacity.
instanceCounts
- Current status of fleet capacity.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public FleetCapacity clone()
clone
in class java.lang.Object