Class CertificateContact
java.lang.Object
com.azure.security.keyvault.certificates.models.CertificateContact
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateContact>
public final class CertificateContact
extends Object
implements com.azure.json.JsonSerializable<CertificateContact>
The contact information for the vault certificates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CertificateContactfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CertificateContact from the JsonReader.getEmail()Get the email property: Email address.getName()Get the name property: Name.getPhone()Get the phone property: Phone number.Set the email property: Email address.Set the name property: Name.Set the phone property: Phone number.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CertificateContact
public CertificateContact()Creates an instance of CertificateContact class.
-
-
Method Details
-
getEmail
-
setEmail
Set the email property: Email address.- Parameters:
email- the email value to set.- Returns:
- the CertificateContact object itself.
-
getName
-
setName
Set the name property: Name.- Parameters:
name- the name value to set.- Returns:
- the CertificateContact object itself.
-
getPhone
-
setPhone
Set the phone property: Phone number.- Parameters:
phone- the phone value to set.- Returns:
- the CertificateContact object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CertificateContact>- Throws:
IOException
-
fromJson
Reads an instance of CertificateContact from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CertificateContact 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 CertificateContact.
-