Partilhar via


RoleAssignmentInner Class

public final class RoleAssignmentInner
extends ProxyResource

Role Assignments.

Constructor Summary

Constructor Description
RoleAssignmentInner()

Creates an instance of RoleAssignmentInner class.

Method Summary

Modifier and Type Method and Description
String condition()

Get the condition property: The conditions on the role assignment.

String conditionVersion()

Get the conditionVersion property: Version of the condition.

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 delegatedManagedIdentityResourceId()

Get the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.

String description()

Get the description property: Description of role assignment.

static RoleAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of RoleAssignmentInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String principalId()

Get the principalId property: The principal ID.

PrincipalType principalType()

Get the principalType property: The principal type of the assigned principal ID.

String roleDefinitionId()

Get the roleDefinitionId property: The role definition ID.

String scope()

Get the scope property: The role assignment scope.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

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.

RoleAssignmentInner withCondition(String condition)

Set the condition property: The conditions on the role assignment.

RoleAssignmentInner withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition.

RoleAssignmentInner withDelegatedManagedIdentityResourceId(String delegatedManagedIdentityResourceId)

Set the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.

RoleAssignmentInner withDescription(String description)

Set the description property: Description of role assignment.

RoleAssignmentInner withPrincipalId(String principalId)

Set the principalId property: The principal ID.

RoleAssignmentInner withPrincipalType(PrincipalType principalType)

Set the principalType property: The principal type of the assigned principal ID.

RoleAssignmentInner withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

RoleAssignmentInner

public RoleAssignmentInner()

Creates an instance of RoleAssignmentInner class.

Method Details

condition

public String condition()

Get the condition property: The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource\[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.

Returns:

the condition value.

conditionVersion

public String conditionVersion()

Get the conditionVersion property: Version of the condition. Currently the only accepted value is '2.0'.

Returns:

the conditionVersion 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.

delegatedManagedIdentityResourceId

public String delegatedManagedIdentityResourceId()

Get the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.

Returns:

the delegatedManagedIdentityResourceId value.

description

public String description()

Get the description property: Description of role assignment.

Returns:

the description value.

fromJson

public static RoleAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of RoleAssignmentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

RoleAssignmentInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RoleAssignmentInner.name()

Returns:

the name value.

principalId

public String principalId()

Get the principalId property: The principal ID.

Returns:

the principalId value.

principalType

public PrincipalType principalType()

Get the principalType property: The principal type of the assigned principal ID.

Returns:

the principalType value.

roleDefinitionId

public String roleDefinitionId()

Get the roleDefinitionId property: The role definition ID.

Returns:

the roleDefinitionId value.

scope

public String scope()

Get the scope property: The role assignment scope.

Returns:

the scope value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RoleAssignmentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RoleAssignmentInner.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.

withCondition

public RoleAssignmentInner withCondition(String condition)

Set the condition property: The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource\[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.

Parameters:

condition - the condition value to set.

Returns:

the RoleAssignmentInner object itself.

withConditionVersion

public RoleAssignmentInner withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition. Currently the only accepted value is '2.0'.

Parameters:

conditionVersion - the conditionVersion value to set.

Returns:

the RoleAssignmentInner object itself.

withDelegatedManagedIdentityResourceId

public RoleAssignmentInner withDelegatedManagedIdentityResourceId(String delegatedManagedIdentityResourceId)

Set the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.

Parameters:

delegatedManagedIdentityResourceId - the delegatedManagedIdentityResourceId value to set.

Returns:

the RoleAssignmentInner object itself.

withDescription

public RoleAssignmentInner withDescription(String description)

Set the description property: Description of role assignment.

Parameters:

description - the description value to set.

Returns:

the RoleAssignmentInner object itself.

withPrincipalId

public RoleAssignmentInner withPrincipalId(String principalId)

Set the principalId property: The principal ID.

Parameters:

principalId - the principalId value to set.

Returns:

the RoleAssignmentInner object itself.

withPrincipalType

public RoleAssignmentInner withPrincipalType(PrincipalType principalType)

Set the principalType property: The principal type of the assigned principal ID.

Parameters:

principalType - the principalType value to set.

Returns:

the RoleAssignmentInner object itself.

withRoleDefinitionId

public RoleAssignmentInner withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition ID.

Parameters:

roleDefinitionId - the roleDefinitionId value to set.

Returns:

the RoleAssignmentInner object itself.

Applies to