你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
RoleDefinitionProperties Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. RoleDefinitionProperties
- com.
Implements
public final class RoleDefinitionProperties
implements JsonSerializable<RoleDefinitionProperties>
Role definition properties.
Constructor Summary
Constructor | Description |
---|---|
RoleDefinitionProperties() |
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 |
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 |
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
RoleDefinitionProperties
public RoleDefinitionProperties()
Creates an instance of RoleDefinitionProperties 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 RoleDefinitionProperties fromJson(JsonReader jsonReader)
Reads an instance of RoleDefinitionProperties from the JsonReader.
Parameters:
Returns:
Throws:
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
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 RoleDefinitionProperties withAssignableScopes(List
Set the assignableScopes property: Role definition assignable scopes.
Parameters:
Returns:
withDescription
public RoleDefinitionProperties withDescription(String description)
Set the description property: The role definition description.
Parameters:
Returns:
withPermissions
public RoleDefinitionProperties withPermissions(List
Set the permissions property: Role definition permissions.
Parameters:
Returns:
withRoleName
public RoleDefinitionProperties withRoleName(String roleName)
Set the roleName property: The role name.
Parameters:
Returns:
withRoleType
public RoleDefinitionProperties withRoleType(String roleType)
Set the roleType property: The role type.
Parameters:
Returns: