Class StreamingPolicyContentKey

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

public final class StreamingPolicyContentKey extends Object
Class to specify properties of content key.
  • Constructor Details

    • StreamingPolicyContentKey

      public StreamingPolicyContentKey()
      Creates an instance of StreamingPolicyContentKey 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 StreamingPolicyContentKey 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 StreamingPolicyContentKey object itself.
    • policyName

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

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

      public List<TrackSelection> tracks()
      Get the tracks property: Tracks which use this content key.
      Returns:
      the tracks value.
    • withTracks

      public StreamingPolicyContentKey withTracks(List<TrackSelection> tracks)
      Set the tracks property: Tracks which use this content key.
      Parameters:
      tracks - the tracks value to set.
      Returns:
      the StreamingPolicyContentKey object itself.
    • validate

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