RoleManagementPolicyEnablementRule Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. models. RoleManagementPolicyRule - com.
azure. resourcemanager. authorization. models. RoleManagementPolicyEnablementRule
- com.
- com.
public final class RoleManagementPolicyEnablementRule
extends RoleManagementPolicyRule
The role management policy enablement rule.
Constructor Summary
| Constructor | Description |
|---|---|
| RoleManagementPolicyEnablementRule() |
Creates an instance of Role |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Enablement |
enabledRules()
Get the enabled |
|
static
Role |
fromJson(JsonReader jsonReader)
Reads an instance of Role |
|
Role |
ruleType()
Get the rule |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Role |
withEnabledRules(List<EnablementRules> enabledRules)
Set the enabled |
|
Role |
withId(String id)
Set the id property: The id of the rule. |
|
Role |
withTarget(RoleManagementPolicyRuleTarget target)
Set the target property: The target of the current rule. |
Methods inherited from RoleManagementPolicyRule
Methods inherited from java.lang.Object
Constructor Details
RoleManagementPolicyEnablementRule
public RoleManagementPolicyEnablementRule()
Creates an instance of RoleManagementPolicyEnablementRule class.
Method Details
enabledRules
public List<EnablementRules> enabledRules()
Get the enabledRules property: The list of enabled rules.
Returns:
fromJson
public static RoleManagementPolicyEnablementRule fromJson(JsonReader jsonReader)
Reads an instance of RoleManagementPolicyEnablementRule from the JsonReader.
Parameters:
Returns:
Throws:
ruleType
public RoleManagementPolicyRuleType ruleType()
Get the ruleType property: The type of rule.
Overrides:
RoleManagementPolicyEnablementRule.ruleType()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RoleManagementPolicyEnablementRule.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
RoleManagementPolicyEnablementRule.validate()withEnabledRules
public RoleManagementPolicyEnablementRule withEnabledRules(List<EnablementRules> enabledRules)
Set the enabledRules property: The list of enabled rules.
Parameters:
Returns:
withId
public RoleManagementPolicyEnablementRule withId(String id)
Set the id property: The id of the rule.
Overrides:
RoleManagementPolicyEnablementRule.withId(String id)Parameters:
withTarget
public RoleManagementPolicyEnablementRule withTarget(RoleManagementPolicyRuleTarget target)
Set the target property: The target of the current rule.
Overrides:
RoleManagementPolicyEnablementRule.withTarget(RoleManagementPolicyRuleTarget target)Parameters: