Interface UpdateContainerGroupDefinitionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateContainerGroupDefinitionRequest.Builder,
,UpdateContainerGroupDefinitionRequest> GameLiftRequest.Builder
,SdkBuilder<UpdateContainerGroupDefinitionRequest.Builder,
,UpdateContainerGroupDefinitionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateContainerGroupDefinitionRequest
-
Method Summary
Modifier and TypeMethodDescriptiongameServerContainerDefinition
(Consumer<GameServerContainerDefinitionInput.Builder> gameServerContainerDefinition) An updated definition for the game server container in this group.gameServerContainerDefinition
(GameServerContainerDefinitionInput gameServerContainerDefinition) An updated 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.sourceVersionNumber
(Integer sourceVersionNumber) The container group definition version to update.supportContainerDefinitions
(Collection<SupportContainerDefinitionInput> supportContainerDefinitions) One or more definitions for support containers in this group.supportContainerDefinitions
(Consumer<SupportContainerDefinitionInput.Builder>... supportContainerDefinitions) One or more definitions for support containers in this group.supportContainerDefinitions
(SupportContainerDefinitionInput... supportContainerDefinitions) One or more definitions for support containers in this group.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 this update to the 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.
-
gameServerContainerDefinition
UpdateContainerGroupDefinitionRequest.Builder gameServerContainerDefinition(GameServerContainerDefinitionInput gameServerContainerDefinition) An updated definition for the game server container in this group. Define a game server container only when the container group type is
GAME_SERVER
. You can pass in your container definitions as a JSON file.- Parameters:
gameServerContainerDefinition
- An updated definition for the game server container in this group. Define a game server container only when the container group type isGAME_SERVER
. 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 UpdateContainerGroupDefinitionRequest.Builder gameServerContainerDefinition(Consumer<GameServerContainerDefinitionInput.Builder> gameServerContainerDefinition) An updated 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
. 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
UpdateContainerGroupDefinitionRequest.Builder supportContainerDefinitions(Collection<SupportContainerDefinitionInput> supportContainerDefinitions) One or more definitions 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 definitions 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
UpdateContainerGroupDefinitionRequest.Builder supportContainerDefinitions(SupportContainerDefinitionInput... supportContainerDefinitions) One or more definitions 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 definitions 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
UpdateContainerGroupDefinitionRequest.Builder supportContainerDefinitions(Consumer<SupportContainerDefinitionInput.Builder>... supportContainerDefinitions) One or more definitions 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:
-
totalMemoryLimitMebibytes
UpdateContainerGroupDefinitionRequest.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.
- 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.- 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.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionDescription
A description for this update to the container group definition.
- Parameters:
versionDescription
- A description for this update to the container group definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceVersionNumber
The container group definition version to update. The new version starts with values from the source version, and then updates values included in this request.
- Parameters:
sourceVersionNumber
- The container group definition version to update. The new version starts with values from the source version, and then updates values included in this request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operatingSystem
The platform that all containers in the group use. Containers in a group must run on the same operating system.
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.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
UpdateContainerGroupDefinitionRequest.Builder operatingSystem(ContainerOperatingSystem operatingSystem) The platform that all containers in the group use. Containers in a group must run on the same operating system.
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.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:
-
overrideConfiguration
UpdateContainerGroupDefinitionRequest.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
UpdateContainerGroupDefinitionRequest.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.
-