RoleManagementPolicyInner Class

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

Implements

public final class RoleManagementPolicyInner
implements JsonSerializable<RoleManagementPolicyInner>

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: The role management policy Id.

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 role management policy name.

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.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The role management policy type.

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 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 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 an error occurs while reading the RoleManagementPolicyInner.

id

public String id()

Get the id property: The role management policy 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 role management policy name.

Returns:

the name value.

policyProperties

public PolicyProperties policyProperties()

Get the policyProperties property: Additional properties of scope.

Returns:

the policyProperties value.

rules

public List 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The role management policy 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 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