<gh_stars>0
# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from swagger_server.models.base_model_ import Model
from swagger_server import util


class SendMail(Model):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """
    def __init__(self, to: str=None, _from: str=None, subject: str=None, body: str=None):  # noqa: E501
        """SendMail - a model defined in Swagger

        :param to: The to of this SendMail.  # noqa: E501
        :type to: str
        :param _from: The _from of this SendMail.  # noqa: E501
        :type _from: str
        :param subject: The subject of this SendMail.  # noqa: E501
        :type subject: str
        :param body: The body of this SendMail.  # noqa: E501
        :type body: str
        """
        self.swagger_types = {
            'to': str,
            '_from': str,
            'subject': str,
            'body': str
        }

        self.attribute_map = {
            'to': 'to',
            '_from': 'from',
            'subject': 'subject',
            'body': 'body'
        }
        self._to = to
        self.__from = _from
        self._subject = subject
        self._body = body

    @classmethod
    def from_dict(cls, dikt) -> 'SendMail':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The SendMail of this SendMail.  # noqa: E501
        :rtype: SendMail
        """
        return util.deserialize_model(dikt, cls)

    @property
    def to(self) -> str:
        """Gets the to of this SendMail.

        The Contact whom is the primary recipient of this email.  # noqa: E501

        :return: The to of this SendMail.
        :rtype: str
        """
        return self._to

    @to.setter
    def to(self, to: str):
        """Sets the to of this SendMail.

        The Contact whom is the primary recipient of this email.  # noqa: E501

        :param to: The to of this SendMail.
        :type to: str
        """
        if to is None:
            raise ValueError("Invalid value for `to`, must not be `None`")  # noqa: E501

        self._to = to

    @property
    def _from(self) -> str:
        """Gets the _from of this SendMail.

        The contact whom is the this email is from.  # noqa: E501

        :return: The _from of this SendMail.
        :rtype: str
        """
        return self.__from

    @_from.setter
    def _from(self, _from: str):
        """Sets the _from of this SendMail.

        The contact whom is the this email is from.  # noqa: E501

        :param _from: The _from of this SendMail.
        :type _from: str
        """
        if _from is None:
            raise ValueError("Invalid value for `_from`, must not be `None`")  # noqa: E501

        self.__from = _from

    @property
    def subject(self) -> str:
        """Gets the subject of this SendMail.

        The subject or title of the email  # noqa: E501

        :return: The subject of this SendMail.
        :rtype: str
        """
        return self._subject

    @subject.setter
    def subject(self, subject: str):
        """Sets the subject of this SendMail.

        The subject or title of the email  # noqa: E501

        :param subject: The subject of this SendMail.
        :type subject: str
        """
        if subject is None:
            raise ValueError("Invalid value for `subject`, must not be `None`")  # noqa: E501

        self._subject = subject

    @property
    def body(self) -> str:
        """Gets the body of this SendMail.

        The main email contents.  # noqa: E501

        :return: The body of this SendMail.
        :rtype: str
        """
        return self._body

    @body.setter
    def body(self, body: str):
        """Sets the body of this SendMail.

        The main email contents.  # noqa: E501

        :param body: The body of this SendMail.
        :type body: str
        """
        if body is None:
            raise ValueError("Invalid value for `body`, must not be `None`")  # noqa: E501

        self._body = body
