Class ContactInfo

java.lang.Object
com.azure.analytics.purview.datamap.models.ContactInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContactInfo>

public final class ContactInfo extends Object implements com.azure.json.JsonSerializable<ContactInfo>
ContactInfo.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ContactInfo class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ContactInfo from the JsonReader.
    Get the id property: Azure Active Directory object Id.
    Get the info property: additional information to describe this contact.
    Set the id property: Azure Active Directory object Id.
    Set the info property: additional information to describe this contact.
    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

    • ContactInfo

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

    • getId

      public String getId()
      Get the id property: Azure Active Directory object Id.
      Returns:
      the id value.
    • setId

      public ContactInfo setId(String id)
      Set the id property: Azure Active Directory object Id.
      Parameters:
      id - the id value to set.
      Returns:
      the ContactInfo object itself.
    • getInfo

      public String getInfo()
      Get the info property: additional information to describe this contact.
      Returns:
      the info value.
    • setInfo

      public ContactInfo setInfo(String info)
      Set the info property: additional information to describe this contact.
      Parameters:
      info - the info value to set.
      Returns:
      the ContactInfo object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ContactInfo>
      Throws:
      IOException
    • fromJson

      public static ContactInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ContactInfo from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ContactInfo 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 ContactInfo.