RoleManagementPolicyInner Class

public final class RoleManagementPolicyInner
extends ProxyResource

Role management policy.

Constructor Summary

Constructor Description
RoleManagementPolicyInner()

Creates an instance of RoleManagementPolicyInner class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The role management policy description.

String displayName()

Get the displayName property: The role management policy display name.

List<RoleManagementPolicyRule> effectiveRules()

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

static RoleManagementPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyInner from the JsonReader.

String id()

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

Boolean isOrganizationDefault()

Get the isOrganizationDefault property: The role management policy is default policy.

Principal lastModifiedBy()

Get the lastModifiedBy property: The name of the entity last modified it.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The last modified date time.

String name()

Get the name property: The name of the resource.

PolicyProperties policyProperties()

Get the policyProperties property: Additional properties of scope.

List<RoleManagementPolicyRule> rules()

Get the rules property: The rule applied to the policy.

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.

RoleManagementPolicyInner withDescription(String description)

Set the description property: The role management policy description.

RoleManagementPolicyInner withDisplayName(String displayName)

Set the displayName property: The role management policy display name.

RoleManagementPolicyInner withIsOrganizationDefault(Boolean isOrganizationDefault)

Set the isOrganizationDefault property: The role management policy is default policy.

RoleManagementPolicyInner withRules(List<RoleManagementPolicyRule> rules)

Set the rules property: The rule applied to the policy.

RoleManagementPolicyInner withScope(String scope)

Set the scope property: The role management policy scope.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

RoleManagementPolicyInner

public RoleManagementPolicyInner()

Creates an instance of RoleManagementPolicyInner class.

Method Details

description

public String description()

Get the description property: The role management policy description.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: The role management policy display name.

Returns:

the displayName value.

effectiveRules

public List<RoleManagementPolicyRule> effectiveRules()

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

Returns:

the effectiveRules value.

fromJson

public static RoleManagementPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

RoleManagementPolicyInner.id()

Returns:

the id value.

isOrganizationDefault

public Boolean isOrganizationDefault()

Get the isOrganizationDefault property: The role management policy is default policy.

Returns:

the isOrganizationDefault value.

lastModifiedBy

public Principal lastModifiedBy()

Get the lastModifiedBy property: The name of the entity last modified it.

Returns:

the lastModifiedBy value.

lastModifiedDateTime

public OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The last modified date time.

Returns:

the lastModifiedDateTime value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RoleManagementPolicyInner.name()

Returns:

the name value.

policyProperties

public PolicyProperties policyProperties()

Get the policyProperties property: Additional properties of scope.

Returns:

the policyProperties value.

rules

public List<RoleManagementPolicyRule> rules()

Get the rules property: The rule applied to the policy.

Returns:

the rules 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:

RoleManagementPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RoleManagementPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDescription

public RoleManagementPolicyInner withDescription(String description)

Set the description property: The role management policy description.

Parameters:

description - the description value to set.

Returns:

the RoleManagementPolicyInner object itself.

withDisplayName

public RoleManagementPolicyInner withDisplayName(String displayName)

Set the displayName property: The role management policy display name.

Parameters:

displayName - the displayName value to set.

Returns:

the RoleManagementPolicyInner object itself.

withIsOrganizationDefault

public RoleManagementPolicyInner withIsOrganizationDefault(Boolean isOrganizationDefault)

Set the isOrganizationDefault property: The role management policy is default policy.

Parameters:

isOrganizationDefault - the isOrganizationDefault value to set.

Returns:

the RoleManagementPolicyInner object itself.

withRules

public RoleManagementPolicyInner withRules(List<RoleManagementPolicyRule> rules)

Set the rules property: The rule applied to the policy.

Parameters:

rules - the rules value to set.

Returns:

the RoleManagementPolicyInner object itself.

withScope

public RoleManagementPolicyInner withScope(String scope)

Set the scope property: The role management policy scope.

Parameters:

scope - the scope value to set.

Returns:

the RoleManagementPolicyInner object itself.

Applies to