Class BookingReminder

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class BookingReminder
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “This type represents when and to whom to send an e-mail reminder.”
    • 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
      • message

        protected String message
    • Constructor Detail

      • BookingReminder

        protected BookingReminder()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getMessage

        public Optional<String> getMessage()
        “Message to send.”
        Returns:
        property message
      • withMessage

        public BookingReminder withMessage​(String message)
        Returns an immutable copy of this with just the message 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.

        “Message to send.”

        Parameters:
        message - new value of message field (as defined in service metadata)
        Returns:
        immutable copy of this with just the message field changed
      • getOffset

        public Optional<Duration> getOffset()
        “How much time before an appointment the reminder should be sent.”
        Returns:
        property offset
      • withOffset

        public BookingReminder withOffset​(Duration offset)
        Returns an immutable copy of this with just the offset 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.

        “How much time before an appointment the reminder should be sent.”

        Parameters:
        offset - new value of offset field (as defined in service metadata)
        Returns:
        immutable copy of this with just the offset field changed
      • withRecipients

        public BookingReminder withRecipients​(BookingReminderRecipients recipients)
        Returns an immutable copy of this with just the recipients 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.

        “Who should receive the reminder.”

        Parameters:
        recipients - new value of recipients field (as defined in service metadata)
        Returns:
        immutable copy of this with just the recipients field changed
      • 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 BookingReminder.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