# 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 Athlete(Model): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self, name: str=None, surname: str=None, email: str=None, country: str=None, is_disabled: bool=False): # noqa: E501 """Athlete - a model defined in Swagger :param name: The name of this Athlete. # noqa: E501 :type name: str :param surname: The surname of this Athlete. # noqa: E501 :type surname: str :param email: The email of this Athlete. # noqa: E501 :type email: str :param country: The country of this Athlete. # noqa: E501 :type country: str :param is_disabled: The is_disabled of this Athlete. # noqa: E501 :type is_disabled: bool """ self.swagger_types = { 'name': str, 'surname': str, 'email': str, 'country': str, 'is_disabled': bool } self.attribute_map = { 'name': 'name', 'surname': 'surname', 'email': 'email', 'country': 'country', 'is_disabled': 'isDisabled' } self._name = name self._surname = surname self._email = email self._country = country self._is_disabled = is_disabled @classmethod def from_dict(cls, dikt) -> 'Athlete': """Returns the dict as a model :param dikt: A dict. :type: dict :return: The Athlete of this Athlete. # noqa: E501 :rtype: Athlete """ return util.deserialize_model(dikt, cls) @property def name(self) -> str: """Gets the name of this Athlete. :return: The name of this Athlete. :rtype: str """ return self._name @name.setter def name(self, name: str): """Sets the name of this Athlete. :param name: The name of this Athlete. :type name: str """ self._name = name @property def surname(self) -> str: """Gets the surname of this Athlete. :return: The surname of this Athlete. :rtype: str """ return self._surname @surname.setter def surname(self, surname: str): """Sets the surname of this Athlete. :param surname: The surname of this Athlete. :type surname: str """ self._surname = surname @property def email(self) -> str: """Gets the email of this Athlete. :return: The email of this Athlete. :rtype: str """ return self._email @email.setter def email(self, email: str): """Sets the email of this Athlete. :param email: The email of this Athlete. :type email: str """ self._email = email @property def country(self) -> str: """Gets the country of this Athlete. :return: The country of this Athlete. :rtype: str """ return self._country @country.setter def country(self, country: str): """Sets the country of this Athlete. :param country: The country of this Athlete. :type country: str """ self._country = country @property def is_disabled(self) -> bool: """Gets the is_disabled of this Athlete. :return: The is_disabled of this Athlete. :rtype: bool """ return self._is_disabled @is_disabled.setter def is_disabled(self, is_disabled: bool): """Sets the is_disabled of this Athlete. :param is_disabled: The is_disabled of this Athlete. :type is_disabled: bool """ self._is_disabled = is_disabled