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)
      • withHasAttachments

        public Event withHasAttachments​(Boolean hasAttachments)
      • withHideAttendees

        public Event withHideAttendees​(Boolean hideAttendees)
      • withICalUId

        public Event withICalUId​(String iCalUId)
      • 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)
      • 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
      • 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
      • withAttachments

        public Event withAttachments​(List<Attachment> attachments)
        Returns an immutable copy of this with just the attachments 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.

        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 of attachments field (as defined in service metadata)
        Returns:
        immutable copy of this with just the attachments field changed
      • withCalendar

        public Event withCalendar​(Calendar calendar)
        Returns an immutable copy of this with just the calendar 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.

        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 of calendar field (as defined in service metadata)
        Returns:
        immutable copy of this with just the calendar field changed
      • withExtensions

        public Event withExtensions​(List<Extension> extensions)
        Returns an immutable copy of this with just the extensions 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.

        Org.OData.Capabilities.V1.ChangeTracking

        Supported = false

        Org.OData.Capabilities.V1.SearchRestrictions

        Searchable = false

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

        public Event withInstances​(List<Event> instances)
        Returns an immutable copy of this with just the instances 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.

        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 of instances field (as defined in service metadata)
        Returns:
        immutable copy of this with just the instances field changed
      • 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)