Class ScheduleRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.teams.item.schedule.ScheduleRequestBuilder
@Generated("com.microsoft.kiota")
public class ScheduleRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the schedule property of the microsoft.graph.team entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classRetrieve the properties and relationships of a schedule object.classConfiguration 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
ConstructorsConstructorDescriptionScheduleRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newScheduleRequestBuilderand sets the default values.ScheduleRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newScheduleRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptiondayNotes()Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity.voiddelete()Delete navigation property schedule for teamsvoiddelete(Consumer<ScheduleRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property schedule for teamsget()Retrieve the properties and relationships of a schedule object.get(Consumer<ScheduleRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of a schedule object.Provides operations to manage the offerShiftRequests property of the microsoft.graph.schedule entity.Provides operations to manage the openShiftChangeRequests property of the microsoft.graph.schedule entity.Provides operations to manage the openShifts property of the microsoft.graph.schedule entity.Create or replace a schedule object.put(Schedule body, Consumer<ScheduleRequestBuilder.PutRequestConfiguration> requestConfiguration) Create or replace a schedule object.Provides operations to manage the schedulingGroups property of the microsoft.graph.schedule entity.share()Provides operations to call the share method.shifts()Provides operations to manage the shifts property of the microsoft.graph.schedule entity.Provides operations to manage the swapShiftsChangeRequests property of the microsoft.graph.schedule entity.Provides operations to manage the timeCards property of the microsoft.graph.schedule entity.Provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity.Provides operations to manage the timeOffRequests property of the microsoft.graph.schedule entity.timesOff()Provides operations to manage the timesOff property of the microsoft.graph.schedule entity.com.microsoft.kiota.RequestInformationDelete navigation property schedule for teamscom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<ScheduleRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property schedule for teamscom.microsoft.kiota.RequestInformationRetrieve the properties and relationships of a schedule object.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ScheduleRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of a schedule object.com.microsoft.kiota.RequestInformationCreate or replace a schedule object.com.microsoft.kiota.RequestInformationtoPutRequestInformation(Schedule body, Consumer<ScheduleRequestBuilder.PutRequestConfiguration> requestConfiguration) Create or replace a schedule object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ScheduleRequestBuilder
public ScheduleRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newScheduleRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ScheduleRequestBuilder
public ScheduleRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newScheduleRequestBuilderand 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
-
dayNotes
Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity.- Returns:
- a
DayNotesRequestBuilder
-
offerShiftRequests
Provides operations to manage the offerShiftRequests property of the microsoft.graph.schedule entity.- Returns:
- a
OfferShiftRequestsRequestBuilder
-
openShiftChangeRequests
Provides operations to manage the openShiftChangeRequests property of the microsoft.graph.schedule entity.- Returns:
- a
OpenShiftChangeRequestsRequestBuilder
-
openShifts
Provides operations to manage the openShifts property of the microsoft.graph.schedule entity.- Returns:
- a
OpenShiftsRequestBuilder
-
schedulingGroups
Provides operations to manage the schedulingGroups property of the microsoft.graph.schedule entity.- Returns:
- a
SchedulingGroupsRequestBuilder
-
shifts
Provides operations to manage the shifts property of the microsoft.graph.schedule entity.- Returns:
- a
ShiftsRequestBuilder
-
swapShiftsChangeRequests
Provides operations to manage the swapShiftsChangeRequests property of the microsoft.graph.schedule entity.- Returns:
- a
SwapShiftsChangeRequestsRequestBuilder
-
timeCards
Provides operations to manage the timeCards property of the microsoft.graph.schedule entity.- Returns:
- a
TimeCardsRequestBuilder
-
timeOffReasons
Provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity.- Returns:
- a
TimeOffReasonsRequestBuilder
-
timeOffRequests
Provides operations to manage the timeOffRequests property of the microsoft.graph.schedule entity.- Returns:
- a
TimeOffRequestsRequestBuilder
-
timesOff
Provides operations to manage the timesOff property of the microsoft.graph.schedule entity.- Returns:
- a
TimesOffRequestBuilder
-
delete
public void delete()Delete navigation property schedule for teams- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<ScheduleRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property schedule for teams- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule.- Returns:
- a
Schedule - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public Schedule get(@Nullable Consumer<ScheduleRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Schedule - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
put
Create or replace a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation replaces the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule.- Parameters:
body- The request body- Returns:
- a
Schedule - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
put
@Nullable public Schedule put(@Nonnull Schedule body, @Nullable Consumer<ScheduleRequestBuilder.PutRequestConfiguration> requestConfiguration) Create or replace a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation replaces the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Schedule - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete navigation property schedule for teams- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<ScheduleRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property schedule for teams- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ScheduleRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties and relationships of a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation updates the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPutRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPutRequestInformation(@Nonnull Schedule body) Create or replace a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation replaces the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPutRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPutRequestInformation(@Nonnull Schedule body, @Nullable Consumer<ScheduleRequestBuilder.PutRequestConfiguration> requestConfiguration) Create or replace a schedule object. The schedule creation process conforms to the One API guideline for resource based long running operations (RELO).When clients use the PUT method, if the schedule is provisioned, the operation replaces the schedule; otherwise, the operation starts the schedule provisioning process in the background. During schedule provisioning, clients can use the GET method to get the schedule and look at the provisionStatus property for the current state of the provisioning. If the provisioning failed, clients can get additional information from the provisionStatusCode property. Clients can also inspect the configuration of the schedule.- 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
ScheduleRequestBuilder
-