Class Person

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class Person
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    • Field Detail

      • birthday

        protected String birthday
      • companyName

        protected String companyName
      • department

        protected String department
      • displayName

        protected String displayName
      • emailAddressesNextLink

        protected String emailAddressesNextLink
      • givenName

        protected String givenName
      • isFavorite

        protected Boolean isFavorite
      • mailboxType

        protected String mailboxType
      • officeLocation

        protected String officeLocation
      • personNotes

        protected String personNotes
      • personType

        protected String personType
      • phonesNextLink

        protected String phonesNextLink
      • postalAddressesNextLink

        protected String postalAddressesNextLink
      • profession

        protected String profession
      • sourcesNextLink

        protected String sourcesNextLink
      • surname

        protected String surname
      • title

        protected String title
      • userPrincipalName

        protected String userPrincipalName
      • websitesNextLink

        protected String websitesNextLink
      • yomiCompany

        protected String yomiCompany
    • Constructor Detail

      • Person

        protected Person()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderPerson

        public static Person.Builder builderPerson()
        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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • withBirthday

        public Person withBirthday​(String birthday)
      • withCompanyName

        public Person withCompanyName​(String companyName)
      • withDepartment

        public Person withDepartment​(String department)
      • withDisplayName

        public Person withDisplayName​(String displayName)
      • getEmailAddresses

        public com.github.davidmoten.odata.client.CollectionPage<RankedEmailAddress> getEmailAddresses()
      • getEmailAddresses

        public com.github.davidmoten.odata.client.CollectionPage<RankedEmailAddress> getEmailAddresses​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withGivenName

        public Person withGivenName​(String givenName)
      • withIsFavorite

        public Person withIsFavorite​(Boolean isFavorite)
      • withMailboxType

        public Person withMailboxType​(String mailboxType)
      • withOfficeLocation

        public Person withOfficeLocation​(String officeLocation)
      • withPersonNotes

        public Person withPersonNotes​(String personNotes)
      • withPersonType

        public Person withPersonType​(String personType)
      • 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<Location> getPostalAddresses()
      • withPostalAddresses

        public Person withPostalAddresses​(List<Location> postalAddresses)
      • getPostalAddresses

        public com.github.davidmoten.odata.client.CollectionPage<Location> getPostalAddresses​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withProfession

        public Person withProfession​(String profession)
      • getSources

        public com.github.davidmoten.odata.client.CollectionPage<PersonDataSource> getSources()
      • getSources

        public com.github.davidmoten.odata.client.CollectionPage<PersonDataSource> getSources​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withSurname

        public Person withSurname​(String surname)
      • getUserPrincipalName

        public Optional<String> getUserPrincipalName()
      • withUserPrincipalName

        public Person withUserPrincipalName​(String userPrincipalName)
      • 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)
      • withYomiCompany

        public Person withYomiCompany​(String yomiCompany)
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public Person patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public Person put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected