Package odata.msgraph.client.beta.entity
Class Contact
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.OutlookItem
-
- odata.msgraph.client.beta.entity.Contact
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Contact extends OutlookItem implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContact.Builder
-
Field Summary
-
Fields inherited from class odata.msgraph.client.beta.entity.OutlookItem
categories, categoriesNextLink, changeKey, createdDateTime, lastModifiedDateTime
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedContact()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Contact.BuilderbuilderContact()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAssistantName()Optional<OffsetDateTime>getBirthday()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()com.github.davidmoten.odata.client.CollectionPage<String>getChildren()com.github.davidmoten.odata.client.CollectionPage<String>getChildren(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<String>getCompanyName()Optional<String>getDepartment()Optional<String>getDisplayName()com.github.davidmoten.odata.client.CollectionPage<TypedEmailAddress>getEmailAddresses()com.github.davidmoten.odata.client.CollectionPage<TypedEmailAddress>getEmailAddresses(com.github.davidmoten.odata.client.HttpRequestOptions options)ExtensionCollectionRequestgetExtensions()Org.OData.Capabilities.V1.ChangeTrackingOptional<String>getFileAs()Optional<FollowupFlag>getFlag()Optional<String>getGender()Optional<String>getGeneration()Optional<String>getGivenName()com.github.davidmoten.odata.client.CollectionPage<String>getImAddresses()com.github.davidmoten.odata.client.CollectionPage<String>getImAddresses(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<String>getInitials()Optional<Boolean>getIsFavorite()Optional<String>getJobTitle()Optional<String>getManager()Optional<String>getMiddleName()MultiValueLegacyExtendedPropertyCollectionRequestgetMultiValueExtendedProperties()Optional<String>getNickName()Optional<String>getOfficeLocation()Optional<String>getParentFolderId()Optional<String>getPersonalNotes()com.github.davidmoten.odata.client.CollectionPage<Phone>getPhones()com.github.davidmoten.odata.client.CollectionPage<Phone>getPhones(com.github.davidmoten.odata.client.HttpRequestOptions options)ProfilePhotoRequestgetPhoto()Org.OData.Capabilities.V1.ChangeTrackingcom.github.davidmoten.odata.client.CollectionPage<PhysicalAddress>getPostalAddresses()com.github.davidmoten.odata.client.CollectionPage<PhysicalAddress>getPostalAddresses(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<String>getProfession()SingleValueLegacyExtendedPropertyCollectionRequestgetSingleValueExtendedProperties()Optional<String>getSpouseName()Optional<String>getSurname()Optional<String>getTitle()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()com.github.davidmoten.odata.client.CollectionPage<Website>getWebsites()com.github.davidmoten.odata.client.CollectionPage<Website>getWebsites(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<LocalDate>getWeddingAnniversary()Optional<String>getYomiCompanyName()Optional<String>getYomiGivenName()Optional<String>getYomiSurname()StringodataTypeName()Contactpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Contactput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ContactwithAssistantName(String assistantName)ContactwithBirthday(OffsetDateTime birthday)ContactwithChildren(List<String> children)ContactwithCompanyName(String companyName)ContactwithDepartment(String department)ContactwithDisplayName(String displayName)ContactwithEmailAddresses(List<TypedEmailAddress> emailAddresses)ContactwithFileAs(String fileAs)ContactwithFlag(FollowupFlag flag)ContactwithGender(String gender)ContactwithGeneration(String generation)ContactwithGivenName(String givenName)ContactwithImAddresses(List<String> imAddresses)ContactwithInitials(String initials)ContactwithIsFavorite(Boolean isFavorite)ContactwithJobTitle(String jobTitle)ContactwithManager(String manager)ContactwithMiddleName(String middleName)ContactwithNickName(String nickName)ContactwithOfficeLocation(String officeLocation)ContactwithParentFolderId(String parentFolderId)ContactwithPersonalNotes(String personalNotes)ContactwithPhones(List<Phone> phones)ContactwithPostalAddresses(List<PhysicalAddress> postalAddresses)ContactwithProfession(String profession)ContactwithSpouseName(String spouseName)ContactwithSurname(String surname)ContactwithTitle(String title)ContactwithUnmappedField(String name, String value)ContactwithWebsites(List<Website> websites)ContactwithWeddingAnniversary(LocalDate weddingAnniversary)ContactwithYomiCompanyName(String yomiCompanyName)ContactwithYomiGivenName(String yomiGivenName)ContactwithYomiSurname(String yomiSurname)-
Methods inherited from class odata.msgraph.client.beta.entity.OutlookItem
getCategories, getCategories, getChangeKey, getCreatedDateTime, getLastModifiedDateTime, withCategories, withChangeKey, withCreatedDateTime, withLastModifiedDateTime
-
-
-
-
Field Detail
-
assistantName
protected String assistantName
-
birthday
protected OffsetDateTime birthday
-
childrenNextLink
protected String childrenNextLink
-
companyName
protected String companyName
-
department
protected String department
-
displayName
protected String displayName
-
emailAddresses
protected List<TypedEmailAddress> emailAddresses
-
emailAddressesNextLink
protected String emailAddressesNextLink
-
fileAs
protected String fileAs
-
flag
protected FollowupFlag flag
-
gender
protected String gender
-
generation
protected String generation
-
givenName
protected String givenName
-
imAddressesNextLink
protected String imAddressesNextLink
-
initials
protected String initials
-
isFavorite
protected Boolean isFavorite
-
jobTitle
protected String jobTitle
-
manager
protected String manager
-
middleName
protected String middleName
-
nickName
protected String nickName
-
officeLocation
protected String officeLocation
-
parentFolderId
protected String parentFolderId
-
personalNotes
protected String personalNotes
-
phonesNextLink
protected String phonesNextLink
-
postalAddresses
protected List<PhysicalAddress> postalAddresses
-
postalAddressesNextLink
protected String postalAddressesNextLink
-
profession
protected String profession
-
spouseName
protected String spouseName
-
surname
protected String surname
-
title
protected String title
-
websitesNextLink
protected String websitesNextLink
-
weddingAnniversary
protected LocalDate weddingAnniversary
-
yomiCompanyName
protected String yomiCompanyName
-
yomiGivenName
protected String yomiGivenName
-
yomiSurname
protected String yomiSurname
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classOutlookItem
-
builderContact
public static Contact.Builder builderContact()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classOutlookItem
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classOutlookItem
-
getBirthday
public Optional<OffsetDateTime> getBirthday()
-
withBirthday
public Contact withBirthday(OffsetDateTime birthday)
-
getChildren
public com.github.davidmoten.odata.client.CollectionPage<String> getChildren()
-
getChildren
public com.github.davidmoten.odata.client.CollectionPage<String> getChildren(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getEmailAddresses
public com.github.davidmoten.odata.client.CollectionPage<TypedEmailAddress> getEmailAddresses()
-
withEmailAddresses
public Contact withEmailAddresses(List<TypedEmailAddress> emailAddresses)
-
getEmailAddresses
public com.github.davidmoten.odata.client.CollectionPage<TypedEmailAddress> getEmailAddresses(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getFlag
public Optional<FollowupFlag> getFlag()
-
withFlag
public Contact withFlag(FollowupFlag flag)
-
getImAddresses
public com.github.davidmoten.odata.client.CollectionPage<String> getImAddresses()
-
getImAddresses
public com.github.davidmoten.odata.client.CollectionPage<String> getImAddresses(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getPhones
public com.github.davidmoten.odata.client.CollectionPage<Phone> getPhones()
-
getPhones
public com.github.davidmoten.odata.client.CollectionPage<Phone> getPhones(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getPostalAddresses
public com.github.davidmoten.odata.client.CollectionPage<PhysicalAddress> getPostalAddresses()
-
withPostalAddresses
public Contact withPostalAddresses(List<PhysicalAddress> postalAddresses)
-
getPostalAddresses
public com.github.davidmoten.odata.client.CollectionPage<PhysicalAddress> getPostalAddresses(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getWebsites
public com.github.davidmoten.odata.client.CollectionPage<Website> getWebsites()
-
getWebsites
public com.github.davidmoten.odata.client.CollectionPage<Website> getWebsites(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withUnmappedField
public Contact withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classOutlookItem
-
getExtensions
public ExtensionCollectionRequest getExtensions()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Returns:
- navigational property extensions
-
getMultiValueExtendedProperties
public MultiValueLegacyExtendedPropertyCollectionRequest getMultiValueExtendedProperties()
-
getPhoto
public ProfilePhotoRequest getPhoto()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = false
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Returns:
- navigational property photo
-
getSingleValueExtendedProperties
public SingleValueLegacyExtendedPropertyCollectionRequest getSingleValueExtendedProperties()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classOutlookItem
-
patch
public Contact patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classOutlookItem- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public Contact put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classOutlookItem- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classOutlookItem
-
-