DenyAssignmentPermission Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.DenyAssignmentPermission

Implements

public final class DenyAssignmentPermission
implements JsonSerializable<DenyAssignmentPermission>

Deny assignment permissions.

Constructor Summary

Constructor Description
DenyAssignmentPermission()

Creates an instance of DenyAssignmentPermission class.

Method Summary

Modifier and Type Method and Description
List<String> actions()

Get the actions property: Actions to which the deny assignment does not grant access.

String condition()

Get the condition property: The conditions on the Deny assignment permission.

String conditionVersion()

Get the conditionVersion property: Version of the condition.

List<String> dataActions()

Get the dataActions property: Data actions to which the deny assignment does not grant access.

static DenyAssignmentPermission fromJson(JsonReader jsonReader)

Reads an instance of DenyAssignmentPermission from the JsonReader.

List<String> notActions()

Get the notActions property: Actions to exclude from that the deny assignment does not grant access.

List<String> notDataActions()

Get the notDataActions property: Data actions to exclude from that the deny assignment does not grant access.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DenyAssignmentPermission withActions(List<String> actions)

Set the actions property: Actions to which the deny assignment does not grant access.

DenyAssignmentPermission withCondition(String condition)

Set the condition property: The conditions on the Deny assignment permission.

DenyAssignmentPermission withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition.

DenyAssignmentPermission withDataActions(List<String> dataActions)

Set the dataActions property: Data actions to which the deny assignment does not grant access.

DenyAssignmentPermission withNotActions(List<String> notActions)

Set the notActions property: Actions to exclude from that the deny assignment does not grant access.

DenyAssignmentPermission withNotDataActions(List<String> notDataActions)

Set the notDataActions property: Data actions to exclude from that the deny assignment does not grant access.

Methods inherited from java.lang.Object

Constructor Details

DenyAssignmentPermission

public DenyAssignmentPermission()

Creates an instance of DenyAssignmentPermission class.

Method Details

actions

public List actions()

Get the actions property: Actions to which the deny assignment does not grant access.

Returns:

the actions value.

condition

public String condition()

Get the condition property: The conditions on the Deny assignment permission. This limits the resources it applies to.

Returns:

the condition value.

conditionVersion

public String conditionVersion()

Get the conditionVersion property: Version of the condition.

Returns:

the conditionVersion value.

dataActions

public List dataActions()

Get the dataActions property: Data actions to which the deny assignment does not grant access.

Returns:

the dataActions value.

fromJson

public static DenyAssignmentPermission fromJson(JsonReader jsonReader)

Reads an instance of DenyAssignmentPermission from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the DenyAssignmentPermission.

notActions

public List notActions()

Get the notActions property: Actions to exclude from that the deny assignment does not grant access.

Returns:

the notActions value.

notDataActions

public List notDataActions()

Get the notDataActions property: Data actions to exclude from that the deny assignment does not grant access.

Returns:

the notDataActions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActions

public DenyAssignmentPermission withActions(List actions)

Set the actions property: Actions to which the deny assignment does not grant access.

Parameters:

actions - the actions value to set.

Returns:

the DenyAssignmentPermission object itself.

withCondition

public DenyAssignmentPermission withCondition(String condition)

Set the condition property: The conditions on the Deny assignment permission. This limits the resources it applies to.

Parameters:

condition - the condition value to set.

Returns:

the DenyAssignmentPermission object itself.

withConditionVersion

public DenyAssignmentPermission withConditionVersion(String conditionVersion)

Set the conditionVersion property: Version of the condition.

Parameters:

conditionVersion - the conditionVersion value to set.

Returns:

the DenyAssignmentPermission object itself.

withDataActions

public DenyAssignmentPermission withDataActions(List dataActions)

Set the dataActions property: Data actions to which the deny assignment does not grant access.

Parameters:

dataActions - the dataActions value to set.

Returns:

the DenyAssignmentPermission object itself.

withNotActions

public DenyAssignmentPermission withNotActions(List notActions)

Set the notActions property: Actions to exclude from that the deny assignment does not grant access.

Parameters:

notActions - the notActions value to set.

Returns:

the DenyAssignmentPermission object itself.

withNotDataActions

public DenyAssignmentPermission withNotDataActions(List notDataActions)

Set the notDataActions property: Data actions to exclude from that the deny assignment does not grant access.

Parameters:

notDataActions - the notDataActions value to set.

Returns:

the DenyAssignmentPermission object itself.

Applies to