Class GradingSchemesRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.education.classes.item.assignmentsettings.gradingschemes.GradingSchemesRequestBuilder
@Generated("com.microsoft.kiota")
public class GradingSchemesRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRead the properties and relationships of an educationGradingScheme object.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
ConstructorsConstructorDescriptionGradingSchemesRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGradingSchemesRequestBuilderand sets the default values.GradingSchemesRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGradingSchemesRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyEducationGradingSchemeId(String educationGradingSchemeId) Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity.count()Provides operations to count the resources in the collection.get()Read the properties and relationships of an educationGradingScheme object.get(Consumer<GradingSchemesRequestBuilder.GetRequestConfiguration> requestConfiguration) Read the properties and relationships of an educationGradingScheme object.post(EducationGradingScheme body) Create a new educationGradingScheme on an educationClass.post(EducationGradingScheme body, Consumer<GradingSchemesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new educationGradingScheme on an educationClass.com.microsoft.kiota.RequestInformationRead the properties and relationships of an educationGradingScheme object.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<GradingSchemesRequestBuilder.GetRequestConfiguration> requestConfiguration) Read the properties and relationships of an educationGradingScheme object.com.microsoft.kiota.RequestInformationCreate a new educationGradingScheme on an educationClass.com.microsoft.kiota.RequestInformationtoPostRequestInformation(EducationGradingScheme body, Consumer<GradingSchemesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new educationGradingScheme on an educationClass.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
GradingSchemesRequestBuilder
public GradingSchemesRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGradingSchemesRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
GradingSchemesRequestBuilder
public GradingSchemesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGradingSchemesRequestBuilderand 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
-
byEducationGradingSchemeId
@Nonnull public EducationGradingSchemeItemRequestBuilder byEducationGradingSchemeId(@Nonnull String educationGradingSchemeId) Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity.- Parameters:
educationGradingSchemeId- The unique identifier of educationGradingScheme- Returns:
- a
EducationGradingSchemeItemRequestBuilder
-
get
Read the properties and relationships of an educationGradingScheme object.- Returns:
- a
EducationGradingSchemeCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public EducationGradingSchemeCollectionResponse get(@Nullable Consumer<GradingSchemesRequestBuilder.GetRequestConfiguration> requestConfiguration) Read the properties and relationships of an educationGradingScheme object.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
EducationGradingSchemeCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
Create a new educationGradingScheme on an educationClass. Only teachers can perform this operation.- Parameters:
body- The request body- Returns:
- a
EducationGradingScheme - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public EducationGradingScheme post(@Nonnull EducationGradingScheme body, @Nullable Consumer<GradingSchemesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new educationGradingScheme on an educationClass. Only teachers can perform this operation.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
EducationGradingScheme - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Read the properties and relationships of an educationGradingScheme object.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<GradingSchemesRequestBuilder.GetRequestConfiguration> requestConfiguration) Read the properties and relationships of an educationGradingScheme object.- 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 EducationGradingScheme body) Create a new educationGradingScheme on an educationClass. Only teachers can perform this operation.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull EducationGradingScheme body, @Nullable Consumer<GradingSchemesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new educationGradingScheme on an educationClass. Only teachers can perform this operation.- 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
GradingSchemesRequestBuilder
-