Class CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty>
- Enclosing interface:
CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty
@Stability(Stable)
public static final class CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty>
-
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) mountPoints(List<? extends Object> mountPoints) mountPoints(IResolvable mountPoints) portConfiguration(CfnContainerGroupDefinitionPropsMixin.PortConfigurationProperty portConfiguration) portConfiguration(IResolvable portConfiguration) resolvedImageDigest(String resolvedImageDigest) serverSdkVersion(String serverSdkVersion)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerName
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder containerName(String containerName) Sets the value ofCfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.getContainerName()- Parameters:
containerName- The container definition identifier. Container names are unique within a container group definition.- Returns:
this
-
dependsOn
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder dependsOn(IResolvable dependsOn) Sets the value ofCfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.getDependsOn()- 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 CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder dependsOn(List<? extends Object> dependsOn) Sets the value ofCfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.getDependsOn()- 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 CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder environmentOverride(IResolvable environmentOverride) Sets the value ofCfnContainerGroupDefinitionPropsMixin.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 CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder environmentOverride(List<? extends Object> environmentOverride) Sets the value ofCfnContainerGroupDefinitionPropsMixin.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
-
imageUri
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder imageUri(String imageUri) Sets the value ofCfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.getImageUri()- Parameters:
imageUri- The URI to the image that Amazon GameLift Servers uses when deploying this container to a container fleet. For a more specific identifier, seeResolvedImageDigest.- Returns:
this
-
mountPoints
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder mountPoints(IResolvable mountPoints) Sets the value ofCfnContainerGroupDefinitionPropsMixin.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 CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder mountPoints(List<? extends Object> mountPoints) Sets the value ofCfnContainerGroupDefinitionPropsMixin.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 CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder portConfiguration(IResolvable portConfiguration) Sets the value ofCfnContainerGroupDefinitionPropsMixin.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 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.GameServerContainerDefinitionProperty.Builder portConfiguration(CfnContainerGroupDefinitionPropsMixin.PortConfigurationProperty portConfiguration) Sets the value ofCfnContainerGroupDefinitionPropsMixin.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 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.GameServerContainerDefinitionProperty.Builder resolvedImageDigest(String resolvedImageDigest) Sets the value ofCfnContainerGroupDefinitionPropsMixin.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
-
serverSdkVersion
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.Builder serverSdkVersion(String serverSdkVersion) Sets the value ofCfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty.getServerSdkVersion()- Parameters:
serverSdkVersion- The Amazon GameLift Servers server SDK version that the game server is integrated with. Only game servers using 5.2.0 or higher are compatible with container fleets.- Returns:
this
-
build
@Stability(Stable) public CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty>- Returns:
- a new instance of
CfnContainerGroupDefinitionPropsMixin.GameServerContainerDefinitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-