Class KeyVaultAndSecretReference
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.KeyVaultAndSecretReference
-
public final class KeyVaultAndSecretReference extends Object
Key Vault Secret Url and vault id of the encryption key.
-
-
Constructor Summary
Constructors Constructor Description KeyVaultAndSecretReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringsecretUrl()Get the secretUrl property: Url pointing to a key or secret in KeyVault.SourceVaultsourceVault()Get the sourceVault property: Resource id of the KeyVault containing the key or secret.voidvalidate()Validates the instance.KeyVaultAndSecretReferencewithSecretUrl(String secretUrl)Set the secretUrl property: Url pointing to a key or secret in KeyVault.KeyVaultAndSecretReferencewithSourceVault(SourceVault sourceVault)Set the sourceVault property: Resource id of the KeyVault containing the key or secret.
-
-
-
Method Detail
-
sourceVault
public SourceVault sourceVault()
Get the sourceVault property: Resource id of the KeyVault containing the key or secret.- Returns:
- the sourceVault value.
-
withSourceVault
public KeyVaultAndSecretReference withSourceVault(SourceVault sourceVault)
Set the sourceVault property: Resource id of the KeyVault containing the key or secret.- Parameters:
sourceVault- the sourceVault value to set.- Returns:
- the KeyVaultAndSecretReference object itself.
-
secretUrl
public String secretUrl()
Get the secretUrl property: Url pointing to a key or secret in KeyVault.- Returns:
- the secretUrl value.
-
withSecretUrl
public KeyVaultAndSecretReference withSecretUrl(String secretUrl)
Set the secretUrl property: Url pointing to a key or secret in KeyVault.- Parameters:
secretUrl- the secretUrl value to set.- Returns:
- the KeyVaultAndSecretReference object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-