java.lang.Object
com.azure.resourcemanager.mediaservices.models.DefaultKey

public final class DefaultKey extends Object
Class to specify properties of default content key for each encryption scheme.
  • Constructor Details

    • DefaultKey

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

    • label

      public String label()
      Get the label property: Label can be used to specify Content Key when creating a Streaming Locator.
      Returns:
      the label value.
    • withLabel

      public DefaultKey withLabel(String label)
      Set the label property: Label can be used to specify Content Key when creating a Streaming Locator.
      Parameters:
      label - the label value to set.
      Returns:
      the DefaultKey object itself.
    • policyName

      public String policyName()
      Get the policyName property: Policy used by Default Key.
      Returns:
      the policyName value.
    • withPolicyName

      public DefaultKey withPolicyName(String policyName)
      Set the policyName property: Policy used by Default Key.
      Parameters:
      policyName - the policyName value to set.
      Returns:
      the DefaultKey object itself.
    • validate

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