ApprovalSettings Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. models. ApprovalSettings
- com.
Implements
public final class ApprovalSettings
implements JsonSerializable<ApprovalSettings>
The approval settings.
Constructor Summary
| Constructor | Description |
|---|---|
| ApprovalSettings() |
Creates an instance of Approval |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Approval |
approvalMode()
Get the approval |
|
List<Approval |
approvalStages()
Get the approval |
|
static
Approval |
fromJson(JsonReader jsonReader)
Reads an instance of Approval |
| Boolean |
isApprovalRequired()
Get the is |
| Boolean |
isApprovalRequiredForExtension()
Get the is |
| Boolean |
isRequestorJustificationRequired()
Get the is |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Approval |
withApprovalMode(ApprovalMode approvalMode)
Set the approval |
|
Approval |
withApprovalStages(List<ApprovalStage> approvalStages)
Set the approval |
|
Approval |
withIsApprovalRequired(Boolean isApprovalRequired)
Set the is |
|
Approval |
withIsApprovalRequiredForExtension(Boolean isApprovalRequiredForExtension)
Set the is |
|
Approval |
withIsRequestorJustificationRequired(Boolean isRequestorJustificationRequired)
Set the is |
Methods inherited from java.lang.Object
Constructor Details
ApprovalSettings
public ApprovalSettings()
Creates an instance of ApprovalSettings class.
Method Details
approvalMode
public ApprovalMode approvalMode()
Get the approvalMode property: The type of rule.
Returns:
approvalStages
public List<ApprovalStage> approvalStages()
Get the approvalStages property: The approval stages of the request.
Returns:
fromJson
public static ApprovalSettings fromJson(JsonReader jsonReader)
Reads an instance of ApprovalSettings from the JsonReader.
Parameters:
Returns:
Throws:
isApprovalRequired
public Boolean isApprovalRequired()
Get the isApprovalRequired property: Determines whether approval is required or not.
Returns:
isApprovalRequiredForExtension
public Boolean isApprovalRequiredForExtension()
Get the isApprovalRequiredForExtension property: Determines whether approval is required for assignment extension.
Returns:
isRequestorJustificationRequired
public Boolean isRequestorJustificationRequired()
Get the isRequestorJustificationRequired property: Determine whether requestor justification is required.
Returns:
toJson
validate
public void validate()
Validates the instance.
withApprovalMode
public ApprovalSettings withApprovalMode(ApprovalMode approvalMode)
Set the approvalMode property: The type of rule.
Parameters:
Returns:
withApprovalStages
public ApprovalSettings withApprovalStages(List<ApprovalStage> approvalStages)
Set the approvalStages property: The approval stages of the request.
Parameters:
Returns:
withIsApprovalRequired
public ApprovalSettings withIsApprovalRequired(Boolean isApprovalRequired)
Set the isApprovalRequired property: Determines whether approval is required or not.
Parameters:
Returns:
withIsApprovalRequiredForExtension
public ApprovalSettings withIsApprovalRequiredForExtension(Boolean isApprovalRequiredForExtension)
Set the isApprovalRequiredForExtension property: Determines whether approval is required for assignment extension.
Parameters:
Returns:
withIsRequestorJustificationRequired
public ApprovalSettings withIsRequestorJustificationRequired(Boolean isRequestorJustificationRequired)
Set the isRequestorJustificationRequired property: Determine whether requestor justification is required.
Parameters:
Returns: