Class CertificateOperationError
java.lang.Object
com.azure.security.keyvault.certificates.models.CertificateOperationError
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateOperationError>
public final class CertificateOperationError
extends Object
implements com.azure.json.JsonSerializable<CertificateOperationError>
The CertificateOperationError model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CertificateOperationError class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CertificateOperationError
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CertificateOperationError from the JsonReader.getCode()
Get the code property: The error code.Get the innerError property: The key vault server error.Get the message property: The error message.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CertificateOperationError
public CertificateOperationError()Creates an instance of CertificateOperationError class.
-
-
Method Details
-
getCode
Get the code property: The error code.- Returns:
- the code value.
-
getMessage
Get the message property: The error message.- Returns:
- the message value.
-
getInnerError
Get the innerError property: The key vault server error.- Returns:
- the innerError value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CertificateOperationError>
- Throws:
IOException
-
fromJson
public static CertificateOperationError fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CertificateOperationError from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CertificateOperationError if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the CertificateOperationError.
-