Package com.microsoft.graph.models
Class Contact
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.OutlookItem
com.microsoft.graph.models.Contact
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Contact
extends OutlookItem
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 ContactcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the assistantName property value.Gets the birthday property value.Gets the businessAddress property value.Gets the businessHomePage property value.Gets the businessPhones property value.Gets the children property value.Gets the companyName property value.Gets the department property value.Gets the displayName property value.Gets the emailAddresses property value.Gets the extensions property value.The deserialization information for the current modelGets the fileAs property value.Gets the generation property value.Gets the givenName property value.Gets the homeAddress property value.Gets the homePhones property value.Gets the imAddresses property value.Gets the initials property value.Gets the jobTitle property value.Gets the manager property value.Gets the middleName property value.Gets the mobilePhone property value.Gets the multiValueExtendedProperties property value.Gets the nickName property value.Gets the officeLocation property value.Gets the otherAddress property value.Gets the parentFolderId property value.Gets the personalNotes property value.getPhoto()Gets the photo property value.Gets the profession property value.Gets the singleValueExtendedProperties property value.Gets the spouseName property value.Gets the surname property value.getTitle()Gets the title property value.Gets the yomiCompanyName property value.Gets the yomiGivenName property value.Gets the yomiSurname property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAssistantName(String value) Sets the assistantName property value.voidsetBirthday(OffsetDateTime value) Sets the birthday property value.voidSets the businessAddress property value.voidsetBusinessHomePage(String value) Sets the businessHomePage property value.voidsetBusinessPhones(List<String> value) Sets the businessPhones property value.voidsetChildren(List<String> value) Sets the children property value.voidsetCompanyName(String value) Sets the companyName property value.voidsetDepartment(String value) Sets the department property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetEmailAddresses(List<EmailAddress> value) Sets the emailAddresses property value.voidsetExtensions(List<Extension> value) Sets the extensions property value.voidSets the fileAs property value.voidsetGeneration(String value) Sets the generation property value.voidsetGivenName(String value) Sets the givenName property value.voidsetHomeAddress(PhysicalAddress value) Sets the homeAddress property value.voidsetHomePhones(List<String> value) Sets the homePhones property value.voidsetImAddresses(List<String> value) Sets the imAddresses property value.voidsetInitials(String value) Sets the initials property value.voidsetJobTitle(String value) Sets the jobTitle property value.voidsetManager(String value) Sets the manager property value.voidsetMiddleName(String value) Sets the middleName property value.voidsetMobilePhone(String value) Sets the mobilePhone property value.voidSets the multiValueExtendedProperties property value.voidsetNickName(String value) Sets the nickName property value.voidsetOfficeLocation(String value) Sets the officeLocation property value.voidsetOtherAddress(PhysicalAddress value) Sets the otherAddress property value.voidsetParentFolderId(String value) Sets the parentFolderId property value.voidsetPersonalNotes(String value) Sets the personalNotes property value.voidsetPhoto(ProfilePhoto value) Sets the photo property value.voidsetProfession(String value) Sets the profession property value.voidSets the singleValueExtendedProperties property value.voidsetSpouseName(String value) Sets the spouseName property value.voidsetSurname(String value) Sets the surname property value.voidSets the title property value.voidsetYomiCompanyName(String value) Sets the yomiCompanyName property value.voidsetYomiGivenName(String value) Sets the yomiGivenName property value.voidsetYomiSurname(String value) Sets the yomiSurname property value.Methods inherited from class com.microsoft.graph.models.OutlookItem
getCategories, getChangeKey, getCreatedDateTime, getLastModifiedDateTime, setCategories, setChangeKey, setCreatedDateTime, setLastModifiedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Contact
public Contact()Instantiates a newContactand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Contact 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
Contact
-
getAssistantName
Gets the assistantName property value. The name of the contact's assistant.- Returns:
- a
String
-
getBirthday
Gets the birthday property value. 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 is 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getBusinessAddress
Gets the businessAddress property value. The contact's business address.- Returns:
- a
PhysicalAddress
-
getBusinessHomePage
Gets the businessHomePage property value. The business home page of the contact.- Returns:
- a
String
-
getBusinessPhones
Gets the businessPhones property value. The contact's business phone numbers. -
getChildren
Gets the children property value. The names of the contact's children. -
getCompanyName
Gets the companyName property value. The name of the contact's company.- Returns:
- a
String
-
getDepartment
Gets the department property value. The contact's department.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. 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:
- a
String
-
getEmailAddresses
Gets the emailAddresses property value. The contact's email addresses.- Returns:
- a
List<EmailAddress>
-
getExtensions
Gets the extensions property value. The collection of open extensions defined for the contact. Read-only. Nullable. -
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classOutlookItem- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFileAs
Gets the fileAs property value. The name the contact is filed under.- Returns:
- a
String
-
getGeneration
Gets the generation property value. The contact's suffix.- Returns:
- a
String
-
getGivenName
Gets the givenName property value. The contact's given name.- Returns:
- a
String
-
getHomeAddress
Gets the homeAddress property value. The contact's home address.- Returns:
- a
PhysicalAddress
-
getHomePhones
Gets the homePhones property value. The contact's home phone numbers. -
getImAddresses
Gets the imAddresses property value. The contact's instant messaging (IM) addresses. -
getInitials
Gets the initials property value. The contact's initials.- Returns:
- a
String
-
getJobTitle
Gets the jobTitle property value. The contacts job title.- Returns:
- a
String
-
getManager
Gets the manager property value. The name of the contact's manager.- Returns:
- a
String
-
getMiddleName
Gets the middleName property value. The contact's middle name.- Returns:
- a
String
-
getMobilePhone
Gets the mobilePhone property value. The contact's mobile phone number.- Returns:
- a
String
-
getMultiValueExtendedProperties
Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the contact. Read-only. Nullable.- Returns:
- a
List<MultiValueLegacyExtendedProperty>
-
getNickName
Gets the nickName property value. The contact's nickname.- Returns:
- a
String
-
getOfficeLocation
Gets the officeLocation property value. The location of the contact's office.- Returns:
- a
String
-
getOtherAddress
Gets the otherAddress property value. Other addresses for the contact.- Returns:
- a
PhysicalAddress
-
getParentFolderId
Gets the parentFolderId property value. The ID of the contact's parent folder.- Returns:
- a
String
-
getPersonalNotes
Gets the personalNotes property value. The user's notes about the contact.- Returns:
- a
String
-
getPhoto
Gets the photo property value. Optional contact picture. You can get or set a photo for a contact.- Returns:
- a
ProfilePhoto
-
getProfession
Gets the profession property value. The contact's profession.- Returns:
- a
String
-
getSingleValueExtendedProperties
Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the contact. Read-only. Nullable.- Returns:
- a
List<SingleValueLegacyExtendedProperty>
-
getSpouseName
Gets the spouseName property value. The name of the contact's spouse/partner.- Returns:
- a
String
-
getSurname
Gets the surname property value. The contact's surname.- Returns:
- a
String
-
getTitle
Gets the title property value. The contact's title.- Returns:
- a
String
-
getYomiCompanyName
Gets the yomiCompanyName property value. The phonetic Japanese company name of the contact.- Returns:
- a
String
-
getYomiGivenName
Gets the yomiGivenName property value. The phonetic Japanese given name (first name) of the contact.- Returns:
- a
String
-
getYomiSurname
Gets the yomiSurname property value. The phonetic Japanese surname (last name) of the contact.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classOutlookItem- Parameters:
writer- Serialization writer to use to serialize this model
-
setAssistantName
Sets the assistantName property value. The name of the contact's assistant.- Parameters:
value- Value to set for the assistantName property.
-
setBirthday
Sets the birthday property value. 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 is 2014-01-01T00:00:00Z- Parameters:
value- Value to set for the birthday property.
-
setBusinessAddress
Sets the businessAddress property value. The contact's business address.- Parameters:
value- Value to set for the businessAddress property.
-
setBusinessHomePage
Sets the businessHomePage property value. The business home page of the contact.- Parameters:
value- Value to set for the businessHomePage property.
-
setBusinessPhones
Sets the businessPhones property value. The contact's business phone numbers.- Parameters:
value- Value to set for the businessPhones property.
-
setChildren
Sets the children property value. The names of the contact's children.- Parameters:
value- Value to set for the children property.
-
setCompanyName
Sets the companyName property value. The name of the contact's company.- Parameters:
value- Value to set for the companyName property.
-
setDepartment
Sets the department property value. The contact's department.- Parameters:
value- Value to set for the department property.
-
setDisplayName
Sets the displayName property value. 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:
value- Value to set for the displayName property.
-
setEmailAddresses
Sets the emailAddresses property value. The contact's email addresses.- Parameters:
value- Value to set for the emailAddresses property.
-
setExtensions
Sets the extensions property value. The collection of open extensions defined for the contact. Read-only. Nullable.- Parameters:
value- Value to set for the extensions property.
-
setFileAs
Sets the fileAs property value. The name the contact is filed under.- Parameters:
value- Value to set for the fileAs property.
-
setGeneration
Sets the generation property value. The contact's suffix.- Parameters:
value- Value to set for the generation property.
-
setGivenName
Sets the givenName property value. The contact's given name.- Parameters:
value- Value to set for the givenName property.
-
setHomeAddress
Sets the homeAddress property value. The contact's home address.- Parameters:
value- Value to set for the homeAddress property.
-
setHomePhones
Sets the homePhones property value. The contact's home phone numbers.- Parameters:
value- Value to set for the homePhones property.
-
setImAddresses
Sets the imAddresses property value. The contact's instant messaging (IM) addresses.- Parameters:
value- Value to set for the imAddresses property.
-
setInitials
Sets the initials property value. The contact's initials.- Parameters:
value- Value to set for the initials property.
-
setJobTitle
Sets the jobTitle property value. The contacts job title.- Parameters:
value- Value to set for the jobTitle property.
-
setManager
Sets the manager property value. The name of the contact's manager.- Parameters:
value- Value to set for the manager property.
-
setMiddleName
Sets the middleName property value. The contact's middle name.- Parameters:
value- Value to set for the middleName property.
-
setMobilePhone
Sets the mobilePhone property value. The contact's mobile phone number.- Parameters:
value- Value to set for the mobilePhone property.
-
setMultiValueExtendedProperties
Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the contact. Read-only. Nullable.- Parameters:
value- Value to set for the multiValueExtendedProperties property.
-
setNickName
Sets the nickName property value. The contact's nickname.- Parameters:
value- Value to set for the nickName property.
-
setOfficeLocation
Sets the officeLocation property value. The location of the contact's office.- Parameters:
value- Value to set for the officeLocation property.
-
setOtherAddress
Sets the otherAddress property value. Other addresses for the contact.- Parameters:
value- Value to set for the otherAddress property.
-
setParentFolderId
Sets the parentFolderId property value. The ID of the contact's parent folder.- Parameters:
value- Value to set for the parentFolderId property.
-
setPersonalNotes
Sets the personalNotes property value. The user's notes about the contact.- Parameters:
value- Value to set for the personalNotes property.
-
setPhoto
Sets the photo property value. Optional contact picture. You can get or set a photo for a contact.- Parameters:
value- Value to set for the photo property.
-
setProfession
Sets the profession property value. The contact's profession.- Parameters:
value- Value to set for the profession property.
-
setSingleValueExtendedProperties
public void setSingleValueExtendedProperties(@Nullable List<SingleValueLegacyExtendedProperty> value) Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the contact. Read-only. Nullable.- Parameters:
value- Value to set for the singleValueExtendedProperties property.
-
setSpouseName
Sets the spouseName property value. The name of the contact's spouse/partner.- Parameters:
value- Value to set for the spouseName property.
-
setSurname
Sets the surname property value. The contact's surname.- Parameters:
value- Value to set for the surname property.
-
setTitle
Sets the title property value. The contact's title.- Parameters:
value- Value to set for the title property.
-
setYomiCompanyName
Sets the yomiCompanyName property value. The phonetic Japanese company name of the contact.- Parameters:
value- Value to set for the yomiCompanyName property.
-
setYomiGivenName
Sets the yomiGivenName property value. The phonetic Japanese given name (first name) of the contact.- Parameters:
value- Value to set for the yomiGivenName property.
-
setYomiSurname
Sets the yomiSurname property value. The phonetic Japanese surname (last name) of the contact.- Parameters:
value- Value to set for the yomiSurname property.
-