Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class Person extends Entity implements Parsable {
/**
* Instantiates a new {@link Person} and sets the default values.
*/
public Person() {
super();
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link Person}
*/
@jakarta.annotation.Nonnull
public static Person createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Person();
}
/**
* Gets the birthday property value. The person's birthday.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getBirthday() {
return this.backingStore.get("birthday");
}
/**
* Gets the companyName property value. The name of the person's company.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCompanyName() {
return this.backingStore.get("companyName");
}
/**
* Gets the department property value. The person's department.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDepartment() {
return this.backingStore.get("department");
}
/**
* Gets the displayName property value. The person's display name.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("birthday", (n) -> { this.setBirthday(n.getStringValue()); });
deserializerMap.put("companyName", (n) -> { this.setCompanyName(n.getStringValue()); });
deserializerMap.put("department", (n) -> { this.setDepartment(n.getStringValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("givenName", (n) -> { this.setGivenName(n.getStringValue()); });
deserializerMap.put("imAddress", (n) -> { this.setImAddress(n.getStringValue()); });
deserializerMap.put("isFavorite", (n) -> { this.setIsFavorite(n.getBooleanValue()); });
deserializerMap.put("jobTitle", (n) -> { this.setJobTitle(n.getStringValue()); });
deserializerMap.put("officeLocation", (n) -> { this.setOfficeLocation(n.getStringValue()); });
deserializerMap.put("personNotes", (n) -> { this.setPersonNotes(n.getStringValue()); });
deserializerMap.put("personType", (n) -> { this.setPersonType(n.getObjectValue(PersonType::createFromDiscriminatorValue)); });
deserializerMap.put("phones", (n) -> { this.setPhones(n.getCollectionOfObjectValues(Phone::createFromDiscriminatorValue)); });
deserializerMap.put("postalAddresses", (n) -> { this.setPostalAddresses(n.getCollectionOfObjectValues(Location::createFromDiscriminatorValue)); });
deserializerMap.put("profession", (n) -> { this.setProfession(n.getStringValue()); });
deserializerMap.put("scoredEmailAddresses", (n) -> { this.setScoredEmailAddresses(n.getCollectionOfObjectValues(ScoredEmailAddress::createFromDiscriminatorValue)); });
deserializerMap.put("surname", (n) -> { this.setSurname(n.getStringValue()); });
deserializerMap.put("userPrincipalName", (n) -> { this.setUserPrincipalName(n.getStringValue()); });
deserializerMap.put("websites", (n) -> { this.setWebsites(n.getCollectionOfObjectValues(Website::createFromDiscriminatorValue)); });
deserializerMap.put("yomiCompany", (n) -> { this.setYomiCompany(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the givenName property value. The person's given name.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getGivenName() {
return this.backingStore.get("givenName");
}
/**
* Gets the imAddress property value. The instant message voice over IP (VOIP) session initiation protocol (SIP) address for the user. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getImAddress() {
return this.backingStore.get("imAddress");
}
/**
* Gets the isFavorite property value. True if the user has flagged this person as a favorite.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsFavorite() {
return this.backingStore.get("isFavorite");
}
/**
* Gets the jobTitle property value. The person's job title.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getJobTitle() {
return this.backingStore.get("jobTitle");
}
/**
* Gets the officeLocation property value. The location of the person's office.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOfficeLocation() {
return this.backingStore.get("officeLocation");
}
/**
* Gets the personNotes property value. Free-form notes that the user has taken about this person.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPersonNotes() {
return this.backingStore.get("personNotes");
}
/**
* Gets the personType property value. The type of person.
* @return a {@link PersonType}
*/
@jakarta.annotation.Nullable
public PersonType getPersonType() {
return this.backingStore.get("personType");
}
/**
* Gets the phones property value. The person's phone numbers.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getPhones() {
return this.backingStore.get("phones");
}
/**
* Gets the postalAddresses property value. The person's addresses.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getPostalAddresses() {
return this.backingStore.get("postalAddresses");
}
/**
* Gets the profession property value. The person's profession.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getProfession() {
return this.backingStore.get("profession");
}
/**
* Gets the scoredEmailAddresses property value. The person's email addresses.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getScoredEmailAddresses() {
return this.backingStore.get("scoredEmailAddresses");
}
/**
* Gets the surname property value. The person's surname.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSurname() {
return this.backingStore.get("surname");
}
/**
* 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.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getUserPrincipalName() {
return this.backingStore.get("userPrincipalName");
}
/**
* Gets the websites property value. The person's websites.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getWebsites() {
return this.backingStore.get("websites");
}
/**
* Gets the yomiCompany property value. The phonetic Japanese name of the person's company.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getYomiCompany() {
return this.backingStore.get("yomiCompany");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeStringValue("birthday", this.getBirthday());
writer.writeStringValue("companyName", this.getCompanyName());
writer.writeStringValue("department", this.getDepartment());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeStringValue("givenName", this.getGivenName());
writer.writeStringValue("imAddress", this.getImAddress());
writer.writeBooleanValue("isFavorite", this.getIsFavorite());
writer.writeStringValue("jobTitle", this.getJobTitle());
writer.writeStringValue("officeLocation", this.getOfficeLocation());
writer.writeStringValue("personNotes", this.getPersonNotes());
writer.writeObjectValue("personType", this.getPersonType());
writer.writeCollectionOfObjectValues("phones", this.getPhones());
writer.writeCollectionOfObjectValues("postalAddresses", this.getPostalAddresses());
writer.writeStringValue("profession", this.getProfession());
writer.writeCollectionOfObjectValues("scoredEmailAddresses", this.getScoredEmailAddresses());
writer.writeStringValue("surname", this.getSurname());
writer.writeStringValue("userPrincipalName", this.getUserPrincipalName());
writer.writeCollectionOfObjectValues("websites", this.getWebsites());
writer.writeStringValue("yomiCompany", this.getYomiCompany());
}
/**
* Sets the birthday property value. The person's birthday.
* @param value Value to set for the birthday property.
*/
public void setBirthday(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("birthday", value);
}
/**
* Sets the companyName property value. The name of the person's company.
* @param value Value to set for the companyName property.
*/
public void setCompanyName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("companyName", value);
}
/**
* Sets the department property value. The person's department.
* @param value Value to set for the department property.
*/
public void setDepartment(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("department", value);
}
/**
* Sets the displayName property value. The person's display name.
* @param value Value to set for the displayName property.
*/
public void setDisplayName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("displayName", value);
}
/**
* Sets the givenName property value. The person's given name.
* @param value Value to set for the givenName property.
*/
public void setGivenName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("givenName", value);
}
/**
* Sets the imAddress property value. The instant message voice over IP (VOIP) session initiation protocol (SIP) address for the user. Read-only.
* @param value Value to set for the imAddress property.
*/
public void setImAddress(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("imAddress", value);
}
/**
* Sets the isFavorite property value. True if the user has flagged this person as a favorite.
* @param value Value to set for the isFavorite property.
*/
public void setIsFavorite(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isFavorite", value);
}
/**
* Sets the jobTitle property value. The person's job title.
* @param value Value to set for the jobTitle property.
*/
public void setJobTitle(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("jobTitle", value);
}
/**
* Sets the officeLocation property value. The location of the person's office.
* @param value Value to set for the officeLocation property.
*/
public void setOfficeLocation(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("officeLocation", value);
}
/**
* Sets the personNotes property value. Free-form notes that the user has taken about this person.
* @param value Value to set for the personNotes property.
*/
public void setPersonNotes(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("personNotes", value);
}
/**
* Sets the personType property value. The type of person.
* @param value Value to set for the personType property.
*/
public void setPersonType(@jakarta.annotation.Nullable final PersonType value) {
this.backingStore.set("personType", value);
}
/**
* Sets the phones property value. The person's phone numbers.
* @param value Value to set for the phones property.
*/
public void setPhones(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("phones", value);
}
/**
* Sets the postalAddresses property value. The person's addresses.
* @param value Value to set for the postalAddresses property.
*/
public void setPostalAddresses(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("postalAddresses", value);
}
/**
* Sets the profession property value. The person's profession.
* @param value Value to set for the profession property.
*/
public void setProfession(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("profession", value);
}
/**
* Sets the scoredEmailAddresses property value. The person's email addresses.
* @param value Value to set for the scoredEmailAddresses property.
*/
public void setScoredEmailAddresses(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("scoredEmailAddresses", value);
}
/**
* Sets the surname property value. The person's surname.
* @param value Value to set for the surname property.
*/
public void setSurname(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("surname", 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.
* @param value Value to set for the userPrincipalName property.
*/
public void setUserPrincipalName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("userPrincipalName", value);
}
/**
* Sets the websites property value. The person's websites.
* @param value Value to set for the websites property.
*/
public void setWebsites(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("websites", value);
}
/**
* Sets the yomiCompany property value. The phonetic Japanese name of the person's company.
* @param value Value to set for the yomiCompany property.
*/
public void setYomiCompany(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("yomiCompany", value);
}
}