Class SubmissionsRequestBuilder
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassList all the submissions associated with an assignment.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
ConstructorsConstructorDescriptionSubmissionsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSubmissionsRequestBuilderand sets the default values.SubmissionsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSubmissionsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyEducationSubmissionId(String educationSubmissionId) Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity.count()Provides operations to count the resources in the collection.get()List all the submissions associated with an assignment.get(Consumer<SubmissionsRequestBuilder.GetRequestConfiguration> requestConfiguration) List all the submissions associated with an assignment.post(EducationSubmission body) Create new navigation property to submissions for educationpost(EducationSubmission body, Consumer<SubmissionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to submissions for educationcom.microsoft.kiota.RequestInformationList all the submissions associated with an assignment.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<SubmissionsRequestBuilder.GetRequestConfiguration> requestConfiguration) List all the submissions associated with an assignment.com.microsoft.kiota.RequestInformationCreate new navigation property to submissions for educationcom.microsoft.kiota.RequestInformationtoPostRequestInformation(EducationSubmission body, Consumer<SubmissionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to submissions for educationReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
SubmissionsRequestBuilder
public SubmissionsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSubmissionsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
SubmissionsRequestBuilder
public SubmissionsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSubmissionsRequestBuilderand 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
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
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
@Nullable public EducationSubmissionCollectionResponse get(@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
EducationSubmissionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
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 bodyrequestConfiguration- 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 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
SubmissionsRequestBuilder
-