# 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::V2018_07_01
  module Models
    #
    # The presentation time range, this is asset related and not recommended
    # for Account Filter.
    #
    class PresentationTimeRange

      include MsRestAzure

      # @return [Integer] The absolute start time boundary.
      attr_accessor :start_timestamp

      # @return [Integer] The absolute end time boundary.
      attr_accessor :end_timestamp

      # @return [Integer] The relative to end sliding window.
      attr_accessor :presentation_window_duration

      # @return [Integer] The relative to end right edge.
      attr_accessor :live_backoff_duration

      # @return [Integer] The time scale of time stamps.
      attr_accessor :timescale

      # @return [Boolean] The indicator of forcing existing of end time stamp.
      attr_accessor :force_end_timestamp


      #
      # Mapper for PresentationTimeRange class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'PresentationTimeRange',
          type: {
            name: 'Composite',
            class_name: 'PresentationTimeRange',
            model_properties: {
              start_timestamp: {
                client_side_validation: true,
                required: false,
                serialized_name: 'startTimestamp',
                type: {
                  name: 'Number'
                }
              },
              end_timestamp: {
                client_side_validation: true,
                required: false,
                serialized_name: 'endTimestamp',
                type: {
                  name: 'Number'
                }
              },
              presentation_window_duration: {
                client_side_validation: true,
                required: false,
                serialized_name: 'presentationWindowDuration',
                type: {
                  name: 'Number'
                }
              },
              live_backoff_duration: {
                client_side_validation: true,
                required: false,
                serialized_name: 'liveBackoffDuration',
                type: {
                  name: 'Number'
                }
              },
              timescale: {
                client_side_validation: true,
                required: false,
                serialized_name: 'timescale',
                type: {
                  name: 'Number'
                }
              },
              force_end_timestamp: {
                client_side_validation: true,
                required: false,
                serialized_name: 'forceEndTimestamp',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
