# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::MediaServices::Mgmt::V2020_05_01
  module Models
    #
    # Model object.
    #
    #
    class ContentKeyPolicyFairPlayOfflineRentalConfiguration

      include MsRestAzure

      # @return [Integer] Playback duration
      attr_accessor :playback_duration_seconds

      # @return [Integer] Storage duration
      attr_accessor :storage_duration_seconds


      #
      # Mapper for ContentKeyPolicyFairPlayOfflineRentalConfiguration class as
      # Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ContentKeyPolicyFairPlayOfflineRentalConfiguration',
          type: {
            name: 'Composite',
            class_name: 'ContentKeyPolicyFairPlayOfflineRentalConfiguration',
            model_properties: {
              playback_duration_seconds: {
                client_side_validation: true,
                required: true,
                serialized_name: 'playbackDurationSeconds',
                type: {
                  name: 'Number'
                }
              },
              storage_duration_seconds: {
                client_side_validation: true,
                required: true,
                serialized_name: 'storageDurationSeconds',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
