ApprovalSettings Class

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

Implements

public final class ApprovalSettings
implements JsonSerializable<ApprovalSettings>

The approval settings.

Constructor Summary

Constructor Description
ApprovalSettings()

Creates an instance of ApprovalSettings class.

Method Summary

Modifier and Type Method and Description
ApprovalMode approvalMode()

Get the approvalMode property: The type of rule.

List<ApprovalStage> approvalStages()

Get the approvalStages property: The approval stages of the request.

static ApprovalSettings fromJson(JsonReader jsonReader)

Reads an instance of ApprovalSettings from the JsonReader.

Boolean isApprovalRequired()

Get the isApprovalRequired property: Determines whether approval is required or not.

Boolean isApprovalRequiredForExtension()

Get the isApprovalRequiredForExtension property: Determines whether approval is required for assignment extension.

Boolean isRequestorJustificationRequired()

Get the isRequestorJustificationRequired property: Determine whether requestor justification is required.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApprovalSettings withApprovalMode(ApprovalMode approvalMode)

Set the approvalMode property: The type of rule.

ApprovalSettings withApprovalStages(List<ApprovalStage> approvalStages)

Set the approvalStages property: The approval stages of the request.

ApprovalSettings withIsApprovalRequired(Boolean isApprovalRequired)

Set the isApprovalRequired property: Determines whether approval is required or not.

ApprovalSettings withIsApprovalRequiredForExtension(Boolean isApprovalRequiredForExtension)

Set the isApprovalRequiredForExtension property: Determines whether approval is required for assignment extension.

ApprovalSettings withIsRequestorJustificationRequired(Boolean isRequestorJustificationRequired)

Set the isRequestorJustificationRequired property: Determine whether requestor justification is required.

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:

the approvalMode value.

approvalStages

public List<ApprovalStage> approvalStages()

Get the approvalStages property: The approval stages of the request.

Returns:

the approvalStages value.

fromJson

public static ApprovalSettings fromJson(JsonReader jsonReader)

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.

isApprovalRequired

public Boolean isApprovalRequired()

Get the isApprovalRequired property: Determines whether approval is required or not.

Returns:

the isApprovalRequired value.

isApprovalRequiredForExtension

public Boolean isApprovalRequiredForExtension()

Get the isApprovalRequiredForExtension property: Determines whether approval is required for assignment extension.

Returns:

the isApprovalRequiredForExtension value.

isRequestorJustificationRequired

public Boolean isRequestorJustificationRequired()

Get the isRequestorJustificationRequired property: Determine whether requestor justification is required.

Returns:

the isRequestorJustificationRequired value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

Applies to