ó
š9^c           @   s   d  e  f d     YZ d S(   t   BccSettingsc           B   sh   e  Z d  Z d d d  Z e d    Z e j d    Z e d    Z e j d    Z d   Z	 RS(   sŽ   Settings object for automatic BCC.

    This allows you to have a blind carbon copy automatically sent to the
    specified email address for every email that is sent.
    c         C   sF   d |  _ d |  _ | d k	 r* | |  _ n  | d k	 rB | |  _ n  d S(   sė   Create a BCCSettings.

        :param enable: Whether this BCCSettings is applied to sent emails.
        :type enable: boolean, optional
        :param email: Who should be BCCed.
        :type email: BccSettingEmail, optional
        N(   t   Nonet   _enablet   _emailt   enablet   email(   t   selfR   R   (    (    sD   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/bcc_settings.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/bcc_settings.pyR      s    c         C   s   | |  _  d S(   s   Indicates if this setting is enabled.

        :type param: Indicates if this setting is enabled.
        :type value: boolean
        N(   R   (   R   t   value(    (    sD   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/bcc_settings.pyR   !   s    c         C   s   |  j  S(   sZ   The email address that you would like to receive the BCC.

        :rtype: string
        (   R   (   R   (    (    sD   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/bcc_settings.pyR   *   s    c         C   s   | |  _  d S(   sŊ   The email address that you would like to receive the BCC.

        :param value: The email address that you would like to receive the BCC.
        :type value: string
        N(   R   (   R   R   (    (    sD   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/bcc_settings.pyR   2   s    c         C   sN   i  } |  j  d k	 r% |  j  | d <n  |  j d k	 rJ |  j j   | d <n  | S(   sĄ   
        Get a JSON-ready representation of this BCCSettings.

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