Class AccessReviewInstanceDecisionItem

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

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

  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static AccessReviewInstanceDecisionItem 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 AccessReviewInstanceDecisionItem
    • getAccessReviewId

      @Nullable public String getAccessReviewId()
      Gets the accessReviewId property value. The identifier of the accessReviewInstance parent. Supports $select. Read-only.
      Returns:
      a String
    • getAppliedBy

      @Nullable public UserIdentity getAppliedBy()
      Gets the appliedBy property value. The identifier of the user who applied the decision. Read-only.
      Returns:
      a UserIdentity
    • getAppliedDateTime

      @Nullable public OffsetDateTime getAppliedDateTime()
      Gets the appliedDateTime property value. The timestamp when the approval decision was applied.00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't applied the decision or it was automatically applied. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $select. Read-only.
      Returns:
      a OffsetDateTime
    • getApplyResult

      @Nullable public String getApplyResult()
      Gets the applyResult property value. The result of applying the decision. Possible values: New, AppliedSuccessfully, AppliedWithUnknownFailure, AppliedSuccessfullyButObjectNotFound and ApplyNotSupported. Supports $select, $orderby, and $filter (eq only). Read-only.
      Returns:
      a String
    • getDecision

      @Nullable public String getDecision()
      Gets the decision property value. Result of the review. Possible values: Approve, Deny, NotReviewed, or DontKnow. Supports $select, $orderby, and $filter (eq only).
      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>>
    • getInsights

      @Nullable public List<GovernanceInsight> getInsights()
      Gets the insights property value. Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem.
      Returns:
      a List<GovernanceInsight>
    • getJustification

      @Nullable public String getJustification()
      Gets the justification property value. Justification left by the reviewer when they made the decision.
      Returns:
      a String
    • getPrincipal

      @Nullable public Identity getPrincipal()
      Gets the principal property value. Every decision item in an access review represents a principal's access to a resource. This property represents details of the principal. For example, if a decision item represents access of User 'Bob' to Group 'Sales' - The principal is 'Bob' and the resource is 'Sales'. Principals can be of two types - userIdentity and servicePrincipalIdentity. Supports $select. Read-only.
      Returns:
      a Identity
    • getPrincipalLink

      @Nullable public String getPrincipalLink()
      Gets the principalLink property value. A link to the principal object. For example, https://graph.microsoft.com/v1.0/users/a6c7aecb-cbfd-4763-87ef-e91b4bd509d9. Read-only.
      Returns:
      a String
    • getRecommendation

      @Nullable public String getRecommendation()
      Gets the recommendation property value. A system-generated recommendation for the approval decision based off last interactive sign-in to tenant. The value is Approve if the sign-in is fewer than 30 days after the start of review, Deny if the sign-in is greater than 30 days after, or NoInfoAvailable. Possible values: Approve, Deny, or NoInfoAvailable. Supports $select, $orderby, and $filter (eq only). Read-only.
      Returns:
      a String
    • getResource

      @Nullable public AccessReviewInstanceDecisionItemResource getResource()
      Gets the resource property value. Every decision item in an access review represents a principal's access to a resource. This property represents details of the resource. For example, if a decision item represents access of User 'Bob' to Group 'Sales' - The principal is Bob and the resource is 'Sales'. Resources can be of multiple types. See accessReviewInstanceDecisionItemResource. Read-only.
      Returns:
      a AccessReviewInstanceDecisionItemResource
    • getResourceLink

      @Nullable public String getResourceLink()
      Gets the resourceLink property value. A link to the resource. For example, https://graph.microsoft.com/v1.0/servicePrincipals/c86300f3-8695-4320-9f6e-32a2555f5ff8. Supports $select. Read-only.
      Returns:
      a String
    • getReviewedBy

      @Nullable public UserIdentity getReviewedBy()
      Gets the reviewedBy property value. The identifier of the reviewer.00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't reviewed. Supports $select. Read-only.
      Returns:
      a UserIdentity
    • getReviewedDateTime

      @Nullable public OffsetDateTime getReviewedDateTime()
      Gets the reviewedDateTime property value. The timestamp when the review decision occurred. Supports $select. Read-only.
      Returns:
      a OffsetDateTime
    • 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
    • setAccessReviewId

      public void setAccessReviewId(@Nullable String value)
      Sets the accessReviewId property value. The identifier of the accessReviewInstance parent. Supports $select. Read-only.
      Parameters:
      value - Value to set for the accessReviewId property.
    • setAppliedBy

      public void setAppliedBy(@Nullable UserIdentity value)
      Sets the appliedBy property value. The identifier of the user who applied the decision. Read-only.
      Parameters:
      value - Value to set for the appliedBy property.
    • setAppliedDateTime

      public void setAppliedDateTime(@Nullable OffsetDateTime value)
      Sets the appliedDateTime property value. The timestamp when the approval decision was applied.00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't applied the decision or it was automatically applied. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $select. Read-only.
      Parameters:
      value - Value to set for the appliedDateTime property.
    • setApplyResult

      public void setApplyResult(@Nullable String value)
      Sets the applyResult property value. The result of applying the decision. Possible values: New, AppliedSuccessfully, AppliedWithUnknownFailure, AppliedSuccessfullyButObjectNotFound and ApplyNotSupported. Supports $select, $orderby, and $filter (eq only). Read-only.
      Parameters:
      value - Value to set for the applyResult property.
    • setDecision

      public void setDecision(@Nullable String value)
      Sets the decision property value. Result of the review. Possible values: Approve, Deny, NotReviewed, or DontKnow. Supports $select, $orderby, and $filter (eq only).
      Parameters:
      value - Value to set for the decision property.
    • setInsights

      public void setInsights(@Nullable List<GovernanceInsight> value)
      Sets the insights property value. Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem.
      Parameters:
      value - Value to set for the insights property.
    • setJustification

      public void setJustification(@Nullable String value)
      Sets the justification property value. Justification left by the reviewer when they made the decision.
      Parameters:
      value - Value to set for the justification property.
    • setPrincipal

      public void setPrincipal(@Nullable Identity value)
      Sets the principal property value. Every decision item in an access review represents a principal's access to a resource. This property represents details of the principal. For example, if a decision item represents access of User 'Bob' to Group 'Sales' - The principal is 'Bob' and the resource is 'Sales'. Principals can be of two types - userIdentity and servicePrincipalIdentity. Supports $select. Read-only.
      Parameters:
      value - Value to set for the principal property.
    • setPrincipalLink

      public void setPrincipalLink(@Nullable String value)
      Sets the principalLink property value. A link to the principal object. For example, https://graph.microsoft.com/v1.0/users/a6c7aecb-cbfd-4763-87ef-e91b4bd509d9. Read-only.
      Parameters:
      value - Value to set for the principalLink property.
    • setRecommendation

      public void setRecommendation(@Nullable String value)
      Sets the recommendation property value. A system-generated recommendation for the approval decision based off last interactive sign-in to tenant. The value is Approve if the sign-in is fewer than 30 days after the start of review, Deny if the sign-in is greater than 30 days after, or NoInfoAvailable. Possible values: Approve, Deny, or NoInfoAvailable. Supports $select, $orderby, and $filter (eq only). Read-only.
      Parameters:
      value - Value to set for the recommendation property.
    • setResource

      public void setResource(@Nullable AccessReviewInstanceDecisionItemResource value)
      Sets the resource property value. Every decision item in an access review represents a principal's access to a resource. This property represents details of the resource. For example, if a decision item represents access of User 'Bob' to Group 'Sales' - The principal is Bob and the resource is 'Sales'. Resources can be of multiple types. See accessReviewInstanceDecisionItemResource. Read-only.
      Parameters:
      value - Value to set for the resource property.
    • setResourceLink

      public void setResourceLink(@Nullable String value)
      Sets the resourceLink property value. A link to the resource. For example, https://graph.microsoft.com/v1.0/servicePrincipals/c86300f3-8695-4320-9f6e-32a2555f5ff8. Supports $select. Read-only.
      Parameters:
      value - Value to set for the resourceLink property.
    • setReviewedBy

      public void setReviewedBy(@Nullable UserIdentity value)
      Sets the reviewedBy property value. The identifier of the reviewer.00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't reviewed. Supports $select. Read-only.
      Parameters:
      value - Value to set for the reviewedBy property.
    • setReviewedDateTime

      public void setReviewedDateTime(@Nullable OffsetDateTime value)
      Sets the reviewedDateTime property value. The timestamp when the review decision occurred. Supports $select. Read-only.
      Parameters:
      value - Value to set for the reviewedDateTime property.