PolicyAssignmentProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.PolicyAssignmentProperties

Implements

public final class PolicyAssignmentProperties
implements JsonSerializable<PolicyAssignmentProperties>

Expanded info of resource scope, role definition and policy.

Constructor Summary

Constructor Description
PolicyAssignmentProperties()

Creates an instance of PolicyAssignmentProperties class.

Method Summary

Modifier and Type Method and Description
static PolicyAssignmentProperties fromJson(JsonReader jsonReader)

Reads an instance of PolicyAssignmentProperties from the JsonReader.

PolicyAssignmentPropertiesPolicy policy()

Get the policy property: Details of the policy.

PolicyAssignmentPropertiesRoleDefinition roleDefinition()

Get the roleDefinition property: Details of role definition.

PolicyAssignmentPropertiesScope scope()

Get the scope property: Details of the resource scope.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PolicyAssignmentProperties withPolicy(PolicyAssignmentPropertiesPolicy policy)

Set the policy property: Details of the policy.

PolicyAssignmentProperties withRoleDefinition(PolicyAssignmentPropertiesRoleDefinition roleDefinition)

Set the roleDefinition property: Details of role definition.

PolicyAssignmentProperties withScope(PolicyAssignmentPropertiesScope scope)

Set the scope property: Details of the resource scope.

Methods inherited from java.lang.Object

Constructor Details

PolicyAssignmentProperties

public PolicyAssignmentProperties()

Creates an instance of PolicyAssignmentProperties class.

Method Details

fromJson

public static PolicyAssignmentProperties fromJson(JsonReader jsonReader)

Reads an instance of PolicyAssignmentProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

policy

public PolicyAssignmentPropertiesPolicy policy()

Get the policy property: Details of the policy.

Returns:

the policy value.

roleDefinition

public PolicyAssignmentPropertiesRoleDefinition roleDefinition()

Get the roleDefinition property: Details of role definition.

Returns:

the roleDefinition value.

scope

public PolicyAssignmentPropertiesScope scope()

Get the scope property: Details of the resource scope.

Returns:

the scope value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPolicy

public PolicyAssignmentProperties withPolicy(PolicyAssignmentPropertiesPolicy policy)

Set the policy property: Details of the policy.

Parameters:

policy - the policy value to set.

Returns:

the PolicyAssignmentProperties object itself.

withRoleDefinition

public PolicyAssignmentProperties withRoleDefinition(PolicyAssignmentPropertiesRoleDefinition roleDefinition)

Set the roleDefinition property: Details of role definition.

Parameters:

roleDefinition - the roleDefinition value to set.

Returns:

the PolicyAssignmentProperties object itself.

withScope

public PolicyAssignmentProperties withScope(PolicyAssignmentPropertiesScope scope)

Set the scope property: Details of the resource scope.

Parameters:

scope - the scope value to set.

Returns:

the PolicyAssignmentProperties object itself.

Applies to