from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from chromestatus_openapi.models.base_model import Model
from chromestatus_openapi import util


class ComponentsUser(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    def __init__(self, id=None, name=None, email=None):  # noqa: E501
        """ComponentsUser - a model defined in OpenAPI

        :param id: The id of this ComponentsUser.  # noqa: E501
        :type id: int
        :param name: The name of this ComponentsUser.  # noqa: E501
        :type name: str
        :param email: The email of this ComponentsUser.  # noqa: E501
        :type email: str
        """
        self.openapi_types = {
            'id': int,
            'name': str,
            'email': str
        }

        self.attribute_map = {
            'id': 'id',
            'name': 'name',
            'email': 'email'
        }

        self._id = id
        self._name = name
        self._email = email

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

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

    @property
    def id(self) -> int:
        """Gets the id of this ComponentsUser.


        :return: The id of this ComponentsUser.
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id: int):
        """Sets the id of this ComponentsUser.


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

        self._id = id

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


        :return: The name of this ComponentsUser.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name: str):
        """Sets the name of this ComponentsUser.


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

        self._name = name

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


        :return: The email of this ComponentsUser.
        :rtype: str
        """
        return self._email

    @email.setter
    def email(self, email: str):
        """Sets the email of this ComponentsUser.


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

        self._email = email
