Class PreBackupValidation

java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.PreBackupValidation

public final class PreBackupValidation extends Object
Pre-backup validation for Azure VM Workload provider.
  • Constructor Details

    • PreBackupValidation

      public PreBackupValidation()
      Creates an instance of PreBackupValidation class.
  • Method Details

    • status

      public InquiryStatus status()
      Get the status property: Status of protectable item, i.e. InProgress,Succeeded,Failed.
      Returns:
      the status value.
    • withStatus

      public PreBackupValidation withStatus(InquiryStatus status)
      Set the status property: Status of protectable item, i.e. InProgress,Succeeded,Failed.
      Parameters:
      status - the status value to set.
      Returns:
      the PreBackupValidation object itself.
    • code

      public String code()
      Get the code property: Error code of protectable item.
      Returns:
      the code value.
    • withCode

      public PreBackupValidation withCode(String code)
      Set the code property: Error code of protectable item.
      Parameters:
      code - the code value to set.
      Returns:
      the PreBackupValidation object itself.
    • message

      public String message()
      Get the message property: Message corresponding to the error code for the protectable item.
      Returns:
      the message value.
    • withMessage

      public PreBackupValidation withMessage(String message)
      Set the message property: Message corresponding to the error code for the protectable item.
      Parameters:
      message - the message value to set.
      Returns:
      the PreBackupValidation object itself.
    • validate

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