Interface SupportContainerDefinition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SupportContainerDefinition.Builder,
,SupportContainerDefinition> SdkBuilder<SupportContainerDefinition.Builder,
,SupportContainerDefinition> SdkPojo
- Enclosing class:
SupportContainerDefinition
-
Method Summary
Modifier and TypeMethodDescriptioncontainerName
(String containerName) The container definition identifier.dependsOn
(Collection<ContainerDependency> dependsOn) Indicates that the container relies on the status of other containers in the same container group during its startup and shutdown sequences.dependsOn
(Consumer<ContainerDependency.Builder>... dependsOn) Indicates that the container relies on the status of other containers in the same container group during its startup and shutdown sequences.dependsOn
(ContainerDependency... dependsOn) Indicates that the container relies on the status of other containers in the same container group during its startup and shutdown sequences.environmentOverride
(Collection<ContainerEnvironment> environmentOverride) A set of environment variables that's passed to the container on startup.environmentOverride
(Consumer<ContainerEnvironment.Builder>... environmentOverride) A set of environment variables that's passed to the container on startup.environmentOverride
(ContainerEnvironment... environmentOverride) A set of environment variables that's passed to the container on startup.Indicates whether the container is vital to the container group.healthCheck
(Consumer<ContainerHealthCheck.Builder> healthCheck) A configuration for a non-terminal health check.healthCheck
(ContainerHealthCheck healthCheck) A configuration for a non-terminal health check.The URI to the image that Amazon GameLift Servers deploys to a container fleet.memoryHardLimitMebibytes
(Integer memoryHardLimitMebibytes) The amount of memory that Amazon GameLift Servers makes available to the container.mountPoints
(Collection<ContainerMountPoint> mountPoints) A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.mountPoints
(Consumer<ContainerMountPoint.Builder>... mountPoints) A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.mountPoints
(ContainerMountPoint... mountPoints) A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.portConfiguration
(Consumer<ContainerPortConfiguration.Builder> portConfiguration) A set of ports that allow access to the container from external users.portConfiguration
(ContainerPortConfiguration portConfiguration) A set of ports that allow access to the container from external users.resolvedImageDigest
(String resolvedImageDigest) A unique and immutable identifier for the container image.The number of vCPU units that are reserved for the container.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
containerName
The container definition identifier. Container names are unique within a container group definition.
- Parameters:
containerName
- The container definition identifier. Container names are unique within a container group definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
Indicates that the container relies on the status of other containers in the same container group during its startup and shutdown sequences. A container might have dependencies on multiple containers.
- Parameters:
dependsOn
- Indicates that the container relies on the status of other containers in the same container group during its startup and shutdown sequences. A container might have dependencies on multiple containers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
Indicates that the container relies on the status of other containers in the same container group during its startup and shutdown sequences. A container might have dependencies on multiple containers.
- Parameters:
dependsOn
- Indicates that the container relies on the status of other containers in the same container group during its startup and shutdown sequences. A container might have dependencies on multiple containers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependsOn
Indicates that the container relies on the status of other containers in the same container group during its startup and shutdown sequences. A container might have dependencies on multiple containers.
This is a convenience method that creates an instance of theContainerDependency.Builder
avoiding the need to create one manually viaContainerDependency.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todependsOn(List<ContainerDependency>)
.- Parameters:
dependsOn
- a consumer that will call methods onContainerDependency.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mountPoints
A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.
- Parameters:
mountPoints
- A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountPoints
A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.
- Parameters:
mountPoints
- A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountPoints
SupportContainerDefinition.Builder mountPoints(Consumer<ContainerMountPoint.Builder>... mountPoints) A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.
This is a convenience method that creates an instance of theContainerMountPoint.Builder
avoiding the need to create one manually viaContainerMountPoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomountPoints(List<ContainerMountPoint>)
.- Parameters:
mountPoints
- a consumer that will call methods onContainerMountPoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environmentOverride
SupportContainerDefinition.Builder environmentOverride(Collection<ContainerEnvironment> environmentOverride) A set of environment variables that's passed to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference.
- Parameters:
environmentOverride
- A set of environment variables that's passed to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentOverride
A set of environment variables that's passed to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference.
- Parameters:
environmentOverride
- A set of environment variables that's passed to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentOverride
SupportContainerDefinition.Builder environmentOverride(Consumer<ContainerEnvironment.Builder>... environmentOverride) A set of environment variables that's passed to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference.
This is a convenience method that creates an instance of theContainerEnvironment.Builder
avoiding the need to create one manually viaContainerEnvironment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenvironmentOverride(List<ContainerEnvironment>)
.- Parameters:
environmentOverride
- a consumer that will call methods onContainerEnvironment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
essential
Indicates whether the container is vital to the container group. If an essential container fails, the entire container group restarts.
- Parameters:
essential
- Indicates whether the container is vital to the container group. If an essential container fails, the entire container group restarts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheck
A configuration for a non-terminal health check. A support container automatically restarts if it stops functioning or if it fails this health check.
- Parameters:
healthCheck
- A configuration for a non-terminal health check. A support container automatically restarts if it stops functioning or if it fails this health check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheck
default SupportContainerDefinition.Builder healthCheck(Consumer<ContainerHealthCheck.Builder> healthCheck) A configuration for a non-terminal health check. A support container automatically restarts if it stops functioning or if it fails this health check.
This is a convenience method that creates an instance of theContainerHealthCheck.Builder
avoiding the need to create one manually viaContainerHealthCheck.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohealthCheck(ContainerHealthCheck)
.- Parameters:
healthCheck
- a consumer that will call methods onContainerHealthCheck.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageUri
The URI to the image that Amazon GameLift Servers deploys to a container fleet. For a more specific identifier, see
ResolvedImageDigest
.- Parameters:
imageUri
- The URI to the image that Amazon GameLift Servers deploys to a container fleet. For a more specific identifier, seeResolvedImageDigest
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryHardLimitMebibytes
The amount of memory that Amazon GameLift Servers makes available to the container. If memory limits aren't set for an individual container, the container shares the container group's total memory allocation.
Related data type: ContainerGroupDefinition TotalMemoryLimitMebibytes
- Parameters:
memoryHardLimitMebibytes
- The amount of memory that Amazon GameLift Servers makes available to the container. If memory limits aren't set for an individual container, the container shares the container group's total memory allocation.Related data type: ContainerGroupDefinition TotalMemoryLimitMebibytes
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portConfiguration
A set of ports that allow access to the container from external users. Processes running in the container can bind to a one of these ports. Container ports aren't directly accessed by inbound traffic. Amazon GameLift Servers maps these container ports to externally accessible connection ports, which are assigned as needed from the container fleet's
ConnectionPortRange
.- Parameters:
portConfiguration
- A set of ports that allow access to the container from external users. Processes running in the container can bind to a one of these ports. Container ports aren't directly accessed by inbound traffic. Amazon GameLift Servers maps these container ports to externally accessible connection ports, which are assigned as needed from the container fleet'sConnectionPortRange
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
portConfiguration
default SupportContainerDefinition.Builder portConfiguration(Consumer<ContainerPortConfiguration.Builder> portConfiguration) A set of ports that allow access to the container from external users. Processes running in the container can bind to a one of these ports. Container ports aren't directly accessed by inbound traffic. Amazon GameLift Servers maps these container ports to externally accessible connection ports, which are assigned as needed from the container fleet's
This is a convenience method that creates an instance of theConnectionPortRange
.ContainerPortConfiguration.Builder
avoiding the need to create one manually viaContainerPortConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toportConfiguration(ContainerPortConfiguration)
.- Parameters:
portConfiguration
- a consumer that will call methods onContainerPortConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resolvedImageDigest
A unique and immutable identifier for the container image. The digest is a SHA 256 hash of the container image manifest.
- Parameters:
resolvedImageDigest
- A unique and immutable identifier for the container image. The digest is a SHA 256 hash of the container image manifest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vcpu
The number of vCPU units that are reserved for the container. If no resources are reserved, the container shares the total vCPU limit for the container group.
Related data type: ContainerGroupDefinition TotalVcpuLimit
- Parameters:
vcpu
- The number of vCPU units that are reserved for the container. If no resources are reserved, the container shares the total vCPU limit for the container group.Related data type: ContainerGroupDefinition TotalVcpuLimit
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-