Class ContainerGroupsPerInstance
- java.lang.Object
-
- software.amazon.awssdk.services.gamelift.model.ContainerGroupsPerInstance
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContainerGroupsPerInstance.Builder,ContainerGroupsPerInstance>
@Generated("software.amazon.awssdk:codegen") public final class ContainerGroupsPerInstance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContainerGroupsPerInstance.Builder,ContainerGroupsPerInstance>
This data type is used with the Amazon GameLift containers feature, which is currently in public preview.
Determines how many replica container groups that Amazon GameLift deploys to each instance in a container fleet.
Amazon GameLift calculates the maximum possible replica groups per instance based on the instance 's CPU and memory resources. When deploying a fleet, Amazon GameLift places replica container groups on each fleet instance based on the following:
-
If no desired value is set, Amazon GameLift places the calculated maximum.
-
If a desired number is set to a value higher than the calculated maximum, fleet creation fails..
-
If a desired number is set to a value lower than the calculated maximum, Amazon GameLift places the desired number.
Part of: ContainerGroupsConfiguration, ContainerGroupsAttributes
Returned by: DescribeFleetAttributes, CreateFleet
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContainerGroupsPerInstance.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContainerGroupsPerInstance.Builderbuilder()IntegerdesiredReplicaContainerGroupsPerInstance()The desired number of replica container groups to place on each fleet instance.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxReplicaContainerGroupsPerInstance()The maximum possible number of replica container groups that each fleet instance can have.List<SdkField<?>>sdkFields()static Class<? extends ContainerGroupsPerInstance.Builder>serializableBuilderClass()ContainerGroupsPerInstance.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
desiredReplicaContainerGroupsPerInstance
public final Integer desiredReplicaContainerGroupsPerInstance()
The desired number of replica container groups to place on each fleet instance.
- Returns:
- The desired number of replica container groups to place on each fleet instance.
-
maxReplicaContainerGroupsPerInstance
public final Integer maxReplicaContainerGroupsPerInstance()
The maximum possible number of replica container groups that each fleet instance can have.
- Returns:
- The maximum possible number of replica container groups that each fleet instance can have.
-
toBuilder
public ContainerGroupsPerInstance.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ContainerGroupsPerInstance.Builder,ContainerGroupsPerInstance>
-
builder
public static ContainerGroupsPerInstance.Builder builder()
-
serializableBuilderClass
public static Class<? extends ContainerGroupsPerInstance.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.
-
-