com.microsoft.graph.generated.places.PlacesRequestBuilder Maven / Gradle / Ivy
package com.microsoft.graph.places;
import com.microsoft.graph.places.count.CountRequestBuilder;
import com.microsoft.graph.places.graphroom.GraphRoomRequestBuilder;
import com.microsoft.graph.places.graphroomlist.GraphRoomListRequestBuilder;
import com.microsoft.graph.places.item.PlaceItemRequestBuilder;
import com.microsoft.kiota.BaseRequestBuilder;
import com.microsoft.kiota.RequestAdapter;
import java.util.HashMap;
import java.util.Objects;
/**
* Builds and executes requests for operations under /places
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class PlacesRequestBuilder extends BaseRequestBuilder {
/**
* Provides operations to count the resources in the collection.
* @return a {@link CountRequestBuilder}
*/
@jakarta.annotation.Nonnull
public CountRequestBuilder count() {
return new CountRequestBuilder(pathParameters, requestAdapter);
}
/**
* Casts the previous resource to room.
* @return a {@link GraphRoomRequestBuilder}
*/
@jakarta.annotation.Nonnull
public GraphRoomRequestBuilder graphRoom() {
return new GraphRoomRequestBuilder(pathParameters, requestAdapter);
}
/**
* Casts the previous resource to roomList.
* @return a {@link GraphRoomListRequestBuilder}
*/
@jakarta.annotation.Nonnull
public GraphRoomListRequestBuilder graphRoomList() {
return new GraphRoomListRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the collection of place entities.
* @param placeId The unique identifier of place
* @return a {@link PlaceItemRequestBuilder}
*/
@jakarta.annotation.Nonnull
public PlaceItemRequestBuilder byPlaceId(@jakarta.annotation.Nonnull final String placeId) {
Objects.requireNonNull(placeId);
final HashMap urlTplParams = new HashMap(this.pathParameters);
urlTplParams.put("place%2Did", placeId);
return new PlaceItemRequestBuilder(urlTplParams, requestAdapter);
}
/**
* Instantiates a new {@link PlacesRequestBuilder} and sets the default values.
* @param pathParameters Path parameters for the request
* @param requestAdapter The request adapter to use to execute the requests.
*/
public PlacesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/places", pathParameters);
}
/**
* Instantiates a new {@link PlacesRequestBuilder} and sets the default values.
* @param rawUrl The raw URL to use for the request builder.
* @param requestAdapter The request adapter to use to execute the requests.
*/
public PlacesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/places", rawUrl);
}
}