U
    42‹i£  ã                   @   s   G d d„ de ƒZdS )c                   @   s<   e Zd ZdZd
dd„Zedd„ ƒZejdd„ ƒZdd	„ ZdS )ÚSandBoxModezŽSetting for sandbox mode.
    This allows you to send a test email to ensure that your request body is
    valid and formatted correctly.
    Nc                 C   s   d| _ |dk	r|| _dS )z“Create an enabled or disabled SandBoxMode.

        :param enable: Whether this is a test request.
        :type enable: boolean, optional
        N)Ú_enableÚenable)Úselfr   © r   úF/tmp/pip-unpacked-wheel-clku7wca/sendgrid/helpers/mail/sandbox_mode.pyÚ__init__   s    zSandBoxMode.__init__c                 C   s   | j S )zGIndicates if this setting is enabled.

        :rtype: boolean
        ©r   )r   r   r   r   r      s    zSandBoxMode.enablec                 C   s
   || _ dS )zˆIndicates if this setting is enabled.

        :param value: Indicates if this setting is enabled.
        :type value: boolean
        Nr   )r   Úvaluer   r   r   r      s    c                 C   s   i }| j dk	r| j |d< |S )z¡
        Get a JSON-ready representation of this SandBoxMode.

        :returns: This SandBoxMode, ready for use in a request body.
        :rtype: dict
        Nr   )r   )r   Zsandbox_moder   r   r   Úget"   s    

zSandBoxMode.get)N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr
   r   r   r   r   r      s   


r   N)Úobjectr   r   r   r   r   Ú<module>   ó    