Class Permissions
- java.lang.Object
-
- com.azure.resourcemanager.keyvault.models.Permissions
-
public final class Permissions extends Object
Permissions the identity has for keys, secrets, certificates and storage.
-
-
Constructor Summary
Constructors Constructor Description Permissions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CertificatePermissions>certificates()Get the certificates property: Permissions to certificates.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.voidvalidate()Validates the instance.PermissionswithCertificates(List<CertificatePermissions> certificates)Set the certificates property: Permissions to certificates.PermissionswithKeys(List<KeyPermissions> keys)Set the keys property: Permissions to keys.PermissionswithSecrets(List<SecretPermissions> secrets)Set the secrets property: Permissions to secrets.PermissionswithStorage(List<StoragePermissions> storage)Set the storage property: Permissions to storage accounts.
-
-
-
Method Detail
-
keys
public List<KeyPermissions> keys()
Get the keys property: Permissions to keys.- Returns:
- the keys value.
-
withKeys
public Permissions withKeys(List<KeyPermissions> keys)
Set the keys property: Permissions to keys.- Parameters:
keys- the keys value to set.- Returns:
- the Permissions object itself.
-
secrets
public List<SecretPermissions> secrets()
Get the secrets property: Permissions to secrets.- Returns:
- the secrets value.
-
withSecrets
public Permissions withSecrets(List<SecretPermissions> secrets)
Set the secrets property: Permissions to secrets.- Parameters:
secrets- the secrets value to set.- Returns:
- the Permissions object itself.
-
certificates
public List<CertificatePermissions> certificates()
Get the certificates property: Permissions to certificates.- Returns:
- the certificates value.
-
withCertificates
public Permissions withCertificates(List<CertificatePermissions> certificates)
Set the certificates property: Permissions to certificates.- Parameters:
certificates- the certificates value to set.- Returns:
- the Permissions object itself.
-
storage
public List<StoragePermissions> storage()
Get the storage property: Permissions to storage accounts.- Returns:
- the storage value.
-
withStorage
public Permissions withStorage(List<StoragePermissions> storage)
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.
-
-