你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphPerson Class

public final class MicrosoftGraphPerson
extends MicrosoftGraphEntity

person.

Constructor Summary

Constructor Description
MicrosoftGraphPerson()

Creates an instance of MicrosoftGraphPerson class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: person.

String birthday()

Get the birthday property: The person's birthday.

String companyName()

Get the companyName property: The name of the person's company.

String department()

Get the department property: The person's department.

String displayName()

Get the displayName property: The person's display name.

static MicrosoftGraphPerson fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPerson from the JsonReader.

String givenName()

Get the givenName property: The person's given name.

String imAddress()

Get the imAddress property: The instant message voice over IP (VOIP) session initiation protocol (SIP) address for the user.

Boolean isFavorite()

Get the isFavorite property: true if the user has flagged this person as a favorite.

String jobTitle()

Get the jobTitle property: The person's job title.

String officeLocation()

Get the officeLocation property: The location of the person's office.

String personNotes()

Get the personNotes property: Free-form notes that the user has taken about this person.

MicrosoftGraphPersonType personType()

Get the personType property: personType.

List<MicrosoftGraphPhone> phones()

Get the phones property: The person's phone numbers.

List<MicrosoftGraphLocation> postalAddresses()

Get the postalAddresses property: The person's addresses.

String profession()

Get the profession property: The person's profession.

List<MicrosoftGraphScoredEmailAddress> scoredEmailAddresses()

Get the scoredEmailAddresses property: The person's email addresses.

String surname()

Get the surname property: The person's surname.

JsonWriter toJson(JsonWriter jsonWriter)
String userPrincipalName()

Get the userPrincipalName property: The user principal name (UPN) of the person.

void validate()

Validates the instance.

List<MicrosoftGraphWebsite> websites()

Get the websites property: The person's websites.

MicrosoftGraphPerson withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: person.

MicrosoftGraphPerson withBirthday(String birthday)

Set the birthday property: The person's birthday.

MicrosoftGraphPerson withCompanyName(String companyName)

Set the companyName property: The name of the person's company.

MicrosoftGraphPerson withDepartment(String department)

Set the department property: The person's department.

MicrosoftGraphPerson withDisplayName(String displayName)

Set the displayName property: The person's display name.

MicrosoftGraphPerson withGivenName(String givenName)

Set the givenName property: The person's given name.

MicrosoftGraphPerson withId(String id)

Set the id property: Read-only.

MicrosoftGraphPerson withImAddress(String imAddress)

Set the imAddress property: The instant message voice over IP (VOIP) session initiation protocol (SIP) address for the user.

MicrosoftGraphPerson withIsFavorite(Boolean isFavorite)

Set the isFavorite property: true if the user has flagged this person as a favorite.

MicrosoftGraphPerson withJobTitle(String jobTitle)

Set the jobTitle property: The person's job title.

MicrosoftGraphPerson withOfficeLocation(String officeLocation)

Set the officeLocation property: The location of the person's office.

MicrosoftGraphPerson withPersonNotes(String personNotes)

Set the personNotes property: Free-form notes that the user has taken about this person.

MicrosoftGraphPerson withPersonType(MicrosoftGraphPersonType personType)

Set the personType property: personType.

MicrosoftGraphPerson withPhones(List<MicrosoftGraphPhone> phones)

Set the phones property: The person's phone numbers.

MicrosoftGraphPerson withPostalAddresses(List<MicrosoftGraphLocation> postalAddresses)

Set the postalAddresses property: The person's addresses.

MicrosoftGraphPerson withProfession(String profession)

Set the profession property: The person's profession.

MicrosoftGraphPerson withScoredEmailAddresses(List<MicrosoftGraphScoredEmailAddress> scoredEmailAddresses)

Set the scoredEmailAddresses property: The person's email addresses.

MicrosoftGraphPerson withSurname(String surname)

Set the surname property: The person's surname.

