Class CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty>
- Enclosing interface:
CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty
@Stability(Stable)
public static final class CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerName(String containerName) dependsOn(IResolvable dependsOn) environmentOverride(List<? extends Object> environmentOverride) environmentOverride(IResolvable environmentOverride) essential(IResolvable essential) healthCheck(IResolvable healthCheck) memoryHardLimitMebibytes(Number memoryHardLimitMebibytes) mountPoints(List<? extends Object> mountPoints) mountPoints(IResolvable mountPoints) portConfiguration(CfnContainerGroupDefinitionPropsMixin.PortConfigurationProperty portConfiguration) portConfiguration(IResolvable portConfiguration) resolvedImageDigest(String resolvedImageDigest)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerName
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder containerName(String containerName) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getContainerName()- Parameters:
containerName- The container definition identifier. Container names are unique within a container group definition.- Returns:
this
-
dependsOn
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder dependsOn(IResolvable dependsOn) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getDependsOn()- 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:
this
-
dependsOn
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder dependsOn(List<? extends Object> dependsOn) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getDependsOn()- 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:
this
-
environmentOverride
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder environmentOverride(IResolvable environmentOverride) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getEnvironmentOverride()- 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:
this
-
environmentOverride
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder environmentOverride(List<? extends Object> environmentOverride) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getEnvironmentOverride()- 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:
this
-
essential
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder essential(Boolean essential) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getEssential()- Parameters:
essential- Indicates whether the container is vital to the container group. If an essential container fails, the entire container group restarts.- Returns:
this
-
essential
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder essential(IResolvable essential) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getEssential()- Parameters:
essential- Indicates whether the container is vital to the container group. If an essential container fails, the entire container group restarts.- Returns:
this
-
healthCheck
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder healthCheck(IResolvable healthCheck) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getHealthCheck()- 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:
this
-
healthCheck
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder healthCheck(CfnContainerGroupDefinitionPropsMixin.ContainerHealthCheckProperty healthCheck) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getHealthCheck()- 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:
this
-
imageUri
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder imageUri(String imageUri) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getImageUri()- Parameters:
imageUri- The URI to the image that Amazon GameLift Servers deploys to a container fleet. For a more specific identifier, seeResolvedImageDigest.- Returns:
this
-
memoryHardLimitMebibytes
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder memoryHardLimitMebibytes(Number memoryHardLimitMebibytes) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getMemoryHardLimitMebibytes()- 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:
this
-
mountPoints
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder mountPoints(IResolvable mountPoints) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getMountPoints()- 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:
this
-
mountPoints
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder mountPoints(List<? extends Object> mountPoints) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getMountPoints()- 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:
this
-
portConfiguration
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder portConfiguration(IResolvable portConfiguration) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getPortConfiguration()- 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:
this
-
portConfiguration
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder portConfiguration(CfnContainerGroupDefinitionPropsMixin.PortConfigurationProperty portConfiguration) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getPortConfiguration()- 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:
this
-
resolvedImageDigest
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder resolvedImageDigest(String resolvedImageDigest) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getResolvedImageDigest()- Parameters:
resolvedImageDigest- A unique and immutable identifier for the container image. The digest is a SHA 256 hash of the container image manifest.- Returns:
this
-
vcpu
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.Builder vcpu(Number vcpu) Sets the value ofCfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty.getVcpu()- 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:
this
-
build
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty>- Returns:
- a new instance of
CfnContainerGroupDefinitionPropsMixin.SupportContainerDefinitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-