# coding: utf-8

"""
    Algorithmia Management APIs

    APIs for managing actions on the Algorithmia platform  # noqa: E501

    The version of the OpenAPI document: 1.0.1
    Contact: support@algorithmia.com
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from algorithmia_api_client.configuration import Configuration


class VersionResponse(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'name': 'str',
        'details': 'Details',
        'settings': 'Settings',
        'source': 'Source',
        'version_info': 'VersionInfo',
        'build': 'Build',
        'compilation': 'Compilation',
        'self_link': 'str',
        'resource_type': 'str'
    }

    attribute_map = {
        'name': 'name',
        'details': 'details',
        'settings': 'settings',
        'source': 'source',
        'version_info': 'version_info',
        'build': 'build',
        'compilation': 'compilation',
        'self_link': 'self_link',
        'resource_type': 'resource_type'
    }

    def __init__(self, name=None, details=None, settings=None, source=None, version_info=None, build=None, compilation=None, self_link=None, resource_type=None, local_vars_configuration=None):  # noqa: E501
        """VersionResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self._details = None
        self._settings = None
        self._source = None
        self._version_info = None
        self._build = None
        self._compilation = None
        self._self_link = None
        self._resource_type = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if details is not None:
            self.details = details
        if settings is not None:
            self.settings = settings
        if source is not None:
            self.source = source
        if version_info is not None:
            self.version_info = version_info
        if build is not None:
            self.build = build
        if compilation is not None:
            self.compilation = compilation
        if self_link is not None:
            self.self_link = self_link
        if resource_type is not None:
            self.resource_type = resource_type

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


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

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


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

        self._name = name

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


        :return: The details of this VersionResponse.  # noqa: E501
        :rtype: Details
        """
        return self._details

    @details.setter
    def details(self, details):
        """Sets the details of this VersionResponse.


        :param details: The details of this VersionResponse.  # noqa: E501
        :type: Details
        """

        self._details = details

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


        :return: The settings of this VersionResponse.  # noqa: E501
        :rtype: Settings
        """
        return self._settings

    @settings.setter
    def settings(self, settings):
        """Sets the settings of this VersionResponse.


        :param settings: The settings of this VersionResponse.  # noqa: E501
        :type: Settings
        """

        self._settings = settings

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


        :return: The source of this VersionResponse.  # noqa: E501
        :rtype: Source
        """
        return self._source

    @source.setter
    def source(self, source):
        """Sets the source of this VersionResponse.


        :param source: The source of this VersionResponse.  # noqa: E501
        :type: Source
        """

        self._source = source

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


        :return: The version_info of this VersionResponse.  # noqa: E501
        :rtype: VersionInfo
        """
        return self._version_info

    @version_info.setter
    def version_info(self, version_info):
        """Sets the version_info of this VersionResponse.


        :param version_info: The version_info of this VersionResponse.  # noqa: E501
        :type: VersionInfo
        """

        self._version_info = version_info

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


        :return: The build of this VersionResponse.  # noqa: E501
        :rtype: Build
        """
        return self._build

    @build.setter
    def build(self, build):
        """Sets the build of this VersionResponse.


        :param build: The build of this VersionResponse.  # noqa: E501
        :type: Build
        """

        self._build = build

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


        :return: The compilation of this VersionResponse.  # noqa: E501
        :rtype: Compilation
        """
        return self._compilation

    @compilation.setter
    def compilation(self, compilation):
        """Sets the compilation of this VersionResponse.


        :param compilation: The compilation of this VersionResponse.  # noqa: E501
        :type: Compilation
        """

        self._compilation = compilation

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


        :return: The self_link of this VersionResponse.  # noqa: E501
        :rtype: str
        """
        return self._self_link

    @self_link.setter
    def self_link(self, self_link):
        """Sets the self_link of this VersionResponse.


        :param self_link: The self_link of this VersionResponse.  # noqa: E501
        :type: str
        """

        self._self_link = self_link

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


        :return: The resource_type of this VersionResponse.  # noqa: E501
        :rtype: str
        """
        return self._resource_type

    @resource_type.setter
    def resource_type(self, resource_type):
        """Sets the resource_type of this VersionResponse.


        :param resource_type: The resource_type of this VersionResponse.  # noqa: E501
        :type: str
        """

        self._resource_type = resource_type

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

        for attr, _ in six.iteritems(self.openapi_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

        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, VersionResponse):
            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, VersionResponse):
            return True

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