Class VolumeMount


  • public final class VolumeMount
    extends Object
    Volume mount for the Container App.
    • Constructor Detail

      • VolumeMount

        public VolumeMount()
    • Method Detail

      • volumeName

        public String volumeName()
        Get the volumeName property: This must match the Name of a Volume.
        Returns:
        the volumeName value.
      • withVolumeName

        public VolumeMount withVolumeName​(String volumeName)
        Set the volumeName property: This must match the Name of a Volume.
        Parameters:
        volumeName - the volumeName value to set.
        Returns:
        the VolumeMount object itself.
      • mountPath

        public String mountPath()
        Get the mountPath property: Path within the container at which the volume should be mounted.Must not contain ':'.
        Returns:
        the mountPath value.
      • withMountPath

        public VolumeMount withMountPath​(String mountPath)
        Set the mountPath property: Path within the container at which the volume should be mounted.Must not contain ':'.
        Parameters:
        mountPath - the mountPath value to set.
        Returns:
        the VolumeMount object itself.
      • validate

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