Class ContainerMemoryLimits
- java.lang.Object
-
- software.amazon.awssdk.services.gamelift.model.ContainerMemoryLimits
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContainerMemoryLimits.Builder,ContainerMemoryLimits>
@Generated("software.amazon.awssdk:codegen") public final class ContainerMemoryLimits extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContainerMemoryLimits.Builder,ContainerMemoryLimits>
Specifies how much memory is available to a container. You can't change this value after you create this object.
Part of: ContainerDefinition$MemoryLimits
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContainerMemoryLimits.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContainerMemoryLimits.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)IntegerhardLimit()The maximum amount of memory that the container can use.inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ContainerMemoryLimits.Builder>serializableBuilderClass()IntegersoftLimit()The amount of memory that is reserved for a container.ContainerMemoryLimits.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
-
softLimit
public final Integer softLimit()
The amount of memory that is reserved for a container. When the container group's shared memory is under contention, the system attempts to maintain the container memory usage at this soft limit. However, the container can use more memory when needed, if available. This property is similar to the Amazon ECS container definition parameter memoryreservation (Amazon Elastic Container Service Developer Guide).
- Returns:
- The amount of memory that is reserved for a container. When the container group's shared memory is under contention, the system attempts to maintain the container memory usage at this soft limit. However, the container can use more memory when needed, if available. This property is similar to the Amazon ECS container definition parameter memoryreservation (Amazon Elastic Container Service Developer Guide).
-
hardLimit
public final Integer hardLimit()
The maximum amount of memory that the container can use. If a container attempts to exceed this limit, the container is stopped. This property is similar to the Amazon ECS container definition parameter memory in the Amazon Elastic Container Service Developer Guide.
- Returns:
- The maximum amount of memory that the container can use. If a container attempts to exceed this limit, the container is stopped. This property is similar to the Amazon ECS container definition parameter memory in the Amazon Elastic Container Service Developer Guide.
-
toBuilder
public ContainerMemoryLimits.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ContainerMemoryLimits.Builder,ContainerMemoryLimits>
-
builder
public static ContainerMemoryLimits.Builder builder()
-
serializableBuilderClass
public static Class<? extends ContainerMemoryLimits.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.
-
-