你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RoleManagementPolicyProperties Class

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

Implements

public final class RoleManagementPolicyProperties
implements JsonSerializable<RoleManagementPolicyProperties>

Role management policy properties with scope.

Constructor Summary

Constructor Description
RoleManagementPolicyProperties()

Creates an instance of RoleManagementPolicyProperties 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 RoleManagementPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyProperties from the JsonReader.

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.

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)
void validate()

Validates the instance.

RoleManagementPolicyProperties withDescription(String description)

Set the description property: The role management policy description.

RoleManagementPolicyProperties withDisplayName(String displayName)

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

RoleManagementPolicyProperties withIsOrganizationDefault(Boolean isOrganizationDefault)

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

RoleManagementPolicyProperties withRules(List<RoleManagementPolicyRule> rules)

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

RoleManagementPolicyProperties withScope(String scope)

Set the scope property: The role management policy scope.

Methods inherited from java.lang.Object

Constructor Details

RoleManagementPolicyProperties

public RoleManagementPolicyProperties()

Creates an instance of RoleManagementPolicyProperties 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 RoleManagementPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoleManagementPolicyProperties 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 RoleManagementPolicyProperties.

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.

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:

validate

public void validate()

Validates the instance.

withDescription

public RoleManagementPolicyProperties withDescription(String description)

Set the description property: The role management policy description.

Parameters:

description - the description value to set.

Returns:

the RoleManagementPolicyProperties object itself.

withDisplayName

public RoleManagementPolicyProperties withDisplayName(String displayName)

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

Parameters:

displayName - the displayName value to set.

Returns:

the RoleManagementPolicyProperties object itself.

withIsOrganizationDefault

public RoleManagementPolicyProperties withIsOrganizationDefault(Boolean isOrganizationDefault)

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

Parameters:

isOrganizationDefault - the isOrganizationDefault value to set.

Returns:

the RoleManagementPolicyProperties object itself.

withRules

public RoleManagementPolicyProperties withRules(List rules)

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

Parameters:

rules - the rules value to set.

Returns:

the RoleManagementPolicyProperties object itself.

withScope

public RoleManagementPolicyProperties withScope(String scope)

Set the scope property: The role management policy scope.

Parameters:

scope - the scope value to set.

Returns:

the RoleManagementPolicyProperties object itself.

Applies to