Interface UpdateContainerGroupDefinitionRequest.Builder

  • 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 is GAME_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 GAME_SERVER. You can pass in your container definitions as a JSON file.

      This is a convenience method that creates an instance of the GameServerContainerDefinitionInput.Builder avoiding the need to create one manually via GameServerContainerDefinitionInput.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to gameServerContainerDefinition(GameServerContainerDefinitionInput).

      Parameters:
      gameServerContainerDefinition - a consumer that will call methods on GameServerContainerDefinitionInput.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 the SupportContainerDefinitionInput.Builder avoiding the need to create one manually via SupportContainerDefinitionInput.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to supportContainerDefinitions(List<SupportContainerDefinitionInput>).

      Parameters:
      supportContainerDefinitions - a consumer that will call methods on SupportContainerDefinitionInput.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

      UpdateContainerGroupDefinitionRequest.Builder totalVcpuLimit(Double 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

      UpdateContainerGroupDefinitionRequest.Builder versionDescription(String 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

      UpdateContainerGroupDefinitionRequest.Builder sourceVersionNumber(Integer 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

      UpdateContainerGroupDefinitionRequest.Builder operatingSystem(String 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

      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

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.