@Generated(value="software.amazon.awssdk:codegen") public final class EC2InstanceCounts extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EC2InstanceCounts.Builder,EC2InstanceCounts>
Resource capacity settings. Fleet capacity is measured in Amazon EC2 instances. Pending and terminating counts are non-zero when the fleet capacity is adjusting to a scaling event 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 instances that are ready to host game sessions.
|
static EC2InstanceCounts.Builder |
builder() |
Integer |
desired()
Ideal number of active instances.
|
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 that are not currently hosting a game session.
|
Integer |
maximum()
The maximum instance count value allowed.
|
Integer |
minimum()
The minimum instance count value allowed.
|
Integer |
pending()
Number of instances that are starting but not yet active.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EC2InstanceCounts.Builder> |
serializableBuilderClass() |
Integer |
terminating()
Number of instances 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 final Integer desired()
Ideal number of active instances. GameLift will always try to maintain the desired number of instances. Capacity is scaled up or down by changing the desired instances.
public final Integer minimum()
The minimum instance count value allowed.
public final Integer maximum()
The maximum instance count value allowed.
public final Integer pending()
Number of instances that are starting but not yet active.
public final Integer active()
Actual number of instances that are ready to host game sessions.
public final Integer idle()
Number of active instances that are not currently hosting a game session.
public final Integer terminating()
Number of instances 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 final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.