# coding: utf-8

"""
    insight

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


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

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'city': 'str',
        'city_code': 'str',
        'district': 'str',
        'district_code': 'str',
        'location': 'str',
        'name': 'str',
        'province': 'str',
        'region': 'str',
        'region_code': 'str',
        'town': 'str',
        'town_code': 'str'
    }

    attribute_map = {
        'city': 'City',
        'city_code': 'CityCode',
        'district': 'District',
        'district_code': 'DistrictCode',
        'location': 'Location',
        'name': 'Name',
        'province': 'Province',
        'region': 'Region',
        'region_code': 'RegionCode',
        'town': 'Town',
        'town_code': 'TownCode'
    }

    def __init__(self, city=None, city_code=None, district=None, district_code=None, location=None, name=None, province=None, region=None, region_code=None, town=None, town_code=None, _configuration=None):  # noqa: E501
        """LocationForPullPostOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._city = None
        self._city_code = None
        self._district = None
        self._district_code = None
        self._location = None
        self._name = None
        self._province = None
        self._region = None
        self._region_code = None
        self._town = None
        self._town_code = None
        self.discriminator = None

        if city is not None:
            self.city = city
        if city_code is not None:
            self.city_code = city_code
        if district is not None:
            self.district = district
        if district_code is not None:
            self.district_code = district_code
        if location is not None:
            self.location = location
        if name is not None:
            self.name = name
        if province is not None:
            self.province = province
        if region is not None:
            self.region = region
        if region_code is not None:
            self.region_code = region_code
        if town is not None:
            self.town = town
        if town_code is not None:
            self.town_code = town_code

    @property
    def city(self):
        """Gets the city of this LocationForPullPostOutput.  # noqa: E501


        :return: The city of this LocationForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._city

    @city.setter
    def city(self, city):
        """Sets the city of this LocationForPullPostOutput.


        :param city: The city of this LocationForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._city = city

    @property
    def city_code(self):
        """Gets the city_code of this LocationForPullPostOutput.  # noqa: E501


        :return: The city_code of this LocationForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._city_code

    @city_code.setter
    def city_code(self, city_code):
        """Sets the city_code of this LocationForPullPostOutput.


        :param city_code: The city_code of this LocationForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._city_code = city_code

    @property
    def district(self):
        """Gets the district of this LocationForPullPostOutput.  # noqa: E501


        :return: The district of this LocationForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._district

    @district.setter
    def district(self, district):
        """Sets the district of this LocationForPullPostOutput.


        :param district: The district of this LocationForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._district = district

    @property
    def district_code(self):
        """Gets the district_code of this LocationForPullPostOutput.  # noqa: E501


        :return: The district_code of this LocationForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._district_code

    @district_code.setter
    def district_code(self, district_code):
        """Sets the district_code of this LocationForPullPostOutput.


        :param district_code: The district_code of this LocationForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._district_code = district_code

    @property
    def location(self):
        """Gets the location of this LocationForPullPostOutput.  # noqa: E501


        :return: The location of this LocationForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._location

    @location.setter
    def location(self, location):
        """Sets the location of this LocationForPullPostOutput.


        :param location: The location of this LocationForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._location = location

    @property
    def name(self):
        """Gets the name of this LocationForPullPostOutput.  # noqa: E501


        :return: The name of this LocationForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._name

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


        :param name: The name of this LocationForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._name = name

    @property
    def province(self):
        """Gets the province of this LocationForPullPostOutput.  # noqa: E501


        :return: The province of this LocationForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._province

    @province.setter
    def province(self, province):
        """Sets the province of this LocationForPullPostOutput.


        :param province: The province of this LocationForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._province = province

    @property
    def region(self):
        """Gets the region of this LocationForPullPostOutput.  # noqa: E501


        :return: The region of this LocationForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._region

    @region.setter
    def region(self, region):
        """Sets the region of this LocationForPullPostOutput.


        :param region: The region of this LocationForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._region = region

    @property
    def region_code(self):
        """Gets the region_code of this LocationForPullPostOutput.  # noqa: E501


        :return: The region_code of this LocationForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._region_code

    @region_code.setter
    def region_code(self, region_code):
        """Sets the region_code of this LocationForPullPostOutput.


        :param region_code: The region_code of this LocationForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._region_code = region_code

    @property
    def town(self):
        """Gets the town of this LocationForPullPostOutput.  # noqa: E501


        :return: The town of this LocationForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._town

    @town.setter
    def town(self, town):
        """Sets the town of this LocationForPullPostOutput.


        :param town: The town of this LocationForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._town = town

    @property
    def town_code(self):
        """Gets the town_code of this LocationForPullPostOutput.  # noqa: E501


        :return: The town_code of this LocationForPullPostOutput.  # noqa: E501
        :rtype: str
        """
        return self._town_code

    @town_code.setter
    def town_code(self, town_code):
        """Sets the town_code of this LocationForPullPostOutput.


        :param town_code: The town_code of this LocationForPullPostOutput.  # noqa: E501
        :type: str
        """

        self._town_code = town_code

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(LocationForPullPostOutput, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, LocationForPullPostOutput):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, LocationForPullPostOutput):
            return True

        return self.to_dict() != other.to_dict()
