Class DefaultKey
java.lang.Object
com.azure.resourcemanager.mediaservices.models.DefaultKey
Class to specify properties of default content key for each encryption scheme.
-
Constructor Summary
-
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 Default 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 Default Key.
-
Constructor Details
-
DefaultKey
public DefaultKey()Creates an instance of DefaultKey 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 DefaultKey object itself.
-
policyName
Get the policyName property: Policy used by Default Key.- Returns:
- the policyName value.
-
withPolicyName
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.
-