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.
  • Constructor Details

    • ScheduleRequestBuilder

      public ScheduleRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new ScheduleRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • ScheduleRequestBuilder

      public ScheduleRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new ScheduleRequestBuilder and 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

      @Nonnull public DayNotesRequestBuilder dayNotes()
      Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity.
      Returns:
      a DayNotesRequestBuilder
    • offerShiftRequests

      @Nonnull public OfferShiftRequestsRequestBuilder offerShiftRequests()
      Provides operations to manage the offerShiftRequests property of the microsoft.graph.schedule entity.
      Returns:
      a OfferShiftRequestsRequestBuilder
    • openShiftChangeRequests

      @Nonnull public OpenShiftChangeRequestsRequestBuilder openShiftChangeRequests()
      Provides operations to manage the openShiftChangeRequests property of the microsoft.graph.schedule entity.
      Returns:
      a OpenShiftChangeRequestsRequestBuilder
    • openShifts

      @Nonnull public OpenShiftsRequestBuilder openShifts()
      Provides operations to manage the openShifts property of the microsoft.graph.schedule entity.
      Returns:
      a OpenShiftsRequestBuilder
    • schedulingGroups

      @Nonnull public SchedulingGroupsRequestBuilder schedulingGroups()
      Provides operations to manage the schedulingGroups property of the microsoft.graph.schedule entity.
      Returns:
      a SchedulingGroupsRequestBuilder
    • share

      @Nonnull public ShareRequestBuilder share()
      Provides operations to call the share method.
      Returns:
      a ShareRequestBuilder
    • shifts

      @Nonnull public ShiftsRequestBuilder shifts()
      Provides operations to manage the shifts property of the microsoft.graph.schedule entity.
      Returns:
      a ShiftsRequestBuilder
    • swapShiftsChangeRequests

      @Nonnull public SwapShiftsChangeRequestsRequestBuilder swapShiftsChangeRequests()
      Provides operations to manage the swapShiftsChangeRequests property of the microsoft.graph.schedule entity.
      Returns:
      a SwapShiftsChangeRequestsRequestBuilder
    • timeCards

      @Nonnull public TimeCardsRequestBuilder timeCards()
      Provides operations to manage the timeCards property of the microsoft.graph.schedule entity.
      Returns:
      a TimeCardsRequestBuilder
    • timeOffReasons

      @Nonnull public TimeOffReasonsRequestBuilder timeOffReasons()
      Provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity.
      Returns:
      a TimeOffReasonsRequestBuilder
    • timeOffRequests

      @Nonnull public TimeOffRequestsRequestBuilder timeOffRequests()
      Provides operations to manage the timeOffRequests property of the microsoft.graph.schedule entity.
      Returns:
      a TimeOffRequestsRequestBuilder
    • timesOff

      @Nonnull public TimesOffRequestBuilder 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

      @Nullable public Schedule 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

      @Nullable public Schedule put(@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 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 body
      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:
    • 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 body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public ScheduleRequestBuilder withUrl(@Nonnull String rawUrl)
      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