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 CertificateContact
fromJson
(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.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
-
CertificateContact
public CertificateContact()Creates an instance of CertificateContact class.
-
-
Method Details
-
getEmail
Get the email property: Email address.- Returns:
- the email value.
-
setEmail
Set the email property: Email address.- Parameters:
email
- the email value to set.- Returns:
- the CertificateContact object itself.
-
getName
Get the name property: Name.- Returns:
- the name value.
-
setName
Set the name property: Name.- Parameters:
name
- the name value to set.- Returns:
- the CertificateContact object itself.
-
getPhone
Get the phone property: Phone number.- Returns:
- the phone value.
-
setPhone
Set the phone property: Phone number.- Parameters:
phone
- the phone value to set.- Returns:
- the CertificateContact object itself.
-
toJson
- Specified by:
toJson
in 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.
-