Class AppointmentSlot


  • public class AppointmentSlot
    extends java.lang.Object
    A time window along with associated capacity in which the service can be performed.
    • Constructor Detail

      • AppointmentSlot

        public AppointmentSlot()
    • Method Detail

      • startTime

        public AppointmentSlot startTime​(org.threeten.bp.OffsetDateTime startTime)
      • getStartTime

        public org.threeten.bp.OffsetDateTime getStartTime()
        Time window start time in ISO 8601 format.
        Returns:
        startTime
      • setStartTime

        public void setStartTime​(org.threeten.bp.OffsetDateTime startTime)
      • endTime

        public AppointmentSlot endTime​(org.threeten.bp.OffsetDateTime endTime)
      • getEndTime

        public org.threeten.bp.OffsetDateTime getEndTime()
        Time window end time in ISO 8601 format.
        Returns:
        endTime
      • setEndTime

        public void setEndTime​(org.threeten.bp.OffsetDateTime endTime)
      • capacity

        public AppointmentSlot capacity​(java.lang.Integer capacity)
      • getCapacity

        public java.lang.Integer getCapacity()
        Number of resources for which a slot can be reserved. minimum: 0
        Returns:
        capacity
      • setCapacity

        public void setCapacity​(java.lang.Integer capacity)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object