Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Person
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the birthday property value.Gets the companyName property value.Gets the department property value.Gets the displayName property value.The deserialization information for the current modelGets the givenName property value.Gets the imAddress property value.Gets the isFavorite property value.Gets the jobTitle property value.Gets the officeLocation property value.Gets the personNotes property value.Gets the personType property value.Gets the phones property value.Gets the postalAddresses property value.Gets the profession property value.Gets the scoredEmailAddresses property value.Gets the surname property value.Gets the userPrincipalName property value.Gets the websites property value.Gets the yomiCompany property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setBirthday
(String value) Sets the birthday property value.void
setCompanyName
(String value) Sets the companyName property value.void
setDepartment
(String value) Sets the department property value.void
setDisplayName
(String value) Sets the displayName property value.void
setGivenName
(String value) Sets the givenName property value.void
setImAddress
(String value) Sets the imAddress property value.void
setIsFavorite
(Boolean value) Sets the isFavorite property value.void
setJobTitle
(String value) Sets the jobTitle property value.void
setOfficeLocation
(String value) Sets the officeLocation property value.void
setPersonNotes
(String value) Sets the personNotes property value.void
setPersonType
(PersonType value) Sets the personType property value.void
Sets the phones property value.void
setPostalAddresses
(List<Location> value) Sets the postalAddresses property value.void
setProfession
(String value) Sets the profession property value.void
Sets the scoredEmailAddresses property value.void
setSurname
(String value) Sets the surname property value.void
setUserPrincipalName
(String value) Sets the userPrincipalName property value.void
setWebsites
(List<Website> value) Sets the websites property value.void
setYomiCompany
(String value) Sets the yomiCompany property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Person
public Person()Instantiates a newPerson
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
Gets the birthday property value. The person's birthday.- Returns:
- a
String
-
getCompanyName
Gets the companyName property value. The name of the person's company.- Returns:
- a
String
-
getDepartment
Gets the department property value. The person's department.- Returns:
- a
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getGivenName
Gets the givenName property value. The person's given name.- Returns:
- a
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
Gets the isFavorite property value. True if the user has flagged this person as a favorite.- Returns:
- a
Boolean
-
getJobTitle
Gets the jobTitle property value. The person's job title.- Returns:
- a
String
-
getOfficeLocation
Gets the officeLocation property value. The location of the person's office.- Returns:
- a
String
-
getPersonNotes
Gets the personNotes property value. Free-form notes that the user has taken about this person.- Returns:
- a
String
-
getPersonType
Gets the personType property value. The type of person.- Returns:
- a
PersonType
-
getPhones
Gets the phones property value. The person's phone numbers. -
getPostalAddresses
Gets the postalAddresses property value. The person's addresses. -
getProfession
Gets the profession property value. The person's profession.- Returns:
- a
String
-
getScoredEmailAddresses
Gets the scoredEmailAddresses property value. The person's email addresses.- Returns:
- a
List<ScoredEmailAddress>
-
getSurname
Gets the surname property value. The person's surname.- Returns:
- a
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
Gets the websites property value. The person's websites. -
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 -
setBirthday
Sets the birthday property value. The person's birthday.- Parameters:
value
- Value to set for the birthday property.
-
setCompanyName
Sets the companyName property value. The name of the person's company.- Parameters:
value
- Value to set for the companyName property.
-
setDepartment
Sets the department property value. The person's department.- Parameters:
value
- Value to set for the department property.
-
setDisplayName
Sets the displayName property value. The person's display name.- Parameters:
value
- Value to set for the displayName property.
-
setGivenName
Sets the givenName property value. The person's given name.- Parameters:
value
- Value to set for the givenName property.
-
setImAddress
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
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
Sets the jobTitle property value. The person's job title.- Parameters:
value
- Value to set for the jobTitle property.
-
setOfficeLocation
Sets the officeLocation property value. The location of the person's office.- Parameters:
value
- Value to set for the officeLocation property.
-
setPersonNotes
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
Sets the personType property value. The type of person.- Parameters:
value
- Value to set for the personType property.
-
setPhones
Sets the phones property value. The person's phone numbers.- Parameters:
value
- Value to set for the phones property.
-
setPostalAddresses
Sets the postalAddresses property value. The person's addresses.- Parameters:
value
- Value to set for the postalAddresses property.
-
setProfession
Sets the profession property value. The person's profession.- Parameters:
value
- Value to set for the profession property.
-
setScoredEmailAddresses
Sets the scoredEmailAddresses property value. The person's email addresses.- Parameters:
value
- Value to set for the scoredEmailAddresses property.
-
setSurname
Sets the surname property value. The person's surname.- Parameters:
value
- Value to set for the surname property.
-
setUserPrincipalName
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
Sets the websites property value. The person's websites.- Parameters:
value
- Value to set for the websites property.
-
setYomiCompany
Sets the yomiCompany property value. The phonetic Japanese name of the person's company.- Parameters:
value
- Value to set for the yomiCompany property.
-