Class EducationAssignmentItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.education.classes.item.assignments.item.EducationAssignmentItemRequestBuilder

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

    • EducationAssignmentItemRequestBuilder

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

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

    • activate

      @Nonnull public ActivateRequestBuilder activate()
      Provides operations to call the activate method.
      Returns:
      a ActivateRequestBuilder
    • categories

      @Nonnull public CategoriesRequestBuilder categories()
      Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity.
      Returns:
      a CategoriesRequestBuilder
    • deactivate

      @Nonnull public DeactivateRequestBuilder deactivate()
      Provides operations to call the deactivate method.
      Returns:
      a DeactivateRequestBuilder
    • gradingCategory

      @Nonnull public GradingCategoryRequestBuilder gradingCategory()
      Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity.
      Returns:
      a GradingCategoryRequestBuilder
    • gradingScheme

      @Nonnull public GradingSchemeRequestBuilder gradingScheme()
      Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity.
      Returns:
      a GradingSchemeRequestBuilder
    • publish

      @Nonnull public PublishRequestBuilder publish()
      Provides operations to call the publish method.
      Returns:
      a PublishRequestBuilder
    • resources

      @Nonnull public ResourcesRequestBuilder resources()
      Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity.
      Returns:
      a ResourcesRequestBuilder
    • rubric

      @Nonnull public RubricRequestBuilder rubric()
      Provides operations to manage the rubric property of the microsoft.graph.educationAssignment entity.
      Returns:
      a RubricRequestBuilder
    • setUpFeedbackResourcesFolder

      @Nonnull public SetUpFeedbackResourcesFolderRequestBuilder setUpFeedbackResourcesFolder()
      Provides operations to call the setUpFeedbackResourcesFolder method.
      Returns:
      a SetUpFeedbackResourcesFolderRequestBuilder
    • setUpResourcesFolder

      @Nonnull public SetUpResourcesFolderRequestBuilder setUpResourcesFolder()
      Provides operations to call the setUpResourcesFolder method.
      Returns:
      a SetUpResourcesFolderRequestBuilder
    • submissions

      @Nonnull public SubmissionsRequestBuilder submissions()
      Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity.
      Returns:
      a SubmissionsRequestBuilder
    • delete

      public void delete()
      Delete an existing assignment. Only teachers within a class can delete assignments.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • delete

      public void delete(@Nullable Consumer<EducationAssignmentItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete an existing assignment. Only teachers within a class can delete assignments.
      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 EducationAssignment get()
      Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue.
      Returns:
      a EducationAssignment
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public EducationAssignment get(@Nullable Consumer<EducationAssignmentItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationAssignment
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public EducationAssignment patch(@Nonnull EducationAssignment body)
      Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose.
      Parameters:
      body - The request body
      Returns:
      a EducationAssignment
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public EducationAssignment patch(@Nonnull EducationAssignment body, @Nullable Consumer<EducationAssignmentItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationAssignment
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete an existing assignment. Only teachers within a class can delete assignments.
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<EducationAssignmentItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete an existing assignment. Only teachers within a class can delete assignments.
      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 an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<EducationAssignmentItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue.
      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 EducationAssignment body)
      Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull EducationAssignment body, @Nullable Consumer<EducationAssignmentItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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