Class RoleAssignmentInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.authorization.fluent.models.RoleAssignmentInner
public final class RoleAssignmentInner
extends com.azure.core.management.ProxyResource
Role Assignments.
-
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 createdBy property: Id of the user who created the assignment.Get the createdOn property: Time it was created.Get the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.Get the description property: Description of role assignment.Get the principalId property: The principal ID.Get the principalType property: The principal type of the assigned principal ID.Get the roleDefinitionId property: The role definition ID.scope()Get the scope property: The role assignment scope.Get the updatedBy property: Id of the user who updated the assignment.Get the updatedOn property: Time it was updated.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.withDelegatedManagedIdentityResourceId(String delegatedManagedIdentityResourceId) Set the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.withDescription(String description) Set the description property: Description of role assignment.withPrincipalId(String principalId) Set the principalId property: The principal ID.withPrincipalType(PrincipalType principalType) Set the principalType property: The principal type of the assigned principal ID.withRoleDefinitionId(String roleDefinitionId) Set the roleDefinitionId property: The role definition ID.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
RoleAssignmentInner
public RoleAssignmentInner()Creates an instance of RoleAssignmentInner class.
-
-
Method Details
-
scope
Get the scope property: The role assignment scope.- Returns:
- the scope value.
-
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 RoleAssignmentInner 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 RoleAssignmentInner object itself.
-
principalType
Get the principalType property: The principal type of the assigned principal ID.- Returns:
- the principalType value.
-
withPrincipalType
Set the principalType property: The principal type of the assigned principal ID.- Parameters:
principalType- the principalType value to set.- Returns:
- the RoleAssignmentInner object itself.
-
description
Get the description property: Description of role assignment.- Returns:
- the description value.
-
withDescription
Set the description property: Description of role assignment.- Parameters:
description- the description value to set.- Returns:
- the RoleAssignmentInner 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 RoleAssignmentInner object itself.
-
conditionVersion
Get the conditionVersion property: Version of the condition. Currently the only accepted value is '2.0'.- Returns:
- the conditionVersion value.
-
withConditionVersion
Set the conditionVersion property: Version of the condition. Currently the only accepted value is '2.0'.- Parameters:
conditionVersion- the conditionVersion value to set.- Returns:
- the RoleAssignmentInner object itself.
-
createdOn
Get the createdOn property: Time it was created.- Returns:
- the createdOn value.
-
updatedOn
Get the updatedOn property: Time it was updated.- Returns:
- the updatedOn value.
-
createdBy
Get the createdBy property: Id of the user who created the assignment.- Returns:
- the createdBy value.
-
updatedBy
Get the updatedBy property: Id of the user who updated the assignment.- Returns:
- the updatedBy value.
-
delegatedManagedIdentityResourceId
Get the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.- Returns:
- the delegatedManagedIdentityResourceId value.
-
withDelegatedManagedIdentityResourceId
public RoleAssignmentInner withDelegatedManagedIdentityResourceId(String delegatedManagedIdentityResourceId) Set the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.- Parameters:
delegatedManagedIdentityResourceId- the delegatedManagedIdentityResourceId value to set.- Returns:
- the RoleAssignmentInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-