Package odata.msgraph.client.complex
Class BookingWorkHours
- java.lang.Object
-
- odata.msgraph.client.complex.BookingWorkHours
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class BookingWorkHours extends Object implements com.github.davidmoten.odata.client.ODataType
“This type represents the set of working hours in a single day of the week.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBookingWorkHours.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected DayOfWeekdayprotected StringodataTypeprotected List<BookingWorkTimeSlot>timeSlotsprotected StringtimeSlotsNextLinkprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedBookingWorkHours()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BookingWorkHours.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<DayOfWeek>getDay()“The day of the week represented by this instance.”com.github.davidmoten.odata.client.CollectionPage<BookingWorkTimeSlot>getTimeSlots()“A list of start/end times during a day.”com.github.davidmoten.odata.client.CollectionPage<BookingWorkTimeSlot>getTimeSlots(com.github.davidmoten.odata.client.HttpRequestOptions options)“A list of start/end times during a day.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()BookingWorkHourswithDay(DayOfWeek day)Returns an immutable copy ofthiswith just thedayfield changed.BookingWorkHourswithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
day
protected DayOfWeek day
-
timeSlots
protected List<BookingWorkTimeSlot> timeSlots
-
timeSlotsNextLink
protected String timeSlotsNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getDay
public Optional<DayOfWeek> getDay()
“The day of the week represented by this instance.”- Returns:
- property day
-
withDay
public BookingWorkHours withDay(DayOfWeek day)
Returns an immutable copy ofthiswith just thedayfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The day of the week represented by this instance.”
- Parameters:
day- new value ofdayfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedayfield changed
-
getTimeSlots
public com.github.davidmoten.odata.client.CollectionPage<BookingWorkTimeSlot> getTimeSlots()
“A list of start/end times during a day.”- Returns:
- property timeSlots
-
getTimeSlots
public com.github.davidmoten.odata.client.CollectionPage<BookingWorkTimeSlot> getTimeSlots(com.github.davidmoten.odata.client.HttpRequestOptions options)
“A list of start/end times during a day.”- Parameters:
options- specify connect and read timeouts- Returns:
- property timeSlots
-
withUnmappedField
public BookingWorkHours withUnmappedField(String name, Object value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static BookingWorkHours.Builder builder()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
-