Class MicrosoftGraphContact


public final class MicrosoftGraphContact extends MicrosoftGraphOutlookItem
contact.
  • Constructor Details

    • MicrosoftGraphContact

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

    • assistantName

      public String assistantName()
      Get the assistantName property: The name of the contact's assistant.
      Returns:
      the assistantName value.
    • withAssistantName

      public MicrosoftGraphContact withAssistantName(String assistantName)
      Set the assistantName property: The name of the contact's assistant.
      Parameters:
      assistantName - the assistantName value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • birthday

      public OffsetDateTime birthday()
      Get the birthday property: 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 would look like this: '2014-01-01T00:00:00Z'.
      Returns:
      the birthday value.
    • withBirthday

      public MicrosoftGraphContact withBirthday(OffsetDateTime birthday)
      Set the birthday property: 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 would look like this: '2014-01-01T00:00:00Z'.
      Parameters:
      birthday - the birthday value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • businessAddress

      public MicrosoftGraphPhysicalAddress businessAddress()
      Get the businessAddress property: physicalAddress.
      Returns:
      the businessAddress value.
    • withBusinessAddress

      public MicrosoftGraphContact withBusinessAddress(MicrosoftGraphPhysicalAddress businessAddress)
      Set the businessAddress property: physicalAddress.
      Parameters:
      businessAddress - the businessAddress value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • businessHomePage

      public String businessHomePage()
      Get the businessHomePage property: The business home page of the contact.
      Returns:
      the businessHomePage value.
    • withBusinessHomePage

      public MicrosoftGraphContact withBusinessHomePage(String businessHomePage)
      Set the businessHomePage property: The business home page of the contact.
      Parameters:
      businessHomePage - the businessHomePage value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • businessPhones

      public List<String> businessPhones()
      Get the businessPhones property: The contact's business phone numbers.
      Returns:
      the businessPhones value.
    • withBusinessPhones

      public MicrosoftGraphContact withBusinessPhones(List<String> businessPhones)
      Set the businessPhones property: The contact's business phone numbers.
      Parameters:
      businessPhones - the businessPhones value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • children

      public List<String> children()
      Get the children property: The names of the contact's children.
      Returns:
      the children value.
    • withChildren

      public MicrosoftGraphContact withChildren(List<String> children)
      Set the children property: The names of the contact's children.
      Parameters:
      children - the children value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • companyName

      public String companyName()
      Get the companyName property: The name of the contact's company.
      Returns:
      the companyName value.
    • withCompanyName

      public MicrosoftGraphContact withCompanyName(String companyName)
      Set the companyName property: The name of the contact's company.
      Parameters:
      companyName - the companyName value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • department

      public String department()
      Get the department property: The contact's department.
      Returns:
      the department value.
    • withDepartment

      public MicrosoftGraphContact withDepartment(String department)
      Set the department property: The contact's department.
      Parameters:
      department - the department value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • displayName

      public String displayName()
      Get the displayName property: 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:
      the displayName value.
    • withDisplayName

      public MicrosoftGraphContact withDisplayName(String displayName)
      Set the displayName property: 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:
      displayName - the displayName value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • emailAddresses

      public List<MicrosoftGraphEmailAddress> emailAddresses()
      Get the emailAddresses property: The contact's email addresses.
      Returns:
      the emailAddresses value.
    • withEmailAddresses

      public MicrosoftGraphContact withEmailAddresses(List<MicrosoftGraphEmailAddress> emailAddresses)
      Set the emailAddresses property: The contact's email addresses.
      Parameters:
      emailAddresses - the emailAddresses value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • fileAs

      public String fileAs()
      Get the fileAs property: The name the contact is filed under.
      Returns:
      the fileAs value.
    • withFileAs

      public MicrosoftGraphContact withFileAs(String fileAs)
      Set the fileAs property: The name the contact is filed under.
      Parameters:
      fileAs - the fileAs value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • generation

      public String generation()
      Get the generation property: The contact's generation.
      Returns:
      the generation value.
    • withGeneration

      public MicrosoftGraphContact withGeneration(String generation)
      Set the generation property: The contact's generation.
      Parameters:
      generation - the generation value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • givenName

      public String givenName()
      Get the givenName property: The contact's given name.
      Returns:
      the givenName value.
    • withGivenName

      public MicrosoftGraphContact withGivenName(String givenName)
      Set the givenName property: The contact's given name.
      Parameters:
      givenName - the givenName value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • homeAddress

      public MicrosoftGraphPhysicalAddress homeAddress()
      Get the homeAddress property: physicalAddress.
      Returns:
      the homeAddress value.
    • withHomeAddress

      public MicrosoftGraphContact withHomeAddress(MicrosoftGraphPhysicalAddress homeAddress)
      Set the homeAddress property: physicalAddress.
      Parameters:
      homeAddress - the homeAddress value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • homePhones

      public List<String> homePhones()
      Get the homePhones property: The contact's home phone numbers.
      Returns:
      the homePhones value.
    • withHomePhones

      public MicrosoftGraphContact withHomePhones(List<String> homePhones)
      Set the homePhones property: The contact's home phone numbers.
      Parameters:
      homePhones - the homePhones value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • imAddresses

      public List<String> imAddresses()
      Get the imAddresses property: The contact's instant messaging (IM) addresses.
      Returns:
      the imAddresses value.
    • withImAddresses

      public MicrosoftGraphContact withImAddresses(List<String> imAddresses)
      Set the imAddresses property: The contact's instant messaging (IM) addresses.
      Parameters:
      imAddresses - the imAddresses value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • initials

      public String initials()
      Get the initials property: The contact's initials.
      Returns:
      the initials value.
    • withInitials

      public MicrosoftGraphContact withInitials(String initials)
      Set the initials property: The contact's initials.
      Parameters:
      initials - the initials value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • jobTitle

      public String jobTitle()
      Get the jobTitle property: The contact’s job title.
      Returns:
      the jobTitle value.
    • withJobTitle

      public MicrosoftGraphContact withJobTitle(String jobTitle)
      Set the jobTitle property: The contact’s job title.
      Parameters:
      jobTitle - the jobTitle value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • manager

      public String manager()
      Get the manager property: The name of the contact's manager.
      Returns:
      the manager value.
    • withManager

      public MicrosoftGraphContact withManager(String manager)
      Set the manager property: The name of the contact's manager.
      Parameters:
      manager - the manager value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • middleName

      public String middleName()
      Get the middleName property: The contact's middle name.
      Returns:
      the middleName value.
    • withMiddleName

      public MicrosoftGraphContact withMiddleName(String middleName)
      Set the middleName property: The contact's middle name.
      Parameters:
      middleName - the middleName value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • mobilePhone

      public String mobilePhone()
      Get the mobilePhone property: The contact's mobile phone number.
      Returns:
      the mobilePhone value.
    • withMobilePhone

      public MicrosoftGraphContact withMobilePhone(String mobilePhone)
      Set the mobilePhone property: The contact's mobile phone number.
      Parameters:
      mobilePhone - the mobilePhone value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • nickName

      public String nickName()
      Get the nickName property: The contact's nickname.
      Returns:
      the nickName value.
    • withNickName

      public MicrosoftGraphContact withNickName(String nickName)
      Set the nickName property: The contact's nickname.
      Parameters:
      nickName - the nickName value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • officeLocation

      public String officeLocation()
      Get the officeLocation property: The location of the contact's office.
      Returns:
      the officeLocation value.
    • withOfficeLocation

      public MicrosoftGraphContact withOfficeLocation(String officeLocation)
      Set the officeLocation property: The location of the contact's office.
      Parameters:
      officeLocation - the officeLocation value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • otherAddress

      public MicrosoftGraphPhysicalAddress otherAddress()
      Get the otherAddress property: physicalAddress.
      Returns:
      the otherAddress value.
    • withOtherAddress

      public MicrosoftGraphContact withOtherAddress(MicrosoftGraphPhysicalAddress otherAddress)
      Set the otherAddress property: physicalAddress.
      Parameters:
      otherAddress - the otherAddress value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • parentFolderId

      public String parentFolderId()
      Get the parentFolderId property: The ID of the contact's parent folder.
      Returns:
      the parentFolderId value.
    • withParentFolderId

      public MicrosoftGraphContact withParentFolderId(String parentFolderId)
      Set the parentFolderId property: The ID of the contact's parent folder.
      Parameters:
      parentFolderId - the parentFolderId value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • personalNotes

      public String personalNotes()
      Get the personalNotes property: The user's notes about the contact.
      Returns:
      the personalNotes value.
    • withPersonalNotes

      public MicrosoftGraphContact withPersonalNotes(String personalNotes)
      Set the personalNotes property: The user's notes about the contact.
      Parameters:
      personalNotes - the personalNotes value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • profession

      public String profession()
      Get the profession property: The contact's profession.
      Returns:
      the profession value.
    • withProfession

      public MicrosoftGraphContact withProfession(String profession)
      Set the profession property: The contact's profession.
      Parameters:
      profession - the profession value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • spouseName

      public String spouseName()
      Get the spouseName property: The name of the contact's spouse/partner.
      Returns:
      the spouseName value.
    • withSpouseName

      public MicrosoftGraphContact withSpouseName(String spouseName)
      Set the spouseName property: The name of the contact's spouse/partner.
      Parameters:
      spouseName - the spouseName value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • surname

      public String surname()
      Get the surname property: The contact's surname.
      Returns:
      the surname value.
    • withSurname

      public MicrosoftGraphContact withSurname(String surname)
      Set the surname property: The contact's surname.
      Parameters:
      surname - the surname value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • title

      public String title()
      Get the title property: The contact's title.
      Returns:
      the title value.
    • withTitle

      public MicrosoftGraphContact withTitle(String title)
      Set the title property: The contact's title.
      Parameters:
      title - the title value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • yomiCompanyName

      public String yomiCompanyName()
      Get the yomiCompanyName property: The phonetic Japanese company name of the contact.
      Returns:
      the yomiCompanyName value.
    • withYomiCompanyName

      public MicrosoftGraphContact withYomiCompanyName(String yomiCompanyName)
      Set the yomiCompanyName property: The phonetic Japanese company name of the contact.
      Parameters:
      yomiCompanyName - the yomiCompanyName value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • yomiGivenName

      public String yomiGivenName()
      Get the yomiGivenName property: The phonetic Japanese given name (first name) of the contact.
      Returns:
      the yomiGivenName value.
    • withYomiGivenName

      public MicrosoftGraphContact withYomiGivenName(String yomiGivenName)
      Set the yomiGivenName property: The phonetic Japanese given name (first name) of the contact.
      Parameters:
      yomiGivenName - the yomiGivenName value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • yomiSurname

      public String yomiSurname()
      Get the yomiSurname property: The phonetic Japanese surname (last name) of the contact.
      Returns:
      the yomiSurname value.
    • withYomiSurname

      public MicrosoftGraphContact withYomiSurname(String yomiSurname)
      Set the yomiSurname property: The phonetic Japanese surname (last name) of the contact.
      Parameters:
      yomiSurname - the yomiSurname value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • extensions

      public List<MicrosoftGraphExtension> extensions()
      Get the extensions property: The collection of open extensions defined for the contact. Read-only. Nullable.
      Returns:
      the extensions value.
    • withExtensions

      public MicrosoftGraphContact withExtensions(List<MicrosoftGraphExtension> extensions)
      Set the extensions property: The collection of open extensions defined for the contact. Read-only. Nullable.
      Parameters:
      extensions - the extensions value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • multiValueExtendedProperties

      public List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties()
      Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the contact. Read-only. Nullable.
      Returns:
      the multiValueExtendedProperties value.
    • withMultiValueExtendedProperties

      public MicrosoftGraphContact withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties)
      Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the contact. Read-only. Nullable.
      Parameters:
      multiValueExtendedProperties - the multiValueExtendedProperties value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • photo

      Get the photo property: profilePhoto.
      Returns:
      the photo value.
    • withPhoto

      Set the photo property: profilePhoto.
      Parameters:
      photo - the photo value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • singleValueExtendedProperties

      public List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties()
      Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the contact. Read-only. Nullable.
      Returns:
      the singleValueExtendedProperties value.
    • withSingleValueExtendedProperties

      public MicrosoftGraphContact withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties)
      Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the contact. Read-only. Nullable.
      Parameters:
      singleValueExtendedProperties - the singleValueExtendedProperties value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: contact.
      Overrides:
      additionalProperties in class MicrosoftGraphOutlookItem
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphContact withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: contact.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphOutlookItem
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphContact object itself.
    • withCategories

      public MicrosoftGraphContact withCategories(List<String> categories)
      Set the categories property: The categories associated with the item.
      Overrides:
      withCategories in class MicrosoftGraphOutlookItem
      Parameters:
      categories - the categories value to set.
      Returns:
      the MicrosoftGraphOutlookItem object itself.
    • withChangeKey

      public MicrosoftGraphContact withChangeKey(String changeKey)
      Set the changeKey property: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.
      Overrides:
      withChangeKey in class MicrosoftGraphOutlookItem
      Parameters:
      changeKey - the changeKey value to set.
      Returns:
      the MicrosoftGraphOutlookItem object itself.
    • withCreatedDateTime

      public MicrosoftGraphContact withCreatedDateTime(OffsetDateTime createdDateTime)
      Set the createdDateTime property: 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 would look like this: '2014-01-01T00:00:00Z'.
      Overrides:
      withCreatedDateTime in class MicrosoftGraphOutlookItem
      Parameters:
      createdDateTime - the createdDateTime value to set.
      Returns:
      the MicrosoftGraphOutlookItem object itself.
    • withLastModifiedDateTime

      public MicrosoftGraphContact withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
      Set the lastModifiedDateTime property: 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 would look like this: '2014-01-01T00:00:00Z'.
      Overrides:
      withLastModifiedDateTime in class MicrosoftGraphOutlookItem
      Parameters:
      lastModifiedDateTime - the lastModifiedDateTime value to set.
      Returns:
      the MicrosoftGraphOutlookItem object itself.
    • withId

      public MicrosoftGraphContact withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphOutlookItem
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphOutlookItem
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.