Class PolicyAssignmentProperties
java.lang.Object
com.azure.resourcemanager.authorization.models.PolicyAssignmentProperties
Expanded info of resource scope, role definition and policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PolicyAssignmentProperties class. -
Method Summary
Modifier and TypeMethodDescriptionpolicy()Get the policy property: Details of the policy.Get the roleDefinition property: Details of role definition.scope()Get the scope property: Details of the resource scope.voidvalidate()Validates the instance.Set the policy property: Details of the policy.withRoleDefinition(PolicyAssignmentPropertiesRoleDefinition roleDefinition) Set the roleDefinition property: Details of role definition.Set the scope property: Details of the resource scope.
-
Constructor Details
-
PolicyAssignmentProperties
public PolicyAssignmentProperties()Creates an instance of PolicyAssignmentProperties class.
-
-
Method Details
-
scope
Get the scope property: Details of the resource scope.- Returns:
- the scope value.
-
withScope
Set the scope property: Details of the resource scope.- Parameters:
scope- the scope value to set.- Returns:
- the PolicyAssignmentProperties object itself.
-
roleDefinition
Get the roleDefinition property: Details of role definition.- Returns:
- the roleDefinition value.
-
withRoleDefinition
public PolicyAssignmentProperties withRoleDefinition(PolicyAssignmentPropertiesRoleDefinition roleDefinition) Set the roleDefinition property: Details of role definition.- Parameters:
roleDefinition- the roleDefinition value to set.- Returns:
- the PolicyAssignmentProperties object itself.
-
policy
Get the policy property: Details of the policy.- Returns:
- the policy value.
-
withPolicy
Set the policy property: Details of the policy.- Parameters:
policy- the policy value to set.- Returns:
- the PolicyAssignmentProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-