U
    ä«Fc  ã                   @   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edd	„ ƒZejd
d	„ ƒZdd„ Z	dd„ Z
dS )ÚSubjectzA subject for an email message.Nc                 C   s$   d| _ d| _|| _|dk	r || _dS )a  Create a Subject.

        :param subject: The subject for an email
        :type subject: string
        :param name: p is the Personalization object or Personalization object
                     index
        :type name: Personalization, integer, optional
        N)Ú_subjectÚ_personalizationÚsubjectÚpersonalization)Úselfr   Úp© r   úA/tmp/pip-unpacked-wheel-7j3043uk/sendgrid/helpers/mail/subject.pyÚ__init__   s
    	zSubject.__init__c                 C   s   | j S )z9The subject of an email.

        :rtype: string
        ©r   ©r   r   r   r	   r      s    zSubject.subjectc                 C   s
   || _ dS )zmThe subject of an email.

        :param value: The subject of an email.
        :type value: string
        Nr   ©r   Úvaluer   r   r	   r      s    c                 C   s   | j S )zmThe Personalization object or Personalization object index

        :rtype: Personalization, integer
        ©r   r   r   r   r	   r   %   s    zSubject.personalizationc                 C   s
   || _ dS )zÙThe Personalization object or Personalization object index

        :param value: The Personalization object or Personalization object
                      index
        :type value: Personalization, integer
        Nr   r   r   r   r	   r   -   s    c                 C   s   t |  ¡ ƒS )zPGet a JSON representation of this Mail request.

        :rtype: string
        )ÚstrÚgetr   r   r   r	   Ú__str__7   s    zSubject.__str__c                 C   s   | j S )z›
        Get a JSON-ready representation of this Subject.

        :returns: This Subject, ready for use in a request body.
        :rtype: string
        )r   r   r   r   r	   r   >   s    zSubject.get)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   Úpropertyr   Úsetterr   r   r   r   r   r   r	   r      s   




	r   N)Úobjectr   r   r   r   r	   Ú<module>   ó    