Class CustomQuestionsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.solutions.bookingbusinesses.item.customquestions.CustomQuestionsRequestBuilder
@Generated("com.microsoft.kiota")
public class CustomQuestionsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the customQuestions property of the microsoft.graph.bookingBusiness entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet the bookingCustomQuestion resources associated with a bookingBusiness.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
ConstructorsConstructorDescriptionCustomQuestionsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCustomQuestionsRequestBuilderand sets the default values.CustomQuestionsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCustomQuestionsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyBookingCustomQuestionId(String bookingCustomQuestionId) Provides operations to manage the customQuestions property of the microsoft.graph.bookingBusiness entity.count()Provides operations to count the resources in the collection.get()Get the bookingCustomQuestion resources associated with a bookingBusiness.get(Consumer<CustomQuestionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the bookingCustomQuestion resources associated with a bookingBusiness.post(BookingCustomQuestion body) Create a new bookingCustomQuestion object.post(BookingCustomQuestion body, Consumer<CustomQuestionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new bookingCustomQuestion object.com.microsoft.kiota.RequestInformationGet the bookingCustomQuestion resources associated with a bookingBusiness.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<CustomQuestionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the bookingCustomQuestion resources associated with a bookingBusiness.com.microsoft.kiota.RequestInformationCreate a new bookingCustomQuestion object.com.microsoft.kiota.RequestInformationtoPostRequestInformation(BookingCustomQuestion body, Consumer<CustomQuestionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new bookingCustomQuestion object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
CustomQuestionsRequestBuilder
public CustomQuestionsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCustomQuestionsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
CustomQuestionsRequestBuilder
public CustomQuestionsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCustomQuestionsRequestBuilderand 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
-
byBookingCustomQuestionId
@Nonnull public BookingCustomQuestionItemRequestBuilder byBookingCustomQuestionId(@Nonnull String bookingCustomQuestionId) Provides operations to manage the customQuestions property of the microsoft.graph.bookingBusiness entity.- Parameters:
bookingCustomQuestionId- The unique identifier of bookingCustomQuestion- Returns:
- a
BookingCustomQuestionItemRequestBuilder
-
get
Get the bookingCustomQuestion resources associated with a bookingBusiness.- Returns:
- a
BookingCustomQuestionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public BookingCustomQuestionCollectionResponse get(@Nullable Consumer<CustomQuestionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the bookingCustomQuestion resources associated with a bookingBusiness.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
BookingCustomQuestionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create a new bookingCustomQuestion object.- Parameters:
body- The request body- Returns:
- a
BookingCustomQuestion - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public BookingCustomQuestion post(@Nonnull BookingCustomQuestion body, @Nullable Consumer<CustomQuestionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new bookingCustomQuestion object.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
BookingCustomQuestion - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get the bookingCustomQuestion resources associated with a bookingBusiness.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<CustomQuestionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the bookingCustomQuestion resources associated with a bookingBusiness.- 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 BookingCustomQuestion body) Create a new bookingCustomQuestion object.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull BookingCustomQuestion body, @Nullable Consumer<CustomQuestionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new bookingCustomQuestion object.- 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
CustomQuestionsRequestBuilder
-