Package com.microsoft.graph.invitations
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet entities from invitationsclassConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionInvitationsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newInvitationsRequestBuilderand sets the default values.InvitationsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newInvitationsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncount()Provides operations to count the resources in the collection.get()Get entities from invitationsget(Consumer<InvitationsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get entities from invitationsProvides operations to manage the invitedUser property of the microsoft.graph.invitation entity.Provides operations to manage the invitedUserSponsors property of the microsoft.graph.invitation entity.post(Invitation body) Use this API to create a new invitation or reset the redemption status for a guest user who already redeemed their invitation.post(Invitation body, 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.com.microsoft.kiota.RequestInformationGet entities from invitationscom.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<InvitationsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get entities from invitationscom.microsoft.kiota.RequestInformationUse this API to create a new invitation or reset the redemption status for a guest user who already redeemed their invitation.com.microsoft.kiota.RequestInformationtoPostRequestInformation(Invitation body, 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.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
InvitationsRequestBuilder
public InvitationsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newInvitationsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
InvitationsRequestBuilder
public InvitationsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newInvitationsRequestBuilderand 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
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
invitedUser
Provides operations to manage the invitedUser property of the microsoft.graph.invitation entity.- Returns:
- a
InvitedUserRequestBuilder
-
invitedUserSponsors
Provides operations to manage the invitedUserSponsors property of the microsoft.graph.invitation entity.- Returns:
- a
InvitedUserSponsorsRequestBuilder
-
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
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 bodyrequestConfiguration- 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 bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
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
-