Class Group

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

    public class Group
    extends DirectoryObject
    implements com.github.davidmoten.odata.client.ODataEntityType

    Org.OData.Capabilities.V1.ChangeTracking

    Supported = true

    • Constructor Detail

      • Group

        protected Group()
    • Method Detail

      • odataTypeName

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

        public static Group.Builder builderGroup()
        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 DirectoryObject
      • postInject

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

        public com.github.davidmoten.odata.client.CollectionPage<AssignedLabel> getAssignedLabels()
      • getAssignedLabels

        public com.github.davidmoten.odata.client.CollectionPage<AssignedLabel> getAssignedLabels​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getAssignedLicenses

        public com.github.davidmoten.odata.client.CollectionPage<AssignedLicense> getAssignedLicenses()
      • getAssignedLicenses

        public com.github.davidmoten.odata.client.CollectionPage<AssignedLicense> getAssignedLicenses​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withClassification

        public Group withClassification​(String classification)
      • withDescription

        public Group withDescription​(String description)
      • withDisplayName

        public Group withDisplayName​(String displayName)
      • withExpirationDateTime

        public Group withExpirationDateTime​(OffsetDateTime expirationDateTime)
      • getGroupTypes

        public com.github.davidmoten.odata.client.CollectionPage<String> getGroupTypes()
      • withGroupTypes

        public Group withGroupTypes​(List<String> groupTypes)
      • getGroupTypes

        public com.github.davidmoten.odata.client.CollectionPage<String> getGroupTypes​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getHasMembersWithLicenseErrors

        public Optional<Boolean> getHasMembersWithLicenseErrors()
      • withHasMembersWithLicenseErrors

        public Group withHasMembersWithLicenseErrors​(Boolean hasMembersWithLicenseErrors)
      • withIsAssignableToRole

        public Group withIsAssignableToRole​(Boolean isAssignableToRole)
      • withMailEnabled

        public Group withMailEnabled​(Boolean mailEnabled)
      • withMailNickname

        public Group withMailNickname​(String mailNickname)
      • withMembershipRule

        public Group withMembershipRule​(String membershipRule)
      • getMembershipRuleProcessingState

        public Optional<String> getMembershipRuleProcessingState()
      • withMembershipRuleProcessingState

        public Group withMembershipRuleProcessingState​(String membershipRuleProcessingState)
      • getOnPremisesDomainName

        public Optional<String> getOnPremisesDomainName()
      • withOnPremisesDomainName

        public Group withOnPremisesDomainName​(String onPremisesDomainName)
      • withOnPremisesLastSyncDateTime

        public Group withOnPremisesLastSyncDateTime​(OffsetDateTime onPremisesLastSyncDateTime)
      • getOnPremisesNetBiosName

        public Optional<String> getOnPremisesNetBiosName()
      • withOnPremisesNetBiosName

        public Group withOnPremisesNetBiosName​(String onPremisesNetBiosName)
      • getOnPremisesProvisioningErrors

        public com.github.davidmoten.odata.client.CollectionPage<OnPremisesProvisioningError> getOnPremisesProvisioningErrors()
      • getOnPremisesProvisioningErrors

        public com.github.davidmoten.odata.client.CollectionPage<OnPremisesProvisioningError> getOnPremisesProvisioningErrors​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getOnPremisesSamAccountName

        public Optional<String> getOnPremisesSamAccountName()
      • withOnPremisesSamAccountName

        public Group withOnPremisesSamAccountName​(String onPremisesSamAccountName)
      • getOnPremisesSecurityIdentifier

        public Optional<String> getOnPremisesSecurityIdentifier()
      • withOnPremisesSecurityIdentifier

        public Group withOnPremisesSecurityIdentifier​(String onPremisesSecurityIdentifier)
      • getOnPremisesSyncEnabled

        public Optional<Boolean> getOnPremisesSyncEnabled()
      • withOnPremisesSyncEnabled

        public Group withOnPremisesSyncEnabled​(Boolean onPremisesSyncEnabled)
      • getPreferredDataLocation

        public Optional<String> getPreferredDataLocation()
      • withPreferredDataLocation

        public Group withPreferredDataLocation​(String preferredDataLocation)
      • getPreferredLanguage

        public Optional<String> getPreferredLanguage()
      • withPreferredLanguage

        public Group withPreferredLanguage​(String preferredLanguage)
      • getProxyAddresses

        public com.github.davidmoten.odata.client.CollectionPage<String> getProxyAddresses()
      • withProxyAddresses

        public Group withProxyAddresses​(List<String> proxyAddresses)
      • getProxyAddresses

        public com.github.davidmoten.odata.client.CollectionPage<String> getProxyAddresses​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withSecurityEnabled

        public Group withSecurityEnabled​(Boolean securityEnabled)
      • getSecurityIdentifier

        public Optional<String> getSecurityIdentifier()
      • withSecurityIdentifier

        public Group withSecurityIdentifier​(String securityIdentifier)
      • getServiceProvisioningErrors

        public com.github.davidmoten.odata.client.CollectionPage<ServiceProvisioningError> getServiceProvisioningErrors()
      • getServiceProvisioningErrors

        public com.github.davidmoten.odata.client.CollectionPage<ServiceProvisioningError> getServiceProvisioningErrors​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withVisibility

        public Group withVisibility​(String visibility)
      • getAllowExternalSenders

        public Optional<Boolean> getAllowExternalSenders()
      • withAllowExternalSenders

        public Group withAllowExternalSenders​(Boolean allowExternalSenders)
      • getAutoSubscribeNewMembers

        public Optional<Boolean> getAutoSubscribeNewMembers()
      • withAutoSubscribeNewMembers

        public Group withAutoSubscribeNewMembers​(Boolean autoSubscribeNewMembers)
      • getHideFromAddressLists

        public Optional<Boolean> getHideFromAddressLists()
      • withHideFromAddressLists

        public Group withHideFromAddressLists​(Boolean hideFromAddressLists)
      • getHideFromOutlookClients

        public Optional<Boolean> getHideFromOutlookClients()
      • withHideFromOutlookClients

        public Group withHideFromOutlookClients​(Boolean hideFromOutlookClients)
      • withIsSubscribedByMail

        public Group withIsSubscribedByMail​(Boolean isSubscribedByMail)
      • withUnseenCount

        public Group withUnseenCount​(Integer unseenCount)
      • withIsArchived

        public Group withIsArchived​(Boolean isArchived)
      • getAcceptedSenders

        public DirectoryObjectCollectionRequest getAcceptedSenders()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Returns:
        navigational property acceptedSenders
      • getCalendar

        public CalendarRequest getCalendar()

        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

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Returns:
        navigational property calendar
      • getCalendarView

        public EventCollectionRequest getCalendarView()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = true

        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

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Returns:
        navigational property calendarView
      • getConversations

        public ConversationCollectionRequest getConversations()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Returns:
        navigational property conversations
      • getEvents

        public EventCollectionRequest getEvents()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Returns:
        navigational property events
      • getRejectedSenders

        public DirectoryObjectCollectionRequest getRejectedSenders()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Returns:
        navigational property rejectedSenders
      • getThreads

        public ConversationThreadCollectionRequest getThreads()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Returns:
        navigational property threads
      • getPhoto

        public ProfilePhotoRequest getPhoto()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = true

        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
      • getPhotos

        public ProfilePhotoCollectionRequest getPhotos()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.CountRestrictions

        Countable = 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

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Returns:
        navigational property photos
      • withAcceptedSenders

        public Group withAcceptedSenders​(List<DirectoryObject> acceptedSenders)
        Returns an immutable copy of this with just the acceptedSenders field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Parameters:
        acceptedSenders - new value of acceptedSenders field (as defined in service metadata)
        Returns:
        immutable copy of this with just the acceptedSenders field changed
      • withCalendar

        public Group withCalendar​(Calendar calendar)
        Returns an immutable copy of this with just the calendar field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        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

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Parameters:
        calendar - new value of calendar field (as defined in service metadata)
        Returns:
        immutable copy of this with just the calendar field changed
      • withCalendarView

        public Group withCalendarView​(List<Event> calendarView)
        Returns an immutable copy of this with just the calendarView field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = true

        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

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Parameters:
        calendarView - new value of calendarView field (as defined in service metadata)
        Returns:
        immutable copy of this with just the calendarView field changed
      • withConversations

        public Group withConversations​(List<Conversation> conversations)
        Returns an immutable copy of this with just the conversations field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Parameters:
        conversations - new value of conversations field (as defined in service metadata)
        Returns:
        immutable copy of this with just the conversations field changed
      • withEvents

        public Group withEvents​(List<Event> events)
        Returns an immutable copy of this with just the events field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Parameters:
        events - new value of events field (as defined in service metadata)
        Returns:
        immutable copy of this with just the events field changed
      • withRejectedSenders

        public Group withRejectedSenders​(List<DirectoryObject> rejectedSenders)
        Returns an immutable copy of this with just the rejectedSenders field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Parameters:
        rejectedSenders - new value of rejectedSenders field (as defined in service metadata)
        Returns:
        immutable copy of this with just the rejectedSenders field changed
      • withThreads

        public Group withThreads​(List<ConversationThread> threads)
        Returns an immutable copy of this with just the threads field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Parameters:
        threads - new value of threads field (as defined in service metadata)
        Returns:
        immutable copy of this with just the threads field changed
      • withDrive

        public Group withDrive​(Drive drive)
      • withOnenote

        public Group withOnenote​(Onenote onenote)
      • withPhoto

        public Group withPhoto​(ProfilePhoto photo)
        Returns an immutable copy of this with just the photo field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = true

        Org.OData.Capabilities.V1.ExpandRestrictions

        Expandable = false

        Org.OData.Capabilities.V1.InsertRestrictions

        Insertable = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

        Parameters:
        photo - new value of photo field (as defined in service metadata)
        Returns:
        immutable copy of this with just the photo field changed
      • withPhotos

        public Group withPhotos​(List<ProfilePhoto> photos)
        Returns an immutable copy of this with just the photos field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.CountRestrictions

        Countable = 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

        Org.OData.Capabilities.V1.UpdateRestrictions

        Updatable = false

        Parameters:
        photos - new value of photos field (as defined in service metadata)
        Returns:
        immutable copy of this with just the photos field changed
      • withTeam

        public Group withTeam​(Team team)
      • getUnmappedFields

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

        public Group patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class DirectoryObject
        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 Group 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 DirectoryObject
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • assignLicense

        public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Group> assignLicense​(List<AssignedLicense> addLicenses,
                                                                                                                    List<UUID> removeLicenses)
      • retryServiceProvisioning

        public com.github.davidmoten.odata.client.ActionRequestNoReturn retryServiceProvisioning()
      • checkGrantedPermissionsForApp

        public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<ResourceSpecificPermissionGrant> checkGrantedPermissionsForApp()
      • validateProperties

        public com.github.davidmoten.odata.client.ActionRequestNoReturn validateProperties​(String displayName,
                                                                                           String mailNickname,
                                                                                           UUID onBehalfOfUserId)
      • addFavorite

        public com.github.davidmoten.odata.client.ActionRequestNoReturn addFavorite()
      • removeFavorite

        public com.github.davidmoten.odata.client.ActionRequestNoReturn removeFavorite()
      • resetUnseenCount

        public com.github.davidmoten.odata.client.ActionRequestNoReturn resetUnseenCount()
      • subscribeByMail

        public com.github.davidmoten.odata.client.ActionRequestNoReturn subscribeByMail()
      • unsubscribeByMail

        public com.github.davidmoten.odata.client.ActionRequestNoReturn unsubscribeByMail()
      • renew

        public com.github.davidmoten.odata.client.ActionRequestNoReturn renew()