Class StreamingPolicyContentKeys

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

public final class StreamingPolicyContentKeys extends Object
Class to specify properties of all content keys in Streaming Policy.
  • Constructor Details

    • StreamingPolicyContentKeys

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

    • defaultKey

      public DefaultKey defaultKey()
      Get the defaultKey property: Default content key for an encryption scheme.
      Returns:
      the defaultKey value.
    • withDefaultKey

      public StreamingPolicyContentKeys withDefaultKey(DefaultKey defaultKey)
      Set the defaultKey property: Default content key for an encryption scheme.
      Parameters:
      defaultKey - the defaultKey value to set.
      Returns:
      the StreamingPolicyContentKeys object itself.
    • keyToTrackMappings

      public List<StreamingPolicyContentKey> keyToTrackMappings()
      Get the keyToTrackMappings property: Representing tracks needs separate content key.
      Returns:
      the keyToTrackMappings value.
    • withKeyToTrackMappings

      public StreamingPolicyContentKeys withKeyToTrackMappings(List<StreamingPolicyContentKey> keyToTrackMappings)
      Set the keyToTrackMappings property: Representing tracks needs separate content key.
      Parameters:
      keyToTrackMappings - the keyToTrackMappings value to set.
      Returns:
      the StreamingPolicyContentKeys object itself.
    • validate

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