Class Person

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Person
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

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

    • Person

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

    • createFromDiscriminatorValue

      @Nonnull public static Person 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 Person
    • getBirthday

      @Nullable public String getBirthday()
      Gets the birthday property value. The person's birthday.
      Returns:
      a String
    • getCompanyName

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

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

      @Nullable public String getDisplayName()
      Gets the displayName property value. The person's display name.
      Returns:
      a String
    • 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 Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getGivenName

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

      @Nullable public String getImAddress()
      Gets the imAddress property value. The instant message voice over IP (VOIP) session initiation protocol (SIP) address for the user. Read-only.
      Returns:
      a String
    • getIsFavorite

      @Nullable public Boolean getIsFavorite()
      Gets the isFavorite property value. True if the user has flagged this person as a favorite.
      Returns:
      a Boolean
    • getJobTitle

      @Nullable public String getJobTitle()
      Gets the jobTitle property value. The person's job title.
      Returns:
      a String
    • getOfficeLocation

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

      @Nullable public String getPersonNotes()
      Gets the personNotes property value. Free-form notes that the user has taken about this person.
      Returns:
      a String
    • getPersonType

      @Nullable public PersonType getPersonType()
      Gets the personType property value. The type of person.
      Returns:
      a PersonType
    • getPhones

      @Nullable public List<Phone> getPhones()
      Gets the phones property value. The person's phone numbers.
      Returns:
      a List<Phone>
    • getPostalAddresses

      @Nullable public List<Location> getPostalAddresses()
      Gets the postalAddresses property value. The person's addresses.
      Returns:
      a List<Location>
    • getProfession

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

      @Nullable public List<ScoredEmailAddress> getScoredEmailAddresses()
      Gets the scoredEmailAddresses property value. The person's email addresses.
      Returns:
      a List<ScoredEmailAddress>
    • getSurname

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

      @Nullable public String getUserPrincipalName()
      Gets the userPrincipalName property value. The user principal name (UPN) of the person. The UPN is an Internet-style login name for the person based on the Internet standard RFC 822. By convention, this should map to the person's email name. The general format is alias@domain.
      Returns:
      a String
    • getWebsites

      @Nullable public List<Website> getWebsites()
      Gets the websites property value. The person's websites.
      Returns:
      a List<Website>
    • getYomiCompany

      @Nullable public String getYomiCompany()
      Gets the yomiCompany property value. The phonetic Japanese name of the person's company.
      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 Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setBirthday

      public void setBirthday(@Nullable String value)
      Sets the birthday property value. The person's birthday.
      Parameters:
      value - Value to set for the birthday property.
    • setCompanyName

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

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

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The person's display name.
      Parameters:
      value - Value to set for the displayName property.
    • setGivenName

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

      public void setImAddress(@Nullable String value)
      Sets the imAddress property value. The instant message voice over IP (VOIP) session initiation protocol (SIP) address for the user. Read-only.
      Parameters:
      value - Value to set for the imAddress property.
    • setIsFavorite

      public void setIsFavorite(@Nullable Boolean value)
      Sets the isFavorite property value. True if the user has flagged this person as a favorite.
      Parameters:
      value - Value to set for the isFavorite property.
    • setJobTitle

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

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

      public void setPersonNotes(@Nullable String value)
      Sets the personNotes property value. Free-form notes that the user has taken about this person.
      Parameters:
      value - Value to set for the personNotes property.
    • setPersonType

      public void setPersonType(@Nullable PersonType value)
      Sets the personType property value. The type of person.
      Parameters:
      value - Value to set for the personType property.
    • setPhones

      public void setPhones(@Nullable List<Phone> value)
      Sets the phones property value. The person's phone numbers.
      Parameters:
      value - Value to set for the phones property.
    • setPostalAddresses

      public void setPostalAddresses(@Nullable List<Location> value)
      Sets the postalAddresses property value. The person's addresses.
      Parameters:
      value - Value to set for the postalAddresses property.
    • setProfession

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

      public void setScoredEmailAddresses(@Nullable List<ScoredEmailAddress> value)
      Sets the scoredEmailAddresses property value. The person's email addresses.
      Parameters:
      value - Value to set for the scoredEmailAddresses property.
    • setSurname

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

      public void setUserPrincipalName(@Nullable String value)
      Sets the userPrincipalName property value. The user principal name (UPN) of the person. The UPN is an Internet-style login name for the person based on the Internet standard RFC 822. By convention, this should map to the person's email name. The general format is alias@domain.
      Parameters:
      value - Value to set for the userPrincipalName property.
    • setWebsites

      public void setWebsites(@Nullable List<Website> value)
      Sets the websites property value. The person's websites.
      Parameters:
      value - Value to set for the websites property.
    • setYomiCompany

      public void setYomiCompany(@Nullable String value)
      Sets the yomiCompany property value. The phonetic Japanese name of the person's company.
      Parameters:
      value - Value to set for the yomiCompany property.