Class ApprovalStage

java.lang.Object
com.azure.resourcemanager.authorization.models.ApprovalStage

public final class ApprovalStage extends Object
The approval stage.
  • Constructor Details

    • ApprovalStage

      public ApprovalStage()
      Creates an instance of ApprovalStage class.
  • Method Details

    • approvalStageTimeOutInDays

      public Integer approvalStageTimeOutInDays()
      Get the approvalStageTimeOutInDays property: The time in days when approval request would be timed out.
      Returns:
      the approvalStageTimeOutInDays value.
    • withApprovalStageTimeOutInDays

      public ApprovalStage withApprovalStageTimeOutInDays(Integer approvalStageTimeOutInDays)
      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

      public Boolean isApproverJustificationRequired()
      Get the isApproverJustificationRequired property: Determines whether approver need to provide justification for his decision.
      Returns:
      the isApproverJustificationRequired value.
    • withIsApproverJustificationRequired

      public ApprovalStage withIsApproverJustificationRequired(Boolean isApproverJustificationRequired)
      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

      public Integer 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

      public ApprovalStage 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.
      Parameters:
      escalationTimeInMinutes - the escalationTimeInMinutes value to set.
      Returns:
      the ApprovalStage object itself.
    • primaryApprovers

      public List<UserSet> primaryApprovers()
      Get the primaryApprovers property: The primary approver of the request.
      Returns:
      the primaryApprovers value.
    • withPrimaryApprovers

      public ApprovalStage withPrimaryApprovers(List<UserSet> primaryApprovers)
      Set the primaryApprovers property: The primary approver of the request.
      Parameters:
      primaryApprovers - the primaryApprovers value to set.
      Returns:
      the ApprovalStage object itself.
    • isEscalationEnabled

      public Boolean isEscalationEnabled()
      Get the isEscalationEnabled property: The value determine whether escalation feature is enabled.
      Returns:
      the isEscalationEnabled value.
    • withIsEscalationEnabled

      public ApprovalStage withIsEscalationEnabled(Boolean isEscalationEnabled)
      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

      public List<UserSet> escalationApprovers()
      Get the escalationApprovers property: The escalation approver of the request.
      Returns:
      the escalationApprovers value.
    • withEscalationApprovers

      public ApprovalStage withEscalationApprovers(List<UserSet> escalationApprovers)
      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.