Class ApprovalSettings
java.lang.Object
com.azure.resourcemanager.authorization.models.ApprovalSettings
The approval settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the approvalMode property: The type of rule.Get the approvalStages property: The approval stages of the request.Get the isApprovalRequired property: Determines whether approval is required or not.Get the isApprovalRequiredForExtension property: Determines whether approval is required for assignment extension.Get the isRequestorJustificationRequired property: Determine whether requestor justification is required.voidvalidate()Validates the instance.withApprovalMode(ApprovalMode approvalMode) Set the approvalMode property: The type of rule.withApprovalStages(List<ApprovalStage> approvalStages) Set the approvalStages property: The approval stages of the request.withIsApprovalRequired(Boolean isApprovalRequired) Set the isApprovalRequired property: Determines whether approval is required or not.withIsApprovalRequiredForExtension(Boolean isApprovalRequiredForExtension) Set the isApprovalRequiredForExtension property: Determines whether approval is required for assignment extension.withIsRequestorJustificationRequired(Boolean isRequestorJustificationRequired) Set the isRequestorJustificationRequired property: Determine whether requestor justification is required.
-
Constructor Details
-
ApprovalSettings
public ApprovalSettings()Creates an instance of ApprovalSettings class.
-
-
Method Details
-
isApprovalRequired
Get the isApprovalRequired property: Determines whether approval is required or not.- Returns:
- the isApprovalRequired value.
-
withIsApprovalRequired
Set the isApprovalRequired property: Determines whether approval is required or not.- Parameters:
isApprovalRequired- the isApprovalRequired value to set.- Returns:
- the ApprovalSettings object itself.
-
isApprovalRequiredForExtension
Get the isApprovalRequiredForExtension property: Determines whether approval is required for assignment extension.- Returns:
- the isApprovalRequiredForExtension value.
-
withIsApprovalRequiredForExtension
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
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
Get the approvalMode property: The type of rule.- Returns:
- the approvalMode value.
-
withApprovalMode
Set the approvalMode property: The type of rule.- Parameters:
approvalMode- the approvalMode value to set.- Returns:
- the ApprovalSettings object itself.
-
approvalStages
Get the approvalStages property: The approval stages of the request.- Returns:
- the approvalStages value.
-
withApprovalStages
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.
-