Package com.microsoft.graph.models
Class Event
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.OutlookItem
com.microsoft.graph.models.Event
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Event
extends OutlookItem
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EventcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the allowNewTimeProposals property value.Gets the attachments property value.Gets the attendees property value.getBody()Gets the body property value.Gets the bodyPreview property value.Gets the calendar property value.getEnd()Gets the end property value.Gets the extensions property value.The deserialization information for the current modelGets the hasAttachments property value.Gets the hideAttendees property value.Gets the iCalUId property value.Gets the importance property value.Gets the instances property value.Gets the isAllDay property value.Gets the isCancelled property value.Gets the isDraft property value.Gets the isOnlineMeeting property value.Gets the isOrganizer property value.Gets the isReminderOn property value.Gets the location property value.Gets the locations property value.Gets the multiValueExtendedProperties property value.Gets the onlineMeeting property value.Gets the onlineMeetingProvider property value.Gets the onlineMeetingUrl property value.Gets the organizer property value.Gets the originalEndTimeZone property value.Gets the originalStart property value.Gets the originalStartTimeZone property value.Gets the recurrence property value.Gets the reminderMinutesBeforeStart property value.Gets the responseRequested property value.Gets the responseStatus property value.Gets the sensitivity property value.Gets the seriesMasterId property value.Gets the showAs property value.Gets the singleValueExtendedProperties property value.getStart()Gets the start property value.Gets the subject property value.Gets the transactionId property value.getType()Gets the type property value.Gets the webLink property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAllowNewTimeProposals(Boolean value) Sets the allowNewTimeProposals property value.voidsetAttachments(List<Attachment> value) Sets the attachments property value.voidsetAttendees(List<Attendee> value) Sets the attendees property value.voidSets the body property value.voidsetBodyPreview(String value) Sets the bodyPreview property value.voidsetCalendar(Calendar value) Sets the calendar property value.voidsetEnd(DateTimeTimeZone value) Sets the end property value.voidsetExtensions(List<Extension> value) Sets the extensions property value.voidsetHasAttachments(Boolean value) Sets the hasAttachments property value.voidsetHideAttendees(Boolean value) Sets the hideAttendees property value.voidsetICalUId(String value) Sets the iCalUId property value.voidsetImportance(Importance value) Sets the importance property value.voidsetInstances(List<Event> value) Sets the instances property value.voidsetIsAllDay(Boolean value) Sets the isAllDay property value.voidsetIsCancelled(Boolean value) Sets the isCancelled property value.voidsetIsDraft(Boolean value) Sets the isDraft property value.voidsetIsOnlineMeeting(Boolean value) Sets the isOnlineMeeting property value.voidsetIsOrganizer(Boolean value) Sets the isOrganizer property value.voidsetIsReminderOn(Boolean value) Sets the isReminderOn property value.voidsetLocation(Location value) Sets the location property value.voidsetLocations(List<Location> value) Sets the locations property value.voidSets the multiValueExtendedProperties property value.voidSets the onlineMeeting property value.voidSets the onlineMeetingProvider property value.voidsetOnlineMeetingUrl(String value) Sets the onlineMeetingUrl property value.voidsetOrganizer(Recipient value) Sets the organizer property value.voidsetOriginalEndTimeZone(String value) Sets the originalEndTimeZone property value.voidsetOriginalStart(OffsetDateTime value) Sets the originalStart property value.voidsetOriginalStartTimeZone(String value) Sets the originalStartTimeZone property value.voidsetRecurrence(PatternedRecurrence value) Sets the recurrence property value.voidSets the reminderMinutesBeforeStart property value.voidsetResponseRequested(Boolean value) Sets the responseRequested property value.voidsetResponseStatus(ResponseStatus value) Sets the responseStatus property value.voidsetSensitivity(Sensitivity value) Sets the sensitivity property value.voidsetSeriesMasterId(String value) Sets the seriesMasterId property value.voidsetShowAs(FreeBusyStatus value) Sets the showAs property value.voidSets the singleValueExtendedProperties property value.voidsetStart(DateTimeTimeZone value) Sets the start property value.voidsetSubject(String value) Sets the subject property value.voidsetTransactionId(String value) Sets the transactionId property value.voidSets the type property value.voidsetWebLink(String value) Sets the webLink property value.Methods inherited from class com.microsoft.graph.models.OutlookItem
getCategories, getChangeKey, getCreatedDateTime, getLastModifiedDateTime, setCategories, setChangeKey, setCreatedDateTime, setLastModifiedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Event
public Event()Instantiates a newEventand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Event createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
Event
-
getAllowNewTimeProposals
Gets the allowNewTimeProposals property value. true if the meeting organizer allows invitees to propose a new time when responding; otherwise, false. Optional. The default is true.- Returns:
- a
Boolean
-
getAttachments
Gets the attachments property value. The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable.- Returns:
- a
List<Attachment>
-
getAttendees
Gets the attendees property value. The collection of attendees for the event. -
getBody
Gets the body property value. The body of the message associated with the event. It can be in HTML or text format.- Returns:
- a
ItemBody
-
getBodyPreview
Gets the bodyPreview property value. The preview of the message associated with the event. It's in text format.- Returns:
- a
String
-
getCalendar
Gets the calendar property value. The calendar that contains the event. Navigation property. Read-only.- Returns:
- a
Calendar
-
getEnd
Gets the end property value. The date, time, and time zone that the event ends. By default, the end time is in UTC.- Returns:
- a
DateTimeTimeZone
-
getExtensions
Gets the extensions property value. The collection of open extensions defined for the event. Nullable. -
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classOutlookItem- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getHasAttachments
Gets the hasAttachments property value. Set to true if the event has attachments.- Returns:
- a
Boolean
-
getHideAttendees
Gets the hideAttendees property value. When set to true, each attendee only sees themselves in the meeting request and meeting Tracking list. The default is false.- Returns:
- a
Boolean
-
getICalUId
Gets the iCalUId property value. A unique identifier for an event across calendars. This ID is different for each occurrence in a recurring series. Read-only.- Returns:
- a
String
-
getImportance
Gets the importance property value. The importance of the event. The possible values are: low, normal, high.- Returns:
- a
Importance
-
getInstances
Gets the instances property value. The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. -
getIsAllDay
Gets the isAllDay property value. Set to true if the event lasts all day. If true, regardless of whether it's a single-day or multi-day event, start, and endtime must be set to midnight and be in the same time zone.- Returns:
- a
Boolean
-
getIsCancelled
Gets the isCancelled property value. Set to true if the event has been canceled.- Returns:
- a
Boolean
-
getIsDraft
Gets the isDraft property value. Set to true if the user has updated the meeting in Outlook but hasn't sent the updates to attendees. Set to false if all changes are sent, or if the event is an appointment without any attendees.- Returns:
- a
Boolean
-
getIsOnlineMeeting
Gets the isOnlineMeeting property value. True if this event has online meeting information (that is, onlineMeeting points to an onlineMeetingInfo resource), false otherwise. Default is false (onlineMeeting is null). Optional. After you set isOnlineMeeting to true, Microsoft Graph initializes onlineMeeting. Subsequently, Outlook ignores any further changes to isOnlineMeeting, and the meeting remains available online.- Returns:
- a
Boolean
-
getIsOrganizer
Gets the isOrganizer property value. Set to true if the calendar owner (specified by the owner property of the calendar) is the organizer of the event (specified by the organizer property of the event). It also applies if a delegate organized the event on behalf of the owner.- Returns:
- a
Boolean
-
getIsReminderOn
Gets the isReminderOn property value. Set to true if an alert is set to remind the user of the event.- Returns:
- a
Boolean
-
getLocation
Gets the location property value. The location of the event.- Returns:
- a
Location
-
getLocations
Gets the locations property value. The locations where the event is held or attended from. The location and locations properties always correspond with each other. If you update the location property, any prior locations in the locations collection are removed and replaced by the new location value. -
getMultiValueExtendedProperties
Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the event. Read-only. Nullable.- Returns:
- a
List<MultiValueLegacyExtendedProperty>
-
getOnlineMeeting
Gets the onlineMeeting property value. Details for an attendee to join the meeting online. The default is null. Read-only. After you set the isOnlineMeeting and onlineMeetingProvider properties to enable a meeting online, Microsoft Graph initializes onlineMeeting. When set, the meeting remains available online, and you can't change the isOnlineMeeting, onlineMeetingProvider, and onlneMeeting properties again.- Returns:
- a
OnlineMeetingInfo
-
getOnlineMeetingProvider
Gets the onlineMeetingProvider property value. Represents the online meeting service provider. By default, onlineMeetingProvider is unknown. The possible values are unknown, teamsForBusiness, skypeForBusiness, and skypeForConsumer. Optional. After you set onlineMeetingProvider, Microsoft Graph initializes onlineMeeting. Subsequently, you can't change onlineMeetingProvider again, and the meeting remains available online.- Returns:
- a
OnlineMeetingProviderType
-
getOnlineMeetingUrl
Gets the onlineMeetingUrl property value. A URL for an online meeting. The property is set only when an organizer specifies in Outlook that an event is an online meeting such as Skype. Read-only.To access the URL to join an online meeting, use joinUrl which is exposed via the onlineMeeting property of the event. The onlineMeetingUrl property will be deprecated in the future.- Returns:
- a
String
-
getOrganizer
Gets the organizer property value. The organizer of the event.- Returns:
- a
Recipient
-
getOriginalEndTimeZone
Gets the originalEndTimeZone property value. The end time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook.- Returns:
- a
String
-
getOriginalStart
Gets the originalStart property value. Represents the start time of an event when it's initially created as an occurrence or exception in a recurring series. This property is not returned for events that are single instances. Its date and time information is expressed in ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getOriginalStartTimeZone
Gets the originalStartTimeZone property value. The start time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook.- Returns:
- a
String
-
getRecurrence
Gets the recurrence property value. The recurrence pattern for the event.- Returns:
- a
PatternedRecurrence
-
getReminderMinutesBeforeStart
Gets the reminderMinutesBeforeStart property value. The number of minutes before the event start time that the reminder alert occurs.- Returns:
- a
Integer
-
getResponseRequested
Gets the responseRequested property value. Default is true, which represents the organizer would like an invitee to send a response to the event.- Returns:
- a
Boolean
-
getResponseStatus
Gets the responseStatus property value. Indicates the type of response sent in response to an event message.- Returns:
- a
ResponseStatus
-
getSensitivity
Gets the sensitivity property value. Possible values are: normal, personal, private, and confidential.- Returns:
- a
Sensitivity
-
getSeriesMasterId
Gets the seriesMasterId property value. The ID for the recurring series master item, if this event is part of a recurring series.- Returns:
- a
String
-
getShowAs
Gets the showAs property value. The status to show. Possible values are: free, tentative, busy, oof, workingElsewhere, unknown.- Returns:
- a
FreeBusyStatus
-
getSingleValueExtendedProperties
Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the event. Read-only. Nullable.- Returns:
- a
List<SingleValueLegacyExtendedProperty>
-
getStart
Gets the start property value. The start date, time, and time zone of the event. By default, the start time is in UTC.- Returns:
- a
DateTimeTimeZone
-
getSubject
Gets the subject property value. The text of the event's subject line.- Returns:
- a
String
-
getTransactionId
Gets the transactionId property value. A custom identifier specified by a client app for the server to avoid redundant POST operations in case of client retries to create the same event. It's useful when low network connectivity causes the client to time out before receiving a response from the server for the client's prior create-event request. After you set transactionId when creating an event, you can't change transactionId in a subsequent update. This property is only returned in a response payload if an app has set it. Optional.- Returns:
- a
String
-
getType
Gets the type property value. The event type. Possible values are: singleInstance, occurrence, exception, seriesMaster. Read-only- Returns:
- a
EventType
-
getWebLink
Gets the webLink property value. The URL to open the event in Outlook on the web.Outlook on the web opens the event in the browser if you are signed in to your mailbox. Otherwise, Outlook on the web prompts you to sign in.This URL can't be accessed from within an iFrame.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classOutlookItem- Parameters:
writer- Serialization writer to use to serialize this model
-
setAllowNewTimeProposals
Sets the allowNewTimeProposals property value. true if the meeting organizer allows invitees to propose a new time when responding; otherwise, false. Optional. The default is true.- Parameters:
value- Value to set for the allowNewTimeProposals property.
-
setAttachments
Sets the attachments property value. The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable.- Parameters:
value- Value to set for the attachments property.
-
setAttendees
Sets the attendees property value. The collection of attendees for the event.- Parameters:
value- Value to set for the attendees property.
-
setBody
Sets the body property value. The body of the message associated with the event. It can be in HTML or text format.- Parameters:
value- Value to set for the body property.
-
setBodyPreview
Sets the bodyPreview property value. The preview of the message associated with the event. It's in text format.- Parameters:
value- Value to set for the bodyPreview property.
-
setCalendar
Sets the calendar property value. The calendar that contains the event. Navigation property. Read-only.- Parameters:
value- Value to set for the calendar property.
-
setEnd
Sets the end property value. The date, time, and time zone that the event ends. By default, the end time is in UTC.- Parameters:
value- Value to set for the end property.
-
setExtensions
Sets the extensions property value. The collection of open extensions defined for the event. Nullable.- Parameters:
value- Value to set for the extensions property.
-
setHasAttachments
Sets the hasAttachments property value. Set to true if the event has attachments.- Parameters:
value- Value to set for the hasAttachments property.
-
setHideAttendees
Sets the hideAttendees property value. When set to true, each attendee only sees themselves in the meeting request and meeting Tracking list. The default is false.- Parameters:
value- Value to set for the hideAttendees property.
-
setICalUId
Sets the iCalUId property value. A unique identifier for an event across calendars. This ID is different for each occurrence in a recurring series. Read-only.- Parameters:
value- Value to set for the iCalUId property.
-
setImportance
Sets the importance property value. The importance of the event. The possible values are: low, normal, high.- Parameters:
value- Value to set for the importance property.
-
setInstances
Sets the instances property value. The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable.- Parameters:
value- Value to set for the instances property.
-
setIsAllDay
Sets the isAllDay property value. Set to true if the event lasts all day. If true, regardless of whether it's a single-day or multi-day event, start, and endtime must be set to midnight and be in the same time zone.- Parameters:
value- Value to set for the isAllDay property.
-
setIsCancelled
Sets the isCancelled property value. Set to true if the event has been canceled.- Parameters:
value- Value to set for the isCancelled property.
-
setIsDraft
Sets the isDraft property value. Set to true if the user has updated the meeting in Outlook but hasn't sent the updates to attendees. Set to false if all changes are sent, or if the event is an appointment without any attendees.- Parameters:
value- Value to set for the isDraft property.
-
setIsOnlineMeeting
Sets the isOnlineMeeting property value. True if this event has online meeting information (that is, onlineMeeting points to an onlineMeetingInfo resource), false otherwise. Default is false (onlineMeeting is null). Optional. After you set isOnlineMeeting to true, Microsoft Graph initializes onlineMeeting. Subsequently, Outlook ignores any further changes to isOnlineMeeting, and the meeting remains available online.- Parameters:
value- Value to set for the isOnlineMeeting property.
-
setIsOrganizer
Sets the isOrganizer property value. Set to true if the calendar owner (specified by the owner property of the calendar) is the organizer of the event (specified by the organizer property of the event). It also applies if a delegate organized the event on behalf of the owner.- Parameters:
value- Value to set for the isOrganizer property.
-
setIsReminderOn
Sets the isReminderOn property value. Set to true if an alert is set to remind the user of the event.- Parameters:
value- Value to set for the isReminderOn property.
-
setLocation
Sets the location property value. The location of the event.- Parameters:
value- Value to set for the location property.
-
setLocations
Sets the locations property value. The locations where the event is held or attended from. The location and locations properties always correspond with each other. If you update the location property, any prior locations in the locations collection are removed and replaced by the new location value.- Parameters:
value- Value to set for the locations property.
-
setMultiValueExtendedProperties
Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the event. Read-only. Nullable.- Parameters:
value- Value to set for the multiValueExtendedProperties property.
-
setOnlineMeeting
Sets the onlineMeeting property value. Details for an attendee to join the meeting online. The default is null. Read-only. After you set the isOnlineMeeting and onlineMeetingProvider properties to enable a meeting online, Microsoft Graph initializes onlineMeeting. When set, the meeting remains available online, and you can't change the isOnlineMeeting, onlineMeetingProvider, and onlneMeeting properties again.- Parameters:
value- Value to set for the onlineMeeting property.
-
setOnlineMeetingProvider
Sets the onlineMeetingProvider property value. Represents the online meeting service provider. By default, onlineMeetingProvider is unknown. The possible values are unknown, teamsForBusiness, skypeForBusiness, and skypeForConsumer. Optional. After you set onlineMeetingProvider, Microsoft Graph initializes onlineMeeting. Subsequently, you can't change onlineMeetingProvider again, and the meeting remains available online.- Parameters:
value- Value to set for the onlineMeetingProvider property.
-
setOnlineMeetingUrl
Sets the onlineMeetingUrl property value. A URL for an online meeting. The property is set only when an organizer specifies in Outlook that an event is an online meeting such as Skype. Read-only.To access the URL to join an online meeting, use joinUrl which is exposed via the onlineMeeting property of the event. The onlineMeetingUrl property will be deprecated in the future.- Parameters:
value- Value to set for the onlineMeetingUrl property.
-
setOrganizer
Sets the organizer property value. The organizer of the event.- Parameters:
value- Value to set for the organizer property.
-
setOriginalEndTimeZone
Sets the originalEndTimeZone property value. The end time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook.- Parameters:
value- Value to set for the originalEndTimeZone property.
-
setOriginalStart
Sets the originalStart property value. Represents the start time of an event when it's initially created as an occurrence or exception in a recurring series. This property is not returned for events that are single instances. Its date and time information is expressed in ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Parameters:
value- Value to set for the originalStart property.
-
setOriginalStartTimeZone
Sets the originalStartTimeZone property value. The start time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook.- Parameters:
value- Value to set for the originalStartTimeZone property.
-
setRecurrence
Sets the recurrence property value. The recurrence pattern for the event.- Parameters:
value- Value to set for the recurrence property.
-
setReminderMinutesBeforeStart
Sets the reminderMinutesBeforeStart property value. The number of minutes before the event start time that the reminder alert occurs.- Parameters:
value- Value to set for the reminderMinutesBeforeStart property.
-
setResponseRequested
Sets the responseRequested property value. Default is true, which represents the organizer would like an invitee to send a response to the event.- Parameters:
value- Value to set for the responseRequested property.
-
setResponseStatus
Sets the responseStatus property value. Indicates the type of response sent in response to an event message.- Parameters:
value- Value to set for the responseStatus property.
-
setSensitivity
Sets the sensitivity property value. Possible values are: normal, personal, private, and confidential.- Parameters:
value- Value to set for the sensitivity property.
-
setSeriesMasterId
Sets the seriesMasterId property value. The ID for the recurring series master item, if this event is part of a recurring series.- Parameters:
value- Value to set for the seriesMasterId property.
-
setShowAs
Sets the showAs property value. The status to show. Possible values are: free, tentative, busy, oof, workingElsewhere, unknown.- Parameters:
value- Value to set for the showAs property.
-
setSingleValueExtendedProperties
public void setSingleValueExtendedProperties(@Nullable List<SingleValueLegacyExtendedProperty> value) Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the event. Read-only. Nullable.- Parameters:
value- Value to set for the singleValueExtendedProperties property.
-
setStart
Sets the start property value. The start date, time, and time zone of the event. By default, the start time is in UTC.- Parameters:
value- Value to set for the start property.
-
setSubject
Sets the subject property value. The text of the event's subject line.- Parameters:
value- Value to set for the subject property.
-
setTransactionId
Sets the transactionId property value. A custom identifier specified by a client app for the server to avoid redundant POST operations in case of client retries to create the same event. It's useful when low network connectivity causes the client to time out before receiving a response from the server for the client's prior create-event request. After you set transactionId when creating an event, you can't change transactionId in a subsequent update. This property is only returned in a response payload if an app has set it. Optional.- Parameters:
value- Value to set for the transactionId property.
-
setType
Sets the type property value. The event type. Possible values are: singleInstance, occurrence, exception, seriesMaster. Read-only- Parameters:
value- Value to set for the type property.
-
setWebLink
Sets the webLink property value. The URL to open the event in Outlook on the web.Outlook on the web opens the event in the browser if you are signed in to your mailbox. Otherwise, Outlook on the web prompts you to sign in.This URL can't be accessed from within an iFrame.- Parameters:
value- Value to set for the webLink property.
-