Class UrlSigningKeyParameters

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

public final class UrlSigningKeyParameters extends SecretParameters
Url signing key parameters.
  • Constructor Details

    • UrlSigningKeyParameters

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

    • type

      public SecretType type()
      Get the type property: The type of the secret resource.
      Overrides:
      type in class SecretParameters
      Returns:
      the type value.
    • keyId

      public String keyId()
      Get the keyId property: Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.
      Returns:
      the keyId value.
    • withKeyId

      public UrlSigningKeyParameters withKeyId(String keyId)
      Set the keyId property: Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.
      Parameters:
      keyId - the keyId value to set.
      Returns:
      the UrlSigningKeyParameters 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 UrlSigningKeyParameters 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 UrlSigningKeyParameters object itself.
    • secretVersion

      public String secretVersion()
      Get the secretVersion property: Version of the secret to be used.
      Returns:
      the secretVersion value.
    • withSecretVersion

      public UrlSigningKeyParameters withSecretVersion(String secretVersion)
      Set the secretVersion property: Version of the secret to be used.
      Parameters:
      secretVersion - the secretVersion value to set.
      Returns:
      the UrlSigningKeyParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class SecretParameters
      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<SecretParameters>
      Overrides:
      toJson in class SecretParameters
      Throws:
      IOException
    • fromJson

      public static UrlSigningKeyParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of UrlSigningKeyParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of UrlSigningKeyParameters 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 UrlSigningKeyParameters.