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

RoleDefinitionInner Class

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

Implements

public final class RoleDefinitionInner
implements JsonSerializable<RoleDefinitionInner>

Role definition.

Constructor Summary

Constructor Description
RoleDefinitionInner()

Creates an instance of RoleDefinitionInner 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 RoleDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of RoleDefinitionInner from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The role definition type.

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.

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.

Methods inherited from java.lang.Object

Constructor Details

RoleDefinitionInner

public RoleDefinitionInner()

Creates an instance of RoleDefinitionInner 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 RoleDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of RoleDefinitionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoleDefinitionInner 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 RoleDefinitionInner.

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.

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:

type

public String type()

Get the type property: The role definition type.

Returns:

the type value.

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 RoleDefinitionInner withAssignableScopes(List assignableScopes)

Set the assignableScopes property: Role definition assignable scopes.

Parameters:

assignableScopes - the assignableScopes value to set.

Returns:

the RoleDefinitionInner object itself.

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.

withPermissions

public RoleDefinitionInner withPermissions(List permissions)

Set the permissions property: Role definition permissions.

Parameters:

permissions - the permissions value to set.

Returns:

the RoleDefinitionInner object itself.

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.

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.

Applies to