Class RoleDefinitionInner
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.RoleDefinitionInner
Role definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the assignableScopes property: Role definition assignable scopes.Get the createdBy property: Id of the user who created the assignment.Get the createdOn property: Time it was created.Get the description property: The role definition description.id()Get the id property: The role definition ID.name()Get the name property: The role definition name.Get the permissions property: Role definition permissions.roleName()Get the roleName property: The role name.roleType()Get the roleType property: The role type.type()Get the type property: The role definition type.Get the updatedBy property: Id of the user who updated the assignment.Get the updatedOn property: Time it was updated.voidvalidate()Validates the instance.withAssignableScopes(List<String> assignableScopes) Set the assignableScopes property: Role definition assignable scopes.withDescription(String description) Set the description property: The role definition description.withPermissions(List<PermissionInner> permissions) Set the permissions property: Role definition permissions.withRoleName(String roleName) Set the roleName property: The role name.withRoleType(String roleType) Set the roleType property: The role type.
-
Constructor Details
-
RoleDefinitionInner
public RoleDefinitionInner()Creates an instance of RoleDefinitionInner class.
-
-
Method Details
-
id
Get the id property: The role definition ID.- Returns:
- the id value.
-
name
Get the name property: The role definition name.- Returns:
- the name value.
-
type
Get the type property: The role definition type.- Returns:
- the type value.
-
roleName
Get the roleName property: The role name.- Returns:
- the roleName value.
-
withRoleName
Set the roleName property: The role name.- Parameters:
roleName- the roleName value to set.- Returns:
- the RoleDefinitionInner object itself.
-
description
Get the description property: The role definition description.- Returns:
- the description value.
-
withDescription
Set the description property: The role definition description.- Parameters:
description- the description value to set.- Returns:
- the RoleDefinitionInner object itself.
-
roleType
Get the roleType property: The role type.- Returns:
- the roleType value.
-
withRoleType
Set the roleType property: The role type.- Parameters:
roleType- the roleType value to set.- Returns:
- the RoleDefinitionInner object itself.
-
permissions
Get the permissions property: Role definition permissions.- Returns:
- the permissions value.
-
withPermissions
Set the permissions property: Role definition permissions.- Parameters:
permissions- the permissions value to set.- Returns:
- the RoleDefinitionInner object itself.
-
assignableScopes
Get the assignableScopes property: Role definition assignable scopes.- Returns:
- the assignableScopes value.
-
withAssignableScopes
Set the assignableScopes property: Role definition assignable scopes.- Parameters:
assignableScopes- the assignableScopes value to set.- Returns:
- the RoleDefinitionInner 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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-