Class ValidateSecretInput


  • public final class ValidateSecretInput
    extends Object
    Input of the secret to be validated.
    • Constructor Detail

      • ValidateSecretInput

        public ValidateSecretInput()
    • Method Detail

      • secretType

        public SecretType secretType()
        Get the secretType property: The secret type.
        Returns:
        the secretType value.
      • withSecretType

        public ValidateSecretInput withSecretType​(SecretType secretType)
        Set the secretType property: The secret type.
        Parameters:
        secretType - the secretType value to set.
        Returns:
        the ValidateSecretInput object itself.
      • secretSource

        public ResourceReference secretSource()
        Get the secretSource property: Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​.
        Returns:
        the secretSource value.
      • withSecretSource

        public ValidateSecretInput withSecretSource​(ResourceReference secretSource)
        Set the secretSource property: Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​.
        Parameters:
        secretSource - the secretSource value to set.
        Returns:
        the ValidateSecretInput object itself.
      • secretVersion

        public String secretVersion()
        Get the secretVersion property: Secret version, if customer is using a specific version.
        Returns:
        the secretVersion value.
      • withSecretVersion

        public ValidateSecretInput withSecretVersion​(String secretVersion)
        Set the secretVersion property: Secret version, if customer is using a specific version.
        Parameters:
        secretVersion - the secretVersion value to set.
        Returns:
        the ValidateSecretInput object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.