DenyAssignmentInner Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. DenyAssignmentInner
- com.
Implements
public final class DenyAssignmentInner
implements JsonSerializable<DenyAssignmentInner>
Deny Assignment.
Constructor Summary
Constructor | Description |
---|---|
DenyAssignmentInner() |
Creates an instance of Deny |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
condition()
Get the condition property: The conditions on the deny assignment. |
String |
conditionVersion()
Get the condition |
String |
createdBy()
Get the created |
Offset |
createdOn()
Get the created |
String |
denyAssignmentName()
Get the deny |
String |
description()
Get the description property: The description of the deny assignment. |
Boolean |
doNotApplyToChildScopes()
Get the do |
List<Principal> |
excludePrincipals()
Get the exclude |
static
Deny |
fromJson(JsonReader jsonReader)
Reads an instance of Deny |
String |
id()
Get the id property: The deny assignment ID. |
Boolean |
isSystemProtected()
Get the is |
String |
name()
Get the name property: The deny assignment name. |
List<Deny |
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. |
String |
scope()
Get the scope property: The deny assignment scope. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The deny assignment type. |
String |
updatedBy()
Get the updated |
Offset |
updatedOn()
Get the updated |
void |
validate()
Validates the instance. |
Deny |
withCondition(String condition)
Set the condition property: The conditions on the deny assignment. |
Deny |
withConditionVersion(String conditionVersion)
Set the condition |
Deny |
withDenyAssignmentName(String denyAssignmentName)
Set the deny |
Deny |
withDescription(String description)
Set the description property: The description of the deny assignment. |
Deny |
withDoNotApplyToChildScopes(Boolean doNotApplyToChildScopes)
Set the do |
Deny |
withExcludePrincipals(List<Principal> excludePrincipals)
Set the exclude |
Deny |
withIsSystemProtected(Boolean isSystemProtected)
Set the is |
Deny |
withPermissions(List<DenyAssignmentPermission> permissions)
Set the permissions property: An array of permissions that are denied by the deny assignment. |
Deny |
withPrincipals(List<Principal> principals)
Set the principals property: Array of principals to which the deny assignment applies. |
Deny |
withScope(String scope)
Set the scope property: The deny assignment scope. |
Methods inherited from java.lang.Object
Constructor Details
DenyAssignmentInner
public DenyAssignmentInner()
Creates an instance of DenyAssignmentInner class.
Method Details
condition
public String condition()
Get the condition property: The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource\[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.
Returns:
conditionVersion
public String conditionVersion()
Get the conditionVersion property: Version of the condition.
Returns:
createdBy
public String createdBy()
Get the createdBy property: Id of the user who created the assignment.
Returns:
createdOn
public OffsetDateTime createdOn()
Get the createdOn property: Time it was created.
Returns:
denyAssignmentName
public String denyAssignmentName()
Get the denyAssignmentName property: The display name of the deny assignment.
Returns:
description
public String description()
Get the description property: The description of the deny assignment.
Returns:
doNotApplyToChildScopes
public Boolean doNotApplyToChildScopes()
Get the doNotApplyToChildScopes property: Determines if the deny assignment applies to child scopes. Default value is false.
Returns:
excludePrincipals
public List
Get the excludePrincipals property: Array of principals to which the deny assignment does not apply.
Returns:
fromJson
public static DenyAssignmentInner fromJson(JsonReader jsonReader)
Reads an instance of DenyAssignmentInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The deny assignment ID.
Returns:
isSystemProtected
public Boolean isSystemProtected()
Get the isSystemProtected property: Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
Returns:
name
public String name()
Get the name property: The deny assignment name.
Returns:
permissions
public List
Get the permissions property: An array of permissions that are denied by the deny assignment.
Returns:
principals
public List
Get the principals property: Array of principals to which the deny assignment applies.
Returns:
scope
public String scope()
Get the scope property: The deny assignment scope.
Returns:
toJson
type
public String type()
Get the type property: The deny assignment type.
Returns:
updatedBy
public String updatedBy()
Get the updatedBy property: Id of the user who updated the assignment.
Returns:
updatedOn
public OffsetDateTime updatedOn()
Get the updatedOn property: Time it was updated.
Returns:
validate
public void validate()
Validates the instance.
withCondition
public DenyAssignmentInner withCondition(String condition)
Set the condition property: The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource\[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.
Parameters:
Returns:
withConditionVersion
public DenyAssignmentInner withConditionVersion(String conditionVersion)
Set the conditionVersion property: Version of the condition.
Parameters:
Returns:
withDenyAssignmentName
public DenyAssignmentInner withDenyAssignmentName(String denyAssignmentName)
Set the denyAssignmentName property: The display name of the deny assignment.
Parameters:
Returns:
withDescription
public DenyAssignmentInner withDescription(String description)
Set the description property: The description of the deny assignment.
Parameters:
Returns:
withDoNotApplyToChildScopes
public DenyAssignmentInner withDoNotApplyToChildScopes(Boolean doNotApplyToChildScopes)
Set the doNotApplyToChildScopes property: Determines if the deny assignment applies to child scopes. Default value is false.
Parameters:
Returns:
withExcludePrincipals
public DenyAssignmentInner withExcludePrincipals(List
Set the excludePrincipals property: Array of principals to which the deny assignment does not apply.
Parameters:
Returns:
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:
Returns:
withPermissions
public DenyAssignmentInner withPermissions(List
Set the permissions property: An array of permissions that are denied by the deny assignment.
Parameters:
Returns:
withPrincipals
public DenyAssignmentInner withPrincipals(List
Set the principals property: Array of principals to which the deny assignment applies.
Parameters:
Returns:
withScope
public DenyAssignmentInner withScope(String scope)
Set the scope property: The deny assignment scope.
Parameters:
Returns:
Applies to
Azure SDK for Java