ContentKeyPolicyPlayReadyLicense Class
- java.
lang. Object - com.
azure. resourcemanager. mediaservices. models. ContentKeyPolicyPlayReadyLicense
- com.
Implements
public final class ContentKeyPolicyPlayReadyLicense
implements JsonSerializable<ContentKeyPolicyPlayReadyLicense>
The PlayReady license.
Constructor Summary
| Constructor | Description |
|---|---|
| ContentKeyPolicyPlayReadyLicense() |
Creates an instance of Content |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| boolean |
allowTestDevices()
Get the allow |
|
Offset |
beginDate()
Get the begin |
|
Content |
contentKeyLocation()
Get the content |
|
Content |
contentType()
Get the content |
|
Offset |
expirationDate()
Get the expiration |
|
static
Content |
fromJson(JsonReader jsonReader)
Reads an instance of Content |
| Duration |
gracePeriod()
Get the grace |
|
Content |
licenseType()
Get the license |
|
Content |
playRight()
Get the play |
| Duration |
relativeBeginDate()
Get the relative |
| Duration |
relativeExpirationDate()
Get the relative |
|
Security |
securityLevel()
Get the security |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Content |
withAllowTestDevices(boolean allowTestDevices)
Set the allow |
|
Content |
withBeginDate(OffsetDateTime beginDate)
Set the begin |
|
Content |
withContentKeyLocation(ContentKeyPolicyPlayReadyContentKeyLocation contentKeyLocation)
Set the content |
|
Content |
withContentType(ContentKeyPolicyPlayReadyContentType contentType)
Set the content |
|
Content |
withExpirationDate(OffsetDateTime expirationDate)
Set the expiration |
|
Content |
withGracePeriod(Duration gracePeriod)
Set the grace |
|
Content |
withLicenseType(ContentKeyPolicyPlayReadyLicenseType licenseType)
Set the license |
|
Content |
withPlayRight(ContentKeyPolicyPlayReadyPlayRight playRight)
Set the play |
|
Content |
withRelativeBeginDate(Duration relativeBeginDate)
Set the relative |
|
Content |
withRelativeExpirationDate(Duration relativeExpirationDate)
Set the relative |
|
Content |
withSecurityLevel(SecurityLevel securityLevel)
Set the security |
Methods inherited from java.lang.Object
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:
beginDate
public OffsetDateTime beginDate()
Get the beginDate property: The begin date of license.
Returns:
contentKeyLocation
public ContentKeyPolicyPlayReadyContentKeyLocation contentKeyLocation()
Get the contentKeyLocation property: The content key location.
Returns:
contentType
public ContentKeyPolicyPlayReadyContentType contentType()
Get the contentType property: The PlayReady content type.
Returns:
expirationDate
public OffsetDateTime expirationDate()
Get the expirationDate property: The expiration date of license.
Returns:
fromJson
public static ContentKeyPolicyPlayReadyLicense fromJson(JsonReader jsonReader)
Reads an instance of ContentKeyPolicyPlayReadyLicense from the JsonReader.
Parameters:
Returns:
Throws:
gracePeriod
public Duration gracePeriod()
Get the gracePeriod property: The grace period of license.
Returns:
licenseType
public ContentKeyPolicyPlayReadyLicenseType licenseType()
Get the licenseType property: The license type.
Returns:
playRight
public ContentKeyPolicyPlayReadyPlayRight playRight()
Get the playRight property: The license PlayRight.
Returns:
relativeBeginDate
public Duration relativeBeginDate()
Get the relativeBeginDate property: The relative begin date of license.
Returns:
relativeExpirationDate
public Duration relativeExpirationDate()
Get the relativeExpirationDate property: The relative expiration date of license.
Returns:
securityLevel
public SecurityLevel securityLevel()
Get the securityLevel property: The security level.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAllowTestDevices
public ContentKeyPolicyPlayReadyLicense withAllowTestDevices(boolean allowTestDevices)
Set the allowTestDevices property: A flag indicating whether test devices can use the license.
Parameters:
Returns:
withBeginDate
public ContentKeyPolicyPlayReadyLicense withBeginDate(OffsetDateTime beginDate)
Set the beginDate property: The begin date of license.
Parameters:
Returns:
withContentKeyLocation
public ContentKeyPolicyPlayReadyLicense withContentKeyLocation(ContentKeyPolicyPlayReadyContentKeyLocation contentKeyLocation)
Set the contentKeyLocation property: The content key location.
Parameters:
Returns:
withContentType
public ContentKeyPolicyPlayReadyLicense withContentType(ContentKeyPolicyPlayReadyContentType contentType)
Set the contentType property: The PlayReady content type.
Parameters:
Returns:
withExpirationDate
public ContentKeyPolicyPlayReadyLicense withExpirationDate(OffsetDateTime expirationDate)
Set the expirationDate property: The expiration date of license.
Parameters:
Returns:
withGracePeriod
public ContentKeyPolicyPlayReadyLicense withGracePeriod(Duration gracePeriod)
Set the gracePeriod property: The grace period of license.
Parameters:
Returns:
withLicenseType
public ContentKeyPolicyPlayReadyLicense withLicenseType(ContentKeyPolicyPlayReadyLicenseType licenseType)
Set the licenseType property: The license type.
Parameters:
Returns:
withPlayRight
public ContentKeyPolicyPlayReadyLicense withPlayRight(ContentKeyPolicyPlayReadyPlayRight playRight)
Set the playRight property: The license PlayRight.
Parameters:
Returns:
withRelativeBeginDate
public ContentKeyPolicyPlayReadyLicense withRelativeBeginDate(Duration relativeBeginDate)
Set the relativeBeginDate property: The relative begin date of license.
Parameters:
Returns:
withRelativeExpirationDate
public ContentKeyPolicyPlayReadyLicense withRelativeExpirationDate(Duration relativeExpirationDate)
Set the relativeExpirationDate property: The relative expiration date of license.
Parameters:
Returns:
withSecurityLevel
public ContentKeyPolicyPlayReadyLicense withSecurityLevel(SecurityLevel securityLevel)
Set the securityLevel property: The security level.
Parameters:
Returns: