Class 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.”
    • 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
      • timeSlotsNextLink

        protected String timeSlotsNextLink
    • Constructor Detail

      • BookingWorkHours

        protected BookingWorkHours()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.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 of this with just the day field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of day field (as defined in service metadata)
        Returns:
        immutable copy of this with just the day field 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
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.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