RoleManagementPolicyRule Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. models. RoleManagementPolicyRule
- com.
Implements
public class RoleManagementPolicyRule
implements JsonSerializable<RoleManagementPolicyRule>
The role management policy rule.
Constructor Summary
Constructor | Description |
---|---|
RoleManagementPolicyRule() |
Creates an instance of Role |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Role |
fromJson(JsonReader jsonReader)
Reads an instance of Role |
String |
id()
Get the id property: The id of the rule. |
Role |
ruleType()
Get the rule |
Role |
target()
Get the target property: The target of the current rule. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
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 java.lang.Object
Constructor Details
RoleManagementPolicyRule
public RoleManagementPolicyRule()
Creates an instance of RoleManagementPolicyRule class.
Method Details
fromJson
public static RoleManagementPolicyRule fromJson(JsonReader jsonReader)
Reads an instance of RoleManagementPolicyRule from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The id of the rule.
Returns:
ruleType
public RoleManagementPolicyRuleType ruleType()
Get the ruleType property: The type of rule.
Returns:
target
public RoleManagementPolicyRuleTarget target()
Get the target property: The target of the current rule.
Returns:
toJson
validate
public void validate()
Validates the instance.
withId
public RoleManagementPolicyRule withId(String id)
Set the id property: The id of the rule.
Parameters:
Returns:
withTarget
public RoleManagementPolicyRule withTarget(RoleManagementPolicyRuleTarget target)
Set the target property: The target of the current rule.
Parameters:
Returns:
Applies to
Azure SDK for Java