Class MountOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • propagation

        @Stability(Stable)
        public MountOptions.Builder propagation​(MountPropagation propagation)
        Parameters:
        propagation - Determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used.

        Mount propagation allows for sharing volumes mounted by a Container to other Containers in the same Pod, or even to other Pods on the same node.

        Returns:
        this
      • subPathExpr

        @Stability(Stable)
        public MountOptions.Builder subPathExpr​(String subPathExpr)
        Parameters:
        subPathExpr - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root).

        subPathExpr and subPath are mutually exclusive.

        Returns:
        this
      • build

        @Stability(Stable)
        public MountOptions build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<MountOptions>
        Returns:
        a new instance of MountOptions
        Throws:
        NullPointerException - if any required attribute was not provided