Interface CreateContainerGroupDefinitionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateContainerGroupDefinitionRequest.Builder,
,CreateContainerGroupDefinitionRequest> GameLiftRequest.Builder
,SdkBuilder<CreateContainerGroupDefinitionRequest.Builder,
,CreateContainerGroupDefinitionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateContainerGroupDefinitionRequest
-
Method Summary
Modifier and TypeMethodDescriptioncontainerGroupType
(String containerGroupType) The type of container group being defined.containerGroupType
(ContainerGroupType containerGroupType) The type of container group being defined.gameServerContainerDefinition
(Consumer<GameServerContainerDefinitionInput.Builder> gameServerContainerDefinition) The definition for the game server container in this group.gameServerContainerDefinition
(GameServerContainerDefinitionInput gameServerContainerDefinition) The definition for the game server container in this group.A descriptive identifier for the container group definition.operatingSystem
(String operatingSystem) The platform that all containers in the group use.operatingSystem
(ContainerOperatingSystem operatingSystem) The platform that all containers in the group use.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.supportContainerDefinitions
(Collection<SupportContainerDefinitionInput> supportContainerDefinitions) One or more definition for support containers in this group.supportContainerDefinitions
(Consumer<SupportContainerDefinitionInput.Builder>... supportContainerDefinitions) One or more definition for support containers in this group.supportContainerDefinitions
(SupportContainerDefinitionInput... supportContainerDefinitions) One or more definition for support containers in this group.tags
(Collection<Tag> tags) A list of labels to assign to the container group definition resource.tags
(Consumer<Tag.Builder>... tags) A list of labels to assign to the container group definition resource.A list of labels to assign to the container group definition resource.totalMemoryLimitMebibytes
(Integer totalMemoryLimitMebibytes) The maximum amount of memory (in MiB) to allocate to the container group.totalVcpuLimit
(Double totalVcpuLimit) The maximum amount of vCPU units to allocate to the container group (1 vCPU is equal to 1024 CPU units).versionDescription
(String versionDescription) A description for the initial version of this container group definition.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.gamelift.model.GameLiftRequest.Builder
build
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
-
name
A descriptive identifier for the container group definition. The name value must be unique in an Amazon Web Services Region.
- Parameters:
name
- A descriptive identifier for the container group definition. The name value must be unique in an Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerGroupType
The type of container group being defined. Container group type determines how Amazon GameLift Servers deploys the container group on each fleet instance.
Default value:
GAME_SERVER
- Parameters:
containerGroupType
- The type of container group being defined. Container group type determines how Amazon GameLift Servers deploys the container group on each fleet instance.Default value:
GAME_SERVER
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
containerGroupType
CreateContainerGroupDefinitionRequest.Builder containerGroupType(ContainerGroupType containerGroupType) The type of container group being defined. Container group type determines how Amazon GameLift Servers deploys the container group on each fleet instance.
Default value:
GAME_SERVER
- Parameters:
containerGroupType
- The type of container group being defined. Container group type determines how Amazon GameLift Servers deploys the container group on each fleet instance.Default value:
GAME_SERVER
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalMemoryLimitMebibytes
CreateContainerGroupDefinitionRequest.Builder totalMemoryLimitMebibytes(Integer totalMemoryLimitMebibytes) The maximum amount of memory (in MiB) to allocate to the container group. All containers in the group share this memory. If you specify memory limits for an individual container, the total value must be greater than any individual container's memory limit.
Default value: 1024
- Parameters:
totalMemoryLimitMebibytes
- The maximum amount of memory (in MiB) to allocate to the container group. All containers in the group share this memory. If you specify memory limits for an individual container, the total value must be greater than any individual container's memory limit.Default value: 1024
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalVcpuLimit
The maximum amount of vCPU units to allocate to the container group (1 vCPU is equal to 1024 CPU units). All containers in the group share this memory. If you specify vCPU limits for individual containers, the total value must be equal to or greater than the sum of the CPU limits for all containers in the group.
Default value: 1
- Parameters:
totalVcpuLimit
- The maximum amount of vCPU units to allocate to the container group (1 vCPU is equal to 1024 CPU units). All containers in the group share this memory. If you specify vCPU limits for individual containers, the total value must be equal to or greater than the sum of the CPU limits for all containers in the group.Default value: 1
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gameServerContainerDefinition
CreateContainerGroupDefinitionRequest.Builder gameServerContainerDefinition(GameServerContainerDefinitionInput gameServerContainerDefinition) The definition for the game server container in this group. Define a game server container only when the container group type is
GAME_SERVER
. Game server containers specify a container image with your game server build. You can pass in your container definitions as a JSON file.- Parameters:
gameServerContainerDefinition
- The definition for the game server container in this group. Define a game server container only when the container group type isGAME_SERVER
. Game server containers specify a container image with your game server build. You can pass in your container definitions as a JSON file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gameServerContainerDefinition
default CreateContainerGroupDefinitionRequest.Builder gameServerContainerDefinition(Consumer<GameServerContainerDefinitionInput.Builder> gameServerContainerDefinition) The definition for the game server container in this group. Define a game server container only when the container group type is
This is a convenience method that creates an instance of theGAME_SERVER
. Game server containers specify a container image with your game server build. You can pass in your container definitions as a JSON file.GameServerContainerDefinitionInput.Builder
avoiding the need to create one manually viaGameServerContainerDefinitionInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togameServerContainerDefinition(GameServerContainerDefinitionInput)
.- Parameters:
gameServerContainerDefinition
- a consumer that will call methods onGameServerContainerDefinitionInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
supportContainerDefinitions
CreateContainerGroupDefinitionRequest.Builder supportContainerDefinitions(Collection<SupportContainerDefinitionInput> supportContainerDefinitions) One or more definition for support containers in this group. You can define a support container in any type of container group. You can pass in your container definitions as a JSON file.
- Parameters:
supportContainerDefinitions
- One or more definition for support containers in this group. You can define a support container in any type of container group. You can pass in your container definitions as a JSON file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportContainerDefinitions
CreateContainerGroupDefinitionRequest.Builder supportContainerDefinitions(SupportContainerDefinitionInput... supportContainerDefinitions) One or more definition for support containers in this group. You can define a support container in any type of container group. You can pass in your container definitions as a JSON file.
- Parameters:
supportContainerDefinitions
- One or more definition for support containers in this group. You can define a support container in any type of container group. You can pass in your container definitions as a JSON file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportContainerDefinitions
CreateContainerGroupDefinitionRequest.Builder supportContainerDefinitions(Consumer<SupportContainerDefinitionInput.Builder>... supportContainerDefinitions) One or more definition for support containers in this group. You can define a support container in any type of container group. You can pass in your container definitions as a JSON file.
This is a convenience method that creates an instance of theSupportContainerDefinitionInput.Builder
avoiding the need to create one manually viaSupportContainerDefinitionInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosupportContainerDefinitions(List<SupportContainerDefinitionInput>)
.- Parameters:
supportContainerDefinitions
- a consumer that will call methods onSupportContainerDefinitionInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
operatingSystem
The platform that all containers in the group use. Containers in a group must run on the same operating system.
Default value:
AMAZON_LINUX_2023
Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use server SDK version 4.x for Amazon GameLift Servers, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to server SDK version 5.
- Parameters:
operatingSystem
- The platform that all containers in the group use. Containers in a group must run on the same operating system.Default value:
AMAZON_LINUX_2023
Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use server SDK version 4.x for Amazon GameLift Servers, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to server SDK version 5.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
operatingSystem
CreateContainerGroupDefinitionRequest.Builder operatingSystem(ContainerOperatingSystem operatingSystem) The platform that all containers in the group use. Containers in a group must run on the same operating system.
Default value:
AMAZON_LINUX_2023
Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use server SDK version 4.x for Amazon GameLift Servers, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to server SDK version 5.
- Parameters:
operatingSystem
- The platform that all containers in the group use. Containers in a group must run on the same operating system.Default value:
AMAZON_LINUX_2023
Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use server SDK version 4.x for Amazon GameLift Servers, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to server SDK version 5.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
versionDescription
A description for the initial version of this container group definition.
- Parameters:
versionDescription
- A description for the initial version of this container group definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of labels to assign to the container group definition resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
- Parameters:
tags
- A list of labels to assign to the container group definition resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of labels to assign to the container group definition resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
- Parameters:
tags
- A list of labels to assign to the container group definition resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of labels to assign to the container group definition resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateContainerGroupDefinitionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateContainerGroupDefinitionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-