Class RoleManagementPolicyEnablementRule
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
com.azure.resourcemanager.authorization.models.RoleManagementPolicyEnablementRule
The role management policy enablement rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleManagementPolicyEnablementRule class. -
Method Summary
Modifier and TypeMethodDescriptionGet the enabledRules property: The list of enabled rules.voidvalidate()Validates the instance.withEnabledRules(List<EnablementRules> enabledRules) Set the enabledRules property: The list of enabled rules.Set the id property: The id of the rule.Set the target property: The target of the current rule.Methods inherited from class com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
id, target
-
Constructor Details
-
RoleManagementPolicyEnablementRule
public RoleManagementPolicyEnablementRule()Creates an instance of RoleManagementPolicyEnablementRule class.
-
-
Method Details
-
enabledRules
Get the enabledRules property: The list of enabled rules.- Returns:
- the enabledRules value.
-
withEnabledRules
Set the enabledRules property: The list of enabled rules.- Parameters:
enabledRules- the enabledRules value to set.- Returns:
- the RoleManagementPolicyEnablementRule 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.
-