Class RoleManagementPolicyEnablementRule
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule
com.azure.resourcemanager.authorization.models.RoleManagementPolicyEnablementRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RoleManagementPolicyRule>
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.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoleManagementPolicyEnablementRule from the JsonReader.ruleType()Get the ruleType property: The type of rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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 RoleManagementPolicyRule
id, targetMethods inherited from class 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
-
RoleManagementPolicyEnablementRule
public RoleManagementPolicyEnablementRule()Creates an instance of RoleManagementPolicyEnablementRule class.
-
-
Method Details
-
ruleType
Get the ruleType property: The type of rule.- Overrides:
ruleTypein classRoleManagementPolicyRule- Returns:
- the ruleType value.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RoleManagementPolicyRule>- Overrides:
toJsonin classRoleManagementPolicyRule- Throws:
IOException
-
fromJson
public static RoleManagementPolicyEnablementRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RoleManagementPolicyEnablementRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RoleManagementPolicyEnablementRule 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 RoleManagementPolicyEnablementRule.
-