java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.employeeexperience.learningproviders.item.learningcontents.LearningContentsRequestBuilder

@Generated("com.microsoft.kiota") public class LearningContentsRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity.
  • Constructor Details

    • LearningContentsRequestBuilder

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

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

      @Nonnull public LearningContentItemRequestBuilder byLearningContentId(@Nonnull String learningContentId)
      Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity.
      Parameters:
      learningContentId - The unique identifier of learningContent
      Returns:
      a LearningContentItemRequestBuilder
    • get

      @Nullable public LearningContentCollectionResponse get()
      Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning.
      Returns:
      a LearningContentCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a LearningContentCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public LearningContent post(@Nonnull LearningContent body)
      Create new navigation property to learningContents for employeeExperience
      Parameters:
      body - The request body
      Returns:
      a LearningContent
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • post

      @Nullable public LearningContent post(@Nonnull LearningContent body, @Nullable Consumer<LearningContentsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to learningContents for employeeExperience
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a LearningContent
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<LearningContentsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning.
      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 LearningContent body)
      Create new navigation property to learningContents for employeeExperience
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull LearningContent body, @Nullable Consumer<LearningContentsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create new navigation property to learningContents for employeeExperience
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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