# 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::Logic::Mgmt::V2018_07_01_preview
  module Models
    #
    # The batch release criteria.
    #
    class BatchReleaseCriteria

      include MsRestAzure

      # @return [Integer] The message count.
      attr_accessor :message_count

      # @return [Integer] The batch size in bytes.
      attr_accessor :batch_size

      # @return [WorkflowTriggerRecurrence] The recurrence.
      attr_accessor :recurrence


      #
      # Mapper for BatchReleaseCriteria class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'BatchReleaseCriteria',
          type: {
            name: 'Composite',
            class_name: 'BatchReleaseCriteria',
            model_properties: {
              message_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'messageCount',
                type: {
                  name: 'Number'
                }
              },
              batch_size: {
                client_side_validation: true,
                required: false,
                serialized_name: 'batchSize',
                type: {
                  name: 'Number'
                }
              },
              recurrence: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recurrence',
                type: {
                  name: 'Composite',
                  class_name: 'WorkflowTriggerRecurrence'
                }
              }
            }
          }
        }
      end
    end
  end
end
