Class ContentKeyPolicyPlayReadyLicense

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

public final class ContentKeyPolicyPlayReadyLicense extends Object
The PlayReady license.
  • Constructor Details

    • ContentKeyPolicyPlayReadyLicense

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

    • allowTestDevices

      public boolean allowTestDevices()
      Get the allowTestDevices property: A flag indicating whether test devices can use the license.
      Returns:
      the allowTestDevices value.
    • withAllowTestDevices

      public ContentKeyPolicyPlayReadyLicense withAllowTestDevices(boolean allowTestDevices)
      Set the allowTestDevices property: A flag indicating whether test devices can use the license.
      Parameters:
      allowTestDevices - the allowTestDevices value to set.
      Returns:
      the ContentKeyPolicyPlayReadyLicense object itself.
    • securityLevel

      public SecurityLevel securityLevel()
      Get the securityLevel property: The security level.
      Returns:
      the securityLevel value.
    • withSecurityLevel

      public ContentKeyPolicyPlayReadyLicense withSecurityLevel(SecurityLevel securityLevel)
      Set the securityLevel property: The security level.
      Parameters:
      securityLevel - the securityLevel value to set.
      Returns:
      the ContentKeyPolicyPlayReadyLicense object itself.
    • beginDate

      public OffsetDateTime beginDate()
      Get the beginDate property: The begin date of license.
      Returns:
      the beginDate value.
    • withBeginDate

      public ContentKeyPolicyPlayReadyLicense withBeginDate(OffsetDateTime beginDate)
      Set the beginDate property: The begin date of license.
      Parameters:
      beginDate - the beginDate value to set.
      Returns:
      the ContentKeyPolicyPlayReadyLicense object itself.
    • expirationDate

      public OffsetDateTime expirationDate()
      Get the expirationDate property: The expiration date of license.
      Returns:
      the expirationDate value.
    • withExpirationDate

      public ContentKeyPolicyPlayReadyLicense withExpirationDate(OffsetDateTime expirationDate)
      Set the expirationDate property: The expiration date of license.
      Parameters:
      expirationDate - the expirationDate value to set.
      Returns:
      the ContentKeyPolicyPlayReadyLicense object itself.
    • relativeBeginDate

      public Duration relativeBeginDate()
      Get the relativeBeginDate property: The relative begin date of license.
      Returns:
      the relativeBeginDate value.
    • withRelativeBeginDate

      public ContentKeyPolicyPlayReadyLicense withRelativeBeginDate(Duration relativeBeginDate)
      Set the relativeBeginDate property: The relative begin date of license.
      Parameters:
      relativeBeginDate - the relativeBeginDate value to set.
      Returns:
      the ContentKeyPolicyPlayReadyLicense object itself.
    • relativeExpirationDate

      public Duration relativeExpirationDate()
      Get the relativeExpirationDate property: The relative expiration date of license.
      Returns:
      the relativeExpirationDate value.
    • withRelativeExpirationDate

      public ContentKeyPolicyPlayReadyLicense withRelativeExpirationDate(Duration relativeExpirationDate)
      Set the relativeExpirationDate property: The relative expiration date of license.
      Parameters:
      relativeExpirationDate - the relativeExpirationDate value to set.
      Returns:
      the ContentKeyPolicyPlayReadyLicense object itself.
    • gracePeriod

      public Duration gracePeriod()
      Get the gracePeriod property: The grace period of license.
      Returns:
      the gracePeriod value.
    • withGracePeriod

      public ContentKeyPolicyPlayReadyLicense withGracePeriod(Duration gracePeriod)
      Set the gracePeriod property: The grace period of license.
      Parameters:
      gracePeriod - the gracePeriod value to set.
      Returns:
      the ContentKeyPolicyPlayReadyLicense object itself.
    • playRight

      Get the playRight property: The license PlayRight.
      Returns:
      the playRight value.
    • withPlayRight

      Set the playRight property: The license PlayRight.
      Parameters:
      playRight - the playRight value to set.
      Returns:
      the ContentKeyPolicyPlayReadyLicense object itself.
    • licenseType

      Get the licenseType property: The license type.
      Returns:
      the licenseType value.
    • withLicenseType

      Set the licenseType property: The license type.
      Parameters:
      licenseType - the licenseType value to set.
      Returns:
      the ContentKeyPolicyPlayReadyLicense object itself.
    • contentKeyLocation

      public ContentKeyPolicyPlayReadyContentKeyLocation contentKeyLocation()
      Get the contentKeyLocation property: The content key location.
      Returns:
      the contentKeyLocation value.
    • withContentKeyLocation

      public ContentKeyPolicyPlayReadyLicense withContentKeyLocation(ContentKeyPolicyPlayReadyContentKeyLocation contentKeyLocation)
      Set the contentKeyLocation property: The content key location.
      Parameters:
      contentKeyLocation - the contentKeyLocation value to set.
      Returns:
      the ContentKeyPolicyPlayReadyLicense object itself.
    • contentType

      Get the contentType property: The PlayReady content type.
      Returns:
      the contentType value.
    • withContentType

      Set the contentType property: The PlayReady content type.
      Parameters:
      contentType - the contentType value to set.
      Returns:
      the ContentKeyPolicyPlayReadyLicense object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.