U
    42‹i  ã                   @   s   G d d„ de ƒZdS )c                   @   sD   e Zd ZdZddd„Zedd„ ƒZejdd„ ƒZdd	„ Zd
d„ Z	dS )ÚBatchIda[  This ID represents a batch of emails to be sent at the same time.
       Including a batch_id in your request allows you include this email
       in that batch, and also enables you to cancel or pause the delivery
       of that batch. For more information, see
       https://sendgrid.com/docs/API_Reference/Web_API_v3/cancel_schedule_send.
    Nc                 C   s   d| _ |dk	r|| _dS )z]Create a batch ID.

        :param batch_id: Batch Id
        :type batch_id: string
        N)Ú	_batch_idÚbatch_id)Úselfr   © r   úB/tmp/pip-unpacked-wheel-clku7wca/sendgrid/helpers/mail/batch_id.pyÚ__init__   s    zBatchId.__init__c                 C   s   | j S )z.The batch ID.

        :rtype: string
        ©r   ©r   r   r   r   r      s    zBatchId.batch_idc                 C   s
   || _ dS )zRThe batch ID.

        :param value: Batch Id
        :type value: string
        Nr   )r   Úvaluer   r   r   r      s    c                 C   s   t |  ¡ ƒS )zJGet a JSON representation of this object.

        :rtype: string
        )ÚstrÚgetr	   r   r   r   Ú__str__$   s    zBatchId.__str__c                 C   s   | j S )z¡
        Get a JSON-ready representation of this BatchId object.

        :returns: The BatchId, ready for use in a request body.
        :rtype: string
        )r   r	   r   r   r   r   +   s    zBatchId.get)N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr   r   r   r   r   r   r      s   


r   N)Úobjectr   r   r   r   r   Ú<module>   ó    