@Generated(value="software.amazon.awssdk:codegen") public final class InstanceDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceDefinition.Builder,InstanceDefinition>
This data type is used with the GameLift FleetIQ and game server groups.
An allowed instance type for a GameServerGroup. All game server groups must have at least two instance types defined for it. GameLift FleetIQ periodically evaluates each defined instance type for viability. It then updates the Auto Scaling group with the list of viable instance types.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InstanceDefinition.Builder |
| Modifier and Type | Method and Description |
|---|---|
static InstanceDefinition.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
GameServerGroupInstanceType |
instanceType()
An Amazon EC2 instance type designation.
|
String |
instanceTypeAsString()
An Amazon EC2 instance type designation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InstanceDefinition.Builder> |
serializableBuilderClass() |
InstanceDefinition.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
weightedCapacity()
Instance weighting that indicates how much this instance type contributes to the total capacity of a game server
group.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final GameServerGroupInstanceType instanceType()
An Amazon EC2 instance type designation.
If the service returns an enum value that is not available in the current SDK version, instanceType will
return GameServerGroupInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from instanceTypeAsString().
GameServerGroupInstanceTypepublic final String instanceTypeAsString()
An Amazon EC2 instance type designation.
If the service returns an enum value that is not available in the current SDK version, instanceType will
return GameServerGroupInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from instanceTypeAsString().
GameServerGroupInstanceTypepublic final String weightedCapacity()
Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. Instance weights are used by GameLift FleetIQ to calculate the instance type's cost per unit hour and better identify the most cost-effective options. For detailed information on weighting instance capacity, see Instance Weighting in the Amazon Elastic Compute Cloud Auto Scaling User Guide. Default value is "1".
public InstanceDefinition.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InstanceDefinition.Builder,InstanceDefinition>public static InstanceDefinition.Builder builder()
public static Class<? extends InstanceDefinition.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.