RoleDefinitionInner Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. RoleDefinitionInner
- com.
Implements
public final class RoleDefinitionInner
implements JsonSerializable<RoleDefinitionInner>
Role definition.
Constructor Summary
Constructor | Description |
---|---|
RoleDefinitionInner() |
Creates an instance of Role |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
assignableScopes()
Get the assignable |
String |
createdBy()
Get the created |
Offset |
createdOn()
Get the created |
String |
description()
Get the description property: The role definition description. |
static
Role |
fromJson(JsonReader jsonReader)
Reads an instance of Role |
String |
id()
Get the id property: The role definition ID. |
String |
name()
Get the name property: The role definition name. |
List<Permission |
permissions()
Get the permissions property: Role definition permissions. |
String |
roleName()
Get the role |
String |
roleType()
Get the role |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The role definition type. |
String |
updatedBy()
Get the updated |
Offset |
updatedOn()
Get the updated |
void |
validate()
Validates the instance. |
Role |
withAssignableScopes(List<String> assignableScopes)
Set the assignable |
Role |
withDescription(String description)
Set the description property: The role definition description. |
Role |
withPermissions(List<PermissionInner> permissions)
Set the permissions property: Role definition permissions. |
Role |
withRoleName(String roleName)
Set the role |
Role |
withRoleType(String roleType)
Set the role |
Methods inherited from java.lang.Object
Constructor Details
RoleDefinitionInner
public RoleDefinitionInner()
Creates an instance of RoleDefinitionInner class.
Method Details
assignableScopes
public List
Get the assignableScopes property: Role definition assignable scopes.
Returns:
createdBy
public String createdBy()
Get the createdBy property: Id of the user who created the assignment.
Returns:
createdOn
public OffsetDateTime createdOn()
Get the createdOn property: Time it was created.
Returns:
description
public String description()
Get the description property: The role definition description.
Returns:
fromJson
public static RoleDefinitionInner fromJson(JsonReader jsonReader)
Reads an instance of RoleDefinitionInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The role definition ID.
Returns:
name
public String name()
Get the name property: The role definition name.
Returns:
permissions
public List
Get the permissions property: Role definition permissions.
Returns:
roleName
public String roleName()
Get the roleName property: The role name.
Returns:
roleType
public String roleType()
Get the roleType property: The role type.
Returns:
toJson
type
public String type()
Get the type property: The role definition type.
Returns:
updatedBy
public String updatedBy()
Get the updatedBy property: Id of the user who updated the assignment.
Returns:
updatedOn
public OffsetDateTime updatedOn()
Get the updatedOn property: Time it was updated.
Returns:
validate
public void validate()
Validates the instance.
withAssignableScopes
public RoleDefinitionInner withAssignableScopes(List
Set the assignableScopes property: Role definition assignable scopes.
Parameters:
Returns:
withDescription
public RoleDefinitionInner withDescription(String description)
Set the description property: The role definition description.
Parameters:
Returns:
withPermissions
public RoleDefinitionInner withPermissions(List
Set the permissions property: Role definition permissions.
Parameters:
Returns:
withRoleName
public RoleDefinitionInner withRoleName(String roleName)
Set the roleName property: The role name.
Parameters:
Returns:
withRoleType
public RoleDefinitionInner withRoleType(String roleType)
Set the roleType property: The role type.
Parameters:
Returns:
Applies to
Azure SDK for Java