Class ApprovalStage

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

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

    • ApprovalStage

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

    • createFromDiscriminatorValue

      @Nonnull public static ApprovalStage 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 ApprovalStage
    • getAssignedToMe

      @Nullable public Boolean getAssignedToMe()
      Gets the assignedToMe property value. Indicates whether the stage is assigned to the calling user to review. Read-only.
      Returns:
      a Boolean
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The label provided by the policy creator to identify an approval stage. Read-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>>
    • getJustification

      @Nullable public String getJustification()
      Gets the justification property value. The justification associated with the approval stage decision.
      Returns:
      a String
    • getReviewedBy

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

      @Nullable public OffsetDateTime getReviewedDateTime()
      Gets the reviewedDateTime property value. The date and time when a decision was recorded. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
      Returns:
      a OffsetDateTime
    • getReviewResult

      @Nullable public String getReviewResult()
      Gets the reviewResult property value. The result of this approval record. Possible values include: NotReviewed, Approved, Denied.
      Returns:
      a String
    • getStatus

      @Nullable public String getStatus()
      Gets the status property value. The stage status. Possible values: InProgress, Initializing, Completed, Expired. Read-only.
      Returns:
      a String
    • 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
    • setAssignedToMe

      public void setAssignedToMe(@Nullable Boolean value)
      Sets the assignedToMe property value. Indicates whether the stage is assigned to the calling user to review. Read-only.
      Parameters:
      value - Value to set for the assignedToMe property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The label provided by the policy creator to identify an approval stage. Read-only.
      Parameters:
      value - Value to set for the displayName property.
    • setJustification

      public void setJustification(@Nullable String value)
      Sets the justification property value. The justification associated with the approval stage decision.
      Parameters:
      value - Value to set for the justification property.
    • setReviewedBy

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

      public void setReviewedDateTime(@Nullable OffsetDateTime value)
      Sets the reviewedDateTime property value. The date and time when a decision was recorded. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
      Parameters:
      value - Value to set for the reviewedDateTime property.
    • setReviewResult

      public void setReviewResult(@Nullable String value)
      Sets the reviewResult property value. The result of this approval record. Possible values include: NotReviewed, Approved, Denied.
      Parameters:
      value - Value to set for the reviewResult property.
    • setStatus

      public void setStatus(@Nullable String value)
      Sets the status property value. The stage status. Possible values: InProgress, Initializing, Completed, Expired. Read-only.
      Parameters:
      value - Value to set for the status property.