Class PlaceItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.places.item.PlaceItemRequestBuilder

@Generated("com.microsoft.kiota") public class PlaceItemRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of place entities.
  • Constructor Details

    • PlaceItemRequestBuilder

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

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

    • checkIns

      @Nonnull public CheckInsRequestBuilder checkIns()
      Provides operations to manage the checkIns property of the microsoft.graph.place entity.
      Returns:
      a CheckInsRequestBuilder
    • descendants

      @Nonnull public DescendantsRequestBuilder descendants()
      Provides operations to call the descendants method.
      Returns:
      a DescendantsRequestBuilder
    • graphBuilding

      @Nonnull public GraphBuildingRequestBuilder graphBuilding()
      Casts the previous resource to building.
      Returns:
      a GraphBuildingRequestBuilder
    • graphDesk

      @Nonnull public GraphDeskRequestBuilder graphDesk()
      Casts the previous resource to desk.
      Returns:
      a GraphDeskRequestBuilder
    • graphFloor

      @Nonnull public GraphFloorRequestBuilder graphFloor()
      Casts the previous resource to floor.
      Returns:
      a GraphFloorRequestBuilder
    • graphRoom

      @Nonnull public GraphRoomRequestBuilder graphRoom()
      Casts the previous resource to room.
      Returns:
      a GraphRoomRequestBuilder
    • graphRoomList

      @Nonnull public GraphRoomListRequestBuilder graphRoomList()
      Casts the previous resource to roomList.
      Returns:
      a GraphRoomListRequestBuilder
    • graphSection

      @Nonnull public GraphSectionRequestBuilder graphSection()
      Casts the previous resource to section.
      Returns:
      a GraphSectionRequestBuilder
    • graphWorkspace

      @Nonnull public GraphWorkspaceRequestBuilder graphWorkspace()
      Casts the previous resource to workspace.
      Returns:
      a GraphWorkspaceRequestBuilder
    • delete

      public void delete()
      Delete a place object. You can also use this method to delete the following child object types: building, floor, section, or desk.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • delete

      public void delete(@Nullable Consumer<PlaceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a place object. You can also use this method to delete the following child object types: building, floor, section, or desk.
      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:
    • patch

      @Nullable public Place patch(@Nonnull Place body)
      Update the properties of place object that can be a building, floor, section, desk, room, workspace, or roomList. You can identify the place by specifying the id property.
      Parameters:
      body - The request body
      Returns:
      a Place
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public Place patch(@Nonnull Place body, @Nullable Consumer<PlaceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the properties of place object that can be a building, floor, section, desk, room, workspace, or roomList. You can identify the place by specifying the id property.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Place
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete a place object. You can also use this method to delete the following child object types: building, floor, section, or desk.
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<PlaceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a place object. You can also use this method to delete the following child object types: building, floor, section, or desk.
      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 Place body)
      Update the properties of place object that can be a building, floor, section, desk, room, workspace, or roomList. You can identify the place by specifying the id property.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Place body, @Nullable Consumer<PlaceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the properties of place object that can be a building, floor, section, desk, room, workspace, or roomList. You can identify the place by specifying the id property.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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