# 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.9.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class SpecificationResponse(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 = {
        'compatibility_details': 'list[Compatibility]',
        'pagination': 'Pagination'
    }

    attribute_map = {
        'compatibility_details': 'compatibilityDetails',
        'pagination': 'pagination'
    }

    def __init__(self, compatibility_details=None, pagination=None):  # noqa: E501
        """SpecificationResponse - a model defined in Swagger"""  # noqa: E501
        self._compatibility_details = None
        self._pagination = None
        self.discriminator = None
        if compatibility_details is not None:
            self.compatibility_details = compatibility_details
        if pagination is not None:
            self.pagination = pagination

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

        This container returns the list of all compatible application name-value pairs for the given filter criteria.  # noqa: E501

        :return: The compatibility_details of this SpecificationResponse.  # noqa: E501
        :rtype: list[Compatibility]
        """
        return self._compatibility_details

    @compatibility_details.setter
    def compatibility_details(self, compatibility_details):
        """Sets the compatibility_details of this SpecificationResponse.

        This container returns the list of all compatible application name-value pairs for the given filter criteria.  # noqa: E501

        :param compatibility_details: The compatibility_details of this SpecificationResponse.  # noqa: E501
        :type: list[Compatibility]
        """

        self._compatibility_details = compatibility_details

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


        :return: The pagination of this SpecificationResponse.  # noqa: E501
        :rtype: Pagination
        """
        return self._pagination

    @pagination.setter
    def pagination(self, pagination):
        """Sets the pagination of this SpecificationResponse.


        :param pagination: The pagination of this SpecificationResponse.  # noqa: E501
        :type: Pagination
        """

        self._pagination = pagination

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

        return self.__dict__ == other.__dict__

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