# 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::Personalizer::V1_0
  module Models
    #
    # Reward given to a rank response.
    #
    class RewardRequest

      include MsRestAzure

      # @return [Float] Reward to be assigned to an action. Value should be
      # between -1 and 1 inclusive.
      attr_accessor :value


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