Class ApprovalStage
java.lang.Object
com.azure.resourcemanager.authorization.models.ApprovalStage
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApprovalStage>
public final class ApprovalStage
extends Object
implements com.azure.json.JsonSerializable<ApprovalStage>
The approval stage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the approvalStageTimeOutInDays property: The time in days when approval request would be timed out.Get the escalationApprovers property: The escalation approver of the request.Get the escalationTimeInMinutes property: The time in minutes when the approval request would be escalated if the primary approver does not approve.static ApprovalStagefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApprovalStage from the JsonReader.Get the isApproverJustificationRequired property: Determines whether approver need to provide justification for his decision.Get the isEscalationEnabled property: The value determine whether escalation feature is enabled.Get the primaryApprovers property: The primary approver of the request.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withApprovalStageTimeOutInDays(Integer approvalStageTimeOutInDays) Set the approvalStageTimeOutInDays property: The time in days when approval request would be timed out.withEscalationApprovers(List<UserSet> escalationApprovers) Set the escalationApprovers property: The escalation approver of the request.withEscalationTimeInMinutes(Integer escalationTimeInMinutes) Set the escalationTimeInMinutes property: The time in minutes when the approval request would be escalated if the primary approver does not approve.withIsApproverJustificationRequired(Boolean isApproverJustificationRequired) Set the isApproverJustificationRequired property: Determines whether approver need to provide justification for his decision.withIsEscalationEnabled(Boolean isEscalationEnabled) Set the isEscalationEnabled property: The value determine whether escalation feature is enabled.withPrimaryApprovers(List<UserSet> primaryApprovers) Set the primaryApprovers property: The primary approver of the request.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApprovalStage
public ApprovalStage()Creates an instance of ApprovalStage class.
-
-
Method Details
-
approvalStageTimeOutInDays
Get the approvalStageTimeOutInDays property: The time in days when approval request would be timed out.- Returns:
- the approvalStageTimeOutInDays value.
-
withApprovalStageTimeOutInDays
Set the approvalStageTimeOutInDays property: The time in days when approval request would be timed out.- Parameters:
approvalStageTimeOutInDays- the approvalStageTimeOutInDays value to set.- Returns:
- the ApprovalStage object itself.
-
isApproverJustificationRequired
Get the isApproverJustificationRequired property: Determines whether approver need to provide justification for his decision.- Returns:
- the isApproverJustificationRequired value.
-
withIsApproverJustificationRequired
Set the isApproverJustificationRequired property: Determines whether approver need to provide justification for his decision.- Parameters:
isApproverJustificationRequired- the isApproverJustificationRequired value to set.- Returns:
- the ApprovalStage object itself.
-
escalationTimeInMinutes
Get the escalationTimeInMinutes property: The time in minutes when the approval request would be escalated if the primary approver does not approve.- Returns:
- the escalationTimeInMinutes value.
-
withEscalationTimeInMinutes
Set the escalationTimeInMinutes property: The time in minutes when the approval request would be escalated if the primary approver does not approve.- Parameters:
escalationTimeInMinutes- the escalationTimeInMinutes value to set.- Returns:
- the ApprovalStage object itself.
-
-
withPrimaryApprovers
Set the primaryApprovers property: The primary approver of the request.- Parameters:
primaryApprovers- the primaryApprovers value to set.- Returns:
- the ApprovalStage object itself.
-
isEscalationEnabled
Get the isEscalationEnabled property: The value determine whether escalation feature is enabled.- Returns:
- the isEscalationEnabled value.
-
withIsEscalationEnabled
Set the isEscalationEnabled property: The value determine whether escalation feature is enabled.- Parameters:
isEscalationEnabled- the isEscalationEnabled value to set.- Returns:
- the ApprovalStage object itself.
-
escalationApprovers
-
withEscalationApprovers
Set the escalationApprovers property: The escalation approver of the request.- Parameters:
escalationApprovers- the escalationApprovers value to set.- Returns:
- the ApprovalStage object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApprovalStage>- Throws:
IOException
-
fromJson
Reads an instance of ApprovalStage from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApprovalStage if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ApprovalStage.
-