# coding: utf-8

from __future__ import absolute_import
from .base_model_ import Model as BaseModel
from datetime import date, datetime
from typing import List, Dict
from ..util import deserialize_model


class DistributorData(BaseModel):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self, name=None, address=None, website=None, sku_url=None, email=None, phone=None, comment=None, allowed=None):
        """
        DistributorData - a model defined in Swagger

        :param name: The name of this DistributorData.
        :type name: str
        :param address: The address of this DistributorData.
        :type address: str
        :param website: The website of this DistributorData.
        :type website: str
        :param sku_url: The sku_url of this DistributorData.
        :type sku_url: str
        :param email: The email of this DistributorData.
        :type email: str
        :param phone: The phone of this DistributorData.
        :type phone: str
        :param comment: The comment of this DistributorData.
        :type comment: str
        :param allowed: The allowed of this DistributorData.
        :type allowed: bool
        """
        self.swagger_types = {
            'name': str,
            'address': str,
            'website': str,
            'sku_url': str,
            'email': str,
            'phone': str,
            'comment': str,
            'allowed': bool
        }

        self.attribute_map = {
            'name': 'name',
            'address': 'address',
            'website': 'website',
            'sku_url': 'sku_url',
            'email': 'email',
            'phone': 'phone',
            'comment': 'comment',
            'allowed': 'allowed'
        }

        self._name = name
        self._address = address
        self._website = website
        self._sku_url = sku_url
        self._email = email
        self._phone = phone
        self._comment = comment
        self._allowed = allowed

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

        :param dikt: A dict.
        :type: dict
        :return: The DistributorData of this DistributorData.
        :rtype: DistributorData
        """
        return deserialize_model(dikt, cls)

    @property
    def name(self):
        """
        Gets the name of this DistributorData.

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

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

        :param name: The name of this DistributorData.
        :type name: str
        """

        self._name = name

    @property
    def address(self):
        """
        Gets the address of this DistributorData.

        :return: The address of this DistributorData.
        :rtype: str
        """
        return self._address

    @address.setter
    def address(self, address):
        """
        Sets the address of this DistributorData.

        :param address: The address of this DistributorData.
        :type address: str
        """

        self._address = address

    @property
    def website(self):
        """
        Gets the website of this DistributorData.

        :return: The website of this DistributorData.
        :rtype: str
        """
        return self._website

    @website.setter
    def website(self, website):
        """
        Sets the website of this DistributorData.

        :param website: The website of this DistributorData.
        :type website: str
        """

        self._website = website

    @property
    def sku_url(self):
        """
        Gets the sku_url of this DistributorData.

        :return: The sku_url of this DistributorData.
        :rtype: str
        """
        return self._sku_url

    @sku_url.setter
    def sku_url(self, sku_url):
        """
        Sets the sku_url of this DistributorData.

        :param sku_url: The sku_url of this DistributorData.
        :type sku_url: str
        """

        self._sku_url = sku_url

    @property
    def email(self):
        """
        Gets the email of this DistributorData.

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

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

        :param email: The email of this DistributorData.
        :type email: str
        """

        self._email = email

    @property
    def phone(self):
        """
        Gets the phone of this DistributorData.

        :return: The phone of this DistributorData.
        :rtype: str
        """
        return self._phone

    @phone.setter
    def phone(self, phone):
        """
        Sets the phone of this DistributorData.

        :param phone: The phone of this DistributorData.
        :type phone: str
        """

        self._phone = phone

    @property
    def comment(self):
        """
        Gets the comment of this DistributorData.

        :return: The comment of this DistributorData.
        :rtype: str
        """
        return self._comment

    @comment.setter
    def comment(self, comment):
        """
        Sets the comment of this DistributorData.

        :param comment: The comment of this DistributorData.
        :type comment: str
        """

        self._comment = comment

    @property
    def allowed(self):
        """
        Gets the allowed of this DistributorData.

        :return: The allowed of this DistributorData.
        :rtype: bool
        """
        return self._allowed

    @allowed.setter
    def allowed(self, allowed):
        """
        Sets the allowed of this DistributorData.

        :param allowed: The allowed of this DistributorData.
        :type allowed: bool
        """

        self._allowed = allowed

