# coding: utf-8

"""
    IncQuery Server Web API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: placeHolderApiVersion
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from iqs_client.configuration import Configuration


class ServerInfoResponse(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 = {
        'server_label': 'str',
        'server_id': 'str',
        'indexer_mode': 'str',
        'persistent_index_mode': 'str',
        'product_version': 'str',
        'api_version': 'str'
    }

    attribute_map = {
        'server_label': 'serverLabel',
        'server_id': 'serverId',
        'indexer_mode': 'indexerMode',
        'persistent_index_mode': 'persistentIndexMode',
        'product_version': 'productVersion',
        'api_version': 'apiVersion'
    }

    def __init__(self, server_label=None, server_id=None, indexer_mode=None, persistent_index_mode=None, product_version=None, api_version=None, local_vars_configuration=None):  # noqa: E501
        """ServerInfoResponse - 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._server_label = None
        self._server_id = None
        self._indexer_mode = None
        self._persistent_index_mode = None
        self._product_version = None
        self._api_version = None
        self.discriminator = None

        if server_label is not None:
            self.server_label = server_label
        if server_id is not None:
            self.server_id = server_id
        if indexer_mode is not None:
            self.indexer_mode = indexer_mode
        if persistent_index_mode is not None:
            self.persistent_index_mode = persistent_index_mode
        if product_version is not None:
            self.product_version = product_version
        if api_version is not None:
            self.api_version = api_version

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


        :return: The server_label of this ServerInfoResponse.  # noqa: E501
        :rtype: str
        """
        return self._server_label

    @server_label.setter
    def server_label(self, server_label):
        """Sets the server_label of this ServerInfoResponse.


        :param server_label: The server_label of this ServerInfoResponse.  # noqa: E501
        :type: str
        """

        self._server_label = server_label

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


        :return: The server_id of this ServerInfoResponse.  # noqa: E501
        :rtype: str
        """
        return self._server_id

    @server_id.setter
    def server_id(self, server_id):
        """Sets the server_id of this ServerInfoResponse.


        :param server_id: The server_id of this ServerInfoResponse.  # noqa: E501
        :type: str
        """

        self._server_id = server_id

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


        :return: The indexer_mode of this ServerInfoResponse.  # noqa: E501
        :rtype: str
        """
        return self._indexer_mode

    @indexer_mode.setter
    def indexer_mode(self, indexer_mode):
        """Sets the indexer_mode of this ServerInfoResponse.


        :param indexer_mode: The indexer_mode of this ServerInfoResponse.  # noqa: E501
        :type: str
        """
        allowed_values = ["EMBEDDED", "DISTRIBUTED"]  # noqa: E501
        if self.local_vars_configuration.client_side_validation and indexer_mode not in allowed_values:  # noqa: E501
            raise ValueError(
                "Invalid value for `indexer_mode` ({0}), must be one of {1}"  # noqa: E501
                .format(indexer_mode, allowed_values)
            )

        self._indexer_mode = indexer_mode

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


        :return: The persistent_index_mode of this ServerInfoResponse.  # noqa: E501
        :rtype: str
        """
        return self._persistent_index_mode

    @persistent_index_mode.setter
    def persistent_index_mode(self, persistent_index_mode):
        """Sets the persistent_index_mode of this ServerInfoResponse.


        :param persistent_index_mode: The persistent_index_mode of this ServerInfoResponse.  # noqa: E501
        :type: str
        """
        allowed_values = ["EMBEDDED", "DISTRIBUTED"]  # noqa: E501
        if self.local_vars_configuration.client_side_validation and persistent_index_mode not in allowed_values:  # noqa: E501
            raise ValueError(
                "Invalid value for `persistent_index_mode` ({0}), must be one of {1}"  # noqa: E501
                .format(persistent_index_mode, allowed_values)
            )

        self._persistent_index_mode = persistent_index_mode

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


        :return: The product_version of this ServerInfoResponse.  # noqa: E501
        :rtype: str
        """
        return self._product_version

    @product_version.setter
    def product_version(self, product_version):
        """Sets the product_version of this ServerInfoResponse.


        :param product_version: The product_version of this ServerInfoResponse.  # noqa: E501
        :type: str
        """

        self._product_version = product_version

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


        :return: The api_version of this ServerInfoResponse.  # noqa: E501
        :rtype: str
        """
        return self._api_version

    @api_version.setter
    def api_version(self, api_version):
        """Sets the api_version of this ServerInfoResponse.


        :param api_version: The api_version of this ServerInfoResponse.  # noqa: E501
        :type: str
        """

        self._api_version = api_version

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

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