Class RetentionEvent

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.security.RetentionEvent
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class RetentionEvent extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • RetentionEvent

      public RetentionEvent()
      Instantiates a new RetentionEvent and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static RetentionEvent 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 RetentionEvent
    • getCreatedBy

      @Nullable public IdentitySet getCreatedBy()
      Gets the createdBy property value. The user who created the retentionEvent.
      Returns:
      a IdentitySet
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The date time when the retentionEvent was created.
      Returns:
      a OffsetDateTime
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. Optional information about the event.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. Name of the event.
      Returns:
      a String
    • getEventPropagationResults

      @Nullable public List<EventPropagationResult> getEventPropagationResults()
      Gets the eventPropagationResults property value. Represents the success status of a created event and additional information.
      Returns:
      a List<EventPropagationResult>
    • getEventQueries

      @Nullable public List<EventQuery> getEventQueries()
      Gets the eventQueries property value. Represents the workload (SharePoint Online, OneDrive for Business, Exchange Online) and identification information associated with a retention event.
      Returns:
      a List<EventQuery>
    • getEventStatus

      @Nullable public RetentionEventStatus getEventStatus()
      Gets the eventStatus property value. Status of event propogation to the scoped locations after the event has been created.
      Returns:
      a RetentionEventStatus
    • getEventTriggerDateTime

      @Nullable public OffsetDateTime getEventTriggerDateTime()
      Gets the eventTriggerDateTime property value. Optional time when the event should be triggered.
      Returns:
      a OffsetDateTime
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getLastModifiedBy

      @Nullable public IdentitySet getLastModifiedBy()
      Gets the lastModifiedBy property value. The user who last modified the retentionEvent.
      Returns:
      a IdentitySet
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. The latest date time when the retentionEvent was modified.
      Returns:
      a OffsetDateTime
    • getLastStatusUpdateDateTime

      @Nullable public OffsetDateTime getLastStatusUpdateDateTime()
      Gets the lastStatusUpdateDateTime property value. Last time the status of the event was updated.
      Returns:
      a OffsetDateTime
    • getRetentionEventType

      @Nullable public RetentionEventType getRetentionEventType()
      Gets the retentionEventType property value. Specifies the event that will start the retention period for labels that use this event type when an event is created.
      Returns:
      a RetentionEventType
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setCreatedBy

      public void setCreatedBy(@Nullable IdentitySet value)
      Sets the createdBy property value. The user who created the retentionEvent.
      Parameters:
      value - Value to set for the createdBy property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The date time when the retentionEvent was created.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. Optional information about the event.
      Parameters:
      value - Value to set for the description property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Name of the event.
      Parameters:
      value - Value to set for the displayName property.
    • setEventPropagationResults

      public void setEventPropagationResults(@Nullable List<EventPropagationResult> value)
      Sets the eventPropagationResults property value. Represents the success status of a created event and additional information.
      Parameters:
      value - Value to set for the eventPropagationResults property.
    • setEventQueries

      public void setEventQueries(@Nullable List<EventQuery> value)
      Sets the eventQueries property value. Represents the workload (SharePoint Online, OneDrive for Business, Exchange Online) and identification information associated with a retention event.
      Parameters:
      value - Value to set for the eventQueries property.
    • setEventStatus

      public void setEventStatus(@Nullable RetentionEventStatus value)
      Sets the eventStatus property value. Status of event propogation to the scoped locations after the event has been created.
      Parameters:
      value - Value to set for the eventStatus property.
    • setEventTriggerDateTime

      public void setEventTriggerDateTime(@Nullable OffsetDateTime value)
      Sets the eventTriggerDateTime property value. Optional time when the event should be triggered.
      Parameters:
      value - Value to set for the eventTriggerDateTime property.
    • setLastModifiedBy

      public void setLastModifiedBy(@Nullable IdentitySet value)
      Sets the lastModifiedBy property value. The user who last modified the retentionEvent.
      Parameters:
      value - Value to set for the lastModifiedBy property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the lastModifiedDateTime property value. The latest date time when the retentionEvent was modified.
      Parameters:
      value - Value to set for the lastModifiedDateTime property.
    • setLastStatusUpdateDateTime

      public void setLastStatusUpdateDateTime(@Nullable OffsetDateTime value)
      Sets the lastStatusUpdateDateTime property value. Last time the status of the event was updated.
      Parameters:
      value - Value to set for the lastStatusUpdateDateTime property.
    • setRetentionEventType

      public void setRetentionEventType(@Nullable RetentionEventType value)
      Sets the retentionEventType property value. Specifies the event that will start the retention period for labels that use this event type when an event is created.
      Parameters:
      value - Value to set for the retentionEventType property.