Class ApprovalSettings

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

public final class ApprovalSettings extends Object
The approval settings.
  • Constructor Details

    • ApprovalSettings

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

    • isApprovalRequired

      public Boolean isApprovalRequired()
      Get the isApprovalRequired property: Determines whether approval is required or not.
      Returns:
      the isApprovalRequired value.
    • withIsApprovalRequired

      public ApprovalSettings withIsApprovalRequired(Boolean isApprovalRequired)
      Set the isApprovalRequired property: Determines whether approval is required or not.
      Parameters:
      isApprovalRequired - the isApprovalRequired value to set.
      Returns:
      the ApprovalSettings object itself.
    • isApprovalRequiredForExtension

      public Boolean isApprovalRequiredForExtension()
      Get the isApprovalRequiredForExtension property: Determines whether approval is required for assignment extension.
      Returns:
      the isApprovalRequiredForExtension value.
    • withIsApprovalRequiredForExtension

      public ApprovalSettings withIsApprovalRequiredForExtension(Boolean isApprovalRequiredForExtension)
      Set the isApprovalRequiredForExtension property: Determines whether approval is required for assignment extension.
      Parameters:
      isApprovalRequiredForExtension - the isApprovalRequiredForExtension value to set.
      Returns:
      the ApprovalSettings object itself.
    • isRequestorJustificationRequired

      public Boolean isRequestorJustificationRequired()
      Get the isRequestorJustificationRequired property: Determine whether requestor justification is required.
      Returns:
      the isRequestorJustificationRequired value.
    • withIsRequestorJustificationRequired

      public ApprovalSettings withIsRequestorJustificationRequired(Boolean isRequestorJustificationRequired)
      Set the isRequestorJustificationRequired property: Determine whether requestor justification is required.
      Parameters:
      isRequestorJustificationRequired - the isRequestorJustificationRequired value to set.
      Returns:
      the ApprovalSettings object itself.
    • approvalMode

      public ApprovalMode approvalMode()
      Get the approvalMode property: The type of rule.
      Returns:
      the approvalMode value.
    • withApprovalMode

      public ApprovalSettings withApprovalMode(ApprovalMode approvalMode)
      Set the approvalMode property: The type of rule.
      Parameters:
      approvalMode - the approvalMode value to set.
      Returns:
      the ApprovalSettings object itself.
    • approvalStages

      public List<ApprovalStage> approvalStages()
      Get the approvalStages property: The approval stages of the request.
      Returns:
      the approvalStages value.
    • withApprovalStages

      public ApprovalSettings withApprovalStages(List<ApprovalStage> approvalStages)
      Set the approvalStages property: The approval stages of the request.
      Parameters:
      approvalStages - the approvalStages value to set.
      Returns:
      the ApprovalSettings object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.