
    xh		                     .    d dl mZ  G d de          ZdS )   )ValidateApiKeyc                       e Zd ZdZd Zed             Zej        d             Zed             Zej        d             Zd Z	dS )	ContentzvContent to be included in your email.

    You must specify at least one mime type in the Contents of your email.
    c                 p    d| _         d| _        t                      | _        ||| _        |	|| _        dS dS )zCreate a Content with the specified MIME type and content.

        :param mime_type: MIME type of this Content (e.g. "text/plain").
        :type mime_type: string
        :param content: The actual content.
        :type content: string
        N)
_mime_type_contentr   
_validator	mime_typecontent)selfr
   r   s      P/var/www/html/what/lib/python3.11/site-packages/sendgrid/helpers/mail/content.py__init__zContent.__init__   sE     (** &DN"DLLL     c                     | j         S )zThe MIME type of the content you are including in your email.
        For example, "text/plain" or "text/html" or "text/x-amp-html".

        :rtype: string
        r   r   s    r   r
   zContent.mime_type   s     r   c                     || _         dS )a[  The MIME type of the content you are including in your email.
        For example, "text/plain" or "text/html" or "text/x-amp-html".

        :param value: The MIME type of the content you are including in your
                      email.
        For example, "text/plain" or "text/html" or "text/x-amp-html".
        :type value: string
        Nr   r   values     r   r
   zContent.mime_type&   s      r   c                     | j         S )zQThe actual content (of the specified mime type).

        :rtype: string
        )r   r   s    r   r   zContent.content2   s     }r   c                 H    | j                             |           || _        dS )zThe actual content (of the specified mime type).

        :param value: The actual content (of the specified mime type).
        :type value: string
        N)r	   validate_message_dictr   r   s     r   r   zContent.content:   s%     	--e444r   c                 N    i }| j         
| j         |d<   | j        
| j        |d<   |S )z
        Get a JSON-ready representation of this Content.

        :returns: This Content, ready for use in a request body.
        :rtype: dict
        Ntyper   )r
   r   )r   r   s     r   getzContent.getD   s5     >%"nGFO<##|GGr   N)
__name__
__module____qualname____doc__r   propertyr
   setterr   r    r   r   r   r      s         
# # #$   X 	  	  	    X ^  ^    r   r   N)
validatorsr   objectr   r"   r   r   <module>r%      sU    & & & & & &L L L L Lf L L L L Lr   