Class AzureStorageErrorInfo
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageErrorInfo
-
public final class AzureStorageErrorInfo extends Object
Azure storage specific error information.
-
-
Constructor Summary
Constructors Constructor Description AzureStorageErrorInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
errorCode()
Get the errorCode property: Error code.String
errorString()
Get the errorString property: Localized error string.List<String>
recommendations()
Get the recommendations property: List of localized recommendations for above error code.void
validate()
Validates the instance.AzureStorageErrorInfo
withErrorCode(Integer errorCode)
Set the errorCode property: Error code.AzureStorageErrorInfo
withErrorString(String errorString)
Set the errorString property: Localized error string.AzureStorageErrorInfo
withRecommendations(List<String> recommendations)
Set the recommendations property: List of localized recommendations for above error code.
-
-
-
Method Detail
-
errorCode
public Integer errorCode()
Get the errorCode property: Error code.- Returns:
- the errorCode value.
-
withErrorCode
public AzureStorageErrorInfo withErrorCode(Integer errorCode)
Set the errorCode property: Error code.- Parameters:
errorCode
- the errorCode value to set.- Returns:
- the AzureStorageErrorInfo object itself.
-
errorString
public String errorString()
Get the errorString property: Localized error string.- Returns:
- the errorString value.
-
withErrorString
public AzureStorageErrorInfo withErrorString(String errorString)
Set the errorString property: Localized error string.- Parameters:
errorString
- the errorString value to set.- Returns:
- the AzureStorageErrorInfo object itself.
-
recommendations
public List<String> recommendations()
Get the recommendations property: List of localized recommendations for above error code.- Returns:
- the recommendations value.
-
withRecommendations
public AzureStorageErrorInfo withRecommendations(List<String> recommendations)
Set the recommendations property: List of localized recommendations for above error code.- Parameters:
recommendations
- the recommendations value to set.- Returns:
- the AzureStorageErrorInfo object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-