Class EducationGradingCategoryItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.education.classes.item.assignmentsettings.gradingcategories.item.EducationGradingCategoryItemRequestBuilder

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

    • EducationGradingCategoryItemRequestBuilder

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

      public EducationGradingCategoryItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new EducationGradingCategoryItemRequestBuilder 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 navigation property gradingCategories for education
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • delete

      public void delete(@Nullable Consumer<EducationGradingCategoryItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property gradingCategories for education
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public EducationGradingCategory get()
      When set, enables users to weight assignments differently when computing a class average grade.
      Returns:
      a EducationGradingCategory
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      When set, enables users to weight assignments differently when computing a class average grade.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationGradingCategory
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public EducationGradingCategory patch(@Nonnull EducationGradingCategory body)
      Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation.
      Parameters:
      body - The request body
      Returns:
      a EducationGradingCategory
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationGradingCategory
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete navigation property gradingCategories for education
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<EducationGradingCategoryItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property gradingCategories for education
      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()
      When set, enables users to weight assignments differently when computing a class average grade.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<EducationGradingCategoryItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      When set, enables users to weight assignments differently when computing a class average grade.
      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 EducationGradingCategory body)
      Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull EducationGradingCategory body, @Nullable Consumer<EducationGradingCategoryItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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