Class Contact

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Contact extends OutlookItem implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • Contact

      public Contact()
      Instantiates a new Contact and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Contact createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a Contact
    • getAssistantName

      @Nullable public String getAssistantName()
      Gets the assistantName property value. The name of the contact's assistant.
      Returns:
      a String
    • getBirthday

      @Nullable public OffsetDateTime getBirthday()
      Gets the birthday property value. The contact's birthday. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
      Returns:
      a OffsetDateTime
    • getBusinessAddress

      @Nullable public PhysicalAddress getBusinessAddress()
      Gets the businessAddress property value. The contact's business address.
      Returns:
      a PhysicalAddress
    • getBusinessHomePage

      @Nullable public String getBusinessHomePage()
      Gets the businessHomePage property value. The business home page of the contact.
      Returns:
      a String
    • getBusinessPhones

      @Nullable public List<String> getBusinessPhones()
      Gets the businessPhones property value. The contact's business phone numbers.
      Returns:
      a List<String>
    • getChildren

      @Nullable public List<String> getChildren()
      Gets the children property value. The names of the contact's children.
      Returns:
      a List<String>
    • getCompanyName

      @Nullable public String getCompanyName()
      Gets the companyName property value. The name of the contact's company.
      Returns:
      a String
    • getDepartment

      @Nullable public String getDepartment()
      Gets the department property value. The contact's department.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The contact's display name. You can specify the display name in a create or update operation. Note that later updates to other properties may cause an automatically generated value to overwrite the displayName value you have specified. To preserve a pre-existing value, always include it as displayName in an update operation.
      Returns:
      a String
    • getEmailAddresses

      @Nullable public List<EmailAddress> getEmailAddresses()
      Gets the emailAddresses property value. The contact's email addresses.
      Returns:
      a List<EmailAddress>
    • getExtensions

      @Nullable public List<Extension> getExtensions()
      Gets the extensions property value. The collection of open extensions defined for the contact. Read-only. Nullable.
      Returns:
      a List<Extension>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class OutlookItem
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFileAs

      @Nullable public String getFileAs()
      Gets the fileAs property value. The name the contact is filed under.
      Returns:
      a String
    • getGeneration

      @Nullable public String getGeneration()
      Gets the generation property value. The contact's suffix.
      Returns:
      a String
    • getGivenName

      @Nullable public String getGivenName()
      Gets the givenName property value. The contact's given name.
      Returns:
      a String
    • getHomeAddress

      @Nullable public PhysicalAddress getHomeAddress()
      Gets the homeAddress property value. The contact's home address.
      Returns:
      a PhysicalAddress
    • getHomePhones

      @Nullable public List<String> getHomePhones()
      Gets the homePhones property value. The contact's home phone numbers.
      Returns:
      a List<String>
    • getImAddresses

      @Nullable public List<String> getImAddresses()
      Gets the imAddresses property value. The contact's instant messaging (IM) addresses.
      Returns:
      a List<String>
    • getInitials

      @Nullable public String getInitials()
      Gets the initials property value. The contact's initials.
      Returns:
      a String
    • getJobTitle

      @Nullable public String getJobTitle()
      Gets the jobTitle property value. The contacts job title.
      Returns:
      a String
    • getManager

      @Nullable public String getManager()
      Gets the manager property value. The name of the contact's manager.
      Returns:
      a String
    • getMiddleName

      @Nullable public String getMiddleName()
      Gets the middleName property value. The contact's middle name.
      Returns:
      a String
    • getMobilePhone

      @Nullable public String getMobilePhone()
      Gets the mobilePhone property value. The contact's mobile phone number.
      Returns:
      a String
    • getMultiValueExtendedProperties

      @Nullable public List<MultiValueLegacyExtendedProperty> getMultiValueExtendedProperties()
      Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the contact. Read-only. Nullable.
      Returns:
      a List<MultiValueLegacyExtendedProperty>
    • getNickName

      @Nullable public String getNickName()
      Gets the nickName property value. The contact's nickname.
      Returns:
      a String
    • getOfficeLocation

      @Nullable public String getOfficeLocation()
      Gets the officeLocation property value. The location of the contact's office.
      Returns:
      a String
    • getOtherAddress

      @Nullable public PhysicalAddress getOtherAddress()
      Gets the otherAddress property value. Other addresses for the contact.
      Returns:
      a PhysicalAddress
    • getParentFolderId

      @Nullable public String getParentFolderId()
      Gets the parentFolderId property value. The ID of the contact's parent folder.
      Returns:
      a String
    • getPersonalNotes

      @Nullable public String getPersonalNotes()
      Gets the personalNotes property value. The user's notes about the contact.
      Returns:
      a String
    • getPhoto

      @Nullable public ProfilePhoto getPhoto()
      Gets the photo property value. Optional contact picture. You can get or set a photo for a contact.
      Returns:
      a ProfilePhoto
    • getProfession

      @Nullable public String getProfession()
      Gets the profession property value. The contact's profession.
      Returns:
      a String
    • getSingleValueExtendedProperties

      @Nullable public List<SingleValueLegacyExtendedProperty> getSingleValueExtendedProperties()
      Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the contact. Read-only. Nullable.
      Returns:
      a List<SingleValueLegacyExtendedProperty>
    • getSpouseName

      @Nullable public String getSpouseName()
      Gets the spouseName property value. The name of the contact's spouse/partner.
      Returns:
      a String
    • getSurname

      @Nullable public String getSurname()
      Gets the surname property value. The contact's surname.
      Returns:
      a String
    • getTitle

      @Nullable public String getTitle()
      Gets the title property value. The contact's title.
      Returns:
      a String
    • getYomiCompanyName

      @Nullable public String getYomiCompanyName()
      Gets the yomiCompanyName property value. The phonetic Japanese company name of the contact.
      Returns:
      a String
    • getYomiGivenName

      @Nullable public String getYomiGivenName()
      Gets the yomiGivenName property value. The phonetic Japanese given name (first name) of the contact.
      Returns:
      a String
    • getYomiSurname

      @Nullable public String getYomiSurname()
      Gets the yomiSurname property value. The phonetic Japanese surname (last name) of the contact.
      Returns:
      a String
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class OutlookItem
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAssistantName

      public void setAssistantName(@Nullable String value)
      Sets the assistantName property value. The name of the contact's assistant.
      Parameters:
      value - Value to set for the assistantName property.
    • setBirthday

      public void setBirthday(@Nullable OffsetDateTime value)
      Sets the birthday property value. The contact's birthday. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
      Parameters:
      value - Value to set for the birthday property.
    • setBusinessAddress

      public void setBusinessAddress(@Nullable PhysicalAddress value)
      Sets the businessAddress property value. The contact's business address.
      Parameters:
      value - Value to set for the businessAddress property.
    • setBusinessHomePage

      public void setBusinessHomePage(@Nullable String value)
      Sets the businessHomePage property value. The business home page of the contact.
      Parameters:
      value - Value to set for the businessHomePage property.
    • setBusinessPhones

      public void setBusinessPhones(@Nullable List<String> value)
      Sets the businessPhones property value. The contact's business phone numbers.
      Parameters:
      value - Value to set for the businessPhones property.
    • setChildren

      public void setChildren(@Nullable List<String> value)
      Sets the children property value. The names of the contact's children.
      Parameters:
      value - Value to set for the children property.
    • setCompanyName

      public void setCompanyName(@Nullable String value)
      Sets the companyName property value. The name of the contact's company.
      Parameters:
      value - Value to set for the companyName property.
    • setDepartment

      public void setDepartment(@Nullable String value)
      Sets the department property value. The contact's department.
      Parameters:
      value - Value to set for the department property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The contact's display name. You can specify the display name in a create or update operation. Note that later updates to other properties may cause an automatically generated value to overwrite the displayName value you have specified. To preserve a pre-existing value, always include it as displayName in an update operation.
      Parameters:
      value - Value to set for the displayName property.
    • setEmailAddresses

      public void setEmailAddresses(@Nullable List<EmailAddress> value)
      Sets the emailAddresses property value. The contact's email addresses.
      Parameters:
      value - Value to set for the emailAddresses property.
    • setExtensions

      public void setExtensions(@Nullable List<Extension> value)
      Sets the extensions property value. The collection of open extensions defined for the contact. Read-only. Nullable.
      Parameters:
      value - Value to set for the extensions property.
    • setFileAs

      public void setFileAs(@Nullable String value)
      Sets the fileAs property value. The name the contact is filed under.
      Parameters:
      value - Value to set for the fileAs property.
    • setGeneration

      public void setGeneration(@Nullable String value)
      Sets the generation property value. The contact's suffix.
      Parameters:
      value - Value to set for the generation property.
    • setGivenName

      public void setGivenName(@Nullable String value)
      Sets the givenName property value. The contact's given name.
      Parameters:
      value - Value to set for the givenName property.
    • setHomeAddress

      public void setHomeAddress(@Nullable PhysicalAddress value)
      Sets the homeAddress property value. The contact's home address.
      Parameters:
      value - Value to set for the homeAddress property.
    • setHomePhones

      public void setHomePhones(@Nullable List<String> value)
      Sets the homePhones property value. The contact's home phone numbers.
      Parameters:
      value - Value to set for the homePhones property.
    • setImAddresses

      public void setImAddresses(@Nullable List<String> value)
      Sets the imAddresses property value. The contact's instant messaging (IM) addresses.
      Parameters:
      value - Value to set for the imAddresses property.
    • setInitials

      public void setInitials(@Nullable String value)
      Sets the initials property value. The contact's initials.
      Parameters:
      value - Value to set for the initials property.
    • setJobTitle

      public void setJobTitle(@Nullable String value)
      Sets the jobTitle property value. The contacts job title.
      Parameters:
      value - Value to set for the jobTitle property.
    • setManager

      public void setManager(@Nullable String value)
      Sets the manager property value. The name of the contact's manager.
      Parameters:
      value - Value to set for the manager property.
    • setMiddleName

      public void setMiddleName(@Nullable String value)
      Sets the middleName property value. The contact's middle name.
      Parameters:
      value - Value to set for the middleName property.
    • setMobilePhone

      public void setMobilePhone(@Nullable String value)
      Sets the mobilePhone property value. The contact's mobile phone number.
      Parameters:
      value - Value to set for the mobilePhone property.
    • setMultiValueExtendedProperties

      public void setMultiValueExtendedProperties(@Nullable List<MultiValueLegacyExtendedProperty> value)
      Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the contact. Read-only. Nullable.
      Parameters:
      value - Value to set for the multiValueExtendedProperties property.
    • setNickName

      public void setNickName(@Nullable String value)
      Sets the nickName property value. The contact's nickname.
      Parameters:
      value - Value to set for the nickName property.
    • setOfficeLocation

      public void setOfficeLocation(@Nullable String value)
      Sets the officeLocation property value. The location of the contact's office.
      Parameters:
      value - Value to set for the officeLocation property.
    • setOtherAddress

      public void setOtherAddress(@Nullable PhysicalAddress value)
      Sets the otherAddress property value. Other addresses for the contact.
      Parameters:
      value - Value to set for the otherAddress property.
    • setParentFolderId

      public void setParentFolderId(@Nullable String value)
      Sets the parentFolderId property value. The ID of the contact's parent folder.
      Parameters:
      value - Value to set for the parentFolderId property.
    • setPersonalNotes

      public void setPersonalNotes(@Nullable String value)
      Sets the personalNotes property value. The user's notes about the contact.
      Parameters:
      value - Value to set for the personalNotes property.
    • setPhoto

      public void setPhoto(@Nullable ProfilePhoto value)
      Sets the photo property value. Optional contact picture. You can get or set a photo for a contact.
      Parameters:
      value - Value to set for the photo property.
    • setProfession

      public void setProfession(@Nullable String value)
      Sets the profession property value. The contact's profession.
      Parameters:
      value - Value to set for the profession property.
    • setSingleValueExtendedProperties

      public void setSingleValueExtendedProperties(@Nullable List<SingleValueLegacyExtendedProperty> value)
      Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the contact. Read-only. Nullable.
      Parameters:
      value - Value to set for the singleValueExtendedProperties property.
    • setSpouseName

      public void setSpouseName(@Nullable String value)
      Sets the spouseName property value. The name of the contact's spouse/partner.
      Parameters:
      value - Value to set for the spouseName property.
    • setSurname

      public void setSurname(@Nullable String value)
      Sets the surname property value. The contact's surname.
      Parameters:
      value - Value to set for the surname property.
    • setTitle

      public void setTitle(@Nullable String value)
      Sets the title property value. The contact's title.
      Parameters:
      value - Value to set for the title property.
    • setYomiCompanyName

      public void setYomiCompanyName(@Nullable String value)
      Sets the yomiCompanyName property value. The phonetic Japanese company name of the contact.
      Parameters:
      value - Value to set for the yomiCompanyName property.
    • setYomiGivenName

      public void setYomiGivenName(@Nullable String value)
      Sets the yomiGivenName property value. The phonetic Japanese given name (first name) of the contact.
      Parameters:
      value - Value to set for the yomiGivenName property.
    • setYomiSurname

      public void setYomiSurname(@Nullable String value)
      Sets the yomiSurname property value. The phonetic Japanese surname (last name) of the contact.
      Parameters:
      value - Value to set for the yomiSurname property.