Class ContentKeyPolicyFairPlayOfflineRentalConfiguration
java.lang.Object
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyFairPlayOfflineRentalConfiguration
The ContentKeyPolicyFairPlayOfflineRentalConfiguration model.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ContentKeyPolicyFairPlayOfflineRentalConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Get the playbackDurationSeconds property: Playback duration.long
Get the storageDurationSeconds property: Storage duration.void
validate()
Validates the instance.withPlaybackDurationSeconds
(long playbackDurationSeconds) Set the playbackDurationSeconds property: Playback duration.withStorageDurationSeconds
(long storageDurationSeconds) Set the storageDurationSeconds property: Storage duration.
-
Constructor Details
-
ContentKeyPolicyFairPlayOfflineRentalConfiguration
public ContentKeyPolicyFairPlayOfflineRentalConfiguration()Creates an instance of ContentKeyPolicyFairPlayOfflineRentalConfiguration class.
-
-
Method Details
-
playbackDurationSeconds
public long playbackDurationSeconds()Get the playbackDurationSeconds property: Playback duration.- Returns:
- the playbackDurationSeconds value.
-
withPlaybackDurationSeconds
public ContentKeyPolicyFairPlayOfflineRentalConfiguration withPlaybackDurationSeconds(long playbackDurationSeconds) Set the playbackDurationSeconds property: Playback duration.- Parameters:
playbackDurationSeconds
- the playbackDurationSeconds value to set.- Returns:
- the ContentKeyPolicyFairPlayOfflineRentalConfiguration object itself.
-
storageDurationSeconds
public long storageDurationSeconds()Get the storageDurationSeconds property: Storage duration.- Returns:
- the storageDurationSeconds value.
-
withStorageDurationSeconds
public ContentKeyPolicyFairPlayOfflineRentalConfiguration withStorageDurationSeconds(long storageDurationSeconds) Set the storageDurationSeconds property: Storage duration.- Parameters:
storageDurationSeconds
- the storageDurationSeconds value to set.- Returns:
- the ContentKeyPolicyFairPlayOfflineRentalConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-