Class VaultPatchProperties
- java.lang.Object
-
- com.azure.resourcemanager.keyvault.models.VaultPatchProperties
-
public final class VaultPatchProperties extends Object
Properties of the vault.
-
-
Constructor Summary
Constructors Constructor Description VaultPatchProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AccessPolicyEntry>accessPolicies()Get the accessPolicies property: An array of 0 to 16 identities that have access to the key vault.CreateModecreateMode()Get the createMode property: The vault's create mode to indicate whether the vault need to be recovered or not.BooleanenabledForDeployment()Get the enabledForDeployment property: Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault.BooleanenabledForDiskEncryption()Get the enabledForDiskEncryption property: Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys.BooleanenabledForTemplateDeployment()Get the enabledForTemplateDeployment property: Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault.BooleanenablePurgeProtection()Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this vault.BooleanenableRbacAuthorization()Get the enableRbacAuthorization property: Property that controls how data actions are authorized.BooleanenableSoftDelete()Get the enableSoftDelete property: Property to specify whether the 'soft delete' functionality is enabled for this key vault.NetworkRuleSetnetworkAcls()Get the networkAcls property: A collection of rules governing the accessibility of the vault from specific network locations.Skusku()Get the sku property: SKU details.IntegersoftDeleteRetentionInDays()Get the softDeleteRetentionInDays property: softDelete data retention days.UUIDtenantId()Get the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.voidvalidate()Validates the instance.VaultPatchPropertieswithAccessPolicies(List<AccessPolicyEntry> accessPolicies)Set the accessPolicies property: An array of 0 to 16 identities that have access to the key vault.VaultPatchPropertieswithCreateMode(CreateMode createMode)Set the createMode property: The vault's create mode to indicate whether the vault need to be recovered or not.VaultPatchPropertieswithEnabledForDeployment(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.VaultPatchPropertieswithEnabledForDiskEncryption(Boolean enabledForDiskEncryption)Set the enabledForDiskEncryption property: Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys.VaultPatchPropertieswithEnabledForTemplateDeployment(Boolean enabledForTemplateDeployment)Set the enabledForTemplateDeployment property: Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault.VaultPatchPropertieswithEnablePurgeProtection(Boolean enablePurgeProtection)Set the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this vault.VaultPatchPropertieswithEnableRbacAuthorization(Boolean enableRbacAuthorization)Set the enableRbacAuthorization property: Property that controls how data actions are authorized.VaultPatchPropertieswithEnableSoftDelete(Boolean enableSoftDelete)Set the enableSoftDelete property: Property to specify whether the 'soft delete' functionality is enabled for this key vault.VaultPatchPropertieswithNetworkAcls(NetworkRuleSet networkAcls)Set the networkAcls property: A collection of rules governing the accessibility of the vault from specific network locations.VaultPatchPropertieswithSku(Sku sku)Set the sku property: SKU details.VaultPatchPropertieswithSoftDeleteRetentionInDays(Integer softDeleteRetentionInDays)Set the softDeleteRetentionInDays property: softDelete data retention days.VaultPatchPropertieswithTenantId(UUID tenantId)Set the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
-
-
-
Method Detail
-
tenantId
public UUID 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
public VaultPatchProperties withTenantId(UUID tenantId)
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 VaultPatchProperties object itself.
-
sku
public Sku sku()
Get the sku property: SKU details.- Returns:
- the sku value.
-
withSku
public VaultPatchProperties withSku(Sku sku)
Set the sku property: SKU details.- Parameters:
sku- the sku value to set.- Returns:
- the VaultPatchProperties object itself.
-
accessPolicies
public List<AccessPolicyEntry> accessPolicies()
Get the accessPolicies property: 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.- Returns:
- the accessPolicies value.
-
withAccessPolicies
public VaultPatchProperties withAccessPolicies(List<AccessPolicyEntry> accessPolicies)
Set the accessPolicies property: 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.- Parameters:
accessPolicies- the accessPolicies value to set.- Returns:
- the VaultPatchProperties object itself.
-
enabledForDeployment
public Boolean 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
public VaultPatchProperties 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.- Parameters:
enabledForDeployment- the enabledForDeployment value to set.- Returns:
- the VaultPatchProperties object itself.
-
enabledForDiskEncryption
public Boolean 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
public VaultPatchProperties 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.- Parameters:
enabledForDiskEncryption- the enabledForDiskEncryption value to set.- Returns:
- the VaultPatchProperties object itself.
-
enabledForTemplateDeployment
public Boolean 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
public VaultPatchProperties withEnabledForTemplateDeployment(Boolean enabledForTemplateDeployment)
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 VaultPatchProperties object itself.
-
enableSoftDelete
public Boolean enableSoftDelete()
Get the enableSoftDelete property: Property to specify whether the 'soft delete' functionality is enabled for this key vault. Once set to true, it cannot be reverted to false.- Returns:
- the enableSoftDelete value.
-
withEnableSoftDelete
public VaultPatchProperties withEnableSoftDelete(Boolean enableSoftDelete)
Set the enableSoftDelete property: Property to specify whether the 'soft delete' functionality is enabled for this key vault. Once set to true, it cannot be reverted to false.- Parameters:
enableSoftDelete- the enableSoftDelete value to set.- Returns:
- the VaultPatchProperties object itself.
-
enableRbacAuthorization
public Boolean 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 value of this property will not change.- Returns:
- the enableRbacAuthorization value.
-
withEnableRbacAuthorization
public VaultPatchProperties withEnableRbacAuthorization(Boolean enableRbacAuthorization)
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 value of this property will not change.- Parameters:
enableRbacAuthorization- the enableRbacAuthorization value to set.- Returns:
- the VaultPatchProperties object itself.
-
softDeleteRetentionInDays
public Integer softDeleteRetentionInDays()
Get the softDeleteRetentionInDays property: softDelete data retention days. It accepts >=7 and <=90.- Returns:
- the softDeleteRetentionInDays value.
-
withSoftDeleteRetentionInDays
public VaultPatchProperties withSoftDeleteRetentionInDays(Integer softDeleteRetentionInDays)
Set the softDeleteRetentionInDays property: softDelete data retention days. It accepts >=7 and <=90.- Parameters:
softDeleteRetentionInDays- the softDeleteRetentionInDays value to set.- Returns:
- the VaultPatchProperties object itself.
-
createMode
public CreateMode 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
public VaultPatchProperties withCreateMode(CreateMode createMode)
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 VaultPatchProperties object itself.
-
enablePurgeProtection
public Boolean 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
public VaultPatchProperties withEnablePurgeProtection(Boolean enablePurgeProtection)
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 VaultPatchProperties object itself.
-
networkAcls
public NetworkRuleSet networkAcls()
Get the networkAcls property: A collection of rules governing the accessibility of the vault from specific network locations.- Returns:
- the networkAcls value.
-
withNetworkAcls
public VaultPatchProperties withNetworkAcls(NetworkRuleSet networkAcls)
Set the networkAcls property: A collection of rules governing the accessibility of the vault from specific network locations.- Parameters:
networkAcls- the networkAcls value to set.- Returns:
- the VaultPatchProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-