Class Event
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.OutlookItem
-
- odata.msgraph.client.entity.Event
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Event extends OutlookItem implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEvent.Builder
-
Field Summary
-
Fields inherited from class odata.msgraph.client.entity.OutlookItem
categories, categoriesNextLink, changeKey, createdDateTime, lastModifiedDateTime
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEvent()
-
Method Summary
-
Methods inherited from class odata.msgraph.client.entity.OutlookItem
getCategories, getCategories, getChangeKey, getCreatedDateTime, getLastModifiedDateTime, withCategories, withChangeKey, withCreatedDateTime, withLastModifiedDateTime
-
-
-
-
Field Detail
-
allowNewTimeProposals
protected Boolean allowNewTimeProposals
-
attendeesNextLink
protected String attendeesNextLink
-
body
protected ItemBody body
-
bodyPreview
protected String bodyPreview
-
end
protected DateTimeTimeZone end
-
hasAttachments
protected Boolean hasAttachments
-
hideAttendees
protected Boolean hideAttendees
-
iCalUId
protected String iCalUId
-
importance
protected Importance importance
-
isAllDay
protected Boolean isAllDay
-
isCancelled
protected Boolean isCancelled
-
isDraft
protected Boolean isDraft
-
isOnlineMeeting
protected Boolean isOnlineMeeting
-
isOrganizer
protected Boolean isOrganizer
-
isReminderOn
protected Boolean isReminderOn
-
location
protected Location location
-
locationsNextLink
protected String locationsNextLink
-
onlineMeeting
protected OnlineMeetingInfo onlineMeeting
-
onlineMeetingProvider
protected OnlineMeetingProviderType onlineMeetingProvider
-
onlineMeetingUrl
protected String onlineMeetingUrl
-
organizer
protected Recipient organizer
-
originalEndTimeZone
protected String originalEndTimeZone
-
originalStart
protected OffsetDateTime originalStart
-
originalStartTimeZone
protected String originalStartTimeZone
-
recurrence
protected PatternedRecurrence recurrence
-
reminderMinutesBeforeStart
protected Integer reminderMinutesBeforeStart
-
responseRequested
protected Boolean responseRequested
-
responseStatus
protected ResponseStatus responseStatus
-
sensitivity
protected Sensitivity sensitivity
-
seriesMasterId
protected String seriesMasterId
-
showAs
protected FreeBusyStatus showAs
-
start
protected DateTimeTimeZone start
-
subject
protected String subject
-
transactionId
protected String transactionId
-
type
protected EventType type
-
webLink
protected String webLink
-
attachments
protected List<Attachment> attachments
-
calendar
protected Calendar calendar
-
multiValueExtendedProperties
protected List<MultiValueLegacyExtendedProperty> multiValueExtendedProperties
-
singleValueExtendedProperties
protected List<SingleValueLegacyExtendedProperty> singleValueExtendedProperties
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classOutlookItem
-
builderEvent
public static Event.Builder builderEvent()
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
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classOutlookItem
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classOutlookItem
-
getAttendees
public com.github.davidmoten.odata.client.CollectionPage<Attendee> getAttendees()
-
getAttendees
public com.github.davidmoten.odata.client.CollectionPage<Attendee> getAttendees(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getEnd
public Optional<DateTimeTimeZone> getEnd()
-
withEnd
public Event withEnd(DateTimeTimeZone end)
-
getImportance
public Optional<Importance> getImportance()
-
withImportance
public Event withImportance(Importance importance)
-
getLocations
public com.github.davidmoten.odata.client.CollectionPage<Location> getLocations()
-
getLocations
public com.github.davidmoten.odata.client.CollectionPage<Location> getLocations(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getOnlineMeeting
public Optional<OnlineMeetingInfo> getOnlineMeeting()
-
withOnlineMeeting
public Event withOnlineMeeting(OnlineMeetingInfo onlineMeeting)
-
getOnlineMeetingProvider
public Optional<OnlineMeetingProviderType> getOnlineMeetingProvider()
-
withOnlineMeetingProvider
public Event withOnlineMeetingProvider(OnlineMeetingProviderType onlineMeetingProvider)
-
getOriginalStart
public Optional<OffsetDateTime> getOriginalStart()
-
withOriginalStart
public Event withOriginalStart(OffsetDateTime originalStart)
-
getRecurrence
public Optional<PatternedRecurrence> getRecurrence()
-
withRecurrence
public Event withRecurrence(PatternedRecurrence recurrence)
-
withReminderMinutesBeforeStart
public Event withReminderMinutesBeforeStart(Integer reminderMinutesBeforeStart)
-
getResponseStatus
public Optional<ResponseStatus> getResponseStatus()
-
withResponseStatus
public Event withResponseStatus(ResponseStatus responseStatus)
-
getSensitivity
public Optional<Sensitivity> getSensitivity()
-
withSensitivity
public Event withSensitivity(Sensitivity sensitivity)
-
getShowAs
public Optional<FreeBusyStatus> getShowAs()
-
withShowAs
public Event withShowAs(FreeBusyStatus showAs)
-
getStart
public Optional<DateTimeTimeZone> getStart()
-
withStart
public Event withStart(DateTimeTimeZone start)
-
withUnmappedField
public Event withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classOutlookItem
-
getAttachments
public AttachmentCollectionRequest getAttachments()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Returns:
- navigational property attachments
-
getCalendar
public CalendarRequest getCalendar()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = false
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.NavigationRestrictions
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Returns:
- navigational property calendar
-
getExtensions
public ExtensionCollectionRequest getExtensions()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Returns:
- navigational property extensions
-
getInstances
public EventCollectionRequest getInstances()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = false
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.NavigationRestrictions
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Returns:
- navigational property instances
-
getMultiValueExtendedProperties
public MultiValueLegacyExtendedPropertyCollectionRequest getMultiValueExtendedProperties()
-
getSingleValueExtendedProperties
public SingleValueLegacyExtendedPropertyCollectionRequest getSingleValueExtendedProperties()
-
withAttachments
public Event withAttachments(List<Attachment> attachments)
Returns an immutable copy ofthiswith just theattachmentsfield 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.Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Parameters:
attachments- new value ofattachmentsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theattachmentsfield changed
-
withCalendar
public Event withCalendar(Calendar calendar)
Returns an immutable copy ofthiswith just thecalendarfield 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.Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = false
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.NavigationRestrictions
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Parameters:
calendar- new value ofcalendarfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecalendarfield changed
-
withExtensions
public Event withExtensions(List<Extension> extensions)
Returns an immutable copy ofthiswith just theextensionsfield 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.Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Parameters:
extensions- new value ofextensionsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theextensionsfield changed
-
withInstances
public Event withInstances(List<Event> instances)
Returns an immutable copy ofthiswith just theinstancesfield 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.Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = false
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.NavigationRestrictions
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = false
- Parameters:
instances- new value ofinstancesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinstancesfield changed
-
withMultiValueExtendedProperties
public Event withMultiValueExtendedProperties(List<MultiValueLegacyExtendedProperty> multiValueExtendedProperties)
-
withSingleValueExtendedProperties
public Event withSingleValueExtendedProperties(List<SingleValueLegacyExtendedProperty> singleValueExtendedProperties)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classOutlookItem
-
patch
public Event patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classOutlookItem- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public Event put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classOutlookItem- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
cancel
public com.github.davidmoten.odata.client.ActionRequestNoReturn cancel(String comment)
-
accept
public com.github.davidmoten.odata.client.ActionRequestNoReturn accept(Boolean sendResponse, String comment)
-
decline
public com.github.davidmoten.odata.client.ActionRequestNoReturn decline(TimeSlot proposedNewTime, Boolean sendResponse, String comment)
-
dismissReminder
public com.github.davidmoten.odata.client.ActionRequestNoReturn dismissReminder()
-
forward
public com.github.davidmoten.odata.client.ActionRequestNoReturn forward(List<Recipient> toRecipients, String comment)
-
snoozeReminder
public com.github.davidmoten.odata.client.ActionRequestNoReturn snoozeReminder(DateTimeTimeZone newReminderTime)
-
tentativelyAccept
public com.github.davidmoten.odata.client.ActionRequestNoReturn tentativelyAccept(TimeSlot proposedNewTime, Boolean sendResponse, String comment)
-
toString
public String toString()
- Overrides:
toStringin classOutlookItem
-
-