Class EducationModuleItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.education.classes.item.modules.item.EducationModuleItemRequestBuilder
@Generated("com.microsoft.kiota")
public class EducationModuleItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the modules property of the microsoft.graph.educationClass entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classGet the properties and relationships of a module.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
ConstructorsConstructorDescriptionEducationModuleItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationModuleItemRequestBuilderand sets the default values.EducationModuleItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationModuleItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete an existing module in a class.voiddelete(Consumer<EducationModuleItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an existing module in a class.get()Get the properties and relationships of a module.get(Consumer<EducationModuleItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of a module.patch(EducationModule body) Update an educationModule object in a class.patch(EducationModule body, Consumer<EducationModuleItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update an educationModule object in a class.pin()Provides operations to call the pin method.publish()Provides operations to call the publish method.Provides operations to manage the resources property of the microsoft.graph.educationModule entity.Provides operations to call the setUpResourcesFolder method.com.microsoft.kiota.RequestInformationDelete an existing module in a class.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<EducationModuleItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an existing module in a class.com.microsoft.kiota.RequestInformationGet the properties and relationships of a module.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<EducationModuleItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of a module.com.microsoft.kiota.RequestInformationUpdate an educationModule object in a class.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(EducationModule body, Consumer<EducationModuleItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update an educationModule object in a class.unpin()Provides operations to call the unpin method.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
EducationModuleItemRequestBuilder
public EducationModuleItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationModuleItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
EducationModuleItemRequestBuilder
public EducationModuleItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationModuleItemRequestBuilderand 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
-
pin
Provides operations to call the pin method.- Returns:
- a
PinRequestBuilder
-
publish
Provides operations to call the publish method.- Returns:
- a
PublishRequestBuilder
-
resources
Provides operations to manage the resources property of the microsoft.graph.educationModule entity.- Returns:
- a
ResourcesRequestBuilder
-
setUpResourcesFolder
Provides operations to call the setUpResourcesFolder method.- Returns:
- a
SetUpResourcesFolderRequestBuilder
-
unpin
Provides operations to call the unpin method.- Returns:
- a
UnpinRequestBuilder
-
delete
public void delete()Delete an existing module in a class. Only teachers within a class can delete modules.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<EducationModuleItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an existing module in a class. Only teachers within a class can delete modules.- 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
Get the properties and relationships of a module. Only teachers, students, and applications with application permissions can perform this operation. Students can only see published modules; teachers and applications with application permissions can see all modules in a class.- Returns:
- a
EducationModule - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public EducationModule get(@Nullable Consumer<EducationModuleItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of a module. Only teachers, students, and applications with application permissions can perform this operation. Students can only see published modules; teachers and applications with application permissions can see all modules in a class.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
EducationModule - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update an educationModule object in a class. Only teachers in the class can perform this operation. You can't use a PATCH request to change the status of a module. Use the publish action to change the module status.- Parameters:
body- The request body- Returns:
- a
EducationModule - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public EducationModule patch(@Nonnull EducationModule body, @Nullable Consumer<EducationModuleItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update an educationModule object in a class. Only teachers in the class can perform this operation. You can't use a PATCH request to change the status of a module. Use the publish action to change the module status.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
EducationModule - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete an existing module in a class. Only teachers within a class can delete modules.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<EducationModuleItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an existing module in a class. Only teachers within a class can delete modules.- 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 module. Only teachers, students, and applications with application permissions can perform this operation. Students can only see published modules; teachers and applications with application permissions can see all modules in a class.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<EducationModuleItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of a module. Only teachers, students, and applications with application permissions can perform this operation. Students can only see published modules; teachers and applications with application permissions can see all modules in a class.- 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 EducationModule body) Update an educationModule object in a class. Only teachers in the class can perform this operation. You can't use a PATCH request to change the status of a module. Use the publish action to change the module status.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull EducationModule body, @Nullable Consumer<EducationModuleItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update an educationModule object in a class. Only teachers in the class can perform this operation. You can't use a PATCH request to change the status of a module. Use the publish action to change the module status.- 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
EducationModuleItemRequestBuilder
-