Class RoleDefinition
java.lang.Object
com.azure.resourcemanager.resources.models.RoleDefinition
Role definition properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionid()Get the id property: The role definition ID.Get the isServiceRole property: If this is a service role.name()Get the name property: The role definition name.Get the permissions property: Role definition permissions.scopes()Get the scopes property: Role definition assignable scopes.voidvalidate()Validates the instance.Set the id property: The role definition ID.withIsServiceRole(Boolean isServiceRole) Set the isServiceRole property: If this is a service role.Set the name property: The role definition name.withPermissions(List<Permission> permissions) Set the permissions property: Role definition permissions.withScopes(List<String> scopes) Set the scopes property: Role definition assignable scopes.
-
Constructor Details
-
RoleDefinition
public RoleDefinition()Creates an instance of RoleDefinition class.
-
-
Method Details
-
id
Get the id property: The role definition ID.- Returns:
- the id value.
-
withId
Set the id property: The role definition ID.- Parameters:
id- the id value to set.- Returns:
- the RoleDefinition object itself.
-
name
Get the name property: The role definition name.- Returns:
- the name value.
-
withName
Set the name property: The role definition name.- Parameters:
name- the name value to set.- Returns:
- the RoleDefinition object itself.
-
isServiceRole
Get the isServiceRole property: If this is a service role.- Returns:
- the isServiceRole value.
-
withIsServiceRole
Set the isServiceRole property: If this is a service role.- Parameters:
isServiceRole- the isServiceRole value to set.- Returns:
- the RoleDefinition 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 RoleDefinition object itself.
-
scopes
Get the scopes property: Role definition assignable scopes.- Returns:
- the scopes value.
-
withScopes
Set the scopes property: Role definition assignable scopes.- Parameters:
scopes- the scopes value to set.- Returns:
- the RoleDefinition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-