# coding: utf-8

"""
    Unofficial Degiro API

    Unofficial Degiro API  # noqa: E501

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

import pprint
import re  # noqa: F401

import six


class ClientResponseDataAddress(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 = {
        'street_address': 'str',
        'street_address_number': 'int',
        'zip': 'str',
        'city': 'str',
        'country': 'str'
    }

    attribute_map = {
        'street_address': 'streetAddress',
        'street_address_number': 'streetAddressNumber',
        'zip': 'zip',
        'city': 'city',
        'country': 'country'
    }

    def __init__(self, street_address=None, street_address_number=None, zip=None, city=None, country=None):  # noqa: E501
        """ClientResponseDataAddress - a model defined in Swagger"""  # noqa: E501
        self._street_address = None
        self._street_address_number = None
        self._zip = None
        self._city = None
        self._country = None
        self.discriminator = None
        if street_address is not None:
            self.street_address = street_address
        if street_address_number is not None:
            self.street_address_number = street_address_number
        if zip is not None:
            self.zip = zip
        if city is not None:
            self.city = city
        if country is not None:
            self.country = country

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


        :return: The street_address of this ClientResponseDataAddress.  # noqa: E501
        :rtype: str
        """
        return self._street_address

    @street_address.setter
    def street_address(self, street_address):
        """Sets the street_address of this ClientResponseDataAddress.


        :param street_address: The street_address of this ClientResponseDataAddress.  # noqa: E501
        :type: str
        """

        self._street_address = street_address

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


        :return: The street_address_number of this ClientResponseDataAddress.  # noqa: E501
        :rtype: int
        """
        return self._street_address_number

    @street_address_number.setter
    def street_address_number(self, street_address_number):
        """Sets the street_address_number of this ClientResponseDataAddress.


        :param street_address_number: The street_address_number of this ClientResponseDataAddress.  # noqa: E501
        :type: int
        """

        self._street_address_number = street_address_number

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


        :return: The zip of this ClientResponseDataAddress.  # noqa: E501
        :rtype: str
        """
        return self._zip

    @zip.setter
    def zip(self, zip):
        """Sets the zip of this ClientResponseDataAddress.


        :param zip: The zip of this ClientResponseDataAddress.  # noqa: E501
        :type: str
        """

        self._zip = zip

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


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

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


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

        self._city = city

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


        :return: The country of this ClientResponseDataAddress.  # noqa: E501
        :rtype: str
        """
        return self._country

    @country.setter
    def country(self, country):
        """Sets the country of this ClientResponseDataAddress.


        :param country: The country of this ClientResponseDataAddress.  # noqa: E501
        :type: str
        """

        self._country = country

    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(ClientResponseDataAddress, 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, ClientResponseDataAddress):
            return False

        return self.__dict__ == other.__dict__

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