ó
š9^c           @   s   d  e  f d     YZ d S(   t   MailSettingsc           B   sÔ   e  Z d  Z d d d d d d  Z e d    Z e j d    Z e d    Z e j d    Z e d    Z	 e	 j d    Z	 e d    Z
 e
 j d	    Z
 e d
    Z e j d    Z d   Z RS(   sD   A collection of mail settings that specify how to handle this email.c         C   sĐ   d |  _ d |  _ d |  _ d |  _ d |  _ | d k	 rE | |  _ n  | d k	 r] | |  _ n  | d k	 ru | |  _ n  | d k	 r | |  _	 n  | d k	 rĨ | |  _
 n  d S(   s)  Create a MailSettings object

        :param bcc_settings: The BCC Settings of this MailSettings
        :type bcc_settings: BCCSettings, optional
        :param bypass_list_management: Whether this MailSettings bypasses list
                                       management
        :type bypass_list_management: BypassListManagement, optional
        :param footer_settings: The default footer specified by this
                                MailSettings
        :type footer_settings: FooterSettings, optional
        :param sandbox_mode: Whether this MailSettings enables sandbox mode
        :type sandbox_mode: SandBoxMode, optional
        :param spam_check: How this MailSettings requests email to be checked
                           for spam
        :type spam_check: SpamCheck, optional
        N(   t   Nonet   _bcc_settingst   _bypass_list_managementt   _footer_settingst   _sandbox_modet   _spam_checkt   bcc_settingst   bypass_list_managementt   footer_settingst   sandbox_modet
   spam_check(   t   selfR   R   R	   R
   R   (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyt   __init__   s    					c         C   s   |  j  S(   sL   The BCC Settings of this MailSettings.

        :rtype: BCCSettings
        (   R   (   R   (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR   /   s    c         C   s   | |  _  d S(   s   The BCC Settings of this MailSettings.

        :param value: The BCC Settings of this MailSettings.
        :type value: BCCSettings
        N(   R   (   R   t   value(    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR   7   s    c         C   s   |  j  S(   sb   Whether this MailSettings bypasses list management.

        :rtype: BypassListManagement
        (   R   (   R   (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR   @   s    c         C   s   | |  _  d S(   są   Whether this MailSettings bypasses list management.

        :param value: Whether this MailSettings bypasses list management.
        :type value: BypassListManagement
        N(   R   (   R   R   (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR   H   s    c         C   s   |  j  S(   s[   The default footer specified by this MailSettings.

        :rtype: FooterSettings
        (   R   (   R   (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR	   Q   s    c         C   s   | |  _  d S(   sĐ   The default footer specified by this MailSettings.

        :param value: The default footer specified by this MailSettings.
        :type value: FooterSettings
        N(   R   (   R   R   (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR	   Y   s    c         C   s   |  j  S(   sU   Whether this MailSettings enables sandbox mode.

        :rtype: SandBoxMode
        (   R   (   R   (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR
   b   s    c         C   s   | |  _  d S(   s    Whether this MailSettings enables sandbox mode.

        :param value: Whether this MailSettings enables sandbox mode.
        :type value: SandBoxMode
        N(   R   (   R   R   (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR
   j   s    c         C   s   |  j  S(   s`   How this MailSettings requests email to be checked for spam.

        :rtype: SpamCheck
        (   R   (   R   (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR   s   s    c         C   s   | |  _  d S(   sÎ   How this MailSettings requests email to be checked for spam.

        :param value: How this MailSettings requests email to be checked
                      for spam.
        :type value: SpamCheck
        N(   R   (   R   R   (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR   {   s    c         C   sÃ   i  } |  j  d k	 r+ |  j  j   | d <n  |  j d k	 rP |  j j   | d <n  |  j d k	 ru |  j j   | d <n  |  j d k	 r |  j j   | d <n  |  j d k	 rŋ |  j j   | d <n  | S(   sĢ   
        Get a JSON-ready representation of this MailSettings.

        :returns: This MailSettings, ready for use in a request body.
        :rtype: dict
        t   bccR   t   footerR
   R   N(   R   R   t   getR   R	   R
   R   (   R   t   mail_settings(    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR      s    N(   t   __name__t
   __module__t   __doc__R   R   t   propertyR   t   setterR   R	   R
   R   R   (    (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyR       s"   &				
N(   t   objectR    (    (    (    sE   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/mail_settings.pyt   <module>   t    