Class VaultJobErrorInfo
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.VaultJobErrorInfo
-
public final class VaultJobErrorInfo extends Object
Vault Job specific error information.
-
-
Constructor Summary
Constructors Constructor Description VaultJobErrorInfo()
-
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.VaultJobErrorInfo
withErrorCode(Integer errorCode)
Set the errorCode property: Error code.VaultJobErrorInfo
withErrorString(String errorString)
Set the errorString property: Localized error string.VaultJobErrorInfo
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 VaultJobErrorInfo withErrorCode(Integer errorCode)
Set the errorCode property: Error code.- Parameters:
errorCode
- the errorCode value to set.- Returns:
- the VaultJobErrorInfo object itself.
-
errorString
public String errorString()
Get the errorString property: Localized error string.- Returns:
- the errorString value.
-
withErrorString
public VaultJobErrorInfo withErrorString(String errorString)
Set the errorString property: Localized error string.- Parameters:
errorString
- the errorString value to set.- Returns:
- the VaultJobErrorInfo 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 VaultJobErrorInfo 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 VaultJobErrorInfo object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-