---
schema_version: "1"
id: a35930a1a87773c81499ea2d11f96825ce5631070d4cdb7b15e4d3f0cadbbb4e
title: ServiceResourceSchedule Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_lxscheduler_ServiceResourceSchedule.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceSchedule.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4ce9fe555192e380af26f0d04536dfc08fe97c06eade4af40d354d818dc5f65f
description: Use this class to pass results from your implemented Apex class to the ServiceResourceScheduleHandler interface methods.Creates a new instance of lxscheduler.ServiceResourceSchedule class.Record ID of the service resource.An instance of lxscheduler.UnavailableTimeslot class.
---
# ServiceResourceSchedule Class

Use this class to pass results from your implemented Apex class to the ServiceResourceScheduleHandler interface methods.

## Namespace

[LxScheduler](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_lxscheduler.htm "The LxScheduler namespace provides an interface and classes for integrating Salesforce Scheduler with external calendars.")

- **[ServiceResourceSchedule Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceSchedule.htm#apex_lxscheduler_ServiceResourceSchedule_constructors)**
- **[ServiceResourceSchedule Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceSchedule.htm#apex_lxscheduler_ServiceResourceSchedule_properties)**

## ServiceResourceSchedule Constructors

The following are constructors for ServiceResourceSchedule.

- **[ServiceResourceSchedule(serviceResourceId, unavailableTimeslots)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceSchedule.htm#apex_lxscheduler_ServiceResourceSchedule_ctor)**  
    Creates a new instance of lxscheduler.ServiceResourceSchedule class.

### ServiceResourceSchedule(serviceResourceId, unavailableTimeslots)

Creates a new instance of lxscheduler.ServiceResourceSchedule class.

#### Signature

public ServiceResourceSchedule(String serviceResourceId, Set<lxscheduler.UnavailableTimeslot> unavailableTimeslots)

#### Parameters

- **serviceResourceId**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    Record
    
    ID of the service resource.
- **unavailableTimeslots**:
    
    Type: Set<lxscheduler.UnavailableTimeslot>
    
    An instance of lxscheduler.UnavailableTimeslot class.

## ServiceResourceSchedule Properties

The following are properties for ServiceResourceSchedule.

- **[serviceResourceId](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceSchedule.htm#apex_lxscheduler_ServiceResourceSchedule_serviceResourceId)**  
    Record ID of the service resource.
- **[unavailableTimeslots](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceSchedule.htm#apex_lxscheduler_ServiceResourceSchedule_unavailableTimeslots)**  
    An instance of lxscheduler.UnavailableTimeslot class.

### serviceResourceId

Record ID of the service resource.

#### Signature

public String serviceResourceId {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### unavailableTimeslots

An instance of lxscheduler.UnavailableTimeslot class.

#### Signature

public Set<lxscheduler.UnavailableTimeslot> unavailableTimeslots {get; set;}

#### Property Value

Type: Set<lxscheduler.UnavailableTimeslot>