Class VolumeMount.Builder

  • Enclosing class:
    VolumeMount

    public static class VolumeMount.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • mountPath

        public VolumeMount.Builder mountPath​(String mountPath)
        Describes the volume access path.
        Parameters:
        mountPath - the value to set
        Returns:
        this builder
      • volumeName

        public VolumeMount.Builder volumeName​(String volumeName)
        The name of the volume.
        Parameters:
        volumeName - the value to set
        Returns:
        this builder
      • subPath

        public VolumeMount.Builder subPath​(String subPath)
        A sub-path inside the referenced volume.
        Parameters:
        subPath - the value to set
        Returns:
        this builder
      • isReadOnly

        public VolumeMount.Builder isReadOnly​(Boolean isReadOnly)
        Whether the volume was mounted in read-only mode.

        By default, the volume is mounted with write access.

        Parameters:
        isReadOnly - the value to set
        Returns:
        this builder
      • partition

        public VolumeMount.Builder partition​(Integer partition)
        If there is more than one partition in the volume, reference this number of partitions.

        Here is an example: Number Start End Size File system Name Flags 1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp 2 106MB 1180MB 1074MB xfs 3 1180MB 50.0GB 48.8GB lvm

        Parameters:
        partition - the value to set
        Returns:
        this builder