Class OfferShiftRequestsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.teams.item.schedule.offershiftrequests.OfferShiftRequestsRequestBuilder
@Generated("com.microsoft.kiota")
public class OfferShiftRequestsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the offerShiftRequests property of the microsoft.graph.schedule entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve the properties and relationships of all offerShiftRequest objects in a team.classConfiguration 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
ConstructorsConstructorDescriptionOfferShiftRequestsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOfferShiftRequestsRequestBuilderand sets the default values.OfferShiftRequestsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOfferShiftRequestsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyOfferShiftRequestId(String offerShiftRequestId) Provides operations to manage the offerShiftRequests property of the microsoft.graph.schedule entity.count()Provides operations to count the resources in the collection.get()Retrieve the properties and relationships of all offerShiftRequest objects in a team.get(Consumer<OfferShiftRequestsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of all offerShiftRequest objects in a team.post(OfferShiftRequest body) Create an instance of an offerShiftRequest.post(OfferShiftRequest body, Consumer<OfferShiftRequestsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create an instance of an offerShiftRequest.com.microsoft.kiota.RequestInformationRetrieve the properties and relationships of all offerShiftRequest objects in a team.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<OfferShiftRequestsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of all offerShiftRequest objects in a team.com.microsoft.kiota.RequestInformationCreate an instance of an offerShiftRequest.com.microsoft.kiota.RequestInformationtoPostRequestInformation(OfferShiftRequest body, Consumer<OfferShiftRequestsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create an instance of an offerShiftRequest.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
OfferShiftRequestsRequestBuilder
public OfferShiftRequestsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOfferShiftRequestsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
OfferShiftRequestsRequestBuilder
public OfferShiftRequestsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newOfferShiftRequestsRequestBuilderand 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
-
byOfferShiftRequestId
@Nonnull public OfferShiftRequestItemRequestBuilder byOfferShiftRequestId(@Nonnull String offerShiftRequestId) Provides operations to manage the offerShiftRequests property of the microsoft.graph.schedule entity.- Parameters:
offerShiftRequestId- The unique identifier of offerShiftRequest- Returns:
- a
OfferShiftRequestItemRequestBuilder
-
get
Retrieve the properties and relationships of all offerShiftRequest objects in a team.- Returns:
- a
OfferShiftRequestCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public OfferShiftRequestCollectionResponse get(@Nullable Consumer<OfferShiftRequestsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of all offerShiftRequest objects in a team.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
OfferShiftRequestCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create an instance of an offerShiftRequest.- Parameters:
body- The request body- Returns:
- a
OfferShiftRequest - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public OfferShiftRequest post(@Nonnull OfferShiftRequest body, @Nullable Consumer<OfferShiftRequestsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create an instance of an offerShiftRequest.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
OfferShiftRequest - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve the properties and relationships of all offerShiftRequest objects in a team.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<OfferShiftRequestsRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of all offerShiftRequest objects in a team.- 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 OfferShiftRequest body) Create an instance of an offerShiftRequest.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull OfferShiftRequest body, @Nullable Consumer<OfferShiftRequestsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create an instance of an offerShiftRequest.- 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
OfferShiftRequestsRequestBuilder
-