Class StreamingPolicyContentKey
java.lang.Object
com.azure.resourcemanager.mediaservices.models.StreamingPolicyContentKey
Class to specify properties of content key.
-
Constructor Summary
ConstructorDescriptionCreates an instance of StreamingPolicyContentKey class. -
Method Summary
Modifier and TypeMethodDescriptionlabel()
Get the label property: Label can be used to specify Content Key when creating a Streaming Locator.Get the policyName property: Policy used by Content Key.tracks()
Get the tracks property: Tracks which use this content key.void
validate()
Validates the instance.Set the label property: Label can be used to specify Content Key when creating a Streaming Locator.withPolicyName
(String policyName) Set the policyName property: Policy used by Content Key.withTracks
(List<TrackSelection> tracks) Set the tracks property: Tracks which use this content key.
-
Constructor Details
-
StreamingPolicyContentKey
public StreamingPolicyContentKey()Creates an instance of StreamingPolicyContentKey class.
-
-
Method Details
-
label
Get the label property: Label can be used to specify Content Key when creating a Streaming Locator.- Returns:
- the label value.
-
withLabel
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
Get the policyName property: Policy used by Content Key.- Returns:
- the policyName value.
-
withPolicyName
Set the policyName property: Policy used by Content Key.- Parameters:
policyName
- the policyName value to set.- Returns:
- the StreamingPolicyContentKey object itself.
-
tracks
Get the tracks property: Tracks which use this content key.- Returns:
- the tracks value.
-
withTracks
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.
-