Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApprovalStagecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the assignedToMe property value.Gets the displayName property value.The deserialization information for the current modelGets the justification property value.Gets the reviewedBy property value.Gets the reviewedDateTime property value.Gets the reviewResult property value.Gets the status property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAssignedToMe(Boolean value) Sets the assignedToMe property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetJustification(String value) Sets the justification property value.voidsetReviewedBy(Identity value) Sets the reviewedBy property value.voidSets the reviewedDateTime property value.voidsetReviewResult(String value) Sets the reviewResult property value.voidSets the status property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
ApprovalStage
public ApprovalStage()Instantiates a newApprovalStageand 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
Gets the assignedToMe property value. Indicates whether the stage is assigned to the calling user to review. Read-only.- Returns:
- a
Boolean
-
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classEntity- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getJustification
Gets the justification property value. The justification associated with the approval stage decision.- Returns:
- a
String
-
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
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
Gets the reviewResult property value. The result of this approval record. Possible values include: NotReviewed, Approved, Denied.- Returns:
- a
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 -
setAssignedToMe
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
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
Sets the justification property value. The justification associated with the approval stage decision.- Parameters:
value- Value to set for the justification property.
-
setReviewedBy
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
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
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
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.
-