@Generated(value="software.amazon.awssdk:codegen") public final class InstanceDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceDefinition.Builder,InstanceDefinition>
This data type is part of Amazon GameLift FleetIQ with game server groups, which is in preview release and is subject to change.
An allowed instance type for your game server group. 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 EC2 instance type designation.
|
String |
instanceTypeAsString()
An 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 GameServerGroupInstanceType instanceType()
An 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 String instanceTypeAsString()
An 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 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 EC2 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 boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.