Class VaultJobErrorInfo
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.VaultJobErrorInfo
Vault Job specific error information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the errorCode property: Error code.Get the errorString property: Localized error string.Get the recommendations property: List of localized recommendations for above error code.void
validate()
Validates the instance.withErrorCode
(Integer errorCode) Set the errorCode property: Error code.withErrorString
(String errorString) Set the errorString property: Localized error string.withRecommendations
(List<String> recommendations) Set the recommendations property: List of localized recommendations for above error code.
-
Constructor Details
-
VaultJobErrorInfo
public VaultJobErrorInfo()Creates an instance of VaultJobErrorInfo 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 VaultJobErrorInfo 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 VaultJobErrorInfo 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 VaultJobErrorInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-