Class InquiryValidation
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.InquiryValidation
Validation for inquired protectable items under a given container.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the additionalDetail property: Error Additional Detail in case the status is non-success.Get the errorDetail property: Error Detail in case the status is non-success.status()
Get the status property: Status for the Inquiry Validation.void
validate()
Validates the instance.withErrorDetail
(ErrorDetail errorDetail) Set the errorDetail property: Error Detail in case the status is non-success.withStatus
(String status) Set the status property: Status for the Inquiry Validation.
-
Constructor Details
-
InquiryValidation
public InquiryValidation()Creates an instance of InquiryValidation class.
-
-
Method Details
-
status
Get the status property: Status for the Inquiry Validation.- Returns:
- the status value.
-
withStatus
Set the status property: Status for the Inquiry Validation.- Parameters:
status
- the status value to set.- Returns:
- the InquiryValidation object itself.
-
errorDetail
Get the errorDetail property: Error Detail in case the status is non-success.- Returns:
- the errorDetail value.
-
withErrorDetail
Set the errorDetail property: Error Detail in case the status is non-success.- Parameters:
errorDetail
- the errorDetail value to set.- Returns:
- the InquiryValidation object itself.
-
additionalDetail
Get the additionalDetail property: Error Additional Detail in case the status is non-success.- Returns:
- the additionalDetail value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-