Class RoleDefinitionInner
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.RoleDefinitionInner
-
public final class RoleDefinitionInner extends Object
Role definition.
-
-
Constructor Summary
Constructors Constructor Description RoleDefinitionInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
assignableScopes()
Get the assignableScopes property: Role definition assignable scopes.String
description()
Get the description property: The role definition description.String
id()
Get the id property: The role definition ID.String
name()
Get the name property: The role definition name.List<PermissionInner>
permissions()
Get the permissions property: Role definition permissions.String
roleName()
Get the roleName property: The role name.String
roleType()
Get the roleType property: The role type.String
type()
Get the type property: The role definition type.void
validate()
Validates the instance.RoleDefinitionInner
withAssignableScopes(List<String> assignableScopes)
Set the assignableScopes property: Role definition assignable scopes.RoleDefinitionInner
withDescription(String description)
Set the description property: The role definition description.RoleDefinitionInner
withPermissions(List<PermissionInner> permissions)
Set the permissions property: Role definition permissions.RoleDefinitionInner
withRoleName(String roleName)
Set the roleName property: The role name.RoleDefinitionInner
withRoleType(String roleType)
Set the roleType property: The role type.
-
-
-
Method Detail
-
id
public String id()
Get the id property: The role definition ID.- Returns:
- the id value.
-
name
public String name()
Get the name property: The role definition name.- Returns:
- the name value.
-
type
public String type()
Get the type property: The role definition type.- Returns:
- the type value.
-
roleName
public String roleName()
Get the roleName property: The role name.- Returns:
- the roleName value.
-
withRoleName
public RoleDefinitionInner withRoleName(String roleName)
Set the roleName property: The role name.- Parameters:
roleName
- the roleName value to set.- Returns:
- the RoleDefinitionInner object itself.
-
description
public String description()
Get the description property: The role definition description.- Returns:
- the description value.
-
withDescription
public RoleDefinitionInner withDescription(String description)
Set the description property: The role definition description.- Parameters:
description
- the description value to set.- Returns:
- the RoleDefinitionInner object itself.
-
roleType
public String roleType()
Get the roleType property: The role type.- Returns:
- the roleType value.
-
withRoleType
public RoleDefinitionInner withRoleType(String roleType)
Set the roleType property: The role type.- Parameters:
roleType
- the roleType value to set.- Returns:
- the RoleDefinitionInner object itself.
-
permissions
public List<PermissionInner> permissions()
Get the permissions property: Role definition permissions.- Returns:
- the permissions value.
-
withPermissions
public RoleDefinitionInner withPermissions(List<PermissionInner> permissions)
Set the permissions property: Role definition permissions.- Parameters:
permissions
- the permissions value to set.- Returns:
- the RoleDefinitionInner object itself.
-
assignableScopes
public List<String> assignableScopes()
Get the assignableScopes property: Role definition assignable scopes.- Returns:
- the assignableScopes value.
-
withAssignableScopes
public RoleDefinitionInner withAssignableScopes(List<String> assignableScopes)
Set the assignableScopes property: Role definition assignable scopes.- Parameters:
assignableScopes
- the assignableScopes value to set.- Returns:
- the RoleDefinitionInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-