PolicyAssignmentProperties Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. models. PolicyAssignmentProperties
- com.
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 Policy |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Policy |
fromJson(JsonReader jsonReader)
Reads an instance of Policy |
Policy |
policy()
Get the policy property: Details of the policy. |
Policy |
roleDefinition()
Get the role |
Policy |
scope()
Get the scope property: Details of the resource scope. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Policy |
withPolicy(PolicyAssignmentPropertiesPolicy policy)
Set the policy property: Details of the policy. |
Policy |
withRoleDefinition(PolicyAssignmentPropertiesRoleDefinition roleDefinition)
Set the role |
Policy |
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:
Returns:
Throws:
policy
public PolicyAssignmentPropertiesPolicy policy()
Get the policy property: Details of the policy.
Returns:
roleDefinition
public PolicyAssignmentPropertiesRoleDefinition roleDefinition()
Get the roleDefinition property: Details of role definition.
Returns:
scope
public PolicyAssignmentPropertiesScope scope()
Get the scope property: Details of the resource scope.
Returns:
toJson
validate
public void validate()
Validates the instance.
withPolicy
public PolicyAssignmentProperties withPolicy(PolicyAssignmentPropertiesPolicy policy)
Set the policy property: Details of the policy.
Parameters:
Returns:
withRoleDefinition
public PolicyAssignmentProperties withRoleDefinition(PolicyAssignmentPropertiesRoleDefinition roleDefinition)
Set the roleDefinition property: Details of role definition.
Parameters:
Returns:
withScope
public PolicyAssignmentProperties withScope(PolicyAssignmentPropertiesScope scope)
Set the scope property: Details of the resource scope.
Parameters:
Returns:
Applies to
Azure SDK for Java