Class CertificateOrderContact
java.lang.Object
com.azure.resourcemanager.appservice.models.CertificateOrderContact
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateOrderContact>
public final class CertificateOrderContact
extends Object
implements com.azure.json.JsonSerializable<CertificateOrderContact>
The CertificateOrderContact model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CertificateOrderContact class. -
Method Summary
Modifier and TypeMethodDescriptionemail()
Get the email property: The email property.static CertificateOrderContact
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CertificateOrderContact from the JsonReader.Get the nameFirst property: The nameFirst property.nameLast()
Get the nameLast property: The nameLast property.phone()
Get the phone property: The phone property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the email property: The email property.withNameFirst
(String nameFirst) Set the nameFirst property: The nameFirst property.withNameLast
(String nameLast) Set the nameLast property: The nameLast property.Set the phone property: The phone property.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
-
CertificateOrderContact
public CertificateOrderContact()Creates an instance of CertificateOrderContact class.
-
-
Method Details
-
email
Get the email property: The email property.- Returns:
- the email value.
-
withEmail
Set the email property: The email property.- Parameters:
email
- the email value to set.- Returns:
- the CertificateOrderContact object itself.
-
nameFirst
Get the nameFirst property: The nameFirst property.- Returns:
- the nameFirst value.
-
withNameFirst
Set the nameFirst property: The nameFirst property.- Parameters:
nameFirst
- the nameFirst value to set.- Returns:
- the CertificateOrderContact object itself.
-
nameLast
Get the nameLast property: The nameLast property.- Returns:
- the nameLast value.
-
withNameLast
Set the nameLast property: The nameLast property.- Parameters:
nameLast
- the nameLast value to set.- Returns:
- the CertificateOrderContact object itself.
-
phone
Get the phone property: The phone property.- Returns:
- the phone value.
-
withPhone
Set the phone property: The phone property.- Parameters:
phone
- the phone value to set.- Returns:
- the CertificateOrderContact 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<CertificateOrderContact>
- Throws:
IOException
-
fromJson
public static CertificateOrderContact fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CertificateOrderContact from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CertificateOrderContact 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 CertificateOrderContact.
-