Class EducationRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.education.EducationRequestBuilder

@Generated("com.microsoft.kiota") public class EducationRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the educationRoot singleton.
  • Constructor Details

    • EducationRequestBuilder

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

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

    • classes

      @Nonnull public ClassesRequestBuilder classes()
      Provides operations to manage the classes property of the microsoft.graph.educationRoot entity.
      Returns:
      a ClassesRequestBuilder
    • me

      @Nonnull public MeRequestBuilder me()
      Provides operations to manage the me property of the microsoft.graph.educationRoot entity.
      Returns:
      a MeRequestBuilder
    • schools

      @Nonnull public SchoolsRequestBuilder schools()
      Provides operations to manage the schools property of the microsoft.graph.educationRoot entity.
      Returns:
      a SchoolsRequestBuilder
    • users

      @Nonnull public UsersRequestBuilder users()
      Provides operations to manage the users property of the microsoft.graph.educationRoot entity.
      Returns:
      a UsersRequestBuilder
    • get

      @Nullable public EducationRoot get()
      Get education
      Returns:
      a EducationRoot
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public EducationRoot get(@Nullable Consumer<EducationRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get education
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationRoot
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public EducationRoot patch(@Nonnull EducationRoot body)
      Update education
      Parameters:
      body - The request body
      Returns:
      a EducationRoot
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public EducationRoot patch(@Nonnull EducationRoot body, @Nullable Consumer<EducationRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update education
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationRoot
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Get education
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<EducationRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get education
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull EducationRoot body)
      Update education
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull EducationRoot body, @Nullable Consumer<EducationRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update education
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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