Class AzureWorkloadErrorInfo
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadErrorInfo
Azure storage specific error information.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AzureWorkloadErrorInfo class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalDetails property: Additional details for above error code.Get the errorCode property: Error code.Get the errorString property: Localized error string.Get the errorTitle property: Title: Typically, the entity that the error pertains to.Get the recommendations property: List of localized recommendations for above error code.void
validate()
Validates the instance.withAdditionalDetails
(String additionalDetails) Set the additionalDetails property: Additional details for above error code.withErrorCode
(Integer errorCode) Set the errorCode property: Error code.withErrorString
(String errorString) Set the errorString property: Localized error string.withErrorTitle
(String errorTitle) Set the errorTitle property: Title: Typically, the entity that the error pertains to.withRecommendations
(List<String> recommendations) Set the recommendations property: List of localized recommendations for above error code.
-
Constructor Details
-
AzureWorkloadErrorInfo
public AzureWorkloadErrorInfo()Creates an instance of AzureWorkloadErrorInfo class.
-
-
Method Details
-
errorCode
Get the errorCode property: Error code.- Returns:
- the errorCode value.
-
withErrorCode
Set the errorCode property: Error code.- Parameters:
errorCode
- the errorCode value to set.- Returns:
- the AzureWorkloadErrorInfo object itself.
-
errorString
Get the errorString property: Localized error string.- Returns:
- the errorString value.
-
withErrorString
Set the errorString property: Localized error string.- Parameters:
errorString
- the errorString value to set.- Returns:
- the AzureWorkloadErrorInfo object itself.
-
errorTitle
Get the errorTitle property: Title: Typically, the entity that the error pertains to.- Returns:
- the errorTitle value.
-
withErrorTitle
Set the errorTitle property: Title: Typically, the entity that the error pertains to.- Parameters:
errorTitle
- the errorTitle value to set.- Returns:
- the AzureWorkloadErrorInfo object itself.
-
recommendations
Get the recommendations property: List of localized recommendations for above error code.- Returns:
- the recommendations value.
-
withRecommendations
Set the recommendations property: List of localized recommendations for above error code.- Parameters:
recommendations
- the recommendations value to set.- Returns:
- the AzureWorkloadErrorInfo object itself.
-
additionalDetails
Get the additionalDetails property: Additional details for above error code.- Returns:
- the additionalDetails value.
-
withAdditionalDetails
Set the additionalDetails property: Additional details for above error code.- Parameters:
additionalDetails
- the additionalDetails value to set.- Returns:
- the AzureWorkloadErrorInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-