Package odata.msgraph.client.complex
Class BookingReminder
- java.lang.Object
-
- odata.msgraph.client.complex.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBookingReminder.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Stringmessageprotected StringodataTypeprotected Durationoffsetprotected BookingReminderRecipientsrecipientsprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedBookingReminder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BookingReminder.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getMessage()“Message to send.”Optional<Duration>getOffset()“How much time before an appointment the reminder should be sent.”Optional<BookingReminderRecipients>getRecipients()“Who should receive the reminder.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()BookingReminderwithMessage(String message)Returns an immutable copy ofthiswith just themessagefield changed.BookingReminderwithOffset(Duration offset)Returns an immutable copy ofthiswith just theoffsetfield changed.BookingReminderwithRecipients(BookingReminderRecipients recipients)Returns an immutable copy ofthiswith just therecipientsfield changed.BookingReminderwithUnmappedField(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
-
message
protected String message
-
offset
protected Duration offset
-
recipients
protected BookingReminderRecipients recipients
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
withMessage
public BookingReminder withMessage(String message)
Returns an immutable copy ofthiswith just themessagefield 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.“Message to send.”
- Parameters:
message- new value ofmessagefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themessagefield 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 ofthiswith just theoffsetfield 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.“How much time before an appointment the reminder should be sent.”
- Parameters:
offset- new value ofoffsetfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theoffsetfield changed
-
getRecipients
public Optional<BookingReminderRecipients> getRecipients()
“Who should receive the reminder.”- Returns:
- property recipients
-
withRecipients
public BookingReminder withRecipients(BookingReminderRecipients recipients)
Returns an immutable copy ofthiswith just therecipientsfield 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.“Who should receive the reminder.”
- Parameters:
recipients- new value ofrecipientsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therecipientsfield changed
-
withUnmappedField
public BookingReminder 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 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
-
-