Class ContentKeyPolicyOption
java.lang.Object
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyOption
Represents a policy option.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ContentKeyPolicyOption class. -
Method Summary
Modifier and TypeMethodDescriptionGet the configuration property: The key delivery configuration.name()
Get the name property: The Policy Option description.Get the policyOptionId property: The legacy Policy Option ID.Get the restriction property: The requirements that must be met to deliver keys with this configuration.void
validate()
Validates the instance.withConfiguration
(ContentKeyPolicyConfiguration configuration) Set the configuration property: The key delivery configuration.Set the name property: The Policy Option description.withRestriction
(ContentKeyPolicyRestriction restriction) Set the restriction property: The requirements that must be met to deliver keys with this configuration.
-
Constructor Details
-
ContentKeyPolicyOption
public ContentKeyPolicyOption()Creates an instance of ContentKeyPolicyOption class.
-
-
Method Details
-
policyOptionId
Get the policyOptionId property: The legacy Policy Option ID.- Returns:
- the policyOptionId value.
-
name
Get the name property: The Policy Option description.- Returns:
- the name value.
-
withName
Set the name property: The Policy Option description.- Parameters:
name
- the name value to set.- Returns:
- the ContentKeyPolicyOption object itself.
-
configuration
Get the configuration property: The key delivery configuration.- Returns:
- the configuration value.
-
withConfiguration
Set the configuration property: The key delivery configuration.- Parameters:
configuration
- the configuration value to set.- Returns:
- the ContentKeyPolicyOption object itself.
-
restriction
Get the restriction property: The requirements that must be met to deliver keys with this configuration.- Returns:
- the restriction value.
-
withRestriction
Set the restriction property: The requirements that must be met to deliver keys with this configuration.- Parameters:
restriction
- the restriction value to set.- Returns:
- the ContentKeyPolicyOption object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-