Class KeyVaultSigningKeyParameters

java.lang.Object
com.azure.resourcemanager.cdn.models.KeyVaultSigningKeyParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultSigningKeyParameters>

public final class KeyVaultSigningKeyParameters extends Object implements com.azure.json.JsonSerializable<KeyVaultSigningKeyParameters>
Describes the parameters for using a user's KeyVault for URL Signing Key.
  • Constructor Details

    • KeyVaultSigningKeyParameters

      public KeyVaultSigningKeyParameters()
      Creates an instance of KeyVaultSigningKeyParameters class.
  • Method Details

    • typeName

      public String typeName()
      Get the typeName property: The typeName property.
      Returns:
      the typeName value.
    • withTypeName

      public KeyVaultSigningKeyParameters withTypeName(String typeName)
      Set the typeName property: The typeName property.
      Parameters:
      typeName - the typeName value to set.
      Returns:
      the KeyVaultSigningKeyParameters object itself.
    • subscriptionId

      public String subscriptionId()
      Get the subscriptionId property: Subscription Id of the user's Key Vault containing the secret.
      Returns:
      the subscriptionId value.
    • withSubscriptionId

      public KeyVaultSigningKeyParameters withSubscriptionId(String subscriptionId)
      Set the subscriptionId property: Subscription Id of the user's Key Vault containing the secret.
      Parameters:
      subscriptionId - the subscriptionId value to set.
      Returns:
      the KeyVaultSigningKeyParameters object itself.
    • resourceGroupName

      public String resourceGroupName()
      Get the resourceGroupName property: Resource group of the user's Key Vault containing the secret.
      Returns:
      the resourceGroupName value.
    • withResourceGroupName

      public KeyVaultSigningKeyParameters withResourceGroupName(String resourceGroupName)
      Set the resourceGroupName property: Resource group of the user's Key Vault containing the secret.
      Parameters:
      resourceGroupName - the resourceGroupName value to set.
      Returns:
      the KeyVaultSigningKeyParameters object itself.
    • vaultName

      public String vaultName()
      Get the vaultName property: The name of the user's Key Vault containing the secret.
      Returns:
      the vaultName value.
    • withVaultName

      public KeyVaultSigningKeyParameters withVaultName(String vaultName)
      Set the vaultName property: The name of the user's Key Vault containing the secret.
      Parameters:
      vaultName - the vaultName value to set.
      Returns:
      the KeyVaultSigningKeyParameters object itself.
    • secretName

      public String secretName()
      Get the secretName property: The name of secret in Key Vault.
      Returns:
      the secretName value.
    • withSecretName

      public KeyVaultSigningKeyParameters withSecretName(String secretName)
      Set the secretName property: The name of secret in Key Vault.
      Parameters:
      secretName - the secretName value to set.
      Returns:
      the KeyVaultSigningKeyParameters object itself.
    • secretVersion

      public String secretVersion()
      Get the secretVersion property: The version(GUID) of secret in Key Vault.
      Returns:
      the secretVersion value.
    • withSecretVersion

      public KeyVaultSigningKeyParameters withSecretVersion(String secretVersion)
      Set the secretVersion property: The version(GUID) of secret in Key Vault.
      Parameters:
      secretVersion - the secretVersion value to set.
      Returns:
      the KeyVaultSigningKeyParameters object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<KeyVaultSigningKeyParameters>
      Throws:
      IOException
    • fromJson

      public static KeyVaultSigningKeyParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of KeyVaultSigningKeyParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of KeyVaultSigningKeyParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the KeyVaultSigningKeyParameters.