Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Template Source: BaseEntityRequestBuilder.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.requests;
import com.microsoft.graph.http.IRequestBuilder;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.models.Schedule;
import java.util.Arrays;
import java.util.EnumSet;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;
import com.microsoft.graph.core.IBaseClient;
import com.microsoft.graph.http.BaseRequestBuilder;
import com.microsoft.graph.models.ScheduleShareParameterSet;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Schedule Request Builder.
*/
public class ScheduleRequestBuilder extends BaseRequestBuilder {
/**
* The request builder for the Schedule
*
* @param requestUrl the request URL
* @param client the service client
* @param requestOptions the options for this request
*/
public ScheduleRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient> client, @Nullable final java.util.List extends com.microsoft.graph.options.Option> requestOptions) {
super(requestUrl, client, requestOptions);
}
/**
* Creates the request
*
* @param requestOptions the options for this request
* @return the ScheduleRequest instance
*/
@Nonnull
public ScheduleRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) {
return buildRequest(getOptions(requestOptions));
}
/**
* Creates the request with specific requestOptions instead of the existing requestOptions
*
* @param requestOptions the options for this request
* @return the ScheduleRequest instance
*/
@Nonnull
public ScheduleRequest buildRequest(@Nonnull final java.util.List extends com.microsoft.graph.options.Option> requestOptions) {
return new com.microsoft.graph.requests.ScheduleRequest(getRequestUrl(), getClient(), requestOptions);
}
/**
* Gets a request builder for the OfferShiftRequest collection
*
* @return the collection request builder
*/
@Nonnull
public com.microsoft.graph.requests.OfferShiftRequestCollectionRequestBuilder offerShiftRequests() {
return new com.microsoft.graph.requests.OfferShiftRequestCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("offerShiftRequests"), getClient(), null);
}
/**
* Gets a request builder for the OfferShiftRequest item
*
* @return the request builder
* @param id the item identifier
*/
@Nonnull
public com.microsoft.graph.requests.OfferShiftRequestRequestBuilder offerShiftRequests(@Nonnull final String id) {
return new com.microsoft.graph.requests.OfferShiftRequestRequestBuilder(getRequestUrlWithAdditionalSegment("offerShiftRequests") + "/" + id, getClient(), null);
}
/**
* Gets a request builder for the OpenShiftChangeRequest collection
*
* @return the collection request builder
*/
@Nonnull
public com.microsoft.graph.requests.OpenShiftChangeRequestCollectionRequestBuilder openShiftChangeRequests() {
return new com.microsoft.graph.requests.OpenShiftChangeRequestCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("openShiftChangeRequests"), getClient(), null);
}
/**
* Gets a request builder for the OpenShiftChangeRequest item
*
* @return the request builder
* @param id the item identifier
*/
@Nonnull
public com.microsoft.graph.requests.OpenShiftChangeRequestRequestBuilder openShiftChangeRequests(@Nonnull final String id) {
return new com.microsoft.graph.requests.OpenShiftChangeRequestRequestBuilder(getRequestUrlWithAdditionalSegment("openShiftChangeRequests") + "/" + id, getClient(), null);
}
/**
* Gets a request builder for the OpenShift collection
*
* @return the collection request builder
*/
@Nonnull
public com.microsoft.graph.requests.OpenShiftCollectionRequestBuilder openShifts() {
return new com.microsoft.graph.requests.OpenShiftCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("openShifts"), getClient(), null);
}
/**
* Gets a request builder for the OpenShift item
*
* @return the request builder
* @param id the item identifier
*/
@Nonnull
public com.microsoft.graph.requests.OpenShiftRequestBuilder openShifts(@Nonnull final String id) {
return new com.microsoft.graph.requests.OpenShiftRequestBuilder(getRequestUrlWithAdditionalSegment("openShifts") + "/" + id, getClient(), null);
}
/**
* Gets a request builder for the SchedulingGroup collection
*
* @return the collection request builder
*/
@Nonnull
public com.microsoft.graph.requests.SchedulingGroupCollectionRequestBuilder schedulingGroups() {
return new com.microsoft.graph.requests.SchedulingGroupCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("schedulingGroups"), getClient(), null);
}
/**
* Gets a request builder for the SchedulingGroup item
*
* @return the request builder
* @param id the item identifier
*/
@Nonnull
public com.microsoft.graph.requests.SchedulingGroupRequestBuilder schedulingGroups(@Nonnull final String id) {
return new com.microsoft.graph.requests.SchedulingGroupRequestBuilder(getRequestUrlWithAdditionalSegment("schedulingGroups") + "/" + id, getClient(), null);
}
/**
* Gets a request builder for the Shift collection
*
* @return the collection request builder
*/
@Nonnull
public com.microsoft.graph.requests.ShiftCollectionRequestBuilder shifts() {
return new com.microsoft.graph.requests.ShiftCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("shifts"), getClient(), null);
}
/**
* Gets a request builder for the Shift item
*
* @return the request builder
* @param id the item identifier
*/
@Nonnull
public com.microsoft.graph.requests.ShiftRequestBuilder shifts(@Nonnull final String id) {
return new com.microsoft.graph.requests.ShiftRequestBuilder(getRequestUrlWithAdditionalSegment("shifts") + "/" + id, getClient(), null);
}
/**
* Gets a request builder for the SwapShiftsChangeRequest collection
*
* @return the collection request builder
*/
@Nonnull
public com.microsoft.graph.requests.SwapShiftsChangeRequestCollectionRequestBuilder swapShiftsChangeRequests() {
return new com.microsoft.graph.requests.SwapShiftsChangeRequestCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("swapShiftsChangeRequests"), getClient(), null);
}
/**
* Gets a request builder for the SwapShiftsChangeRequest item
*
* @return the request builder
* @param id the item identifier
*/
@Nonnull
public com.microsoft.graph.requests.SwapShiftsChangeRequestRequestBuilder swapShiftsChangeRequests(@Nonnull final String id) {
return new com.microsoft.graph.requests.SwapShiftsChangeRequestRequestBuilder(getRequestUrlWithAdditionalSegment("swapShiftsChangeRequests") + "/" + id, getClient(), null);
}
/**
* Gets a request builder for the TimeOffReason collection
*
* @return the collection request builder
*/
@Nonnull
public com.microsoft.graph.requests.TimeOffReasonCollectionRequestBuilder timeOffReasons() {
return new com.microsoft.graph.requests.TimeOffReasonCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("timeOffReasons"), getClient(), null);
}
/**
* Gets a request builder for the TimeOffReason item
*
* @return the request builder
* @param id the item identifier
*/
@Nonnull
public com.microsoft.graph.requests.TimeOffReasonRequestBuilder timeOffReasons(@Nonnull final String id) {
return new com.microsoft.graph.requests.TimeOffReasonRequestBuilder(getRequestUrlWithAdditionalSegment("timeOffReasons") + "/" + id, getClient(), null);
}
/**
* Gets a request builder for the TimeOffRequest collection
*
* @return the collection request builder
*/
@Nonnull
public com.microsoft.graph.requests.TimeOffRequestCollectionRequestBuilder timeOffRequests() {
return new com.microsoft.graph.requests.TimeOffRequestCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("timeOffRequests"), getClient(), null);
}
/**
* Gets a request builder for the TimeOffRequest item
*
* @return the request builder
* @param id the item identifier
*/
@Nonnull
public com.microsoft.graph.requests.TimeOffRequestRequestBuilder timeOffRequests(@Nonnull final String id) {
return new com.microsoft.graph.requests.TimeOffRequestRequestBuilder(getRequestUrlWithAdditionalSegment("timeOffRequests") + "/" + id, getClient(), null);
}
/**
* Gets a request builder for the TimeOff collection
*
* @return the collection request builder
*/
@Nonnull
public com.microsoft.graph.requests.TimeOffCollectionRequestBuilder timesOff() {
return new com.microsoft.graph.requests.TimeOffCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("timesOff"), getClient(), null);
}
/**
* Gets a request builder for the TimeOff item
*
* @return the request builder
* @param id the item identifier
*/
@Nonnull
public com.microsoft.graph.requests.TimeOffRequestBuilder timesOff(@Nonnull final String id) {
return new com.microsoft.graph.requests.TimeOffRequestBuilder(getRequestUrlWithAdditionalSegment("timesOff") + "/" + id, getClient(), null);
}
/**
* Gets a builder to execute the method
* @return the request builder
* @param parameters the parameters for the service method
*/
@Nonnull
public ScheduleShareRequestBuilder share(@Nonnull final ScheduleShareParameterSet parameters) {
return new ScheduleShareRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.share"), getClient(), null, parameters);
}
}