ó
º9—^c           @   s   d  e  f d „  ƒ  YZ d S(   t   BatchIdc           B   sM   e  Z d  Z d d „ Z e d „  ƒ Z e j d „  ƒ Z d „  Z d „  Z	 RS(   s[  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.
    c         C   s%   d |  _ | d k	 r! | |  _ n  d S(   s]   Create a batch ID.

        :param batch_id: Batch Id
        :type batch_id: string
        N(   t   Nonet	   _batch_idt   batch_id(   t   selfR   (    (    s@   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/batch_id.pyt   __init__   s    	c         C   s   |  j  S(   s2   A unix timestamp.

        :rtype: string
        (   R   (   R   (    (    s@   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/batch_id.pyR      s    c         C   s   | |  _  d S(   sV   A unix timestamp.

        :param value: Batch Id
        :type value: string
        N(   R   (   R   t   value(    (    s@   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/batch_id.pyR      s    c         C   s   t  |  j ƒ  ƒ S(   sJ   Get a JSON representation of this object.

        :rtype: string
        (   t   strt   get(   R   (    (    s@   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/batch_id.pyt   __str__$   s    c         C   s   |  j  S(   s    
        Get a JSON-ready representation of this SendAt object.

        :returns: The BatchId, ready for use in a request body.
        :rtype: string
        (   R   (   R   (    (    s@   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/batch_id.pyR   +   s    N(
   t   __name__t
   __module__t   __doc__R   R   t   propertyR   t   setterR	   R   (    (    (    s@   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/batch_id.pyR       s   		N(   t   objectR    (    (    (    s@   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/batch_id.pyt   <module>   t    