MicrosoftGraphPerson withUserPrincipalName(String userPrincipalName)

Set the userPrincipalName property: The user principal name (UPN) of the person.

MicrosoftGraphPerson withWebsites(List<MicrosoftGraphWebsite> websites)

Set the websites property: The person's websites.

MicrosoftGraphPerson withYomiCompany(String yomiCompany)

Set the yomiCompany property: The phonetic Japanese name of the person's company.

String yomiCompany()

Get the yomiCompany property: The phonetic Japanese name of the person's company.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPerson

public MicrosoftGraphPerson()

Creates an instance of MicrosoftGraphPerson class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: person.

Overrides:

MicrosoftGraphPerson.additionalProperties()

Returns:

the additionalProperties value.

birthday

public String birthday()

Get the birthday property: The person's birthday.

Returns:

the birthday value.

companyName

public String companyName()

Get the companyName property: The name of the person's company.

Returns:

the companyName value.

department

public String department()

Get the department property: The person's department.

Returns:

the department value.

displayName

public String displayName()

Get the displayName property: The person's display name.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphPerson fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPerson from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphPerson if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphPerson.

givenName

public String givenName()

Get the givenName property: The person's given name.

Returns:

the givenName value.

imAddress

public String imAddress()

Get the imAddress property: The instant message voice over IP (VOIP) session initiation protocol (SIP) address for the user. Read-only.

Returns:

the imAddress value.

isFavorite

public Boolean isFavorite()

Get the isFavorite property: true if the user has flagged this person as a favorite.

Returns:

the isFavorite value.

jobTitle

public String jobTitle()

Get the jobTitle property: The person's job title.

Returns:

the jobTitle value.

officeLocation

public String officeLocation()

Get the officeLocation property: The location of the person's office.

Returns:

the officeLocation value.

personNotes

public String personNotes()

Get the personNotes property: Free-form notes that the user has taken about this person.

Returns:

the personNotes value.

personType

public MicrosoftGraphPersonType personType()

Get the personType property: personType.

Returns:

the personType value.

phones

public List phones()

Get the phones property: The person's phone numbers.

Returns:

the phones value.

postalAddresses

public List postalAddresses()

Get the postalAddresses property: The person's addresses.

Returns:

the postalAddresses value.

profession

public String profession()

Get the profession property: The person's profession.

Returns:

the profession value.

scoredEmailAddresses

public List scoredEmailAddresses()

Get the scoredEmailAddresses property: The person's email addresses.

Returns:

the scoredEmailAddresses value.

surname

public String surname()

Get the surname property: The person's surname.

Returns:

the surname value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphPerson.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userPrincipalName

public String userPrincipalName()

Get the userPrincipalName property: 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:

the userPrincipalName value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphPerson.validate()

websites

public List websites()

Get the websites property: The person's websites.

Returns:

the websites value.

withAdditionalProperties

public MicrosoftGraphPerson withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: person.

Overrides:

MicrosoftGraphPerson.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPerson object itself.

withBirthday

public MicrosoftGraphPerson withBirthday(String birthday)

Set the birthday property: The person's birthday.

Parameters:

birthday - the birthday value to set.

Returns:

the MicrosoftGraphPerson object itself.

withCompanyName

public MicrosoftGraphPerson withCompanyName(String companyName)

Set the companyName property: The name of the person's company.

Parameters:

companyName - the companyName value to set.

Returns:

the MicrosoftGraphPerson object itself.

withDepartment

public MicrosoftGraphPerson withDepartment(String department)

Set the department property: The person's department.

Parameters:

department - the department value to set.

Returns:

the MicrosoftGraphPerson object itself.

withDisplayName

public MicrosoftGraphPerson withDisplayName(String displayName)

Set the displayName property: The person's display name.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphPerson object itself.

withGivenName

public MicrosoftGraphPerson withGivenName(String givenName)

Set the givenName property: The person's given name.

Parameters:

givenName - the givenName value to set.

