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

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

    • SubmissionsRequestBuilder

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

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

    • count

      @Nonnull public CountRequestBuilder count()
      Provides operations to count the resources in the collection.
      Returns:
      a CountRequestBuilder
    • byEducationSubmissionId

      @Nonnull public EducationSubmissionItemRequestBuilder byEducationSubmissionId(@Nonnull String educationSubmissionId)
      Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity.
      Parameters:
      educationSubmissionId - The unique identifier of educationSubmission
      Returns:
      a EducationSubmissionItemRequestBuilder
    • get

      @Nullable public EducationSubmissionCollectionResponse get()
      List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with.
      Returns:
      a EducationSubmissionCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationSubmissionCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public EducationSubmission post(@Nonnull EducationSubmission body)
      Create new navigation property to submissions for education
      Parameters:
      body - The request body
      Returns:
      a EducationSubmission
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • post

      @Nullable public EducationSubmission post(@Nonnull EducationSubmission body, @Nullable Consumer<SubmissionsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to submissions for education
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationSubmission
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<SubmissionsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with.
      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 EducationSubmission body)
      Create new navigation property to submissions for education
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull EducationSubmission body, @Nullable Consumer<SubmissionsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to submissions for education
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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