Class ApprovalSettings
java.lang.Object
com.azure.resourcemanager.authorization.models.ApprovalSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApprovalSettings>
public final class ApprovalSettings
extends Object
implements com.azure.json.JsonSerializable<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.static ApprovalSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApprovalSettings from the JsonReader.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class java.lang.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
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApprovalSettings>- Throws:
IOException
-
fromJson
Reads an instance of ApprovalSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApprovalSettings 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 ApprovalSettings.
-