你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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: