DenyAssignmentInner Class

public final class DenyAssignmentInner
extends ProxyResource

Deny Assignment.

Constructor Summary

Constructor Description
DenyAssignmentInner()

Creates an instance of DenyAssignmentInner class.

Method Summary

Modifier and Type Method and Description
String condition()

Get the condition property: The conditions on the deny assignment.

String conditionVersion()

Get the conditionVersion property: Version of the condition.

String createdBy()

Get the createdBy property: Id of the user who created the assignment.

OffsetDateTime createdOn()

Get the createdOn property: Time it was created.

DenyAssignmentEffect denyAssignmentEffect()

Get the denyAssignmentEffect property: The effect of the deny assignment.

String denyAssignmentName()

Get the denyAssignmentName property: The display name of the deny assignment.

String description()

Get the description property: The description of the deny assignment.

Boolean doNotApplyToChildScopes()

Get the doNotApplyToChildScopes property: Determines if the deny assignment applies to child scopes.

List<DenyAssignmentPrincipal> excludePrincipals()

Get the excludePrincipals property: Array of principals to which the deny assignment does not apply.

static DenyAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of DenyAssignmentInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

Boolean isSystemProtected()

Get the isSystemProtected property: Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.

String name()

Get the name property: The name of the resource.

List<DenyAssignmentPermission> permissions()

Get the permissions property: An array of permissions that are denied by the deny assignment.

List<DenyAssignmentPrincipal> principals()

Get the principals property: Array of principals to which the deny assignment applies.

String scope()

Get the scope property: The deny assignment scope.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String updatedBy()

Get the updatedBy property: Id of the user who updated the assignment.

OffsetDateTime updatedOn()

Get the updatedOn property: Time it was updated.

void validate()

Validates the instance.

DenyAssignmentInner withCondition(String condition)

Set the condition property: The conditions on the deny assignment.

DenyAssignmentInner withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition.

DenyAssignmentInner withDenyAssignmentEffect(DenyAssignmentEffect denyAssignmentEffect)

Set the denyAssignmentEffect property: The effect of the deny assignment.

DenyAssignmentInner withDenyAssignmentName(String denyAssignmentName)

Set the denyAssignmentName property: The display name of the deny assignment.

DenyAssignmentInner withDescription(String description)

Set the description property: The description of the deny assignment.

DenyAssignmentInner withDoNotApplyToChildScopes(Boolean doNotApplyToChildScopes)

Set the doNotApplyToChildScopes property: Determines if the deny assignment applies to child scopes.

DenyAssignmentInner withExcludePrincipals(List<DenyAssignmentPrincipal> excludePrincipals)

Set the excludePrincipals property: Array of principals to which the deny assignment does not apply.

DenyAssignmentInner withIsSystemProtected(Boolean isSystemProtected)

Set the isSystemProtected property: Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.

DenyAssignmentInner withPermissions(List<DenyAssignmentPermission> permissions)

Set the permissions property: An array of permissions that are denied by the deny assignment.

DenyAssignmentInner withPrincipals(List<DenyAssignmentPrincipal> principals)

Set the principals property: Array of principals to which the deny assignment applies.

Methods inherited from ProxyResource

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:

the condition value.

conditionVersion

public String conditionVersion()

Get the conditionVersion property: Version of the condition.

Returns:

the conditionVersion value.

createdBy

public String createdBy()

Get the createdBy property: Id of the user who created the assignment.

Returns:

the createdBy value.

createdOn

public OffsetDateTime createdOn()

Get the createdOn property: Time it was created.

Returns:

the createdOn value.

denyAssignmentEffect

public DenyAssignmentEffect denyAssignmentEffect()

Get the denyAssignmentEffect property: The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.

Returns:

the denyAssignmentEffect value.

denyAssignmentName

public String denyAssignmentName()

Get the denyAssignmentName property: The display name of the deny assignment.

Returns:

the denyAssignmentName value.

description

public String description()

Get the description property: The description of the deny assignment.

Returns:

the description value.

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.

excludePrincipals

public List<DenyAssignmentPrincipal> excludePrincipals()

Get the excludePrincipals property: Array of principals to which the deny assignment does not apply.

Returns:

the excludePrincipals value.

fromJson

public static DenyAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of DenyAssignmentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DenyAssignmentInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DenyAssignmentInner.id()

Returns:

the id value.

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DenyAssignmentInner.name()

Returns:

the name value.

permissions

public List<DenyAssignmentPermission> permissions()

Get the permissions property: An array of permissions that are denied by the deny assignment.

Returns:

the permissions value.

principals

public List<DenyAssignmentPrincipal> principals()

Get the principals property: Array of principals to which the deny assignment applies.

Returns:

the principals value.

scope

public String scope()

Get the scope property: The deny assignment scope.

Returns:

the scope value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DenyAssignmentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DenyAssignmentInner.type()

Returns:

the type value.

updatedBy

public String updatedBy()

Get the updatedBy property: Id of the user who updated the assignment.

Returns:

the updatedBy value.

updatedOn

public OffsetDateTime updatedOn()

Get the updatedOn property: Time it was updated.

Returns:

the updatedOn value.

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:

condition - the condition value to set.

Returns:

the DenyAssignmentInner object itself.

withConditionVersion

public DenyAssignmentInner withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition.

Parameters:

conditionVersion - the conditionVersion value to set.

Returns:

the DenyAssignmentInner object itself.

withDenyAssignmentEffect

public DenyAssignmentInner withDenyAssignmentEffect(DenyAssignmentEffect denyAssignmentEffect)

Set the denyAssignmentEffect property: The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.

Parameters:

denyAssignmentEffect - the denyAssignmentEffect value to set.

Returns:

the DenyAssignmentInner object itself.

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.

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.

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.

withExcludePrincipals

public DenyAssignmentInner withExcludePrincipals(List<DenyAssignmentPrincipal> 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.

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.

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.

withPrincipals

public DenyAssignmentInner withPrincipals(List<DenyAssignmentPrincipal> 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.

Applies to