# 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::CognitiveServices::QnamakerRuntime::V4_0
  module Models
    #
    # Active learning feedback record.
    #
    class FeedbackRecordDTO

      include MsRestAzure

      # @return [String] Unique identifier for the user.
      attr_accessor :user_id

      # @return [String] The suggested question being provided as feedback.
      attr_accessor :user_question

      # @return [Integer] The qnaId for which the suggested question is
      # provided as feedback.
      attr_accessor :qna_id


      #
      # Mapper for FeedbackRecordDTO class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'FeedbackRecordDTO',
          type: {
            name: 'Composite',
            class_name: 'FeedbackRecordDTO',
            model_properties: {
              user_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'userId',
                type: {
                  name: 'String'
                }
              },
              user_question: {
                client_side_validation: true,
                required: false,
                serialized_name: 'userQuestion',
                constraints: {
                  MaxLength: 1000
                },
                type: {
                  name: 'String'
                }
              },
              qna_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'qnaId',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
