@Generated(value="software.amazon.awssdk:codegen") public class EC2InstanceCounts extends Object implements StructuredPojo, ToCopyableBuilder<EC2InstanceCounts.Builder,EC2InstanceCounts>
Current status of fleet capacity. The number of active instances should match or be in the process of matching the number of desired instances. Pending and terminating counts are non-zero only if fleet capacity is adjusting to an UpdateFleetCapacity request, or if access to resources is temporarily affected.
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 |
EC2InstanceCounts.Builder |
Modifier and Type | Method and Description |
---|---|
Integer |
active()
Actual number of active instances in the fleet.
|
static EC2InstanceCounts.Builder |
builder() |
Integer |
desired()
Ideal number of active instances in the fleet.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
idle()
Number of active instances in the fleet that are not currently hosting a game session.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Integer |
maximum()
Maximum value allowed for the fleet's instance count.
|
Integer |
minimum()
Minimum value allowed for the fleet's instance count.
|
Integer |
pending()
Number of instances in the fleet that are starting but not yet active.
|
static Class<? extends EC2InstanceCounts.Builder> |
serializableBuilderClass() |
Integer |
terminating()
Number of instances in the fleet that are no longer active but haven't yet been terminated.
|
EC2InstanceCounts.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Integer desired()
Ideal number of active instances in the fleet.
public Integer minimum()
Minimum value allowed for the fleet's instance count.
public Integer maximum()
Maximum value allowed for the fleet's instance count.
public Integer pending()
Number of instances in the fleet that are starting but not yet active.
public Integer active()
Actual number of active instances in the fleet.
public Integer idle()
Number of active instances in the fleet that are not currently hosting a game session.
public Integer terminating()
Number of instances in the fleet that are no longer active but haven't yet been terminated.
public EC2InstanceCounts.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<EC2InstanceCounts.Builder,EC2InstanceCounts>
public static EC2InstanceCounts.Builder builder()
public static Class<? extends EC2InstanceCounts.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.