# coding: utf-8

"""
    SevOne API Documentation

    Supported endpoints by the new RESTful API  # noqa: E501

    OpenAPI spec version: 2.1.18, Hash: db562e6
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class NetFlowInterfaceDto(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 = {
        'allowed': 'bool',
        'description': 'str',
        'id': 'int',
        'interface': 'int',
        'name': 'str',
        'name_resolved': 'str',
        'netflow_device_id': 'int',
        'origin_ip': 'str',
        'override_description': 'int',
        'override_name': 'int',
        'override_speed': 'int',
        'peer': 'int',
        'reason': 'str',
        'speed': 'int',
        'system_description': 'str',
        'system_name': 'str',
        'system_speed': 'int',
        'visible': 'int'
    }

    attribute_map = {
        'allowed': 'allowed',
        'description': 'description',
        'id': 'id',
        'interface': 'interface',
        'name': 'name',
        'name_resolved': 'nameResolved',
        'netflow_device_id': 'netflowDeviceId',
        'origin_ip': 'originIp',
        'override_description': 'overrideDescription',
        'override_name': 'overrideName',
        'override_speed': 'overrideSpeed',
        'peer': 'peer',
        'reason': 'reason',
        'speed': 'speed',
        'system_description': 'systemDescription',
        'system_name': 'systemName',
        'system_speed': 'systemSpeed',
        'visible': 'visible'
    }

    def __init__(self, allowed=None, description=None, id=None, interface=None, name=None, name_resolved=None, netflow_device_id=None, origin_ip=None, override_description=None, override_name=None, override_speed=None, peer=None, reason=None, speed=None, system_description=None, system_name=None, system_speed=None, visible=None):  # noqa: E501
        """NetFlowInterfaceDto - a model defined in Swagger"""  # noqa: E501

        self._allowed = None
        self._description = None
        self._id = None
        self._interface = None
        self._name = None
        self._name_resolved = None
        self._netflow_device_id = None
        self._origin_ip = None
        self._override_description = None
        self._override_name = None
        self._override_speed = None
        self._peer = None
        self._reason = None
        self._speed = None
        self._system_description = None
        self._system_name = None
        self._system_speed = None
        self._visible = None
        self.discriminator = None

        if allowed is not None:
            self.allowed = allowed
        if description is not None:
            self.description = description
        if id is not None:
            self.id = id
        if interface is not None:
            self.interface = interface
        if name is not None:
            self.name = name
        if name_resolved is not None:
            self.name_resolved = name_resolved
        if netflow_device_id is not None:
            self.netflow_device_id = netflow_device_id
        if origin_ip is not None:
            self.origin_ip = origin_ip
        if override_description is not None:
            self.override_description = override_description
        if override_name is not None:
            self.override_name = override_name
        if override_speed is not None:
            self.override_speed = override_speed
        if peer is not None:
            self.peer = peer
        if reason is not None:
            self.reason = reason
        if speed is not None:
            self.speed = speed
        if system_description is not None:
            self.system_description = system_description
        if system_name is not None:
            self.system_name = system_name
        if system_speed is not None:
            self.system_speed = system_speed
        if visible is not None:
            self.visible = visible

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


        :return: The allowed of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: bool
        """
        return self._allowed

    @allowed.setter
    def allowed(self, allowed):
        """Sets the allowed of this NetFlowInterfaceDto.


        :param allowed: The allowed of this NetFlowInterfaceDto.  # noqa: E501
        :type: bool
        """

        self._allowed = allowed

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


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

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


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

        self._description = description

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


        :return: The id of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this NetFlowInterfaceDto.


        :param id: The id of this NetFlowInterfaceDto.  # noqa: E501
        :type: int
        """

        self._id = id

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


        :return: The interface of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: int
        """
        return self._interface

    @interface.setter
    def interface(self, interface):
        """Sets the interface of this NetFlowInterfaceDto.


        :param interface: The interface of this NetFlowInterfaceDto.  # noqa: E501
        :type: int
        """

        self._interface = interface

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


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

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


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

        self._name = name

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


        :return: The name_resolved of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: str
        """
        return self._name_resolved

    @name_resolved.setter
    def name_resolved(self, name_resolved):
        """Sets the name_resolved of this NetFlowInterfaceDto.


        :param name_resolved: The name_resolved of this NetFlowInterfaceDto.  # noqa: E501
        :type: str
        """

        self._name_resolved = name_resolved

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


        :return: The netflow_device_id of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: int
        """
        return self._netflow_device_id

    @netflow_device_id.setter
    def netflow_device_id(self, netflow_device_id):
        """Sets the netflow_device_id of this NetFlowInterfaceDto.


        :param netflow_device_id: The netflow_device_id of this NetFlowInterfaceDto.  # noqa: E501
        :type: int
        """

        self._netflow_device_id = netflow_device_id

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


        :return: The origin_ip of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: str
        """
        return self._origin_ip

    @origin_ip.setter
    def origin_ip(self, origin_ip):
        """Sets the origin_ip of this NetFlowInterfaceDto.


        :param origin_ip: The origin_ip of this NetFlowInterfaceDto.  # noqa: E501
        :type: str
        """

        self._origin_ip = origin_ip

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


        :return: The override_description of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: int
        """
        return self._override_description

    @override_description.setter
    def override_description(self, override_description):
        """Sets the override_description of this NetFlowInterfaceDto.


        :param override_description: The override_description of this NetFlowInterfaceDto.  # noqa: E501
        :type: int
        """

        self._override_description = override_description

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


        :return: The override_name of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: int
        """
        return self._override_name

    @override_name.setter
    def override_name(self, override_name):
        """Sets the override_name of this NetFlowInterfaceDto.


        :param override_name: The override_name of this NetFlowInterfaceDto.  # noqa: E501
        :type: int
        """

        self._override_name = override_name

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


        :return: The override_speed of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: int
        """
        return self._override_speed

    @override_speed.setter
    def override_speed(self, override_speed):
        """Sets the override_speed of this NetFlowInterfaceDto.


        :param override_speed: The override_speed of this NetFlowInterfaceDto.  # noqa: E501
        :type: int
        """

        self._override_speed = override_speed

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


        :return: The peer of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: int
        """
        return self._peer

    @peer.setter
    def peer(self, peer):
        """Sets the peer of this NetFlowInterfaceDto.


        :param peer: The peer of this NetFlowInterfaceDto.  # noqa: E501
        :type: int
        """

        self._peer = peer

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


        :return: The reason of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: str
        """
        return self._reason

    @reason.setter
    def reason(self, reason):
        """Sets the reason of this NetFlowInterfaceDto.


        :param reason: The reason of this NetFlowInterfaceDto.  # noqa: E501
        :type: str
        """
        allowed_values = ["normal", "exceeded_capacity"]  # noqa: E501
        if reason not in allowed_values:
            raise ValueError(
                "Invalid value for `reason` ({0}), must be one of {1}"  # noqa: E501
                .format(reason, allowed_values)
            )

        self._reason = reason

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


        :return: The speed of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: int
        """
        return self._speed

    @speed.setter
    def speed(self, speed):
        """Sets the speed of this NetFlowInterfaceDto.


        :param speed: The speed of this NetFlowInterfaceDto.  # noqa: E501
        :type: int
        """

        self._speed = speed

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


        :return: The system_description of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: str
        """
        return self._system_description

    @system_description.setter
    def system_description(self, system_description):
        """Sets the system_description of this NetFlowInterfaceDto.


        :param system_description: The system_description of this NetFlowInterfaceDto.  # noqa: E501
        :type: str
        """

        self._system_description = system_description

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


        :return: The system_name of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: str
        """
        return self._system_name

    @system_name.setter
    def system_name(self, system_name):
        """Sets the system_name of this NetFlowInterfaceDto.


        :param system_name: The system_name of this NetFlowInterfaceDto.  # noqa: E501
        :type: str
        """

        self._system_name = system_name

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


        :return: The system_speed of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: int
        """
        return self._system_speed

    @system_speed.setter
    def system_speed(self, system_speed):
        """Sets the system_speed of this NetFlowInterfaceDto.


        :param system_speed: The system_speed of this NetFlowInterfaceDto.  # noqa: E501
        :type: int
        """

        self._system_speed = system_speed

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


        :return: The visible of this NetFlowInterfaceDto.  # noqa: E501
        :rtype: int
        """
        return self._visible

    @visible.setter
    def visible(self, visible):
        """Sets the visible of this NetFlowInterfaceDto.


        :param visible: The visible of this NetFlowInterfaceDto.  # noqa: E501
        :type: int
        """

        self._visible = visible

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

        return self.__dict__ == other.__dict__

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