DenyAssignmentProperties (Azure SDK for Java Reference Documentation)
Leah Mitchell
Published Feb 16, 2026
com.azure.resourcemanager.authorization.fluent.models.DenyAssignmentProperties
public final class DenyAssignmentPropertiesextends Object
Deny assignment properties.
Constructor Summary
Constructors
Creates an instance of DenyAssignmentProperties class.
Method Summary
Get the condition property: The conditions on the deny assignment.
Get the conditionVersion property: Version of the condition.
Get the createdBy property: Id of the user who created the assignment.
Get the createdOn property: Time it was created.
Get the denyAssignmentName property: The display name of the deny assignment.
Get the description property: The description of the deny assignment.
Get the doNotApplyToChildScopes property: Determines if the deny assignment applies to child scopes.
Get the excludePrincipals property: Array of principals to which the deny assignment does not apply.
Get the isSystemProtected property: Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
Get the permissions property: An array of permissions that are denied by the deny assignment.
Get the principals property: Array of principals to which the deny assignment applies.
Get the scope property: The deny assignment scope.
Get the updatedBy property: Id of the user who updated the assignment.
Get the updatedOn property: Time it was updated.
voidValidates the instance.
Set the condition property: The conditions on the deny assignment.
Set the conditionVersion property: Version of the condition.
Set the denyAssignmentName property: The display name of the deny assignment.
Set the description property: The description of the deny assignment.
Set the doNotApplyToChildScopes property: Determines if the deny assignment applies to child scopes.
Set the excludePrincipals property: Array of principals to which the deny assignment does not apply.
Set the isSystemProtected property: Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
Set the permissions property: An array of permissions that are denied by the deny assignment.
Set the principals property: Array of principals to which the deny assignment applies.
Set the scope property: The deny assignment scope.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Details
DenyAssignmentProperties
public DenyAssignmentProperties()
Creates an instance of DenyAssignmentProperties class.
Method Details
denyAssignmentName
public String denyAssignmentName()Get the denyAssignmentName property: The display name of the deny assignment.
- Returns:
- the denyAssignmentName value.
withDenyAssignmentName
Set the denyAssignmentName property: The display name of the deny assignment.
- Parameters:
denyAssignmentName- the denyAssignmentName value to set.- Returns:
- the DenyAssignmentProperties object itself.
description
Get the description property: The description of the deny assignment.
- Returns:
- the description value.
withDescription
Set the description property: The description of the deny assignment.
- Parameters:
description- the description value to set.- Returns:
- the DenyAssignmentProperties object itself.
permissions
Get the permissions property: An array of permissions that are denied by the deny assignment.
- Returns:
- the permissions value.
withPermissions
Set the permissions property: An array of permissions that are denied by the deny assignment.
- Parameters:
permissions- the permissions value to set.- Returns:
- the DenyAssignmentProperties object itself.
scope
Get the scope property: The deny assignment scope.
- Returns:
- the scope value.
withScope
Set the scope property: The deny assignment scope.
- Parameters:
scope- the scope value to set.- Returns:
- the DenyAssignmentProperties object itself.
doNotApplyToChildScopes
public Boolean doNotApplyToChildScopes()Get the doNotApplyToChildScopes property: Determines if the deny assignment applies to child scopes. Default value is false.
- Returns:
- the doNotApplyToChildScopes value.
withDoNotApplyToChildScopes
Set the doNotApplyToChildScopes property: Determines if the deny assignment applies to child scopes. Default value is false.
- Parameters:
doNotApplyToChildScopes- the doNotApplyToChildScopes value to set.- Returns:
- the DenyAssignmentProperties object itself.
principals
Get the principals property: Array of principals to which the deny assignment applies.
- Returns:
- the principals value.
withPrincipals
Set the principals property: Array of principals to which the deny assignment applies.
- Parameters:
principals- the principals value to set.- Returns:
- the DenyAssignmentProperties object itself.
excludePrincipals
Get the excludePrincipals property: Array of principals to which the deny assignment does not apply.
- Returns:
- the excludePrincipals value.
withExcludePrincipals
Set the excludePrincipals property: Array of principals to which the deny assignment does not apply.
- Parameters:
excludePrincipals- the excludePrincipals value to set.- Returns:
- the DenyAssignmentProperties object itself.
isSystemProtected
public Boolean isSystemProtected()Get the isSystemProtected property: Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
- Returns:
- the isSystemProtected value.
withIsSystemProtected
Set the isSystemProtected property: Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
- Parameters:
isSystemProtected- the isSystemProtected value to set.- Returns:
- the DenyAssignmentProperties object itself.
condition
Get the condition property: The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[ StringEqualsIgnoreCase 'foo_storage_container'.
- Returns:
- the condition value.
withCondition
Set the condition property: The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[ StringEqualsIgnoreCase 'foo_storage_container'.
- Parameters:
condition- the condition value to set.- Returns:
- the DenyAssignmentProperties object itself.
conditionVersion
public String conditionVersion()Get the conditionVersion property: Version of the condition.
- Returns:
- the conditionVersion value.
withConditionVersion
Set the conditionVersion property: Version of the condition.
- Parameters:
conditionVersion- the conditionVersion value to set.- Returns:
- the DenyAssignmentProperties object itself.
createdOn
Get the createdOn property: Time it was created.
- Returns:
- the createdOn value.
updatedOn
Get the updatedOn property: Time it was updated.
- Returns:
- the updatedOn value.
createdBy
Get the createdBy property: Id of the user who created the assignment.
- Returns:
- the createdBy value.
updatedBy
Get the updatedBy property: Id of the user who updated the assignment.
- Returns:
- the updatedBy value.
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException- thrown if the instance is not valid.