Class ContentKeyPolicyPlayReadyLicense
java.lang.Object
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyPlayReadyLicense
The PlayReady license.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ContentKeyPolicyPlayReadyLicense class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the allowTestDevices property: A flag indicating whether test devices can use the license.Get the beginDate property: The begin date of license.Get the contentKeyLocation property: The content key location.Get the contentType property: The PlayReady content type.Get the expirationDate property: The expiration date of license.Get the gracePeriod property: The grace period of license.Get the licenseType property: The license type.Get the playRight property: The license PlayRight.Get the relativeBeginDate property: The relative begin date of license.Get the relativeExpirationDate property: The relative expiration date of license.Get the securityLevel property: The security level.void
validate()
Validates the instance.withAllowTestDevices
(boolean allowTestDevices) Set the allowTestDevices property: A flag indicating whether test devices can use the license.withBeginDate
(OffsetDateTime beginDate) Set the beginDate property: The begin date of license.withContentKeyLocation
(ContentKeyPolicyPlayReadyContentKeyLocation contentKeyLocation) Set the contentKeyLocation property: The content key location.withContentType
(ContentKeyPolicyPlayReadyContentType contentType) Set the contentType property: The PlayReady content type.withExpirationDate
(OffsetDateTime expirationDate) Set the expirationDate property: The expiration date of license.withGracePeriod
(Duration gracePeriod) Set the gracePeriod property: The grace period of license.withLicenseType
(ContentKeyPolicyPlayReadyLicenseType licenseType) Set the licenseType property: The license type.withPlayRight
(ContentKeyPolicyPlayReadyPlayRight playRight) Set the playRight property: The license PlayRight.withRelativeBeginDate
(Duration relativeBeginDate) Set the relativeBeginDate property: The relative begin date of license.withRelativeExpirationDate
(Duration relativeExpirationDate) Set the relativeExpirationDate property: The relative expiration date of license.withSecurityLevel
(SecurityLevel securityLevel) Set the securityLevel property: The security level.
-
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
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
Get the securityLevel property: The security level.- Returns:
- the securityLevel value.
-
withSecurityLevel
Set the securityLevel property: The security level.- Parameters:
securityLevel
- the securityLevel value to set.- Returns:
- the ContentKeyPolicyPlayReadyLicense object itself.
-
beginDate
Get the beginDate property: The begin date of license.- Returns:
- the beginDate value.
-
withBeginDate
Set the beginDate property: The begin date of license.- Parameters:
beginDate
- the beginDate value to set.- Returns:
- the ContentKeyPolicyPlayReadyLicense object itself.
-
expirationDate
Get the expirationDate property: The expiration date of license.- Returns:
- the expirationDate value.
-
withExpirationDate
Set the expirationDate property: The expiration date of license.- Parameters:
expirationDate
- the expirationDate value to set.- Returns:
- the ContentKeyPolicyPlayReadyLicense object itself.
-
relativeBeginDate
Get the relativeBeginDate property: The relative begin date of license.- Returns:
- the relativeBeginDate value.
-
withRelativeBeginDate
Set the relativeBeginDate property: The relative begin date of license.- Parameters:
relativeBeginDate
- the relativeBeginDate value to set.- Returns:
- the ContentKeyPolicyPlayReadyLicense object itself.
-
relativeExpirationDate
Get the relativeExpirationDate property: The relative expiration date of license.- Returns:
- the relativeExpirationDate value.
-
withRelativeExpirationDate
Set the relativeExpirationDate property: The relative expiration date of license.- Parameters:
relativeExpirationDate
- the relativeExpirationDate value to set.- Returns:
- the ContentKeyPolicyPlayReadyLicense object itself.
-
gracePeriod
Get the gracePeriod property: The grace period of license.- Returns:
- the gracePeriod value.
-
withGracePeriod
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
public ContentKeyPolicyPlayReadyLicense withLicenseType(ContentKeyPolicyPlayReadyLicenseType licenseType) Set the licenseType property: The license type.- Parameters:
licenseType
- the licenseType value to set.- Returns:
- the ContentKeyPolicyPlayReadyLicense object itself.
-
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
public ContentKeyPolicyPlayReadyLicense withContentType(ContentKeyPolicyPlayReadyContentType contentType) 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.
-