Compartilhar via


Permission Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.Permission

Implements

public final class Permission
implements JsonSerializable<Permission>

Role definition permissions.

Constructor Summary

Constructor Description
Permission()

Creates an instance of Permission class.

Method Summary

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

Get the actions property: Allowed actions.

List<String> dataActions()

Get the dataActions property: Allowed Data actions.

static Permission fromJson(JsonReader jsonReader)

Reads an instance of Permission from the JsonReader.

List<String> notActions()

Get the notActions property: Denied actions.

List<String> notDataActions()

Get the notDataActions property: Denied Data actions.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Permission withActions(List<String> actions)

Set the actions property: Allowed actions.

Permission withDataActions(List<String> dataActions)

Set the dataActions property: Allowed Data actions.

Permission withNotActions(List<String> notActions)

Set the notActions property: Denied actions.

Permission withNotDataActions(List<String> notDataActions)

Set the notDataActions property: Denied Data actions.

Methods inherited from java.lang.Object

Constructor Details

Permission

public Permission()

Creates an instance of Permission class.

Method Details

actions

public List actions()

Get the actions property: Allowed actions.

Returns:

the actions value.

dataActions

public List dataActions()

Get the dataActions property: Allowed Data actions.

Returns:

the dataActions value.

fromJson

public static Permission fromJson(JsonReader jsonReader)

Reads an instance of Permission from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Permission 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 Permission.

notActions

public List notActions()

Get the notActions property: Denied actions.

Returns:

the notActions value.

notDataActions

public List notDataActions()

Get the notDataActions property: Denied Data actions.

Returns:

the notDataActions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActions

public Permission withActions(List actions)

Set the actions property: Allowed actions.

Parameters:

actions - the actions value to set.

Returns:

the Permission object itself.

withDataActions

public Permission withDataActions(List dataActions)

Set the dataActions property: Allowed Data actions.

Parameters:

dataActions - the dataActions value to set.

Returns:

the Permission object itself.

withNotActions

public Permission withNotActions(List notActions)

Set the notActions property: Denied actions.

Parameters:

notActions - the notActions value to set.

Returns:

the Permission object itself.

withNotDataActions

public Permission withNotDataActions(List notDataActions)

Set the notDataActions property: Denied Data actions.

Parameters:

notDataActions - the notDataActions value to set.

Returns:

the Permission object itself.

Applies to