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 Details

    • CertificateOrderContact

      public CertificateOrderContact()
      Creates an instance of CertificateOrderContact class.
  • Method Details

    • email

      public String email()
      Get the email property: The email property.
      Returns:
      the email value.
    • withEmail

      public CertificateOrderContact withEmail(String email)
      Set the email property: The email property.
      Parameters:
      email - the email value to set.
      Returns:
      the CertificateOrderContact object itself.
    • nameFirst

      public String nameFirst()
      Get the nameFirst property: The nameFirst property.
      Returns:
      the nameFirst value.
    • withNameFirst

      public CertificateOrderContact withNameFirst(String nameFirst)
      Set the nameFirst property: The nameFirst property.
      Parameters:
      nameFirst - the nameFirst value to set.
      Returns:
      the CertificateOrderContact object itself.
    • nameLast

      public String nameLast()
      Get the nameLast property: The nameLast property.
      Returns:
      the nameLast value.
    • withNameLast

      public CertificateOrderContact withNameLast(String nameLast)
      Set the nameLast property: The nameLast property.
      Parameters:
      nameLast - the nameLast value to set.
      Returns:
      the CertificateOrderContact object itself.
    • phone

      public String phone()
      Get the phone property: The phone property.
      Returns:
      the phone value.
    • withPhone

      public CertificateOrderContact withPhone(String phone)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.