Class RoleManagementPolicyApprovalRule
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
com.azure.resourcemanager.authorization.models.RoleManagementPolicyApprovalRule
The role management policy approval rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleManagementPolicyApprovalRule class. -
Method Summary
Modifier and TypeMethodDescriptionsetting()Get the setting property: The approval setting.voidvalidate()Validates the instance.Set the id property: The id of the rule.withSetting(ApprovalSettings setting) Set the setting property: The approval setting.Set the target property: The target of the current rule.Methods inherited from class com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
id, target
-
Constructor Details
-
RoleManagementPolicyApprovalRule
public RoleManagementPolicyApprovalRule()Creates an instance of RoleManagementPolicyApprovalRule class.
-
-
Method Details
-
setting
Get the setting property: The approval setting.- Returns:
- the setting value.
-
withSetting
Set the setting property: The approval setting.- Parameters:
setting- the setting value to set.- Returns:
- the RoleManagementPolicyApprovalRule object itself.
-
withId
Set the id property: The id of the rule.- Overrides:
withIdin classRoleManagementPolicyRule- Parameters:
id- the id value to set.- Returns:
- the RoleManagementPolicyRule object itself.
-
withTarget
Set the target property: The target of the current rule.- Overrides:
withTargetin classRoleManagementPolicyRule- Parameters:
target- the target value to set.- Returns:
- the RoleManagementPolicyRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRoleManagementPolicyRule- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-