Class GroupItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.groups.item.GroupItemRequestBuilder

@Generated("com.microsoft.kiota") public class GroupItemRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of group entities.
  • Constructor Details

    • GroupItemRequestBuilder

      public GroupItemRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new GroupItemRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • GroupItemRequestBuilder

      public GroupItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new GroupItemRequestBuilder and sets the default values.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      requestAdapter - The request adapter to use to execute the requests.
  • Method Details

    • acceptedSenders

      @Nonnull public AcceptedSendersRequestBuilder acceptedSenders()
      Provides operations to manage the acceptedSenders property of the microsoft.graph.group entity.
      Returns:
      a AcceptedSendersRequestBuilder
    • addFavorite

      @Nonnull public AddFavoriteRequestBuilder addFavorite()
      Provides operations to call the addFavorite method.
      Returns:
      a AddFavoriteRequestBuilder
    • appRoleAssignments

      @Nonnull public AppRoleAssignmentsRequestBuilder appRoleAssignments()
      Provides operations to manage the appRoleAssignments property of the microsoft.graph.group entity.
      Returns:
      a AppRoleAssignmentsRequestBuilder
    • assignLicense

      @Nonnull public AssignLicenseRequestBuilder assignLicense()
      Provides operations to call the assignLicense method.
      Returns:
      a AssignLicenseRequestBuilder
    • calendar

      @Nonnull public CalendarRequestBuilder calendar()
      Provides operations to manage the calendar property of the microsoft.graph.group entity.
      Returns:
      a CalendarRequestBuilder
    • calendarView

      @Nonnull public CalendarViewRequestBuilder calendarView()
      Provides operations to manage the calendarView property of the microsoft.graph.group entity.
      Returns:
      a CalendarViewRequestBuilder
    • checkGrantedPermissionsForApp

      @Nonnull public CheckGrantedPermissionsForAppRequestBuilder checkGrantedPermissionsForApp()
      Provides operations to call the checkGrantedPermissionsForApp method.
      Returns:
      a CheckGrantedPermissionsForAppRequestBuilder
    • checkMemberGroups

      @Nonnull public CheckMemberGroupsRequestBuilder checkMemberGroups()
      Provides operations to call the checkMemberGroups method.
      Returns:
      a CheckMemberGroupsRequestBuilder
    • checkMemberObjects

      @Nonnull public CheckMemberObjectsRequestBuilder checkMemberObjects()
      Provides operations to call the checkMemberObjects method.
      Returns:
      a CheckMemberObjectsRequestBuilder
    • conversations

      @Nonnull public ConversationsRequestBuilder conversations()
      Provides operations to manage the conversations property of the microsoft.graph.group entity.
      Returns:
      a ConversationsRequestBuilder
    • createdOnBehalfOf

      @Nonnull public CreatedOnBehalfOfRequestBuilder createdOnBehalfOf()
      Provides operations to manage the createdOnBehalfOf property of the microsoft.graph.group entity.
      Returns:
      a CreatedOnBehalfOfRequestBuilder
    • drive

      @Nonnull public DriveRequestBuilder drive()
      Provides operations to manage the drive property of the microsoft.graph.group entity.
      Returns:
      a DriveRequestBuilder
    • drives

      @Nonnull public DrivesRequestBuilder drives()
      Provides operations to manage the drives property of the microsoft.graph.group entity.
      Returns:
      a DrivesRequestBuilder
    • events

      @Nonnull public EventsRequestBuilder events()
      Provides operations to manage the events property of the microsoft.graph.group entity.
      Returns:
      a EventsRequestBuilder
    • extensions

      @Nonnull public ExtensionsRequestBuilder extensions()
      Provides operations to manage the extensions property of the microsoft.graph.group entity.
      Returns:
      a ExtensionsRequestBuilder
    • getMemberGroups

      @Nonnull public GetMemberGroupsRequestBuilder getMemberGroups()
      Provides operations to call the getMemberGroups method.
      Returns:
      a GetMemberGroupsRequestBuilder
    • getMemberObjects

      @Nonnull public GetMemberObjectsRequestBuilder getMemberObjects()
      Provides operations to call the getMemberObjects method.
      Returns:
      a GetMemberObjectsRequestBuilder
    • groupLifecyclePolicies

      @Nonnull public GroupLifecyclePoliciesRequestBuilder groupLifecyclePolicies()
      Provides operations to manage the groupLifecyclePolicies property of the microsoft.graph.group entity.
      Returns:
      a GroupLifecyclePoliciesRequestBuilder
    • memberOf

      @Nonnull public MemberOfRequestBuilder memberOf()
      Provides operations to manage the memberOf property of the microsoft.graph.group entity.
      Returns:
      a MemberOfRequestBuilder
    • members

      @Nonnull public MembersRequestBuilder members()
      Provides operations to manage the members property of the microsoft.graph.group entity.
      Returns:
      a MembersRequestBuilder
    • membersWithLicenseErrors

      @Nonnull public MembersWithLicenseErrorsRequestBuilder membersWithLicenseErrors()
      Provides operations to manage the membersWithLicenseErrors property of the microsoft.graph.group entity.
      Returns:
      a MembersWithLicenseErrorsRequestBuilder
    • onenote

      @Nonnull public OnenoteRequestBuilder onenote()
      Provides operations to manage the onenote property of the microsoft.graph.group entity.
      Returns:
      a OnenoteRequestBuilder
    • onPremisesSyncBehavior

      @Nonnull public OnPremisesSyncBehaviorRequestBuilder onPremisesSyncBehavior()
      Provides operations to manage the onPremisesSyncBehavior property of the microsoft.graph.group entity.
      Returns:
      a OnPremisesSyncBehaviorRequestBuilder
    • owners

      @Nonnull public OwnersRequestBuilder owners()
      Provides operations to manage the owners property of the microsoft.graph.group entity.
      Returns:
      a OwnersRequestBuilder
    • permissionGrants

      @Nonnull public PermissionGrantsRequestBuilder permissionGrants()
      Provides operations to manage the permissionGrants property of the microsoft.graph.group entity.
      Returns:
      a PermissionGrantsRequestBuilder
    • photo

      @Nonnull public PhotoRequestBuilder photo()
      Provides operations to manage the photo property of the microsoft.graph.group entity.
      Returns:
      a PhotoRequestBuilder
    • photos

      @Nonnull public PhotosRequestBuilder photos()
      Provides operations to manage the photos property of the microsoft.graph.group entity.
      Returns:
      a PhotosRequestBuilder
    • planner

      @Nonnull public PlannerRequestBuilder planner()
      Provides operations to manage the planner property of the microsoft.graph.group entity.
      Returns:
      a PlannerRequestBuilder
    • rejectedSenders

      @Nonnull public RejectedSendersRequestBuilder rejectedSenders()
      Provides operations to manage the rejectedSenders property of the microsoft.graph.group entity.
      Returns:
      a RejectedSendersRequestBuilder
    • removeFavorite

      @Nonnull public RemoveFavoriteRequestBuilder removeFavorite()
      Provides operations to call the removeFavorite method.
      Returns:
      a RemoveFavoriteRequestBuilder
    • renew

      @Nonnull public RenewRequestBuilder renew()
      Provides operations to call the renew method.
      Returns:
      a RenewRequestBuilder
    • resetUnseenCount

      @Nonnull public ResetUnseenCountRequestBuilder resetUnseenCount()
      Provides operations to call the resetUnseenCount method.
      Returns:
      a ResetUnseenCountRequestBuilder
    • restore

      @Nonnull public RestoreRequestBuilder restore()
      Provides operations to call the restore method.
      Returns:
      a RestoreRequestBuilder
    • retryServiceProvisioning

      @Nonnull public RetryServiceProvisioningRequestBuilder retryServiceProvisioning()
      Provides operations to call the retryServiceProvisioning method.
      Returns:
      a RetryServiceProvisioningRequestBuilder
    • serviceProvisioningErrors

      @Nonnull public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors()
      The serviceProvisioningErrors property
      Returns:
      a ServiceProvisioningErrorsRequestBuilder
    • settings

      @Nonnull public SettingsRequestBuilder settings()
      Provides operations to manage the settings property of the microsoft.graph.group entity.
      Returns:
      a SettingsRequestBuilder
    • sites

      @Nonnull public SitesRequestBuilder sites()
      Provides operations to manage the sites property of the microsoft.graph.group entity.
      Returns:
      a SitesRequestBuilder
    • subscribeByMail

      @Nonnull public SubscribeByMailRequestBuilder subscribeByMail()
      Provides operations to call the subscribeByMail method.
      Returns:
      a SubscribeByMailRequestBuilder
    • team

      @Nonnull public TeamRequestBuilder team()
      Provides operations to manage the team property of the microsoft.graph.group entity.
      Returns:
      a TeamRequestBuilder
    • threads

      @Nonnull public ThreadsRequestBuilder threads()
      Provides operations to manage the threads property of the microsoft.graph.group entity.
      Returns:
      a ThreadsRequestBuilder
    • transitiveMemberOf

      @Nonnull public TransitiveMemberOfRequestBuilder transitiveMemberOf()
      Provides operations to manage the transitiveMemberOf property of the microsoft.graph.group entity.
      Returns:
      a TransitiveMemberOfRequestBuilder
    • transitiveMembers

      @Nonnull public TransitiveMembersRequestBuilder transitiveMembers()
      Provides operations to manage the transitiveMembers property of the microsoft.graph.group entity.
      Returns:
      a TransitiveMembersRequestBuilder
    • unsubscribeByMail

      @Nonnull public UnsubscribeByMailRequestBuilder unsubscribeByMail()
      Provides operations to call the unsubscribeByMail method.
      Returns:
      a UnsubscribeByMailRequestBuilder
    • validateProperties

      @Nonnull public ValidatePropertiesRequestBuilder validateProperties()
      Provides operations to call the validateProperties method.
      Returns:
      a ValidatePropertiesRequestBuilder
    • delete

      public void delete()
      Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • delete

      public void delete(@Nullable Consumer<GroupItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public Group get()
      Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query.
      Returns:
      a Group
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public Group get(@Nullable Consumer<GroupItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Group
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public Group patch(@Nonnull Group body)
      Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option.
      Parameters:
      body - The request body
      Returns:
      a Group
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public Group patch(@Nonnull Group body, @Nullable Consumer<GroupItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Group
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems.
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<GroupItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<GroupItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Group body)
      Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Group body, @Nullable Consumer<GroupItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public GroupItemRequestBuilder withUrl(@Nonnull String rawUrl)
      Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      Returns:
      a GroupItemRequestBuilder