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.
  • Constructor Details

    • LearningCourseActivitiesRequestBuilder

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

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

      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

      @Nullable public LearningCourseActivity post(@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 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 body
      requestConfiguration - 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 body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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