Class StreamingPolicyContentKeys
java.lang.Object
com.azure.resourcemanager.mediaservices.models.StreamingPolicyContentKeys
Class to specify properties of all content keys in Streaming Policy.
-
Constructor Summary
ConstructorDescriptionCreates an instance of StreamingPolicyContentKeys class. -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultKey property: Default content key for an encryption scheme.Get the keyToTrackMappings property: Representing tracks needs separate content key.void
validate()
Validates the instance.withDefaultKey
(DefaultKey defaultKey) Set the defaultKey property: Default content key for an encryption scheme.withKeyToTrackMappings
(List<StreamingPolicyContentKey> keyToTrackMappings) Set the keyToTrackMappings property: Representing tracks needs separate content key.
-
Constructor Details
-
StreamingPolicyContentKeys
public StreamingPolicyContentKeys()Creates an instance of StreamingPolicyContentKeys class.
-
-
Method Details
-
defaultKey
Get the defaultKey property: Default content key for an encryption scheme.- Returns:
- the defaultKey value.
-
withDefaultKey
Set the defaultKey property: Default content key for an encryption scheme.- Parameters:
defaultKey
- the defaultKey value to set.- Returns:
- the StreamingPolicyContentKeys object itself.
-
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.
-