Class VaultProperties
java.lang.Object
com.azure.resourcemanager.keyvault.models.VaultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VaultProperties>
public final class VaultProperties
extends Object
implements com.azure.json.JsonSerializable<VaultProperties>
Properties of the vault.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accessPolicies property: An array of 0 to 1024 identities that have access to the key vault.Get the createMode property: The vault's create mode to indicate whether the vault need to be recovered or not.Get the enabledForDeployment property: Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault.Get the enabledForDiskEncryption property: Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys.Get the enabledForTemplateDeployment property: Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault.Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this vault.Get the enableRbacAuthorization property: Property that controls how data actions are authorized.Get the enableSoftDelete property: Property to specify whether the 'soft delete' functionality is enabled for this key vault.static VaultPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VaultProperties from the JsonReader.Get the hsmPoolResourceId property: The resource id of HSM Pool.Get the networkAcls property: Rules governing the accessibility of the key vault from specific network locations.Get the privateEndpointConnections property: List of private endpoint connections associated with the key vault.Get the provisioningState property: Provisioning state of the vault.Get the publicNetworkAccess property: Property to specify whether the vault will accept traffic from public internet.sku()Get the sku property: SKU details.Get the softDeleteRetentionInDays property: softDelete data retention days.tenantId()Get the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vaultUri()Get the vaultUri property: The URI of the vault for performing operations on keys and secrets.withAccessPolicies(List<AccessPolicyEntry> accessPolicies) Set the accessPolicies property: An array of 0 to 1024 identities that have access to the key vault.withCreateMode(CreateMode createMode) Set the createMode property: The vault's create mode to indicate whether the vault need to be recovered or not.withEnabledForDeployment(Boolean enabledForDeployment) Set the enabledForDeployment property: Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault.withEnabledForDiskEncryption(Boolean enabledForDiskEncryption) Set the enabledForDiskEncryption property: Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys.withEnabledForTemplateDeployment(Boolean enabledForTemplateDeployment) Set the enabledForTemplateDeployment property: Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault.withEnablePurgeProtection(Boolean enablePurgeProtection) Set the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this vault.withEnableRbacAuthorization(Boolean enableRbacAuthorization) Set the enableRbacAuthorization property: Property that controls how data actions are authorized.withEnableSoftDelete(Boolean enableSoftDelete) Set the enableSoftDelete property: Property to specify whether the 'soft delete' functionality is enabled for this key vault.withNetworkAcls(NetworkRuleSet networkAcls) Set the networkAcls property: Rules governing the accessibility of the key vault from specific network locations.withProvisioningState(VaultProvisioningState provisioningState) Set the provisioningState property: Provisioning state of the vault.withPublicNetworkAccess(String publicNetworkAccess) Set the publicNetworkAccess property: Property to specify whether the vault will accept traffic from public internet.Set the sku property: SKU details.withSoftDeleteRetentionInDays(Integer softDeleteRetentionInDays) Set the softDeleteRetentionInDays property: softDelete data retention days.withTenantId(UUID tenantId) Set the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.withVaultUri(String vaultUri) Set the vaultUri property: The URI of the vault for performing operations on keys and secrets.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
-
VaultProperties
public VaultProperties()Creates an instance of VaultProperties class.
-
-
Method Details
-
tenantId
Get the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.- Parameters:
tenantId- the tenantId value to set.- Returns:
- the VaultProperties object itself.
-
sku
Get the sku property: SKU details.- Returns:
- the sku value.
-
withSku
Set the sku property: SKU details.- Parameters:
sku- the sku value to set.- Returns:
- the VaultProperties object itself.
-
accessPolicies
Get the accessPolicies property: An array of 0 to 1024 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. When `createMode` is set to `recover`, access policies are not required. Otherwise, access policies are required.- Returns:
- the accessPolicies value.
-
withAccessPolicies
Set the accessPolicies property: An array of 0 to 1024 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. When `createMode` is set to `recover`, access policies are not required. Otherwise, access policies are required.- Parameters:
accessPolicies- the accessPolicies value to set.- Returns:
- the VaultProperties object itself.
-
vaultUri
Get the vaultUri property: The URI of the vault for performing operations on keys and secrets.- Returns:
- the vaultUri value.
-
withVaultUri
Set the vaultUri property: The URI of the vault for performing operations on keys and secrets.- Parameters:
vaultUri- the vaultUri value to set.- Returns:
- the VaultProperties object itself.
-
hsmPoolResourceId
Get the hsmPoolResourceId property: The resource id of HSM Pool.- Returns:
- the hsmPoolResourceId value.
-
enabledForDeployment
Get the enabledForDeployment property: Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault.- Returns:
- the enabledForDeployment value.
-
withEnabledForDeployment
Set the enabledForDeployment property: Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault.- Parameters:
enabledForDeployment- the enabledForDeployment value to set.- Returns:
- the VaultProperties object itself.
-
enabledForDiskEncryption
Get the enabledForDiskEncryption property: Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys.- Returns:
- the enabledForDiskEncryption value.
-
withEnabledForDiskEncryption
Set the enabledForDiskEncryption property: Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys.- Parameters:
enabledForDiskEncryption- the enabledForDiskEncryption value to set.- Returns:
- the VaultProperties object itself.
-
enabledForTemplateDeployment
Get the enabledForTemplateDeployment property: Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault.- Returns:
- the enabledForTemplateDeployment value.
-
withEnabledForTemplateDeployment
Set the enabledForTemplateDeployment property: Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault.- Parameters:
enabledForTemplateDeployment- the enabledForTemplateDeployment value to set.- Returns:
- the VaultProperties object itself.
-
enableSoftDelete
Get the enableSoftDelete property: Property to specify whether the 'soft delete' functionality is enabled for this key vault. If it's not set to any value(true or false) when creating new key vault, it will be set to true by default. Once set to true, it cannot be reverted to false.- Returns:
- the enableSoftDelete value.
-
withEnableSoftDelete
Set the enableSoftDelete property: Property to specify whether the 'soft delete' functionality is enabled for this key vault. If it's not set to any value(true or false) when creating new key vault, it will be set to true by default. Once set to true, it cannot be reverted to false.- Parameters:
enableSoftDelete- the enableSoftDelete value to set.- Returns:
- the VaultProperties object itself.
-
softDeleteRetentionInDays
Get the softDeleteRetentionInDays property: softDelete data retention days. It accepts >=7 and <=90.- Returns:
- the softDeleteRetentionInDays value.
-
withSoftDeleteRetentionInDays
Set the softDeleteRetentionInDays property: softDelete data retention days. It accepts >=7 and <=90.- Parameters:
softDeleteRetentionInDays- the softDeleteRetentionInDays value to set.- Returns:
- the VaultProperties object itself.
-
enableRbacAuthorization
Get the enableRbacAuthorization property: Property that controls how data actions are authorized. When true, the key vault will use Role Based Access Control (RBAC) for authorization of data actions, and the access policies specified in vault properties will be ignored. When false, the key vault will use the access policies specified in vault properties, and any policy stored on Azure Resource Manager will be ignored. If null or not specified, the vault is created with the default value of false. Note that management actions are always authorized with RBAC.- Returns:
- the enableRbacAuthorization value.
-
withEnableRbacAuthorization
Set the enableRbacAuthorization property: Property that controls how data actions are authorized. When true, the key vault will use Role Based Access Control (RBAC) for authorization of data actions, and the access policies specified in vault properties will be ignored. When false, the key vault will use the access policies specified in vault properties, and any policy stored on Azure Resource Manager will be ignored. If null or not specified, the vault is created with the default value of false. Note that management actions are always authorized with RBAC.- Parameters:
enableRbacAuthorization- the enableRbacAuthorization value to set.- Returns:
- the VaultProperties object itself.
-
createMode
Get the createMode property: The vault's create mode to indicate whether the vault need to be recovered or not.- Returns:
- the createMode value.
-
withCreateMode
Set the createMode property: The vault's create mode to indicate whether the vault need to be recovered or not.- Parameters:
createMode- the createMode value to set.- Returns:
- the VaultProperties object itself.
-
enablePurgeProtection
Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this vault. Setting this property to true activates protection against purge for this vault and its content - only the Key Vault service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible - that is, the property does not accept false as its value.- Returns:
- the enablePurgeProtection value.
-
withEnablePurgeProtection
Set the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this vault. Setting this property to true activates protection against purge for this vault and its content - only the Key Vault service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible - that is, the property does not accept false as its value.- Parameters:
enablePurgeProtection- the enablePurgeProtection value to set.- Returns:
- the VaultProperties object itself.
-
networkAcls
Get the networkAcls property: Rules governing the accessibility of the key vault from specific network locations.- Returns:
- the networkAcls value.
-
withNetworkAcls
Set the networkAcls property: Rules governing the accessibility of the key vault from specific network locations.- Parameters:
networkAcls- the networkAcls value to set.- Returns:
- the VaultProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning state of the vault.- Returns:
- the provisioningState value.
-
withProvisioningState
Set the provisioningState property: Provisioning state of the vault.- Parameters:
provisioningState- the provisioningState value to set.- Returns:
- the VaultProperties object itself.
-
privateEndpointConnections
Get the privateEndpointConnections property: List of private endpoint connections associated with the key vault.- Returns:
- the privateEndpointConnections value.
-
publicNetworkAccess
Get the publicNetworkAccess property: Property to specify whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
Set the publicNetworkAccess property: Property to specify whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules.- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the VaultProperties 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<VaultProperties>- Throws:
IOException
-
fromJson
Reads an instance of VaultProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VaultProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the VaultProperties.
-