RoleAssignmentInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. authorization. fluent. models. RoleAssignmentInner
- com.
- com.
public final class RoleAssignmentInner
extends ProxyResource
Role Assignments.
Constructor Summary
Constructor | Description |
---|---|
RoleAssignmentInner() |
Creates an instance of Role |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
condition()
Get the condition property: The conditions on the role assignment. |
String |
conditionVersion()
Get the condition |
String |
createdBy()
Get the created |
Offset |
createdOn()
Get the created |
String |
delegatedManagedIdentityResourceId()
Get the delegated |
String |
description()
Get the description property: Description of role assignment. |
static
Role |
fromJson(JsonReader jsonReader)
Reads an instance of Role |
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 principal |
Principal |
principalType()
Get the principal |
String |
roleDefinitionId()
Get the role |
String |
scope()
Get the scope property: The role assignment scope. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
String |
updatedBy()
Get the updated |
Offset |
updatedOn()
Get the updated |
void |
validate()
Validates the instance. |
Role |
withCondition(String condition)
Set the condition property: The conditions on the role assignment. |
Role |
withConditionVersion(String conditionVersion)
Set the condition |
Role |
withDelegatedManagedIdentityResourceId(String delegatedManagedIdentityResourceId)
Set the delegated |
Role |
withDescription(String description)
Set the description property: Description of role assignment. |
Role |
withPrincipalId(String principalId)
Set the principal |
Role |
withPrincipalType(PrincipalType principalType)
Set the principal |
Role |
withRoleDefinitionId(String roleDefinitionId)
Set the role |
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:
conditionVersion
public String conditionVersion()
Get the conditionVersion property: Version of the condition. Currently the only accepted value is '2.0'.
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:
delegatedManagedIdentityResourceId
public String delegatedManagedIdentityResourceId()
Get the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.
Returns:
description
public String description()
Get the description property: Description of role assignment.
Returns:
fromJson
public static RoleAssignmentInner fromJson(JsonReader jsonReader)
Reads an instance of RoleAssignmentInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
RoleAssignmentInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
RoleAssignmentInner.name()Returns:
principalId
public String principalId()
Get the principalId property: The principal ID.
Returns:
principalType
public PrincipalType principalType()
Get the principalType property: The principal type of the assigned principal ID.
Returns:
roleDefinitionId
public String roleDefinitionId()
Get the roleDefinitionId property: The role definition ID.
Returns:
scope
public String scope()
Get the scope property: The role assignment scope.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RoleAssignmentInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
RoleAssignmentInner.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.
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:
Returns:
withConditionVersion
public RoleAssignmentInner withConditionVersion(String conditionVersion)
Set the conditionVersion property: Version of the condition. Currently the only accepted value is '2.0'.
Parameters:
Returns:
withDelegatedManagedIdentityResourceId
public RoleAssignmentInner withDelegatedManagedIdentityResourceId(String delegatedManagedIdentityResourceId)
Set the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.
Parameters:
Returns:
withDescription
public RoleAssignmentInner withDescription(String description)
Set the description property: Description of role assignment.
Parameters:
Returns:
withPrincipalId
public RoleAssignmentInner withPrincipalId(String principalId)
Set the principalId property: The principal ID.
Parameters:
Returns:
withPrincipalType
public RoleAssignmentInner withPrincipalType(PrincipalType principalType)
Set the principalType property: The principal type of the assigned principal ID.
Parameters:
Returns:
withRoleDefinitionId
public RoleAssignmentInner withRoleDefinitionId(String roleDefinitionId)
Set the roleDefinitionId property: The role definition ID.
Parameters:
Returns:
Applies to
Azure SDK for Java