Returns:

the MicrosoftGraphPerson object itself.

withId

public MicrosoftGraphPerson withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphPerson.withId(String id)

Parameters:

id

withImAddress

public MicrosoftGraphPerson withImAddress(String imAddress)

Set the imAddress property: The instant message voice over IP (VOIP) session initiation protocol (SIP) address for the user. Read-only.

Parameters:

imAddress - the imAddress value to set.

Returns:

the MicrosoftGraphPerson object itself.

withIsFavorite

public MicrosoftGraphPerson withIsFavorite(Boolean isFavorite)

Set the isFavorite property: true if the user has flagged this person as a favorite.

Parameters:

isFavorite - the isFavorite value to set.

Returns:

the MicrosoftGraphPerson object itself.

withJobTitle

public MicrosoftGraphPerson withJobTitle(String jobTitle)

Set the jobTitle property: The person's job title.

Parameters:

jobTitle - the jobTitle value to set.

Returns:

the MicrosoftGraphPerson object itself.

withOfficeLocation

public MicrosoftGraphPerson withOfficeLocation(String officeLocation)

Set the officeLocation property: The location of the person's office.

Parameters:

officeLocation - the officeLocation value to set.

Returns:

the MicrosoftGraphPerson object itself.

withPersonNotes

public MicrosoftGraphPerson withPersonNotes(String personNotes)

Set the personNotes property: Free-form notes that the user has taken about this person.

Parameters:

personNotes - the personNotes value to set.

Returns:

the MicrosoftGraphPerson object itself.

withPersonType

public MicrosoftGraphPerson withPersonType(MicrosoftGraphPersonType personType)

Set the personType property: personType.

Parameters:

personType - the personType value to set.

Returns:

the MicrosoftGraphPerson object itself.

withPhones

public MicrosoftGraphPerson withPhones(List phones)

Set the phones property: The person's phone numbers.

Parameters:

phones - the phones value to set.

Returns:

the MicrosoftGraphPerson object itself.

withPostalAddresses

public MicrosoftGraphPerson withPostalAddresses(List postalAddresses)

Set the postalAddresses property: The person's addresses.

Parameters:

postalAddresses - the postalAddresses value to set.

Returns:

the MicrosoftGraphPerson object itself.

withProfession

public MicrosoftGraphPerson withProfession(String profession)

Set the profession property: The person's profession.

Parameters:

profession - the profession value to set.

Returns:

the MicrosoftGraphPerson object itself.

withScoredEmailAddresses

public MicrosoftGraphPerson withScoredEmailAddresses(List scoredEmailAddresses)

Set the scoredEmailAddresses property: The person's email addresses.

Parameters:

scoredEmailAddresses - the scoredEmailAddresses value to set.

Returns:

the MicrosoftGraphPerson object itself.

withSurname

public MicrosoftGraphPerson withSurname(String surname)

Set the surname property: The person's surname.

Parameters:

surname - the surname value to set.

Returns:

the MicrosoftGraphPerson object itself.

withUserPrincipalName

public MicrosoftGraphPerson withUserPrincipalName(String userPrincipalName)

Set the userPrincipalName property: 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:

userPrincipalName - the userPrincipalName value to set.

Returns:

the MicrosoftGraphPerson object itself.

withWebsites

public MicrosoftGraphPerson withWebsites(List websites)

Set the websites property: The person's websites.

Parameters:

websites - the websites value to set.

Returns:

the MicrosoftGraphPerson object itself.

withYomiCompany

public MicrosoftGraphPerson withYomiCompany(String yomiCompany)

Set the yomiCompany property: The phonetic Japanese name of the person's company.

Parameters:

yomiCompany - the yomiCompany value to set.

Returns:

the MicrosoftGraphPerson object itself.

yomiCompany

public String yomiCompany()

Get the yomiCompany property: The phonetic Japanese name of the person's company.

Returns:

the yomiCompany value.

Applies to