o
    wÔ+f  ã                   @   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ur|| _dS 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   úP/var/www/html/venv/lib/python3.10/site-packages/sendgrid/helpers/mail/subject.pyÚ__init__   s   	
ÿzSubject.__init__c                 C   ó   | j S )z9The subject of an email.

        :rtype: string
        ©r   ©r   r   r   r	   r      ó   zSubject.subjectc                 C   ó
   || _ 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   r   )zmThe Personalization object or Personalization object index

        :rtype: Personalization, integer
        ©r   r   r   r   r	   r   %   r   zSubject.personalizationc                 C   r   )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   r   )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>   s    