Class InstanceDefinition
- java.lang.Object
-
- software.amazon.awssdk.services.gamelift.model.InstanceDefinition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InstanceDefinition.Builder,InstanceDefinition>
@Generated("software.amazon.awssdk:codegen") public final class InstanceDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceDefinition.Builder,InstanceDefinition>
This data type is used with the Amazon GameLift FleetIQ and game server groups.
An allowed instance type for a game server group. All game server groups must have at least two instance types defined for it. Amazon GameLift FleetIQ periodically evaluates each defined instance type for viability. It then updates the Auto Scaling group with the list of viable instance types.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInstanceDefinition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceDefinition.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()GameServerGroupInstanceTypeinstanceType()An Amazon EC2 instance type designation.StringinstanceTypeAsString()An Amazon EC2 instance type designation.List<SdkField<?>>sdkFields()static Class<? extends InstanceDefinition.Builder>serializableBuilderClass()InstanceDefinition.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringweightedCapacity()Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
instanceType
public 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,
instanceTypewill returnGameServerGroupInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- An Amazon EC2 instance type designation.
- See Also:
GameServerGroupInstanceType
-
instanceTypeAsString
public 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,
instanceTypewill returnGameServerGroupInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- An Amazon EC2 instance type designation.
- See Also:
GameServerGroupInstanceType
-
weightedCapacity
public 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 Amazon 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".
- Returns:
- Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. Instance weights are used by Amazon 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".
-
toBuilder
public InstanceDefinition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InstanceDefinition.Builder,InstanceDefinition>
-
builder
public static InstanceDefinition.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstanceDefinition.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-