Permissions Class

  • java.lang.Object
    • com.azure.resourcemanager.keyvault.models.Permissions

Implements

public final class Permissions
implements JsonSerializable<Permissions>

Permissions the identity has for keys, secrets, certificates and storage.

Constructor Summary

Constructor Description
Permissions()

Creates an instance of Permissions class.

Method Summary

Modifier and Type Method and Description
List<CertificatePermissions> certificates()

Get the certificates property: Permissions to certificates.

static Permissions fromJson(JsonReader jsonReader)

Reads an instance of Permissions from the JsonReader.

List<KeyPermissions> keys()

Get the keys property: Permissions to keys.

List<SecretPermissions> secrets()

Get the secrets property: Permissions to secrets.

List<StoragePermissions> storage()

Get the storage property: Permissions to storage accounts.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Permissions withCertificates(List<CertificatePermissions> certificates)

Set the certificates property: Permissions to certificates.

Permissions withKeys(List<KeyPermissions> keys)

Set the keys property: Permissions to keys.

Permissions withSecrets(List<SecretPermissions> secrets)

Set the secrets property: Permissions to secrets.

Permissions withStorage(List<StoragePermissions> storage)

Set the storage property: Permissions to storage accounts.

Methods inherited from java.lang.Object

Constructor Details

Permissions

public Permissions()

Creates an instance of Permissions class.

Method Details

certificates

public List certificates()

Get the certificates property: Permissions to certificates.

Returns:

the certificates value.

fromJson

public static Permissions fromJson(JsonReader jsonReader)

Reads an instance of Permissions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

keys

public List keys()

Get the keys property: Permissions to keys.

Returns:

the keys value.

secrets

public List secrets()

Get the secrets property: Permissions to secrets.

Returns:

the secrets value.

storage

public List storage()

Get the storage property: Permissions to storage accounts.

Returns:

the storage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCertificates

public Permissions withCertificates(List certificates)

Set the certificates property: Permissions to certificates.

Parameters:

certificates - the certificates value to set.

Returns:

the Permissions object itself.

withKeys

public Permissions withKeys(List keys)

Set the keys property: Permissions to keys.

Parameters:

keys - the keys value to set.

Returns:

the Permissions object itself.

withSecrets

public Permissions withSecrets(List secrets)

Set the secrets property: Permissions to secrets.

Parameters:

secrets - the secrets value to set.

Returns:

the Permissions object itself.

withStorage

public Permissions withStorage(List storage)

Set the storage property: Permissions to storage accounts.

Parameters:

storage - the storage value to set.

Returns:

the Permissions object itself.

Applies to