Class VolumeBackups


  • public final class VolumeBackups
    extends Object
    Volume details using the backup policy.
    • Constructor Detail

      • VolumeBackups

        public VolumeBackups()
    • Method Detail

      • volumeName

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

        public VolumeBackups withVolumeName​(String volumeName)
        Set the volumeName property: Volume name.
        Parameters:
        volumeName - the volumeName value to set.
        Returns:
        the VolumeBackups object itself.
      • backupsCount

        public Integer backupsCount()
        Get the backupsCount property: Total count of backups for volume.
        Returns:
        the backupsCount value.
      • withBackupsCount

        public VolumeBackups withBackupsCount​(Integer backupsCount)
        Set the backupsCount property: Total count of backups for volume.
        Parameters:
        backupsCount - the backupsCount value to set.
        Returns:
        the VolumeBackups object itself.
      • policyEnabled

        public Boolean policyEnabled()
        Get the policyEnabled property: Policy enabled.
        Returns:
        the policyEnabled value.
      • withPolicyEnabled

        public VolumeBackups withPolicyEnabled​(Boolean policyEnabled)
        Set the policyEnabled property: Policy enabled.
        Parameters:
        policyEnabled - the policyEnabled value to set.
        Returns:
        the VolumeBackups object itself.
      • validate

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