Class 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
    • Constructor Detail

      • Event

        protected Event()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class OutlookItem
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class OutlookItem
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class OutlookItem
      • getAllowNewTimeProposals

        public Optional<Boolean> getAllowNewTimeProposals()
      • withAllowNewTimeProposals

        public Event withAllowNewTimeProposals​(Boolean allowNewTimeProposals)
      • 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)
      • withBodyPreview

        public Event withBodyPreview​(String bodyPreview)
      • getCancelledOccurrences

        public com.github.davidmoten.odata.client.CollectionPage<String> getCancelledOccurrences()
      • withCancelledOccurrences

        public Event withCancelledOccurrences​(List<String> cancelledOccurrences)
      • getCancelledOccurrences

        public com.github.davidmoten.odata.client.CollectionPage<String> getCancelledOccurrences​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withHasAttachments

        public Event withHasAttachments​(Boolean hasAttachments)
      • withHideAttendees

        public Event withHideAttendees​(Boolean hideAttendees)
      • withIsAllDay

        public Event withIsAllDay​(Boolean isAllDay)
      • withIsCancelled

        public Event withIsCancelled​(Boolean isCancelled)
      • withIsDraft

        public Event withIsDraft​(Boolean isDraft)
      • withIsOnlineMeeting

        public Event withIsOnlineMeeting​(Boolean isOnlineMeeting)
      • withIsOrganizer

        public Event withIsOrganizer​(Boolean isOrganizer)
      • withIsReminderOn

        public Event withIsReminderOn​(Boolean isReminderOn)
      • withLocation

        public Event withLocation​(Location location)
      • 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)
      • withOccurrenceId

        public Event withOccurrenceId​(String occurrenceId)
      • withOnlineMeetingUrl

        public Event withOnlineMeetingUrl​(String onlineMeetingUrl)
      • getOriginalEndTimeZone

        public Optional<String> getOriginalEndTimeZone()
      • withOriginalEndTimeZone

        public Event withOriginalEndTimeZone​(String originalEndTimeZone)
      • getOriginalStartTimeZone

        public Optional<String> getOriginalStartTimeZone()
      • withOriginalStartTimeZone

        public Event withOriginalStartTimeZone​(String originalStartTimeZone)
      • getReminderMinutesBeforeStart

        public Optional<Integer> getReminderMinutesBeforeStart()
      • withReminderMinutesBeforeStart

        public Event withReminderMinutesBeforeStart​(Integer reminderMinutesBeforeStart)
      • withResponseRequested

        public Event withResponseRequested​(Boolean responseRequested)
      • withSeriesMasterId

        public Event withSeriesMasterId​(String seriesMasterId)
      • withSubject

        public Event withSubject​(String subject)
      • withTransactionId

        public Event withTransactionId​(String transactionId)
      • withWebLink

        public Event withWebLink​(String webLink)
      • 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
      • getExceptionOccurrences

        public EventCollectionRequest getExceptionOccurrences()

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.DeleteRestrictions

        Deletable = 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 exceptionOccurrences
      • 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
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class OutlookItem
      • patch

        public Event patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class OutlookItem
        Returns:
        a copy of this with 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 of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class OutlookItem
        Returns:
        a copy of this with 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)