Class LearningCourseActivitiesRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.employeeexperience.learningproviders.item.learningcourseactivities.LearningCourseActivitiesRequestBuilder
@Generated("com.microsoft.kiota")
public class LearningCourseActivitiesRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user.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
ConstructorsConstructorDescriptionLearningCourseActivitiesRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newLearningCourseActivitiesRequestBuilderand sets the default values.LearningCourseActivitiesRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newLearningCourseActivitiesRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyLearningCourseActivityId(String learningCourseActivityId) Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity.count()Provides operations to count the resources in the collection.get()Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user.get(Consumer<LearningCourseActivitiesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user.post(LearningCourseActivity body) Create a new learningCourseActivity object.post(LearningCourseActivity body, Consumer<LearningCourseActivitiesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new learningCourseActivity object.com.microsoft.kiota.RequestInformationGet the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<LearningCourseActivitiesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user.com.microsoft.kiota.RequestInformationCreate a new learningCourseActivity object.com.microsoft.kiota.RequestInformationtoPostRequestInformation(LearningCourseActivity body, Consumer<LearningCourseActivitiesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new learningCourseActivity object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
LearningCourseActivitiesRequestBuilder
public LearningCourseActivitiesRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newLearningCourseActivitiesRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
LearningCourseActivitiesRequestBuilder
public LearningCourseActivitiesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newLearningCourseActivitiesRequestBuilderand 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
-
byLearningCourseActivityId
@Nonnull public LearningCourseActivityItemRequestBuilder byLearningCourseActivityId(@Nonnull String learningCourseActivityId) Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity.- Parameters:
learningCourseActivityId- The unique identifier of learningCourseActivity- Returns:
- a
LearningCourseActivityItemRequestBuilder
-
get
Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user.- Returns:
- a
LearningCourseActivityCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public LearningCourseActivityCollectionResponse get(@Nullable Consumer<LearningCourseActivitiesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
LearningCourseActivityCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity.- Parameters:
body- The request body- Returns:
- a
LearningCourseActivity - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public LearningCourseActivity post(@Nonnull LearningCourseActivity body, @Nullable Consumer<LearningCourseActivitiesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
LearningCourseActivity - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<LearningCourseActivitiesRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user.- 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 LearningCourseActivity body) Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull LearningCourseActivity body, @Nullable Consumer<LearningCourseActivitiesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new learningCourseActivity object. A learning course activity can be one of two types: - Assignment- Self-initiated Use this method to create either type of activity.- 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
LearningCourseActivitiesRequestBuilder
-