# 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 GetNetworkTrafficTopNRequest(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 = {
        'begin_time': 'int',
        'direction': 'str',
        'end_time': 'int',
        'filters': 'list[FilterForGetNetworkTrafficTopNInput]',
        'group_by': 'str',
        'region': 'str',
        'resource_type': 'str',
        'sort_by': 'str',
        'sort_order': 'str',
        'top_count': 'int'
    }

    attribute_map = {
        'begin_time': 'BeginTime',
        'direction': 'Direction',
        'end_time': 'EndTime',
        'filters': 'Filters',
        'group_by': 'GroupBy',
        'region': 'Region',
        'resource_type': 'ResourceType',
        'sort_by': 'SortBy',
        'sort_order': 'SortOrder',
        'top_count': 'TopCount'
    }

    def __init__(self, begin_time=None, direction=None, end_time=None, filters=None, group_by=None, region=None, resource_type=None, sort_by=None, sort_order=None, top_count=None, _configuration=None):  # noqa: E501
        """GetNetworkTrafficTopNRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._begin_time = None
        self._direction = None
        self._end_time = None
        self._filters = None
        self._group_by = None
        self._region = None
        self._resource_type = None
        self._sort_by = None
        self._sort_order = None
        self._top_count = None
        self.discriminator = None

        if begin_time is not None:
            self.begin_time = begin_time
        self.direction = direction
        if end_time is not None:
            self.end_time = end_time
        if filters is not None:
            self.filters = filters
        self.group_by = group_by
        self.region = region
        self.resource_type = resource_type
        self.sort_by = sort_by
        if sort_order is not None:
            self.sort_order = sort_order
        if top_count is not None:
            self.top_count = top_count

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


        :return: The begin_time of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :rtype: int
        """
        return self._begin_time

    @begin_time.setter
    def begin_time(self, begin_time):
        """Sets the begin_time of this GetNetworkTrafficTopNRequest.


        :param begin_time: The begin_time of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :type: int
        """

        self._begin_time = begin_time

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


        :return: The direction of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :rtype: str
        """
        return self._direction

    @direction.setter
    def direction(self, direction):
        """Sets the direction of this GetNetworkTrafficTopNRequest.


        :param direction: The direction of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and direction is None:
            raise ValueError("Invalid value for `direction`, must not be `None`")  # noqa: E501

        self._direction = direction

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


        :return: The end_time of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :rtype: int
        """
        return self._end_time

    @end_time.setter
    def end_time(self, end_time):
        """Sets the end_time of this GetNetworkTrafficTopNRequest.


        :param end_time: The end_time of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :type: int
        """

        self._end_time = end_time

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


        :return: The filters of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :rtype: list[FilterForGetNetworkTrafficTopNInput]
        """
        return self._filters

    @filters.setter
    def filters(self, filters):
        """Sets the filters of this GetNetworkTrafficTopNRequest.


        :param filters: The filters of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :type: list[FilterForGetNetworkTrafficTopNInput]
        """

        self._filters = filters

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


        :return: The group_by of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :rtype: str
        """
        return self._group_by

    @group_by.setter
    def group_by(self, group_by):
        """Sets the group_by of this GetNetworkTrafficTopNRequest.


        :param group_by: The group_by of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and group_by is None:
            raise ValueError("Invalid value for `group_by`, must not be `None`")  # noqa: E501

        self._group_by = group_by

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


        :return: The region of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :rtype: str
        """
        return self._region

    @region.setter
    def region(self, region):
        """Sets the region of this GetNetworkTrafficTopNRequest.


        :param region: The region of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and region is None:
            raise ValueError("Invalid value for `region`, must not be `None`")  # noqa: E501

        self._region = region

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


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

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


        :param resource_type: The resource_type of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and resource_type is None:
            raise ValueError("Invalid value for `resource_type`, must not be `None`")  # noqa: E501

        self._resource_type = resource_type

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


        :return: The sort_by of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :rtype: str
        """
        return self._sort_by

    @sort_by.setter
    def sort_by(self, sort_by):
        """Sets the sort_by of this GetNetworkTrafficTopNRequest.


        :param sort_by: The sort_by of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and sort_by is None:
            raise ValueError("Invalid value for `sort_by`, must not be `None`")  # noqa: E501

        self._sort_by = sort_by

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


        :return: The sort_order of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :rtype: str
        """
        return self._sort_order

    @sort_order.setter
    def sort_order(self, sort_order):
        """Sets the sort_order of this GetNetworkTrafficTopNRequest.


        :param sort_order: The sort_order of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :type: str
        """

        self._sort_order = sort_order

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


        :return: The top_count of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :rtype: int
        """
        return self._top_count

    @top_count.setter
    def top_count(self, top_count):
        """Sets the top_count of this GetNetworkTrafficTopNRequest.


        :param top_count: The top_count of this GetNetworkTrafficTopNRequest.  # noqa: E501
        :type: int
        """

        self._top_count = top_count

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

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