Class VolumeMount


  • public final class VolumeMount
    extends Object
    The properties of the volume mount.
    • Constructor Detail

      • VolumeMount

        public VolumeMount()
    • Method Detail

      • name

        public String name()
        Get the name property: The name of the volume mount.
        Returns:
        the name value.
      • withName

        public VolumeMount withName​(String name)
        Set the name property: The name of the volume mount.
        Parameters:
        name - the name value to set.
        Returns:
        the VolumeMount object itself.
      • mountPath

        public String mountPath()
        Get the mountPath property: The path within the container where the volume should be mounted. Must not contain colon (:).
        Returns:
        the mountPath value.
      • withMountPath

        public VolumeMount withMountPath​(String mountPath)
        Set the mountPath property: The path within the container where the volume should be mounted. Must not contain colon (:).
        Parameters:
        mountPath - the mountPath value to set.
        Returns:
        the VolumeMount object itself.
      • readOnly

        public Boolean readOnly()
        Get the readOnly property: The flag indicating whether the volume mount is read-only.
        Returns:
        the readOnly value.
      • withReadOnly

        public VolumeMount withReadOnly​(Boolean readOnly)
        Set the readOnly property: The flag indicating whether the volume mount is read-only.
        Parameters:
        readOnly - the readOnly value to set.
        Returns:
        the VolumeMount object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.