Package com.microsoft.graph.education.classes.item.assignments.item.submissions.item.setupresourcesfolder
Class SetUpResourcesFolderRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.education.classes.item.assignments.item.submissions.item.setupresourcesfolder.SetUpResourcesFolderRequestBuilder
@Generated("com.microsoft.kiota")
public class SetUpResourcesFolderRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to call the setUpResourcesFolder method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration 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
ConstructorsConstructorDescriptionSetUpResourcesFolderRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSetUpResourcesFolderRequestBuilderand sets the default values.SetUpResourcesFolderRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSetUpResourcesFolderRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionpost()Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission.post(Consumer<SetUpResourcesFolderRequestBuilder.PostRequestConfiguration> requestConfiguration) Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission.com.microsoft.kiota.RequestInformationTrigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission.com.microsoft.kiota.RequestInformationtoPostRequestInformation(Consumer<SetUpResourcesFolderRequestBuilder.PostRequestConfiguration> requestConfiguration) Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
SetUpResourcesFolderRequestBuilder
public SetUpResourcesFolderRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSetUpResourcesFolderRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
SetUpResourcesFolderRequestBuilder
public SetUpResourcesFolderRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSetUpResourcesFolderRequestBuilderand 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
-
post
Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder.- Returns:
- a
EducationSubmission - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public EducationSubmission post(@Nullable Consumer<SetUpResourcesFolderRequestBuilder.PostRequestConfiguration> requestConfiguration) Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder.- Parameters:
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- See Also:
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation()Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nullable Consumer<SetUpResourcesFolderRequestBuilder.PostRequestConfiguration> requestConfiguration) Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder.- Parameters:
requestConfiguration- 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
SetUpResourcesFolderRequestBuilder
-