Interface Container.Builder

    • Method Detail

      • 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.Builder id​(String id)

        Container ID.

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

        Container.Builder name​(String 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.
      • 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.