ó
š9^c           @   s   d  e  f d     YZ d S(   t   SandBoxModec           B   sD   e  Z d  Z d d  Z e d    Z e j d    Z d   Z RS(   s   Setting for sandbox mode.
    This allows you to send a test email to ensure that your request body is
    valid and formatted correctly.
    c         C   s%   d |  _ | d k	 r! | |  _ n  d S(   s   Create an enabled or disabled SandBoxMode.

        :param enable: Whether this is a test request.
        :type enable: boolean, optional
        N(   t   Nonet   _enablet   enable(   t   selfR   (    (    sD   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/sandbox_mode.pyt   __init__   s    	c         C   s   |  j  S(   sG   Indicates if this setting is enabled.

        :rtype: boolean
        (   R   (   R   (    (    sD   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/sandbox_mode.pyR      s    c         C   s   | |  _  d S(   s   Indicates if this setting is enabled.

        :param value: Indicates if this setting is enabled.
        :type value: boolean
        N(   R   (   R   t   value(    (    sD   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/sandbox_mode.pyR      s    c         C   s)   i  } |  j  d k	 r% |  j  | d <n  | S(   sĄ   
        Get a JSON-ready representation of this SandBoxMode.

        :returns: This SandBoxMode, ready for use in a request body.
        :rtype: dict
        R   N(   R   R   (   R   t   sandbox_mode(    (    sD   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/sandbox_mode.pyt   get"   s    N(	   t   __name__t
   __module__t   __doc__R   R   t   propertyR   t   setterR   (    (    (    sD   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/sandbox_mode.pyR       s
   	N(   t   objectR    (    (    (    sD   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/sandbox_mode.pyt   <module>   t    