# coding: utf-8

"""
    Metadata API

    The Metadata API has operations that retrieve configuration details pertaining to the different eBay marketplaces. In addition to marketplace information, the API also has operations that get information that helps sellers list items on eBay.  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class ShippingExcludeLocation(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 = {
        'description': 'str',
        'location': 'str',
        'region': 'str'
    }

    attribute_map = {
        'description': 'description',
        'location': 'location',
        'region': 'region'
    }

    def __init__(self, description=None, location=None, region=None):  # noqa: E501
        """ShippingExcludeLocation - a model defined in Swagger"""  # noqa: E501
        self._description = None
        self._location = None
        self._region = None
        self.discriminator = None
        if description is not None:
            self.description = description
        if location is not None:
            self.location = location
        if region is not None:
            self.region = region

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

        The localized location name.  # noqa: E501

        :return: The description of this ShippingExcludeLocation.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this ShippingExcludeLocation.

        The localized location name.  # noqa: E501

        :param description: The description of this ShippingExcludeLocation.  # noqa: E501
        :type: str
        """

        self._description = description

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

         The location or region to be excluded. Countries are returned through <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\">ISO 3166 codes</a>. This field may also include continents and other larger geographical regions (for example, the Middle East, Southeast Asia), as well as domestic/special locations (like APO/FPO, PO Box, Alaska/Hawaii). The values returned in this field are used in fulfillment business policies (such as in <a href=\"/api-docs/sell/account/resources/fulfillment_policy/methods/createFulfillmentPolicy#request.shippingOptions.shippingServices.shipToLocations.regionExcluded.regionName\" target=\"_blank\">regionName</a>) or through the <a href=\"/Devzone/XML/docs/Reference/eBay/AddItem.html#Request.Item.ShippingDetails.ExcludeShipToLocation\" target=\"_blank\">ExcludeShipToLocation</a> field in an <b>AddItem</b> call.  # noqa: E501

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

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

         The location or region to be excluded. Countries are returned through <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\">ISO 3166 codes</a>. This field may also include continents and other larger geographical regions (for example, the Middle East, Southeast Asia), as well as domestic/special locations (like APO/FPO, PO Box, Alaska/Hawaii). The values returned in this field are used in fulfillment business policies (such as in <a href=\"/api-docs/sell/account/resources/fulfillment_policy/methods/createFulfillmentPolicy#request.shippingOptions.shippingServices.shipToLocations.regionExcluded.regionName\" target=\"_blank\">regionName</a>) or through the <a href=\"/Devzone/XML/docs/Reference/eBay/AddItem.html#Request.Item.ShippingDetails.ExcludeShipToLocation\" target=\"_blank\">ExcludeShipToLocation</a> field in an <b>AddItem</b> call.  # noqa: E501

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

        self._location = location

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

        The region of the excluded shipping area specified, such as:<br><ul><li><code>Africa</code> </li> <li><code>Americas</code> </li> <li><code>Asia</code> </li>  <li><code>Central America and Caribbean</code> </li> <li><code>Europe</code> </li> <li><code>Middle East</code> </li> <li><code>North America</code> </li> <li><code>Oceania</code> </li>  <li><code>South America</code> </li> <li><code>Southeast Asia</code> </li></ul>  # noqa: E501

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

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

        The region of the excluded shipping area specified, such as:<br><ul><li><code>Africa</code> </li> <li><code>Americas</code> </li> <li><code>Asia</code> </li>  <li><code>Central America and Caribbean</code> </li> <li><code>Europe</code> </li> <li><code>Middle East</code> </li> <li><code>North America</code> </li> <li><code>Oceania</code> </li>  <li><code>South America</code> </li> <li><code>Southeast Asia</code> </li></ul>  # noqa: E501

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

        self._region = region

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

        return self.__dict__ == other.__dict__

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