Class KeyVaultSecretReferenceSecretInfo
- java.lang.Object
-
- com.azure.resourcemanager.servicelinker.models.SecretInfoBase
-
- com.azure.resourcemanager.servicelinker.models.KeyVaultSecretReferenceSecretInfo
-
public final class KeyVaultSecretReferenceSecretInfo extends SecretInfoBase
The secret info when type is keyVaultSecretReference. It's for scenario that user provides a secret stored in user's keyvault and source is Azure Kubernetes. The key Vault's resource id is linked to secretStore.keyVaultId.
-
-
Constructor Summary
Constructors Constructor Description KeyVaultSecretReferenceSecretInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: Name of the Key Vault secret.void
validate()
Validates the instance.String
version()
Get the version property: Version of the Key Vault secret.KeyVaultSecretReferenceSecretInfo
withName(String name)
Set the name property: Name of the Key Vault secret.KeyVaultSecretReferenceSecretInfo
withVersion(String version)
Set the version property: Version of the Key Vault secret.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the Key Vault secret.- Returns:
- the name value.
-
withName
public KeyVaultSecretReferenceSecretInfo withName(String name)
Set the name property: Name of the Key Vault secret.- Parameters:
name
- the name value to set.- Returns:
- the KeyVaultSecretReferenceSecretInfo object itself.
-
version
public String version()
Get the version property: Version of the Key Vault secret.- Returns:
- the version value.
-
withVersion
public KeyVaultSecretReferenceSecretInfo withVersion(String version)
Set the version property: Version of the Key Vault secret.- Parameters:
version
- the version value to set.- Returns:
- the KeyVaultSecretReferenceSecretInfo object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classSecretInfoBase
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-