Interface CreateContainerGroupDefinitionRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateContainerGroupDefinitionRequest.Builder,CreateContainerGroupDefinitionRequest>, GameLiftRequest.Builder, SdkBuilder<CreateContainerGroupDefinitionRequest.Builder,CreateContainerGroupDefinitionRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateContainerGroupDefinitionRequest

public static interface CreateContainerGroupDefinitionRequest.Builder extends GameLiftRequest.Builder, SdkPojo, CopyableBuilder<CreateContainerGroupDefinitionRequest.Builder,CreateContainerGroupDefinitionRequest>
  • 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.
    • schedulingStrategy

      CreateContainerGroupDefinitionRequest.Builder schedulingStrategy(String schedulingStrategy)

      The method for deploying the container group across fleet instances. A replica container group might have multiple copies on each fleet instance. A daemon container group has one copy per fleet instance. Default value is REPLICA.

      Parameters:
      schedulingStrategy - The method for deploying the container group across fleet instances. A replica container group might have multiple copies on each fleet instance. A daemon container group has one copy per fleet instance. Default value is REPLICA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • schedulingStrategy

      The method for deploying the container group across fleet instances. A replica container group might have multiple copies on each fleet instance. A daemon container group has one copy per fleet instance. Default value is REPLICA.

      Parameters:
      schedulingStrategy - The method for deploying the container group across fleet instances. A replica container group might have multiple copies on each fleet instance. A daemon container group has one copy per fleet instance. Default value is REPLICA.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • totalMemoryLimit

      CreateContainerGroupDefinitionRequest.Builder totalMemoryLimit(Integer totalMemoryLimit)

      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 individual containers, set this parameter based on the following guidelines. The value must be (1) greater than the sum of the soft memory limits for all containers in the group, and (2) greater than any individual container's hard memory limit.

      Parameters:
      totalMemoryLimit - 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 individual containers, set this parameter based on the following guidelines. The value must be (1) greater than the sum of the soft memory limits for all containers in the group, and (2) greater than any individual container's hard memory limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalCpuLimit

      The maximum amount of CPU units to allocate to the container group. Set this parameter to an integer value in CPU units (1 vCPU is equal to 1024 CPU units). All containers in the group share this memory. If you specify CPU limits for individual containers, set this parameter based on the following guidelines. The value must be equal to or greater than the sum of the CPU limits for all containers in the group.

      Parameters:
      totalCpuLimit - The maximum amount of CPU units to allocate to the container group. Set this parameter to an integer value in CPU units (1 vCPU is equal to 1024 CPU units). All containers in the group share this memory. If you specify CPU limits for individual containers, set this parameter based on the following guidelines. The 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.
    • containerDefinitions

      Definitions for all containers in this group. Each container definition identifies the container image and specifies configuration settings for the container. See the Container fleet design guide for container guidelines.

      Parameters:
      containerDefinitions - Definitions for all containers in this group. Each container definition identifies the container image and specifies configuration settings for the container. See the Container fleet design guide for container guidelines.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerDefinitions

      CreateContainerGroupDefinitionRequest.Builder containerDefinitions(ContainerDefinitionInput... containerDefinitions)

      Definitions for all containers in this group. Each container definition identifies the container image and specifies configuration settings for the container. See the Container fleet design guide for container guidelines.

      Parameters:
      containerDefinitions - Definitions for all containers in this group. Each container definition identifies the container image and specifies configuration settings for the container. See the Container fleet design guide for container guidelines.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerDefinitions

      Definitions for all containers in this group. Each container definition identifies the container image and specifies configuration settings for the container. See the Container fleet design guide for container guidelines.

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

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

      Parameters:
      containerDefinitions - a consumer that will call methods on ContainerDefinitionInput.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • operatingSystem

      CreateContainerGroupDefinitionRequest.Builder operatingSystem(String operatingSystem)

      The platform that is used by containers in the container group definition. All containers in a group must run on the same operating system.

      Parameters:
      operatingSystem - The platform that is used by containers in the container group definition. All containers in a group must run on the same operating system.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • operatingSystem

      The platform that is used by containers in the container group definition. All containers in a group must run on the same operating system.

      Parameters:
      operatingSystem - The platform that is used by containers in the container group definition. All containers in a group must run on the same operating system.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

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

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      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.