ContentKeyPolicyPlayReadyLicense Class

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

Implements

public final class ContentKeyPolicyPlayReadyLicense
implements JsonSerializable<ContentKeyPolicyPlayReadyLicense>

The PlayReady license.

Constructor Summary

Constructor Description
ContentKeyPolicyPlayReadyLicense()

Creates an instance of ContentKeyPolicyPlayReadyLicense class.

Method Summary

Modifier and Type Method and Description
boolean allowTestDevices()

Get the allowTestDevices property: A flag indicating whether test devices can use the license.

OffsetDateTime beginDate()

Get the beginDate property: The begin date of license.

ContentKeyPolicyPlayReadyContentKeyLocation contentKeyLocation()

Get the contentKeyLocation property: The content key location.

ContentKeyPolicyPlayReadyContentType contentType()

Get the contentType property: The PlayReady content type.

OffsetDateTime expirationDate()

Get the expirationDate property: The expiration date of license.

static ContentKeyPolicyPlayReadyLicense fromJson(JsonReader jsonReader)

Reads an instance of ContentKeyPolicyPlayReadyLicense from the JsonReader.

Duration gracePeriod()

Get the gracePeriod property: The grace period of license.

ContentKeyPolicyPlayReadyLicenseType licenseType()

Get the licenseType property: The license type.

ContentKeyPolicyPlayReadyPlayRight playRight()

Get the playRight property: The license PlayRight.

Duration relativeBeginDate()

Get the relativeBeginDate property: The relative begin date of license.

Duration relativeExpirationDate()

Get the relativeExpirationDate property: The relative expiration date of license.

SecurityLevel securityLevel()

Get the securityLevel property: The security level.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContentKeyPolicyPlayReadyLicense withAllowTestDevices(boolean allowTestDevices)

Set the allowTestDevices property: A flag indicating whether test devices can use the license.

ContentKeyPolicyPlayReadyLicense withBeginDate(OffsetDateTime beginDate)

Set the beginDate property: The begin date of license.

ContentKeyPolicyPlayReadyLicense withContentKeyLocation(ContentKeyPolicyPlayReadyContentKeyLocation contentKeyLocation)

Set the contentKeyLocation property: The content key location.

ContentKeyPolicyPlayReadyLicense withContentType(ContentKeyPolicyPlayReadyContentType contentType)

Set the contentType property: The PlayReady content type.

ContentKeyPolicyPlayReadyLicense withExpirationDate(OffsetDateTime expirationDate)

Set the expirationDate property: The expiration date of license.

ContentKeyPolicyPlayReadyLicense withGracePeriod(Duration gracePeriod)

Set the gracePeriod property: The grace period of license.

ContentKeyPolicyPlayReadyLicense withLicenseType(ContentKeyPolicyPlayReadyLicenseType licenseType)

Set the licenseType property: The license type.

ContentKeyPolicyPlayReadyLicense withPlayRight(ContentKeyPolicyPlayReadyPlayRight playRight)

Set the playRight property: The license PlayRight.

ContentKeyPolicyPlayReadyLicense withRelativeBeginDate(Duration relativeBeginDate)

Set the relativeBeginDate property: The relative begin date of license.

ContentKeyPolicyPlayReadyLicense withRelativeExpirationDate(Duration relativeExpirationDate)

Set the relativeExpirationDate property: The relative expiration date of license.

ContentKeyPolicyPlayReadyLicense withSecurityLevel(SecurityLevel securityLevel)

Set the securityLevel property: The security level.

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:

the allowTestDevices value.

beginDate

public OffsetDateTime beginDate()

Get the beginDate property: The begin date of license.

Returns:

the beginDate value.

contentKeyLocation

public ContentKeyPolicyPlayReadyContentKeyLocation contentKeyLocation()

Get the contentKeyLocation property: The content key location.

Returns:

the contentKeyLocation value.

contentType

public ContentKeyPolicyPlayReadyContentType contentType()

Get the contentType property: The PlayReady content type.

Returns:

the contentType value.

expirationDate

public OffsetDateTime expirationDate()

Get the expirationDate property: The expiration date of license.

Returns:

the expirationDate value.

fromJson

public static ContentKeyPolicyPlayReadyLicense fromJson(JsonReader jsonReader)

Reads an instance of ContentKeyPolicyPlayReadyLicense from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContentKeyPolicyPlayReadyLicense if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

gracePeriod

public Duration gracePeriod()

Get the gracePeriod property: The grace period of license.

Returns:

the gracePeriod value.

licenseType

public ContentKeyPolicyPlayReadyLicenseType licenseType()

Get the licenseType property: The license type.

Returns:

the licenseType value.

playRight

public ContentKeyPolicyPlayReadyPlayRight playRight()

Get the playRight property: The license PlayRight.

Returns:

the playRight value.

relativeBeginDate

public Duration relativeBeginDate()

Get the relativeBeginDate property: The relative begin date of license.

Returns:

the relativeBeginDate value.

relativeExpirationDate

public Duration relativeExpirationDate()

Get the relativeExpirationDate property: The relative expiration date of license.

Returns:

the relativeExpirationDate value.

securityLevel

public SecurityLevel securityLevel()

Get the securityLevel property: The security level.

Returns:

the securityLevel value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

allowTestDevices - the allowTestDevices value to set.

Returns:

the ContentKeyPolicyPlayReadyLicense object itself.

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.

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.

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.

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.

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.

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.

withPlayRight

public ContentKeyPolicyPlayReadyLicense withPlayRight(ContentKeyPolicyPlayReadyPlayRight playRight)

Set the playRight property: The license PlayRight.

Parameters:

playRight - the playRight value to set.

Returns:

the ContentKeyPolicyPlayReadyLicense object itself.

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.

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.

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.

Applies to