# coding: utf-8

"""
    AristaFlowREST/LicenceManager

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

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

import pprint
import re  # noqa: F401

import six
from af_licence_manager.models.abort_service_exception import AbortServiceException  # noqa: F401,E501

class ServiceNotKnownException(AbortServiceException):
    """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 = {
        'cluster_name': 'str',
        'service_type': 'str',
        'service_instance': 'str'
    }
    if hasattr(AbortServiceException, "swagger_types"):
        swagger_types.update(AbortServiceException.swagger_types)

    attribute_map = {
        'cluster_name': 'clusterName',
        'service_type': 'serviceType',
        'service_instance': 'serviceInstance'
    }
    if hasattr(AbortServiceException, "attribute_map"):
        attribute_map.update(AbortServiceException.attribute_map)

    def __init__(self, cluster_name=None, service_type=None, service_instance=None, *args, **kwargs):  # noqa: E501
        """ServiceNotKnownException - a model defined in Swagger"""  # noqa: E501
        self._cluster_name = None
        self._service_type = None
        self._service_instance = None
        if not(hasattr(self, "discriminator")) or not(self.discriminator):
            self.discriminator = None
        if cluster_name is not None:
            self.cluster_name = cluster_name
        self.service_type = service_type
        if service_instance is not None:
            self.service_instance = service_instance
        AbortServiceException.__init__(self, *args, **kwargs)

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


        :return: The cluster_name of this ServiceNotKnownException.  # noqa: E501
        :rtype: str
        """
        return self._cluster_name

    @cluster_name.setter
    def cluster_name(self, cluster_name):
        """Sets the cluster_name of this ServiceNotKnownException.


        :param cluster_name: The cluster_name of this ServiceNotKnownException.  # noqa: E501
        :type: str
        """

        self._cluster_name = cluster_name

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


        :return: The service_type of this ServiceNotKnownException.  # noqa: E501
        :rtype: str
        """
        return self._service_type

    @service_type.setter
    def service_type(self, service_type):
        """Sets the service_type of this ServiceNotKnownException.


        :param service_type: The service_type of this ServiceNotKnownException.  # noqa: E501
        :type: str
        """
        if service_type is None:
            raise ValueError("Invalid value for `service_type`, must not be `None`")  # noqa: E501

        self._service_type = service_type

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


        :return: The service_instance of this ServiceNotKnownException.  # noqa: E501
        :rtype: str
        """
        return self._service_instance

    @service_instance.setter
    def service_instance(self, service_instance):
        """Sets the service_instance of this ServiceNotKnownException.


        :param service_instance: The service_instance of this ServiceNotKnownException.  # noqa: E501
        :type: str
        """

        self._service_instance = service_instance

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

        return self.__dict__ == other.__dict__

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