Class DenyAssignmentInner
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.DenyAssignmentInner
-
public final class DenyAssignmentInner extends Object
Deny Assignment.
-
-
Constructor Summary
Constructors Constructor Description DenyAssignmentInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdenyAssignmentName()Get the denyAssignmentName property: The display name of the deny assignment.Stringdescription()Get the description property: The description of the deny assignment.BooleandoNotApplyToChildScopes()Get the doNotApplyToChildScopes property: Determines if the deny assignment applies to child scopes.List<Principal>excludePrincipals()Get the excludePrincipals property: Array of principals to which the deny assignment does not apply.Stringid()Get the id property: The deny assignment ID.BooleanisSystemProtected()Get the isSystemProtected property: Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.Stringname()Get the name property: The deny assignment name.List<DenyAssignmentPermission>permissions()Get the permissions property: An array of permissions that are denied by the deny assignment.List<Principal>principals()Get the principals property: Array of principals to which the deny assignment applies.Stringscope()Get the scope property: The deny assignment scope.Stringtype()Get the type property: The deny assignment type.voidvalidate()Validates the instance.DenyAssignmentInnerwithDenyAssignmentName(String denyAssignmentName)Set the denyAssignmentName property: The display name of the deny assignment.DenyAssignmentInnerwithDescription(String description)Set the description property: The description of the deny assignment.DenyAssignmentInnerwithDoNotApplyToChildScopes(Boolean doNotApplyToChildScopes)Set the doNotApplyToChildScopes property: Determines if the deny assignment applies to child scopes.DenyAssignmentInnerwithExcludePrincipals(List<Principal> excludePrincipals)Set the excludePrincipals property: Array of principals to which the deny assignment does not apply.DenyAssignmentInnerwithIsSystemProtected(Boolean isSystemProtected)Set the isSystemProtected property: Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.DenyAssignmentInnerwithPermissions(List<DenyAssignmentPermission> permissions)Set the permissions property: An array of permissions that are denied by the deny assignment.DenyAssignmentInnerwithPrincipals(List<Principal> principals)Set the principals property: Array of principals to which the deny assignment applies.DenyAssignmentInnerwithScope(String scope)Set the scope property: The deny assignment scope.
-
-
-
Method Detail
-
id
public String id()
Get the id property: The deny assignment ID.- Returns:
- the id value.
-
name
public String name()
Get the name property: The deny assignment name.- Returns:
- the name value.
-
type
public String type()
Get the type property: The deny assignment type.- Returns:
- the type value.
-
denyAssignmentName
public String denyAssignmentName()
Get the denyAssignmentName property: The display name of the deny assignment.- Returns:
- the denyAssignmentName value.
-
withDenyAssignmentName
public DenyAssignmentInner withDenyAssignmentName(String denyAssignmentName)
Set the denyAssignmentName property: The display name of the deny assignment.- Parameters:
denyAssignmentName- the denyAssignmentName value to set.- Returns:
- the DenyAssignmentInner object itself.
-
description
public String description()
Get the description property: The description of the deny assignment.- Returns:
- the description value.
-
withDescription
public DenyAssignmentInner withDescription(String description)
Set the description property: The description of the deny assignment.- Parameters:
description- the description value to set.- Returns:
- the DenyAssignmentInner object itself.
-
permissions
public List<DenyAssignmentPermission> permissions()
Get the permissions property: An array of permissions that are denied by the deny assignment.- Returns:
- the permissions value.
-
withPermissions
public DenyAssignmentInner withPermissions(List<DenyAssignmentPermission> permissions)
Set the permissions property: An array of permissions that are denied by the deny assignment.- Parameters:
permissions- the permissions value to set.- Returns:
- the DenyAssignmentInner object itself.
-
scope
public String scope()
Get the scope property: The deny assignment scope.- Returns:
- the scope value.
-
withScope
public DenyAssignmentInner withScope(String scope)
Set the scope property: The deny assignment scope.- Parameters:
scope- the scope value to set.- Returns:
- the DenyAssignmentInner 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
public DenyAssignmentInner withDoNotApplyToChildScopes(Boolean doNotApplyToChildScopes)
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 DenyAssignmentInner object itself.
-
principals
public List<Principal> principals()
Get the principals property: Array of principals to which the deny assignment applies.- Returns:
- the principals value.
-
withPrincipals
public DenyAssignmentInner withPrincipals(List<Principal> principals)
Set the principals property: Array of principals to which the deny assignment applies.- Parameters:
principals- the principals value to set.- Returns:
- the DenyAssignmentInner object itself.
-
excludePrincipals
public List<Principal> excludePrincipals()
Get the excludePrincipals property: Array of principals to which the deny assignment does not apply.- Returns:
- the excludePrincipals value.
-
withExcludePrincipals
public DenyAssignmentInner withExcludePrincipals(List<Principal> excludePrincipals)
Set the excludePrincipals property: Array of principals to which the deny assignment does not apply.- Parameters:
excludePrincipals- the excludePrincipals value to set.- Returns:
- the DenyAssignmentInner 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
public DenyAssignmentInner withIsSystemProtected(Boolean isSystemProtected)
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 DenyAssignmentInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-