Class InquiryValidation
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.InquiryValidation
-
public final class InquiryValidation extends Object
Validation for inquired protectable items under a given container.
-
-
Constructor Summary
Constructors Constructor Description InquiryValidation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
additionalDetail()
Get the additionalDetail property: Error Additional Detail in case the status is non-success.ErrorDetail
errorDetail()
Get the errorDetail property: Error Detail in case the status is non-success.String
status()
Get the status property: Status for the Inquiry Validation.void
validate()
Validates the instance.InquiryValidation
withErrorDetail(ErrorDetail errorDetail)
Set the errorDetail property: Error Detail in case the status is non-success.InquiryValidation
withStatus(String status)
Set the status property: Status for the Inquiry Validation.
-
-
-
Method Detail
-
status
public String status()
Get the status property: Status for the Inquiry Validation.- Returns:
- the status value.
-
withStatus
public InquiryValidation withStatus(String status)
Set the status property: Status for the Inquiry Validation.- Parameters:
status
- the status value to set.- Returns:
- the InquiryValidation object itself.
-
errorDetail
public ErrorDetail errorDetail()
Get the errorDetail property: Error Detail in case the status is non-success.- Returns:
- the errorDetail value.
-
withErrorDetail
public InquiryValidation withErrorDetail(ErrorDetail errorDetail)
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
public String 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.
-
-