RoleManagementPolicyAssignmentInner Class

public final class RoleManagementPolicyAssignmentInner
extends ProxyResource

Role management policy.

Constructor Summary

Constructor Description
RoleManagementPolicyAssignmentInner()

Creates an instance of RoleManagementPolicyAssignmentInner class.

Method Summary

Modifier and Type Method and Description
List<RoleManagementPolicyRule> effectiveRules()

Get the effectiveRules property: The readonly computed rule applied to the policy.

static RoleManagementPolicyAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyAssignmentInner 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.

PolicyAssignmentProperties policyAssignmentProperties()

Get the policyAssignmentProperties property: Additional properties of scope, role definition and policy.

String policyId()

Get the policyId property: The policy id role management policy assignment.

String roleDefinitionId()

Get the roleDefinitionId property: The role definition of management policy assignment.

String scope()

Get the scope property: The role management policy scope.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

RoleManagementPolicyAssignmentInner withPolicyId(String policyId)

Set the policyId property: The policy id role management policy assignment.

RoleManagementPolicyAssignmentInner withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition of management policy assignment.

RoleManagementPolicyAssignmentInner withScope(String scope)

Set the scope property: The role management policy scope.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

RoleManagementPolicyAssignmentInner

public RoleManagementPolicyAssignmentInner()

Creates an instance of RoleManagementPolicyAssignmentInner class.

Method Details

effectiveRules

public List<RoleManagementPolicyRule> effectiveRules()

Get the effectiveRules property: The readonly computed rule applied to the policy.

Returns:

the effectiveRules value.

fromJson

public static RoleManagementPolicyAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyAssignmentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoleManagementPolicyAssignmentInner 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:

RoleManagementPolicyAssignmentInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RoleManagementPolicyAssignmentInner.name()

Returns:

the name value.

policyAssignmentProperties

public PolicyAssignmentProperties policyAssignmentProperties()

Get the policyAssignmentProperties property: Additional properties of scope, role definition and policy.

Returns:

the policyAssignmentProperties value.

policyId

public String policyId()

Get the policyId property: The policy id role management policy assignment.

Returns:

the policyId value.

roleDefinitionId

public String roleDefinitionId()

Get the roleDefinitionId property: The role definition of management policy assignment.

Returns:

the roleDefinitionId value.

scope

public String scope()

Get the scope property: The role management policy scope.

Returns:

the scope value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RoleManagementPolicyAssignmentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RoleManagementPolicyAssignmentInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withPolicyId

public RoleManagementPolicyAssignmentInner withPolicyId(String policyId)

Set the policyId property: The policy id role management policy assignment.

Parameters:

policyId - the policyId value to set.

Returns:

the RoleManagementPolicyAssignmentInner object itself.

withRoleDefinitionId

public RoleManagementPolicyAssignmentInner withRoleDefinitionId(String roleDefinitionId)

Set the roleDefinitionId property: The role definition of management policy assignment.

Parameters:

roleDefinitionId - the roleDefinitionId value to set.

Returns:

the RoleManagementPolicyAssignmentInner object itself.

withScope

public RoleManagementPolicyAssignmentInner withScope(String scope)

Set the scope property: The role management policy scope.

Parameters:

scope - the scope value to set.

Returns:

the RoleManagementPolicyAssignmentInner object itself.

Applies to