Class Permissions
java.lang.Object
com.azure.resourcemanager.keyvault.models.Permissions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Permissions>
public final class Permissions
extends Object
implements com.azure.json.JsonSerializable<Permissions>
Permissions the identity has for keys, secrets, certificates and storage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the certificates property: Permissions to certificates.static PermissionsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Permissions from the JsonReader.keys()Get the keys property: Permissions to keys.secrets()Get the secrets property: Permissions to secrets.storage()Get the storage property: Permissions to storage accounts.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCertificates(List<CertificatePermissions> certificates) Set the certificates property: Permissions to certificates.withKeys(List<KeyPermissions> keys) Set the keys property: Permissions to keys.withSecrets(List<SecretPermissions> secrets) Set the secrets property: Permissions to secrets.withStorage(List<StoragePermissions> storage) Set the storage property: Permissions to storage accounts.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
-
Permissions
public Permissions()Creates an instance of Permissions class.
-
-
Method Details
-
keys
Get the keys property: Permissions to keys.- Returns:
- the keys value.
-
withKeys
Set the keys property: Permissions to keys.- Parameters:
keys- the keys value to set.- Returns:
- the Permissions object itself.
-
secrets
Get the secrets property: Permissions to secrets.- Returns:
- the secrets value.
-
withSecrets
Set the secrets property: Permissions to secrets.- Parameters:
secrets- the secrets value to set.- Returns:
- the Permissions object itself.
-
certificates
Get the certificates property: Permissions to certificates.- Returns:
- the certificates value.
-
withCertificates
Set the certificates property: Permissions to certificates.- Parameters:
certificates- the certificates value to set.- Returns:
- the Permissions object itself.
-
storage
Get the storage property: Permissions to storage accounts.- Returns:
- the storage value.
-
withStorage
Set the storage property: Permissions to storage accounts.- Parameters:
storage- the storage value to set.- Returns:
- the Permissions 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<Permissions>- Throws:
IOException
-
fromJson
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.
-