Class AzureKeyVaultKms
java.lang.Object
com.azure.resourcemanager.containerservice.models.AzureKeyVaultKms
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureKeyVaultKms>
public final class AzureKeyVaultKms
extends Object
implements com.azure.json.JsonSerializable<AzureKeyVaultKms>
Azure Key Vault key management service settings for the security profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: Whether to enable Azure Key Vault key management service.static AzureKeyVaultKmsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureKeyVaultKms from the JsonReader.keyId()Get the keyId property: Identifier of Azure Key Vault key.Get the keyVaultNetworkAccess property: Network access of key vault.Get the keyVaultResourceId property: Resource ID of key vault.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnabled(Boolean enabled) Set the enabled property: Whether to enable Azure Key Vault key management service.Set the keyId property: Identifier of Azure Key Vault key.withKeyVaultNetworkAccess(KeyVaultNetworkAccessTypes keyVaultNetworkAccess) Set the keyVaultNetworkAccess property: Network access of key vault.withKeyVaultResourceId(String keyVaultResourceId) Set the keyVaultResourceId property: Resource ID of key vault.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
-
AzureKeyVaultKms
public AzureKeyVaultKms()Creates an instance of AzureKeyVaultKms class.
-
-
Method Details
-
enabled
Get the enabled property: Whether to enable Azure Key Vault key management service. The default is false.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Whether to enable Azure Key Vault key management service. The default is false.- Parameters:
enabled- the enabled value to set.- Returns:
- the AzureKeyVaultKms object itself.
-
keyId
Get the keyId property: Identifier of Azure Key Vault key. See [key identifier format](https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name) for more details. When Azure Key Vault key management service is enabled, this field is required and must be a valid key identifier. When Azure Key Vault key management service is disabled, leave the field empty.- Returns:
- the keyId value.
-
withKeyId
Set the keyId property: Identifier of Azure Key Vault key. See [key identifier format](https://docs.microsoft.com/en-us/azure/key-vault/general/about-keys-secrets-certificates#vault-name-and-object-name) for more details. When Azure Key Vault key management service is enabled, this field is required and must be a valid key identifier. When Azure Key Vault key management service is disabled, leave the field empty.- Parameters:
keyId- the keyId value to set.- Returns:
- the AzureKeyVaultKms object itself.
-
keyVaultNetworkAccess
Get the keyVaultNetworkAccess property: Network access of key vault. The possible values are `Public` and `Private`. `Public` means the key vault allows public access from all networks. `Private` means the key vault disables public access and enables private link. The default value is `Public`.- Returns:
- the keyVaultNetworkAccess value.
-
withKeyVaultNetworkAccess
Set the keyVaultNetworkAccess property: Network access of key vault. The possible values are `Public` and `Private`. `Public` means the key vault allows public access from all networks. `Private` means the key vault disables public access and enables private link. The default value is `Public`.- Parameters:
keyVaultNetworkAccess- the keyVaultNetworkAccess value to set.- Returns:
- the AzureKeyVaultKms object itself.
-
keyVaultResourceId
Get the keyVaultResourceId property: Resource ID of key vault. When keyVaultNetworkAccess is `Private`, this field is required and must be a valid resource ID. When keyVaultNetworkAccess is `Public`, leave the field empty.- Returns:
- the keyVaultResourceId value.
-
withKeyVaultResourceId
Set the keyVaultResourceId property: Resource ID of key vault. When keyVaultNetworkAccess is `Private`, this field is required and must be a valid resource ID. When keyVaultNetworkAccess is `Public`, leave the field empty.- Parameters:
keyVaultResourceId- the keyVaultResourceId value to set.- Returns:
- the AzureKeyVaultKms 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<AzureKeyVaultKms>- Throws:
IOException
-
fromJson
Reads an instance of AzureKeyVaultKms from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureKeyVaultKms 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 AzureKeyVaultKms.
-