@Generated(value="software.amazon.awssdk:codegen") public final class FleetCapacity extends Object implements StructuredPojo, ToCopyableBuilder<FleetCapacity.Builder,FleetCapacity>
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)
Modifier and Type | Class and Description |
---|---|
static interface |
FleetCapacity.Builder |
Modifier and Type | Method and Description |
---|---|
static FleetCapacity.Builder |
builder() |
boolean |
equals(Object obj) |
String |
fleetId()
Unique identifier for a fleet.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
EC2InstanceCounts |
instanceCounts()
Current status of fleet capacity.
|
EC2InstanceType |
instanceType()
Name of an EC2 instance type that is supported in Amazon GameLift.
|
String |
instanceTypeAsString()
Name of an EC2 instance type that is supported in Amazon GameLift.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends FleetCapacity.Builder> |
serializableBuilderClass() |
FleetCapacity.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String fleetId()
Unique identifier for a fleet.
public 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.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return EC2InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
instanceTypeAsString()
.
EC2InstanceType
public String instanceTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return EC2InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
instanceTypeAsString()
.
EC2InstanceType
public EC2InstanceCounts instanceCounts()
Current status of fleet capacity.
public FleetCapacity.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<FleetCapacity.Builder,FleetCapacity>
public static FleetCapacity.Builder builder()
public static Class<? extends FleetCapacity.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.