Class AccessReviewHistoryDefinition

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

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

    • AccessReviewHistoryDefinition

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

    • createFromDiscriminatorValue

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

      @Nullable public UserIdentity getCreatedBy()
      Gets the createdBy property value. The createdBy property
      Returns:
      a UserIdentity
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. Timestamp when the access review definition was created.
      Returns:
      a OffsetDateTime
    • getDecisions

      @Nullable public List<AccessReviewHistoryDecisionFilter> getDecisions()
      Gets the decisions property value. Determines which review decisions will be included in the fetched review history data if specified. Optional on create. All decisions are included by default if no decisions are provided on create. Possible values are: approve, deny, dontKnow, notReviewed, and notNotified.
      Returns:
      a List<AccessReviewHistoryDecisionFilter>
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. Name for the access review history data collection. Required.
      Returns:
      a String
    • 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>>
    • getInstances

      @Nullable public List<AccessReviewHistoryInstance> getInstances()
      Gets the instances property value. If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance.
      Returns:
      a List<AccessReviewHistoryInstance>
    • getReviewHistoryPeriodEndDateTime

      @Nullable public OffsetDateTime getReviewHistoryPeriodEndDateTime()
      Gets the reviewHistoryPeriodEndDateTime property value. A timestamp. Reviews ending on or before this date will be included in the fetched history data. Only required if scheduleSettings isn't defined.
      Returns:
      a OffsetDateTime
    • getReviewHistoryPeriodStartDateTime

      @Nullable public OffsetDateTime getReviewHistoryPeriodStartDateTime()
      Gets the reviewHistoryPeriodStartDateTime property value. A timestamp. Reviews starting on or before this date will be included in the fetched history data. Only required if scheduleSettings isn't defined.
      Returns:
      a OffsetDateTime
    • getScheduleSettings

      @Nullable public AccessReviewHistoryScheduleSettings getScheduleSettings()
      Gets the scheduleSettings property value. The settings for a recurring access review history definition series. Only required if reviewHistoryPeriodStartDateTime or reviewHistoryPeriodEndDateTime aren't defined. Not supported yet.
      Returns:
      a AccessReviewHistoryScheduleSettings
    • getScopes

      @Nullable public List<AccessReviewScope> getScopes()
      Gets the scopes property value. Used to scope what reviews are included in the fetched history data. Fetches reviews whose scope matches with this provided scope. Required.
      Returns:
      a List<AccessReviewScope>
    • getStatus

      @Nullable public AccessReviewHistoryStatus getStatus()
      Gets the status property value. Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue.
      Returns:
      a AccessReviewHistoryStatus
    • 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 UserIdentity value)
      Sets the createdBy property value. The createdBy property
      Parameters:
      value - Value to set for the createdBy property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. Timestamp when the access review definition was created.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setDecisions

      public void setDecisions(@Nullable List<AccessReviewHistoryDecisionFilter> value)
      Sets the decisions property value. Determines which review decisions will be included in the fetched review history data if specified. Optional on create. All decisions are included by default if no decisions are provided on create. Possible values are: approve, deny, dontKnow, notReviewed, and notNotified.
      Parameters:
      value - Value to set for the decisions property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Name for the access review history data collection. Required.
      Parameters:
      value - Value to set for the displayName property.
    • setInstances

      public void setInstances(@Nullable List<AccessReviewHistoryInstance> value)
      Sets the instances property value. If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance.
      Parameters:
      value - Value to set for the instances property.
    • setReviewHistoryPeriodEndDateTime

      public void setReviewHistoryPeriodEndDateTime(@Nullable OffsetDateTime value)
      Sets the reviewHistoryPeriodEndDateTime property value. A timestamp. Reviews ending on or before this date will be included in the fetched history data. Only required if scheduleSettings isn't defined.
      Parameters:
      value - Value to set for the reviewHistoryPeriodEndDateTime property.
    • setReviewHistoryPeriodStartDateTime

      public void setReviewHistoryPeriodStartDateTime(@Nullable OffsetDateTime value)
      Sets the reviewHistoryPeriodStartDateTime property value. A timestamp. Reviews starting on or before this date will be included in the fetched history data. Only required if scheduleSettings isn't defined.
      Parameters:
      value - Value to set for the reviewHistoryPeriodStartDateTime property.
    • setScheduleSettings

      public void setScheduleSettings(@Nullable AccessReviewHistoryScheduleSettings value)
      Sets the scheduleSettings property value. The settings for a recurring access review history definition series. Only required if reviewHistoryPeriodStartDateTime or reviewHistoryPeriodEndDateTime aren't defined. Not supported yet.
      Parameters:
      value - Value to set for the scheduleSettings property.
    • setScopes

      public void setScopes(@Nullable List<AccessReviewScope> value)
      Sets the scopes property value. Used to scope what reviews are included in the fetched history data. Fetches reviews whose scope matches with this provided scope. Required.
      Parameters:
      value - Value to set for the scopes property.
    • setStatus

      public void setStatus(@Nullable AccessReviewHistoryStatus value)
      Sets the status property value. Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue.
      Parameters:
      value - Value to set for the status property.