Interface Container.Builder

  • Method Details

    • containerRuntime

      Container.Builder containerRuntime(String containerRuntime)

      The container runtime (such as, Docker or containerd) used to run the container.

      Parameters:
      containerRuntime - The container runtime (such as, Docker or containerd) used to run the container.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      Container ID.

      Parameters:
      id - Container ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Container name.

      Parameters:
      name - Container name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • image

      Container.Builder image(String image)

      Container image.

      Parameters:
      image - Container image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imagePrefix

      Container.Builder imagePrefix(String imagePrefix)

      Part of the image name before the last slash. For example, imagePrefix for public.ecr.aws/amazonlinux/amazonlinux:latest would be public.ecr.aws/amazonlinux. If the image name is relative and does not have a slash, this field is empty.

      Parameters:
      imagePrefix - Part of the image name before the last slash. For example, imagePrefix for public.ecr.aws/amazonlinux/amazonlinux:latest would be public.ecr.aws/amazonlinux. If the image name is relative and does not have a slash, this field is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • volumeMounts

      Container.Builder volumeMounts(Collection<VolumeMount> volumeMounts)

      Container volume mounts.

      Parameters:
      volumeMounts - Container volume mounts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • volumeMounts

      Container.Builder volumeMounts(VolumeMount... volumeMounts)

      Container volume mounts.

      Parameters:
      volumeMounts - Container volume mounts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • volumeMounts

      Container.Builder volumeMounts(Consumer<VolumeMount.Builder>... volumeMounts)

      Container volume mounts.

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

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

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

      Container.Builder securityContext(SecurityContext securityContext)

      Container security context.

      Parameters:
      securityContext - Container security context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • securityContext

      default Container.Builder securityContext(Consumer<SecurityContext.Builder> securityContext)

      Container security context.

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

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

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