# 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
    #
    # Describes the de-interlacing settings.
    #
    class Deinterlace

      include MsRestAzure

      # @return [DeinterlaceParity] The field parity for de-interlacing,
      # defaults to Auto. Possible values include: 'Auto', 'TopFieldFirst',
      # 'BottomFieldFirst'
      attr_accessor :parity

      # @return [DeinterlaceMode] The deinterlacing mode. Defaults to
      # AutoPixelAdaptive. Possible values include: 'Off', 'AutoPixelAdaptive'
      attr_accessor :mode


      #
      # Mapper for Deinterlace class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Deinterlace',
          type: {
            name: 'Composite',
            class_name: 'Deinterlace',
            model_properties: {
              parity: {
                client_side_validation: true,
                required: false,
                serialized_name: 'parity',
                type: {
                  name: 'String'
                }
              },
              mode: {
                client_side_validation: true,
                required: false,
                serialized_name: 'mode',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
