# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class BatchReleaseCriteria(Model):
    """The batch release criteria.

    :param message_count: The message count.
    :type message_count: int
    :param batch_size: The batch size in bytes.
    :type batch_size: int
    :param recurrence: The recurrence.
    :type recurrence: ~azure.mgmt.logic.models.WorkflowTriggerRecurrence
    """

    _attribute_map = {
        'message_count': {'key': 'messageCount', 'type': 'int'},
        'batch_size': {'key': 'batchSize', 'type': 'int'},
        'recurrence': {'key': 'recurrence', 'type': 'WorkflowTriggerRecurrence'},
    }

    def __init__(self, **kwargs):
        super(BatchReleaseCriteria, self).__init__(**kwargs)
        self.message_count = kwargs.get('message_count', None)
        self.batch_size = kwargs.get('batch_size', None)
        self.recurrence = kwargs.get('recurrence', None)
