Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.keyvault; import java.util.UUID; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Properties of the vault.
/** * Properties of the vault. */
public class VaultProperties {
The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
/** * The Azure Active Directory tenant ID that should be used for * authenticating requests to the key vault. */
@JsonProperty(value = "tenantId", required = true) private UUID tenantId;
SKU details.
/** * SKU details. */
@JsonProperty(value = "sku", required = true) private Sku sku;
An array of 0 to 16 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.
/** * An array of 0 to 16 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. */
@JsonProperty(value = "accessPolicies") private List<AccessPolicyEntry> accessPolicies;
The URI of the vault for performing operations on keys and secrets.
/** * The URI of the vault for performing operations on keys and secrets. */
@JsonProperty(value = "vaultUri") private String vaultUri;
Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault.
/** * Property to specify whether Azure Virtual Machines are permitted to * retrieve certificates stored as secrets from the key vault. */
@JsonProperty(value = "enabledForDeployment") private Boolean enabledForDeployment;
Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys.
/** * Property to specify whether Azure Disk Encryption is permitted to * retrieve secrets from the vault and unwrap keys. */
@JsonProperty(value = "enabledForDiskEncryption") private Boolean enabledForDiskEncryption;
Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault.
/** * Property to specify whether Azure Resource Manager is permitted to * retrieve secrets from the key vault. */
@JsonProperty(value = "enabledForTemplateDeployment") private Boolean enabledForTemplateDeployment;
Property to specify whether the 'soft delete' functionality is enabled for this key vault. It does not accept false value.
/** * Property to specify whether the 'soft delete' functionality is enabled * for this key vault. It does not accept false value. */
@JsonProperty(value = "enableSoftDelete") private Boolean enableSoftDelete;
The vault's create mode to indicate whether the vault need to be recovered or not. Possible values include: 'recover', 'default'.
/** * The vault's create mode to indicate whether the vault need to be * recovered or not. Possible values include: 'recover', 'default'. */
@JsonProperty(value = "createMode") private CreateMode createMode;
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.
/** * 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. */
@JsonProperty(value = "enablePurgeProtection") private Boolean enablePurgeProtection;
A collection of rules governing the accessibility of the vault from specific network locations.
/** * A collection of rules governing the accessibility of the vault from * specific network locations. */
@JsonProperty(value = "networkAcls") private NetworkRuleSet networkAcls;
Get the tenantId value.
Returns:the tenantId value
/** * Get the tenantId value. * * @return the tenantId value */
public UUID tenantId() { return this.tenantId; }
Set the tenantId value.
Params:
  • tenantId – the tenantId value to set
Returns:the VaultProperties object itself.
/** * Set the tenantId value. * * @param tenantId the tenantId value to set * @return the VaultProperties object itself. */
public VaultProperties withTenantId(UUID tenantId) { this.tenantId = tenantId; return this; }
Get the sku value.
Returns:the sku value
/** * Get the sku value. * * @return the sku value */
public Sku sku() { return this.sku; }
Set the sku value.
Params:
  • sku – the sku value to set
Returns:the VaultProperties object itself.
/** * Set the sku value. * * @param sku the sku value to set * @return the VaultProperties object itself. */
public VaultProperties withSku(Sku sku) { this.sku = sku; return this; }
Get the accessPolicies value.
Returns:the accessPolicies value
/** * Get the accessPolicies value. * * @return the accessPolicies value */
public List<AccessPolicyEntry> accessPolicies() { return this.accessPolicies; }
Set the accessPolicies value.
Params:
  • accessPolicies – the accessPolicies value to set
Returns:the VaultProperties object itself.
/** * Set the accessPolicies value. * * @param accessPolicies the accessPolicies value to set * @return the VaultProperties object itself. */
public VaultProperties withAccessPolicies(List<AccessPolicyEntry> accessPolicies) { this.accessPolicies = accessPolicies; return this; }
Get the vaultUri value.
Returns:the vaultUri value
/** * Get the vaultUri value. * * @return the vaultUri value */
public String vaultUri() { return this.vaultUri; }
Set the vaultUri value.
Params:
  • vaultUri – the vaultUri value to set
Returns:the VaultProperties object itself.
/** * Set the vaultUri value. * * @param vaultUri the vaultUri value to set * @return the VaultProperties object itself. */
public VaultProperties withVaultUri(String vaultUri) { this.vaultUri = vaultUri; return this; }
Get the enabledForDeployment value.
Returns:the enabledForDeployment value
/** * Get the enabledForDeployment value. * * @return the enabledForDeployment value */
public Boolean enabledForDeployment() { return this.enabledForDeployment; }
Set the enabledForDeployment value.
Params:
  • enabledForDeployment – the enabledForDeployment value to set
Returns:the VaultProperties object itself.
/** * Set the enabledForDeployment value. * * @param enabledForDeployment the enabledForDeployment value to set * @return the VaultProperties object itself. */
public VaultProperties withEnabledForDeployment(Boolean enabledForDeployment) { this.enabledForDeployment = enabledForDeployment; return this; }
Get the enabledForDiskEncryption value.
Returns:the enabledForDiskEncryption value
/** * Get the enabledForDiskEncryption value. * * @return the enabledForDiskEncryption value */
public Boolean enabledForDiskEncryption() { return this.enabledForDiskEncryption; }
Set the enabledForDiskEncryption value.
Params:
  • enabledForDiskEncryption – the enabledForDiskEncryption value to set
Returns:the VaultProperties object itself.
/** * Set the enabledForDiskEncryption value. * * @param enabledForDiskEncryption the enabledForDiskEncryption value to set * @return the VaultProperties object itself. */
public VaultProperties withEnabledForDiskEncryption(Boolean enabledForDiskEncryption) { this.enabledForDiskEncryption = enabledForDiskEncryption; return this; }
Get the enabledForTemplateDeployment value.
Returns:the enabledForTemplateDeployment value
/** * Get the enabledForTemplateDeployment value. * * @return the enabledForTemplateDeployment value */
public Boolean enabledForTemplateDeployment() { return this.enabledForTemplateDeployment; }
Set the enabledForTemplateDeployment value.
Params:
  • enabledForTemplateDeployment – the enabledForTemplateDeployment value to set
Returns:the VaultProperties object itself.
/** * Set the enabledForTemplateDeployment value. * * @param enabledForTemplateDeployment the enabledForTemplateDeployment value to set * @return the VaultProperties object itself. */
public VaultProperties withEnabledForTemplateDeployment(Boolean enabledForTemplateDeployment) { this.enabledForTemplateDeployment = enabledForTemplateDeployment; return this; }
Get the enableSoftDelete value.
Returns:the enableSoftDelete value
/** * Get the enableSoftDelete value. * * @return the enableSoftDelete value */
public Boolean enableSoftDelete() { return this.enableSoftDelete; }
Set the enableSoftDelete value.
Params:
  • enableSoftDelete – the enableSoftDelete value to set
Returns:the VaultProperties object itself.
/** * Set the enableSoftDelete value. * * @param enableSoftDelete the enableSoftDelete value to set * @return the VaultProperties object itself. */
public VaultProperties withEnableSoftDelete(Boolean enableSoftDelete) { this.enableSoftDelete = enableSoftDelete; return this; }
Get the createMode value.
Returns:the createMode value
/** * Get the createMode value. * * @return the createMode value */
public CreateMode createMode() { return this.createMode; }
Set the createMode value.
Params:
  • createMode – the createMode value to set
Returns:the VaultProperties object itself.
/** * Set the createMode value. * * @param createMode the createMode value to set * @return the VaultProperties object itself. */
public VaultProperties withCreateMode(CreateMode createMode) { this.createMode = createMode; return this; }
Get the enablePurgeProtection value.
Returns:the enablePurgeProtection value
/** * Get the enablePurgeProtection value. * * @return the enablePurgeProtection value */
public Boolean enablePurgeProtection() { return this.enablePurgeProtection; }
Set the enablePurgeProtection value.
Params:
  • enablePurgeProtection – the enablePurgeProtection value to set
Returns:the VaultProperties object itself.
/** * Set the enablePurgeProtection value. * * @param enablePurgeProtection the enablePurgeProtection value to set * @return the VaultProperties object itself. */
public VaultProperties withEnablePurgeProtection(Boolean enablePurgeProtection) { this.enablePurgeProtection = enablePurgeProtection; return this; }
Get the networkAcls value.
Returns:the networkAcls value
/** * Get the networkAcls value. * * @return the networkAcls value */
public NetworkRuleSet networkAcls() { return this.networkAcls; }
Set the networkAcls value.
Params:
  • networkAcls – the networkAcls value to set
Returns:the VaultProperties object itself.
/** * Set the networkAcls value. * * @param networkAcls the networkAcls value to set * @return the VaultProperties object itself. */
public VaultProperties withNetworkAcls(NetworkRuleSet networkAcls) { this.networkAcls = networkAcls; return this; } }