# coding: utf-8

"""
    na

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

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


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class DataForGetNetworkTrafficTopNOutput(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 = {
        'byte_count': 'int',
        'city': 'str',
        'country': 'str',
        'destination_ip': 'str',
        'destination_port': 'int',
        'instance_id': 'str',
        'isp': 'str',
        'packet_count': 'int',
        'peer_region': 'str',
        'protocol': 'str',
        'source_ip': 'str',
        'source_port': 'int',
        'tr_attachment_id': 'str'
    }

    attribute_map = {
        'byte_count': 'ByteCount',
        'city': 'City',
        'country': 'Country',
        'destination_ip': 'DestinationIp',
        'destination_port': 'DestinationPort',
        'instance_id': 'InstanceId',
        'isp': 'Isp',
        'packet_count': 'PacketCount',
        'peer_region': 'PeerRegion',
        'protocol': 'Protocol',
        'source_ip': 'SourceIp',
        'source_port': 'SourcePort',
        'tr_attachment_id': 'TrAttachmentId'
    }

    def __init__(self, byte_count=None, city=None, country=None, destination_ip=None, destination_port=None, instance_id=None, isp=None, packet_count=None, peer_region=None, protocol=None, source_ip=None, source_port=None, tr_attachment_id=None, _configuration=None):  # noqa: E501
        """DataForGetNetworkTrafficTopNOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._byte_count = None
        self._city = None
        self._country = None
        self._destination_ip = None
        self._destination_port = None
        self._instance_id = None
        self._isp = None
        self._packet_count = None
        self._peer_region = None
        self._protocol = None
        self._source_ip = None
        self._source_port = None
        self._tr_attachment_id = None
        self.discriminator = None

        if byte_count is not None:
            self.byte_count = byte_count
        if city is not None:
            self.city = city
        if country is not None:
            self.country = country
        if destination_ip is not None:
            self.destination_ip = destination_ip
        if destination_port is not None:
            self.destination_port = destination_port
        if instance_id is not None:
            self.instance_id = instance_id
        if isp is not None:
            self.isp = isp
        if packet_count is not None:
            self.packet_count = packet_count
        if peer_region is not None:
            self.peer_region = peer_region
        if protocol is not None:
            self.protocol = protocol
        if source_ip is not None:
            self.source_ip = source_ip
        if source_port is not None:
            self.source_port = source_port
        if tr_attachment_id is not None:
            self.tr_attachment_id = tr_attachment_id

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


        :return: The byte_count of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: int
        """
        return self._byte_count

    @byte_count.setter
    def byte_count(self, byte_count):
        """Sets the byte_count of this DataForGetNetworkTrafficTopNOutput.


        :param byte_count: The byte_count of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: int
        """

        self._byte_count = byte_count

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


        :return: The city of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: str
        """
        return self._city

    @city.setter
    def city(self, city):
        """Sets the city of this DataForGetNetworkTrafficTopNOutput.


        :param city: The city of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: str
        """

        self._city = city

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


        :return: The country of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: str
        """
        return self._country

    @country.setter
    def country(self, country):
        """Sets the country of this DataForGetNetworkTrafficTopNOutput.


        :param country: The country of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: str
        """

        self._country = country

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


        :return: The destination_ip of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: str
        """
        return self._destination_ip

    @destination_ip.setter
    def destination_ip(self, destination_ip):
        """Sets the destination_ip of this DataForGetNetworkTrafficTopNOutput.


        :param destination_ip: The destination_ip of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: str
        """

        self._destination_ip = destination_ip

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


        :return: The destination_port of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: int
        """
        return self._destination_port

    @destination_port.setter
    def destination_port(self, destination_port):
        """Sets the destination_port of this DataForGetNetworkTrafficTopNOutput.


        :param destination_port: The destination_port of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: int
        """

        self._destination_port = destination_port

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


        :return: The instance_id of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: str
        """
        return self._instance_id

    @instance_id.setter
    def instance_id(self, instance_id):
        """Sets the instance_id of this DataForGetNetworkTrafficTopNOutput.


        :param instance_id: The instance_id of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: str
        """

        self._instance_id = instance_id

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


        :return: The isp of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: str
        """
        return self._isp

    @isp.setter
    def isp(self, isp):
        """Sets the isp of this DataForGetNetworkTrafficTopNOutput.


        :param isp: The isp of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: str
        """

        self._isp = isp

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


        :return: The packet_count of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: int
        """
        return self._packet_count

    @packet_count.setter
    def packet_count(self, packet_count):
        """Sets the packet_count of this DataForGetNetworkTrafficTopNOutput.


        :param packet_count: The packet_count of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: int
        """

        self._packet_count = packet_count

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


        :return: The peer_region of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: str
        """
        return self._peer_region

    @peer_region.setter
    def peer_region(self, peer_region):
        """Sets the peer_region of this DataForGetNetworkTrafficTopNOutput.


        :param peer_region: The peer_region of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: str
        """

        self._peer_region = peer_region

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


        :return: The protocol of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: str
        """
        return self._protocol

    @protocol.setter
    def protocol(self, protocol):
        """Sets the protocol of this DataForGetNetworkTrafficTopNOutput.


        :param protocol: The protocol of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: str
        """

        self._protocol = protocol

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


        :return: The source_ip of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: str
        """
        return self._source_ip

    @source_ip.setter
    def source_ip(self, source_ip):
        """Sets the source_ip of this DataForGetNetworkTrafficTopNOutput.


        :param source_ip: The source_ip of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: str
        """

        self._source_ip = source_ip

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


        :return: The source_port of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: int
        """
        return self._source_port

    @source_port.setter
    def source_port(self, source_port):
        """Sets the source_port of this DataForGetNetworkTrafficTopNOutput.


        :param source_port: The source_port of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: int
        """

        self._source_port = source_port

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


        :return: The tr_attachment_id of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :rtype: str
        """
        return self._tr_attachment_id

    @tr_attachment_id.setter
    def tr_attachment_id(self, tr_attachment_id):
        """Sets the tr_attachment_id of this DataForGetNetworkTrafficTopNOutput.


        :param tr_attachment_id: The tr_attachment_id of this DataForGetNetworkTrafficTopNOutput.  # noqa: E501
        :type: str
        """

        self._tr_attachment_id = tr_attachment_id

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

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