Package com.microsoft.graph.places.item
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionPlaceItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPlaceItemRequestBuilderand sets the default values.PlaceItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPlaceItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncheckIns()Provides operations to manage the checkIns property of the microsoft.graph.place entity.voiddelete()Delete a place object.voiddelete(Consumer<PlaceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a place object.Provides operations to call the descendants method.Casts the previous resource to building.Casts the previous resource to desk.Casts the previous resource to floor.Casts the previous resource to room.Casts the previous resource to roomList.Casts the previous resource to section.Casts the previous resource to workspace.Update the properties of place object that can be a building, floor, section, desk, room, workspace, or roomList.patch(Place body, Consumer<PlaceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of place object that can be a building, floor, section, desk, room, workspace, or roomList.com.microsoft.kiota.RequestInformationDelete a place object.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<PlaceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a place object.com.microsoft.kiota.RequestInformationUpdate the properties of place object that can be a building, floor, section, desk, room, workspace, or roomList.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(Place body, Consumer<PlaceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of place object that can be a building, floor, section, desk, room, workspace, or roomList.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
PlaceItemRequestBuilder
public PlaceItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPlaceItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
PlaceItemRequestBuilder
public PlaceItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPlaceItemRequestBuilderand 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
Provides operations to manage the checkIns property of the microsoft.graph.place entity.- Returns:
- a
CheckInsRequestBuilder
-
descendants
Provides operations to call the descendants method.- Returns:
- a
DescendantsRequestBuilder
-
graphBuilding
Casts the previous resource to building.- Returns:
- a
GraphBuildingRequestBuilder
-
graphDesk
Casts the previous resource to desk.- Returns:
- a
GraphDeskRequestBuilder
-
graphFloor
Casts the previous resource to floor.- Returns:
- a
GraphFloorRequestBuilder
-
graphRoom
Casts the previous resource to room.- Returns:
- a
GraphRoomRequestBuilder
-
graphRoomList
Casts the previous resource to roomList.- Returns:
- a
GraphRoomListRequestBuilder
-
graphSection
Casts the previous resource to section.- Returns:
- a
GraphSectionRequestBuilder
-
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
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 bodyrequestConfiguration- 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 bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
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
-