你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RoleDefinitionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.RoleDefinitionProperties

Implements

public final class RoleDefinitionProperties
implements JsonSerializable<RoleDefinitionProperties>

Role definition properties.

Constructor Summary

Constructor Description
RoleDefinitionProperties()

Creates an instance of RoleDefinitionProperties class.

Method Summary

Modifier and Type Method and Description
List<String> assignableScopes()

Get the assignableScopes property: Role definition assignable scopes.

String createdBy()

Get the createdBy property: Id of the user who created the assignment.

OffsetDateTime createdOn()

Get the createdOn property: Time it was created.

String description()

Get the description property: The role definition description.

static RoleDefinitionProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleDefinitionProperties from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
String updatedBy()

Get the updatedBy property: Id of the user who updated the assignment.

OffsetDateTime updatedOn()

Get the updatedOn property: Time it was updated.

void validate()

Validates the instance.

RoleDefinitionProperties withAssignableScopes(List<String> assignableScopes)

Set the assignableScopes property: Role definition assignable scopes.

RoleDefinitionProperties withDescription(String description)

Set the description property: The role definition description.

RoleDefinitionProperties withPermissions(List<PermissionInner> permissions)

Set the permissions property: Role definition permissions.

RoleDefinitionProperties withRoleName(String roleName)

Set the roleName property: The role name.

RoleDefinitionProperties withRoleType(String roleType)

Set the roleType property: The role type.

Methods inherited from java.lang.Object

Constructor Details

RoleDefinitionProperties

public RoleDefinitionProperties()

Creates an instance of RoleDefinitionProperties class.

Method Details

assignableScopes

public List assignableScopes()

Get the assignableScopes property: Role definition assignable scopes.

Returns:

the assignableScopes value.

createdBy

public String createdBy()

Get the createdBy property: Id of the user who created the assignment.

Returns:

the createdBy value.

createdOn

public OffsetDateTime createdOn()

Get the createdOn property: Time it was created.

Returns:

the createdOn value.

description

public String description()

Get the description property: The role definition description.

Returns:

the description value.

fromJson

public static RoleDefinitionProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleDefinitionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoleDefinitionProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the RoleDefinitionProperties.

permissions

public List permissions()

Get the permissions property: Role definition permissions.

Returns:

the permissions value.

roleName

public String roleName()

Get the roleName property: The role name.

Returns:

the roleName value.

roleType

public String roleType()

Get the roleType property: The role type.

Returns:

the roleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

updatedBy

public String updatedBy()

Get the updatedBy property: Id of the user who updated the assignment.

Returns:

the updatedBy value.

updatedOn

public OffsetDateTime updatedOn()

Get the updatedOn property: Time it was updated.

Returns:

the updatedOn value.

validate

public void validate()

Validates the instance.

withAssignableScopes

public RoleDefinitionProperties withAssignableScopes(List assignableScopes)

Set the assignableScopes property: Role definition assignable scopes.

Parameters:

assignableScopes - the assignableScopes value to set.

Returns:

the RoleDefinitionProperties object itself.

withDescription

public RoleDefinitionProperties withDescription(String description)

Set the description property: The role definition description.

Parameters:

description - the description value to set.

Returns:

the RoleDefinitionProperties object itself.

withPermissions

public RoleDefinitionProperties withPermissions(List permissions)

Set the permissions property: Role definition permissions.

Parameters:

permissions - the permissions value to set.

Returns:

the RoleDefinitionProperties object itself.

withRoleName

public RoleDefinitionProperties withRoleName(String roleName)

Set the roleName property: The role name.

Parameters:

roleName - the roleName value to set.

Returns:

the RoleDefinitionProperties object itself.

withRoleType

public RoleDefinitionProperties withRoleType(String roleType)

Set the roleType property: The role type.

Parameters:

roleType - the roleType value to set.

Returns:

the RoleDefinitionProperties object itself.

Applies to