Compartir vía


RoleManagementPolicyRule Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.RoleManagementPolicyRule

public class RoleManagementPolicyRule

The role management policy rule.

Constructor Summary

Constructor Description
RoleManagementPolicyRule()

Creates an instance of RoleManagementPolicyRule class.

Method Summary

Modifier and Type Method and Description
String id()

Get the id property: The id of the rule.

RoleManagementPolicyRuleTarget target()

Get the target property: The target of the current rule.

void validate()

Validates the instance.

RoleManagementPolicyRule withId(String id)

Set the id property: The id of the rule.

RoleManagementPolicyRule 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

id

public String id()

Get the id property: The id of the rule.

Returns:

the id value.

target

public RoleManagementPolicyRuleTarget target()

Get the target property: The target of the current rule.

Returns:

the target value.

validate

public void validate()

Validates the instance.

withId

public RoleManagementPolicyRule withId(String id)

Set the id property: The id of the rule.

Parameters:

id - the id value to set.

Returns:

the RoleManagementPolicyRule object itself.

withTarget

public RoleManagementPolicyRule withTarget(RoleManagementPolicyRuleTarget target)

Set the target property: The target of the current rule.

Parameters:

target - the target value to set.

Returns:

the RoleManagementPolicyRule object itself.

Applies to