Class Volume


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

      • Volume

        public Volume()
    • Method Detail

      • name

        public String name()
        Get the name property: Volume name.
        Returns:
        the name value.
      • withName

        public Volume withName​(String name)
        Set the name property: Volume name.
        Parameters:
        name - the name value to set.
        Returns:
        the Volume object itself.
      • storageType

        public StorageType storageType()
        Get the storageType property: Storage type for the volume. If not provided, use EmptyDir.
        Returns:
        the storageType value.
      • withStorageType

        public Volume withStorageType​(StorageType storageType)
        Set the storageType property: Storage type for the volume. If not provided, use EmptyDir.
        Parameters:
        storageType - the storageType value to set.
        Returns:
        the Volume object itself.
      • storageName

        public String storageName()
        Get the storageName property: Name of storage resource. No need to provide for EmptyDir.
        Returns:
        the storageName value.
      • withStorageName

        public Volume withStorageName​(String storageName)
        Set the storageName property: Name of storage resource. No need to provide for EmptyDir.
        Parameters:
        storageName - the storageName value to set.
        Returns:
        the Volume object itself.
      • validate

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