Class EducationModuleResourceItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.education.classes.item.modules.item.resources.item.EducationModuleResourceItemRequestBuilder

@Generated("com.microsoft.kiota") public class EducationModuleResourceItemRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the resources property of the microsoft.graph.educationModule entity.
  • Constructor Details

    • EducationModuleResourceItemRequestBuilder

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

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

    • delete

      public void delete()
      Delete a specific educationModuleResource attached to a module. Only teachers in the class can remove a resource.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • delete

      public void delete(@Nullable Consumer<EducationModuleResourceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a specific educationModuleResource attached to a module. Only teachers in the class can remove a resource.
      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

      @Nullable public EducationModuleResource get()
      Get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation.
      Returns:
      a EducationModuleResource
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      Get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationModuleResource
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public EducationModuleResource patch(@Nonnull EducationModuleResource body)
      Update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types.
      Parameters:
      body - The request body
      Returns:
      a EducationModuleResource
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      Update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationModuleResource
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete a specific educationModuleResource attached to a module. Only teachers in the class can remove a resource.
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<EducationModuleResourceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a specific educationModuleResource attached to a module. Only teachers in the class can remove a resource.
      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 of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<EducationModuleResourceItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation.
      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 EducationModuleResource body)
      Update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull EducationModuleResource body, @Nullable Consumer<EducationModuleResourceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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