Interface ContainerGroupPortMapping.Builder

  • Method Details

    • containerName

      ContainerGroupPortMapping.Builder containerName(String containerName)

      The name of the container, as defined in the container group definition.

      Parameters:
      containerName - The name of the container, as defined in the container group definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerRuntimeId

      ContainerGroupPortMapping.Builder containerRuntimeId(String containerRuntimeId)

      The runtime ID for the container that's running in a compute. This value is unique within the compute.

      Parameters:
      containerRuntimeId - The runtime ID for the container that's running in a compute. This value is unique within the compute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerPortMappings

      ContainerGroupPortMapping.Builder containerPortMappings(Collection<ContainerPortMapping> containerPortMappings)

      A list of ContainerPortMapping objects that describe the port mappings for this container.

      Parameters:
      containerPortMappings - A list of ContainerPortMapping objects that describe the port mappings for this container.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerPortMappings

      ContainerGroupPortMapping.Builder containerPortMappings(ContainerPortMapping... containerPortMappings)

      A list of ContainerPortMapping objects that describe the port mappings for this container.

      Parameters:
      containerPortMappings - A list of ContainerPortMapping objects that describe the port mappings for this container.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerPortMappings

      ContainerGroupPortMapping.Builder containerPortMappings(Consumer<ContainerPortMapping.Builder>... containerPortMappings)

      A list of ContainerPortMapping objects that describe the port mappings for this container.

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

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

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