U
    42‹i‰  ã                   @   s   G d d„ de ƒZdS )c                   @   sV   e Zd ZdZddd„Zedd„ ƒZejdd„ ƒZedd	„ ƒZejd
d	„ ƒZdd„ Z	dS )ÚBccSettingsz¬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.
    Nc                 C   s,   d| _ d| _|dk	r|| _|dk	r(|| _dS )zì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)Ú_enableÚ_emailÚenableÚemail)Úselfr   r   © r   úF/tmp/pip-unpacked-wheel-clku7wca/sendgrid/helpers/mail/bcc_settings.pyÚ__init__   s    zBccSettings.__init__c                 C   s   | j S )zGIndicates if this setting is enabled.

        :rtype: boolean
        ©r   ©r   r   r   r   r      s    zBccSettings.enablec                 C   s
   || _ dS )z‡Indicates if this setting is enabled.

        :type param: Indicates if this setting is enabled.
        :type value: boolean
        Nr
   ©r   Úvaluer   r   r   r   !   s    c                 C   s   | j S )zZThe email address that you would like to receive the BCC.

        :rtype: string
        ©r   r   r   r   r   r   *   s    zBccSettings.emailc                 C   s
   || _ dS )z¯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
        Nr   r   r   r   r   r   2   s    c                 C   s4   i }| j dk	r| j |d< | jdk	r0| j ¡ |d< |S )z¡
        Get a JSON-ready representation of this BCCSettings.

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