Class EducationClassItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.education.classes.item.EducationClassItemRequestBuilder

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

    • EducationClassItemRequestBuilder

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

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

    • assignmentCategories

      @Nonnull public AssignmentCategoriesRequestBuilder assignmentCategories()
      Provides operations to manage the assignmentCategories property of the microsoft.graph.educationClass entity.
      Returns:
      a AssignmentCategoriesRequestBuilder
    • assignmentDefaults

      @Nonnull public AssignmentDefaultsRequestBuilder assignmentDefaults()
      Provides operations to manage the assignmentDefaults property of the microsoft.graph.educationClass entity.
      Returns:
      a AssignmentDefaultsRequestBuilder
    • assignments

      @Nonnull public AssignmentsRequestBuilder assignments()
      Provides operations to manage the assignments property of the microsoft.graph.educationClass entity.
      Returns:
      a AssignmentsRequestBuilder
    • assignmentSettings

      @Nonnull public AssignmentSettingsRequestBuilder assignmentSettings()
      Provides operations to manage the assignmentSettings property of the microsoft.graph.educationClass entity.
      Returns:
      a AssignmentSettingsRequestBuilder
    • group

      @Nonnull public GroupRequestBuilder group()
      Provides operations to manage the group property of the microsoft.graph.educationClass entity.
      Returns:
      a GroupRequestBuilder
    • members

      @Nonnull public MembersRequestBuilder members()
      Provides operations to manage the members property of the microsoft.graph.educationClass entity.
      Returns:
      a MembersRequestBuilder
    • modules

      @Nonnull public ModulesRequestBuilder modules()
      Provides operations to manage the modules property of the microsoft.graph.educationClass entity.
      Returns:
      a ModulesRequestBuilder
    • schools

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

      @Nonnull public TeachersRequestBuilder teachers()
      Provides operations to manage the teachers property of the microsoft.graph.educationClass entity.
      Returns:
      a TeachersRequestBuilder
    • delete

      public void delete()
      Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • delete

      public void delete(@Nullable Consumer<EducationClassItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public EducationClass get()
      Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members.
      Returns:
      a EducationClass
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public EducationClass get(@Nullable Consumer<EducationClassItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationClass
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public EducationClass patch(@Nonnull EducationClass body)
      Update the properties of an educationClass object.
      Parameters:
      body - The request body
      Returns:
      a EducationClass
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public EducationClass patch(@Nonnull EducationClass body, @Nullable Consumer<EducationClassItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the properties of an educationClass object.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a EducationClass
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group.
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<EducationClassItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete an educationClass. Because a class is also a universal group, deleting a class deletes the group.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<EducationClassItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members.
      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 EducationClass body)
      Update the properties of an educationClass object.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

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

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