All Downloads are FREE. Search and download functionalities are using the official Maven repository.

odata.msgraph.client.entity.collection.request.BookingBusinessCollectionRequest Maven / Gradle / Ivy

package odata.msgraph.client.entity.collection.request;

import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;

import java.lang.Object;
import java.lang.String;
import java.util.Optional;

import odata.msgraph.client.entity.BookingBusiness;
import odata.msgraph.client.entity.request.BookingAppointmentRequest;
import odata.msgraph.client.entity.request.BookingBusinessRequest;
import odata.msgraph.client.entity.request.BookingCustomQuestionRequest;
import odata.msgraph.client.entity.request.BookingCustomerBaseRequest;
import odata.msgraph.client.entity.request.BookingServiceRequest;
import odata.msgraph.client.entity.request.BookingStaffMemberBaseRequest;

public class BookingBusinessCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public BookingBusinessCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, BookingBusiness.class, cp -> new BookingBusinessRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public BookingAppointmentRequest appointments(String id) {
        return new BookingAppointmentRequest(contextPath.addSegment("appointments").addKeys(new NameValue(id.toString())), Optional.empty());
    }

    public BookingAppointmentCollectionRequest appointments() {
        return new BookingAppointmentCollectionRequest(contextPath.addSegment("appointments"), Optional.empty());
    }

    public BookingAppointmentRequest calendarView(String id) {
        return new BookingAppointmentRequest(contextPath.addSegment("calendarView").addKeys(new NameValue(id.toString())), Optional.empty());
    }

    public BookingAppointmentCollectionRequest calendarView() {
        return new BookingAppointmentCollectionRequest(contextPath.addSegment("calendarView"), Optional.empty());
    }

    public BookingCustomerBaseRequest customers(String id) {
        return new BookingCustomerBaseRequest(contextPath.addSegment("customers").addKeys(new NameValue(id.toString())), Optional.empty());
    }

    public BookingCustomerBaseCollectionRequest customers() {
        return new BookingCustomerBaseCollectionRequest(contextPath.addSegment("customers"), Optional.empty());
    }

    public BookingCustomQuestionRequest customQuestions(String id) {
        return new BookingCustomQuestionRequest(contextPath.addSegment("customQuestions").addKeys(new NameValue(id.toString())), Optional.empty());
    }

    public BookingCustomQuestionCollectionRequest customQuestions() {
        return new BookingCustomQuestionCollectionRequest(contextPath.addSegment("customQuestions"), Optional.empty());
    }

    public BookingServiceRequest services(String id) {
        return new BookingServiceRequest(contextPath.addSegment("services").addKeys(new NameValue(id.toString())), Optional.empty());
    }

    public BookingServiceCollectionRequest services() {
        return new BookingServiceCollectionRequest(contextPath.addSegment("services"), Optional.empty());
    }

    public BookingStaffMemberBaseRequest staffMembers(String id) {
        return new BookingStaffMemberBaseRequest(contextPath.addSegment("staffMembers").addKeys(new NameValue(id.toString())), Optional.empty());
    }

    public BookingStaffMemberBaseCollectionRequest staffMembers() {
        return new BookingStaffMemberBaseCollectionRequest(contextPath.addSegment("staffMembers"), Optional.empty());
    }

}