Class ContentKeyPolicyFairPlayOfflineRentalConfiguration

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

public final class ContentKeyPolicyFairPlayOfflineRentalConfiguration extends Object
The ContentKeyPolicyFairPlayOfflineRentalConfiguration model.
  • 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.