# 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 InlineResponse200(Model):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    def __init__(self, role: str=None, url: str=None, code: int=None, msg: str=None):  # noqa: E501
        """InlineResponse200 - a model defined in Swagger

        :param role: The role of this InlineResponse200.  # noqa: E501
        :type role: str
        :param url: The url of this InlineResponse200.  # noqa: E501
        :type url: str
        :param code: The code of this InlineResponse200.  # noqa: E501
        :type code: int
        :param msg: The msg of this InlineResponse200.  # noqa: E501
        :type msg: str
        """
        self.swagger_types = {
            'role': str,
            'url': str,
            'code': int,
            'msg': str
        }

        self.attribute_map = {
            'role': 'role',
            'url': 'url',
            'code': 'code',
            'msg': 'msg'
        }

        self._role = role
        self._url = url
        self._code = code
        self._msg = msg

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

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

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

        system return code  # noqa: E501

        :return: The role of this InlineResponse200.
        :rtype: str
        """
        return self._role

    @role.setter
    def role(self, role: str):
        """Sets the role of this InlineResponse200.

        system return code  # noqa: E501

        :param role: The role of this InlineResponse200.
        :type role: str
        """

        self._role = role

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

        system return code  # noqa: E501

        :return: The url of this InlineResponse200.
        :rtype: str
        """
        return self._url

    @url.setter
    def url(self, url: str):
        """Sets the url of this InlineResponse200.

        system return code  # noqa: E501

        :param url: The url of this InlineResponse200.
        :type url: str
        """

        self._url = url

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

        system return code  # noqa: E501

        :return: The code of this InlineResponse200.
        :rtype: int
        """
        return self._code

    @code.setter
    def code(self, code: int):
        """Sets the code of this InlineResponse200.

        system return code  # noqa: E501

        :param code: The code of this InlineResponse200.
        :type code: int
        """

        self._code = code

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

        system return news  # noqa: E501

        :return: The msg of this InlineResponse200.
        :rtype: str
        """
        return self._msg

    @msg.setter
    def msg(self, msg: str):
        """Sets the msg of this InlineResponse200.

        system return news  # noqa: E501

        :param msg: The msg of this InlineResponse200.
        :type msg: str
        """

        self._msg = msg
