@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FleetCapacity extends Object implements Serializable, Cloneable, StructuredPojo
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.
Fleet-related operations include:
Describe fleets:
Update fleets:
Manage fleet capacity:
PutScalingPolicy (automatic scaling)
DescribeScalingPolicies (automatic scaling)
DeleteScalingPolicy (automatic scaling)
Constructor and Description |
---|
FleetCapacity() |
Modifier and Type | Method and Description |
---|---|
FleetCapacity |
clone() |
boolean |
equals(Object obj) |
String |
getFleetId()
Unique identifier for a fleet.
|
EC2InstanceCounts |
getInstanceCounts()
Current status of fleet capacity.
|
String |
getInstanceType()
Name of an EC2 instance type that is supported in Amazon GameLift.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFleetId(String fleetId)
Unique identifier for a fleet.
|
void |
setInstanceCounts(EC2InstanceCounts instanceCounts)
Current status of fleet capacity.
|
void |
setInstanceType(EC2InstanceType instanceType)
Name of an EC2 instance type that is supported in Amazon GameLift.
|
void |
setInstanceType(String instanceType)
Name of an EC2 instance type that is supported in Amazon GameLift.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
FleetCapacity |
withFleetId(String fleetId)
Unique identifier for a fleet.
|
FleetCapacity |
withInstanceCounts(EC2InstanceCounts instanceCounts)
Current status of fleet capacity.
|
FleetCapacity |
withInstanceType(EC2InstanceType instanceType)
Name of an EC2 instance type that is supported in Amazon GameLift.
|
FleetCapacity |
withInstanceType(String instanceType)
Name of an EC2 instance type that is supported in Amazon GameLift.
|
public void setFleetId(String fleetId)
Unique identifier for a fleet.
fleetId
- Unique identifier for a fleet.public String getFleetId()
Unique identifier for a fleet.
public FleetCapacity withFleetId(String fleetId)
Unique identifier for a fleet.
fleetId
- Unique identifier for a fleet.public void setInstanceType(String instanceType)
Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.
instanceType
- Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the
computing resources of each instance in the fleet, including CPU, memory, storage, and networking
capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.EC2InstanceType
public String getInstanceType()
Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.
EC2InstanceType
public FleetCapacity withInstanceType(String instanceType)
Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.
instanceType
- Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the
computing resources of each instance in the fleet, including CPU, memory, storage, and networking
capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.EC2InstanceType
public void setInstanceType(EC2InstanceType instanceType)
Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.
instanceType
- Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the
computing resources of each instance in the fleet, including CPU, memory, storage, and networking
capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.EC2InstanceType
public FleetCapacity withInstanceType(EC2InstanceType instanceType)
Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.
instanceType
- Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the
computing resources of each instance in the fleet, including CPU, memory, storage, and networking
capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.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 String toString()
toString
in class Object
Object.toString()
public FleetCapacity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.