@Generated(value="software.amazon.awssdk:codegen") public final class EC2InstanceCounts extends Object implements SdkPojo, Serializable, 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.
| 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) |
boolean |
equalsBySdkFields(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.
|
Integer |
maximum()
The maximum value allowed for the fleet's instance count.
|
Integer |
minimum()
The minimum value allowed for the fleet's instance count.
|
Integer |
pending()
Number of instances in the fleet that are starting but not yet active.
|
List<SdkField<?>> |
sdkFields() |
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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic Integer desired()
Ideal number of active instances in the fleet.
public Integer minimum()
The minimum value allowed for the fleet's instance count.
public Integer maximum()
The 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()
toBuilder in interface ToCopyableBuilder<EC2InstanceCounts.Builder,EC2InstanceCounts>public static EC2InstanceCounts.Builder builder()
public static Class<? extends EC2InstanceCounts.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.