Class DenyAssignmentPermission
java.lang.Object
com.azure.resourcemanager.authorization.models.DenyAssignmentPermission
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DenyAssignmentPermission>
public final class DenyAssignmentPermission
extends Object
implements com.azure.json.JsonSerializable<DenyAssignmentPermission>
Deny assignment permissions.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DenyAssignmentPermission class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Get the actions property: Actions to which the deny assignment does not grant access.Get the condition property: The conditions on the Deny assignment permission.Get the conditionVersion property: Version of the condition.Get the dataActions property: Data actions to which the deny assignment does not grant access.static DenyAssignmentPermissionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DenyAssignmentPermission from the JsonReader.Get the notActions property: Actions to exclude from that the deny assignment does not grant access.Get the notDataActions property: Data actions to exclude from that the deny assignment does not grant access.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withActions(List<String> actions) Set the actions property: Actions to which the deny assignment does not grant access.withCondition(String condition) Set the condition property: The conditions on the Deny assignment permission.withConditionVersion(String conditionVersion) Set the conditionVersion property: Version of the condition.withDataActions(List<String> dataActions) Set the dataActions property: Data actions to which the deny assignment does not grant access.withNotActions(List<String> notActions) Set the notActions property: Actions to exclude from that the deny assignment does not grant access.withNotDataActions(List<String> notDataActions) Set the notDataActions property: Data actions to exclude from that the deny assignment does not grant access.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DenyAssignmentPermission
public DenyAssignmentPermission()Creates an instance of DenyAssignmentPermission class.
-
-
Method Details
-
actions
Get the actions property: Actions to which the deny assignment does not grant access.- Returns:
- the actions value.
-
withActions
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.
-
notActions
Get the notActions property: Actions to exclude from that the deny assignment does not grant access.- Returns:
- the notActions value.
-
withNotActions
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.
-
dataActions
Get the dataActions property: Data actions to which the deny assignment does not grant access.- Returns:
- the dataActions value.
-
withDataActions
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.
-
notDataActions
Get the notDataActions property: Data actions to exclude from that the deny assignment does not grant access.- Returns:
- the notDataActions value.
-
withNotDataActions
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.
-
condition
Get the condition property: The conditions on the Deny assignment permission. This limits the resources it applies to.- Returns:
- the condition value.
-
withCondition
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.
-
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 DenyAssignmentPermission object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DenyAssignmentPermission>- Throws:
IOException
-
fromJson
public static DenyAssignmentPermission fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-