Class CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerGroupDefinition.GameServerContainerDefinitionProperty>
- Enclosing interface:
CfnContainerGroupDefinition.GameServerContainerDefinitionProperty
@Stability(Stable)
public static final class CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerGroupDefinition.GameServerContainerDefinitionProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerName
(String containerName) dependsOn
(IResolvable dependsOn) environmentOverride
(List<? extends Object> environmentOverride) environmentOverride
(IResolvable environmentOverride) mountPoints
(List<? extends Object> mountPoints) mountPoints
(IResolvable mountPoints) portConfiguration
(IResolvable portConfiguration) portConfiguration
(CfnContainerGroupDefinition.PortConfigurationProperty portConfiguration) resolvedImageDigest
(String resolvedImageDigest) serverSdkVersion
(String serverSdkVersion)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerName
@Stability(Stable) public CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder containerName(String containerName) Sets the value ofCfnContainerGroupDefinition.GameServerContainerDefinitionProperty.getContainerName()
- Parameters:
containerName
- The container definition identifier. This parameter is required. Container names are unique within a container group definition.- Returns:
this
-
imageUri
@Stability(Stable) public CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder imageUri(String imageUri) - Parameters:
imageUri
- The URI to the image that Amazon GameLift uses when deploying this container to a container fleet. This parameter is required. For a more specific identifier, seeResolvedImageDigest
.- Returns:
this
-
serverSdkVersion
@Stability(Stable) public CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder serverSdkVersion(String serverSdkVersion) Sets the value ofCfnContainerGroupDefinition.GameServerContainerDefinitionProperty.getServerSdkVersion()
- Parameters:
serverSdkVersion
- The Amazon GameLift server SDK version that the game server is integrated with. This parameter is required. Only game servers using 5.2.0 or higher are compatible with container fleets.- Returns:
this
-
dependsOn
@Stability(Stable) public CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder dependsOn(IResolvable dependsOn) - Parameters:
dependsOn
- Indicates that the container relies on the status of other containers in the same container group during startup and shutdown sequences. A container might have dependencies on multiple containers.- Returns:
this
-
dependsOn
@Stability(Stable) public CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder dependsOn(List<? extends Object> dependsOn) - Parameters:
dependsOn
- Indicates that the container relies on the status of other containers in the same container group during startup and shutdown sequences. A container might have dependencies on multiple containers.- Returns:
this
-
environmentOverride
@Stability(Stable) public CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder environmentOverride(IResolvable environmentOverride) Sets the value ofCfnContainerGroupDefinition.GameServerContainerDefinitionProperty.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 CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder environmentOverride(List<? extends Object> environmentOverride) Sets the value ofCfnContainerGroupDefinition.GameServerContainerDefinitionProperty.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
-
mountPoints
@Stability(Stable) public CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder mountPoints(IResolvable mountPoints) Sets the value ofCfnContainerGroupDefinition.GameServerContainerDefinitionProperty.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 CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder mountPoints(List<? extends Object> mountPoints) Sets the value ofCfnContainerGroupDefinition.GameServerContainerDefinitionProperty.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 CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder portConfiguration(IResolvable portConfiguration) Sets the value ofCfnContainerGroupDefinition.GameServerContainerDefinitionProperty.getPortConfiguration()
- Parameters:
portConfiguration
- The set of ports that are available to bind to processes in the container. For example, a game server process requires a container port to allow game clients to connect to it. Container ports aren't directly accessed by inbound traffic. Amazon GameLift 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 CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder portConfiguration(CfnContainerGroupDefinition.PortConfigurationProperty portConfiguration) Sets the value ofCfnContainerGroupDefinition.GameServerContainerDefinitionProperty.getPortConfiguration()
- Parameters:
portConfiguration
- The set of ports that are available to bind to processes in the container. For example, a game server process requires a container port to allow game clients to connect to it. Container ports aren't directly accessed by inbound traffic. Amazon GameLift 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 CfnContainerGroupDefinition.GameServerContainerDefinitionProperty.Builder resolvedImageDigest(String resolvedImageDigest) Sets the value ofCfnContainerGroupDefinition.GameServerContainerDefinitionProperty.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainerGroupDefinition.GameServerContainerDefinitionProperty>
- Returns:
- a new instance of
CfnContainerGroupDefinition.GameServerContainerDefinitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-