Class Certificate
java.lang.Object
com.azure.resourcemanager.cosmos.models.Certificate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Certificate>
public final class Certificate
extends Object
implements com.azure.json.JsonSerializable<Certificate>
The Certificate model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Certificate
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of Certificate from the JsonReader.pem()
Get the pem property: PEM formatted public key.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the pem property: PEM formatted public key.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
-
Certificate
public Certificate()Creates an instance of Certificate class.
-
-
Method Details
-
pem
Get the pem property: PEM formatted public key.- Returns:
- the pem value.
-
withPem
Set the pem property: PEM formatted public key.- Parameters:
pem
- the pem value to set.- Returns:
- the Certificate object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<Certificate>
- Throws:
IOException
-
fromJson
Reads an instance of Certificate from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of Certificate 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 Certificate.
-