Class ContentKeyPolicyOption

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

public final class ContentKeyPolicyOption extends Object
Represents a policy option.
  • Constructor Details

    • ContentKeyPolicyOption

      public ContentKeyPolicyOption()
      Creates an instance of ContentKeyPolicyOption class.
  • Method Details

    • policyOptionId

      public UUID policyOptionId()
      Get the policyOptionId property: The legacy Policy Option ID.
      Returns:
      the policyOptionId value.
    • name

      public String name()
      Get the name property: The Policy Option description.
      Returns:
      the name value.
    • withName

      public ContentKeyPolicyOption withName(String name)
      Set the name property: The Policy Option description.
      Parameters:
      name - the name value to set.
      Returns:
      the ContentKeyPolicyOption object itself.
    • configuration

      public ContentKeyPolicyConfiguration configuration()
      Get the configuration property: The key delivery configuration.
      Returns:
      the configuration value.
    • withConfiguration

      public ContentKeyPolicyOption withConfiguration(ContentKeyPolicyConfiguration configuration)
      Set the configuration property: The key delivery configuration.
      Parameters:
      configuration - the configuration value to set.
      Returns:
      the ContentKeyPolicyOption object itself.
    • restriction

      public ContentKeyPolicyRestriction restriction()
      Get the restriction property: The requirements that must be met to deliver keys with this configuration.
      Returns:
      the restriction value.
    • withRestriction

      public ContentKeyPolicyOption withRestriction(ContentKeyPolicyRestriction restriction)
      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.