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 Summary
Constructors Constructor Description PreBackupValidation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
code()
Get the code property: Error code of protectable item.String
message()
Get the message property: Message corresponding to the error code for the protectable item.InquiryStatus
status()
Get the status property: Status of protectable item, i.e.void
validate()
Validates the instance.PreBackupValidation
withCode(String code)
Set the code property: Error code of protectable item.PreBackupValidation
withMessage(String message)
Set the message property: Message corresponding to the error code for the protectable item.PreBackupValidation
withStatus(InquiryStatus status)
Set the status property: Status of protectable item, i.e.
-
-
-
Method Detail
-
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.
-
-