Class InvitationsRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.invitations.InvitationsRequestBuilder

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

    • InvitationsRequestBuilder

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

      public InvitationsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new InvitationsRequestBuilder 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

    • count

      @Nonnull public CountRequestBuilder count()
      Provides operations to count the resources in the collection.
      Returns:
      a CountRequestBuilder
    • invitedUser

      @Nonnull public InvitedUserRequestBuilder invitedUser()
      Provides operations to manage the invitedUser property of the microsoft.graph.invitation entity.
      Returns:
      a InvitedUserRequestBuilder
    • invitedUserSponsors

      @Nonnull public InvitedUserSponsorsRequestBuilder invitedUserSponsors()
      Provides operations to manage the invitedUserSponsors property of the microsoft.graph.invitation entity.
      Returns:
      a InvitedUserSponsorsRequestBuilder
    • get

      @Nullable public InvitationCollectionResponse get()
      Get entities from invitations
      Returns:
      a InvitationCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public InvitationCollectionResponse get(@Nullable Consumer<InvitationsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get entities from invitations
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a InvitationCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • post

      @Nullable public Invitation post(@Nonnull Invitation body)
      Use this API to create a new invitation or reset the redemption status for a guest user who already redeemed their invitation. The invitation adds the external user to the organization as part of B2B collaboration. B2B collaboration is supported in both Microsoft Entra External ID in workforce and external tenants. When creating a new invitation, you have several options available:
      Parameters:
      body - The request body
      Returns:
      a Invitation
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public Invitation post(@Nonnull Invitation body, @Nullable Consumer<InvitationsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Use this API to create a new invitation or reset the redemption status for a guest user who already redeemed their invitation. The invitation adds the external user to the organization as part of B2B collaboration. B2B collaboration is supported in both Microsoft Entra External ID in workforce and external tenants. When creating a new invitation, you have several options available:
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Invitation
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Get entities from invitations
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<InvitationsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get entities from invitations
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull Invitation body)
      Use this API to create a new invitation or reset the redemption status for a guest user who already redeemed their invitation. The invitation adds the external user to the organization as part of B2B collaboration. B2B collaboration is supported in both Microsoft Entra External ID in workforce and external tenants. When creating a new invitation, you have several options available:
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull Invitation body, @Nullable Consumer<InvitationsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Use this API to create a new invitation or reset the redemption status for a guest user who already redeemed their invitation. The invitation adds the external user to the organization as part of B2B collaboration. B2B collaboration is supported in both Microsoft Entra External ID in workforce and external tenants. When creating a new invitation, you have several options available:
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public InvitationsRequestBuilder 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 InvitationsRequestBuilder