Class RoleAssignmentPropertiesWithScope
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleAssignmentPropertiesWithScope
Role assignment properties with scope.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the condition property: The conditions on the role assignment.Get the conditionVersion property: Version of the condition.Get the principalId property: The principal ID.Get the roleDefinitionId property: The role definition ID.scope()Get the scope property: The role assignment scope.voidvalidate()Validates the instance.withCondition(String condition) Set the condition property: The conditions on the role assignment.withConditionVersion(String conditionVersion) Set the conditionVersion property: Version of the condition.withPrincipalId(String principalId) Set the principalId property: The principal ID.withRoleDefinitionId(String roleDefinitionId) Set the roleDefinitionId property: The role definition ID.Set the scope property: The role assignment scope.
-
Constructor Details
-
RoleAssignmentPropertiesWithScope
public RoleAssignmentPropertiesWithScope()
-
-
Method Details
-
scope
Get the scope property: The role assignment scope.- Returns:
- the scope value.
-
withScope
Set the scope property: The role assignment scope.- Parameters:
scope- the scope value to set.- Returns:
- the RoleAssignmentPropertiesWithScope object itself.
-
roleDefinitionId
Get the roleDefinitionId property: The role definition ID.- Returns:
- the roleDefinitionId value.
-
withRoleDefinitionId
Set the roleDefinitionId property: The role definition ID.- Parameters:
roleDefinitionId- the roleDefinitionId value to set.- Returns:
- the RoleAssignmentPropertiesWithScope object itself.
-
principalId
Get the principalId property: The principal ID.- Returns:
- the principalId value.
-
withPrincipalId
Set the principalId property: The principal ID.- Parameters:
principalId- the principalId value to set.- Returns:
- the RoleAssignmentPropertiesWithScope object itself.
-
condition
Get the condition property: The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.- Returns:
- the condition value.
-
withCondition
Set the condition property: The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.- Parameters:
condition- the condition value to set.- Returns:
- the RoleAssignmentPropertiesWithScope object itself.
-
conditionVersion
Get the conditionVersion property: Version of the condition. Currently accepted value is '2.0'.- Returns:
- the conditionVersion value.
-
withConditionVersion
Set the conditionVersion property: Version of the condition. Currently accepted value is '2.0'.- Parameters:
conditionVersion- the conditionVersion value to set.- Returns:
- the RoleAssignmentPropertiesWithScope object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-