# coding: utf-8

"""
    gtm

    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 StatisticForUpdateLoadInput(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 = {
        'addr_value': 'str',
        'capacity': 'int',
        'current_load': 'int',
        'pool_name': 'str',
        'target_load': 'int'
    }

    attribute_map = {
        'addr_value': 'AddrValue',
        'capacity': 'Capacity',
        'current_load': 'CurrentLoad',
        'pool_name': 'PoolName',
        'target_load': 'TargetLoad'
    }

    def __init__(self, addr_value=None, capacity=None, current_load=None, pool_name=None, target_load=None, _configuration=None):  # noqa: E501
        """StatisticForUpdateLoadInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._addr_value = None
        self._capacity = None
        self._current_load = None
        self._pool_name = None
        self._target_load = None
        self.discriminator = None

        if addr_value is not None:
            self.addr_value = addr_value
        if capacity is not None:
            self.capacity = capacity
        if current_load is not None:
            self.current_load = current_load
        if pool_name is not None:
            self.pool_name = pool_name
        if target_load is not None:
            self.target_load = target_load

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


        :return: The addr_value of this StatisticForUpdateLoadInput.  # noqa: E501
        :rtype: str
        """
        return self._addr_value

    @addr_value.setter
    def addr_value(self, addr_value):
        """Sets the addr_value of this StatisticForUpdateLoadInput.


        :param addr_value: The addr_value of this StatisticForUpdateLoadInput.  # noqa: E501
        :type: str
        """

        self._addr_value = addr_value

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


        :return: The capacity of this StatisticForUpdateLoadInput.  # noqa: E501
        :rtype: int
        """
        return self._capacity

    @capacity.setter
    def capacity(self, capacity):
        """Sets the capacity of this StatisticForUpdateLoadInput.


        :param capacity: The capacity of this StatisticForUpdateLoadInput.  # noqa: E501
        :type: int
        """
        if (self._configuration.client_side_validation and
                capacity is not None and capacity < 0):  # noqa: E501
            raise ValueError("Invalid value for `capacity`, must be a value greater than or equal to `0`")  # noqa: E501

        self._capacity = capacity

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


        :return: The current_load of this StatisticForUpdateLoadInput.  # noqa: E501
        :rtype: int
        """
        return self._current_load

    @current_load.setter
    def current_load(self, current_load):
        """Sets the current_load of this StatisticForUpdateLoadInput.


        :param current_load: The current_load of this StatisticForUpdateLoadInput.  # noqa: E501
        :type: int
        """
        if (self._configuration.client_side_validation and
                current_load is not None and current_load < 0):  # noqa: E501
            raise ValueError("Invalid value for `current_load`, must be a value greater than or equal to `0`")  # noqa: E501

        self._current_load = current_load

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


        :return: The pool_name of this StatisticForUpdateLoadInput.  # noqa: E501
        :rtype: str
        """
        return self._pool_name

    @pool_name.setter
    def pool_name(self, pool_name):
        """Sets the pool_name of this StatisticForUpdateLoadInput.


        :param pool_name: The pool_name of this StatisticForUpdateLoadInput.  # noqa: E501
        :type: str
        """

        self._pool_name = pool_name

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


        :return: The target_load of this StatisticForUpdateLoadInput.  # noqa: E501
        :rtype: int
        """
        return self._target_load

    @target_load.setter
    def target_load(self, target_load):
        """Sets the target_load of this StatisticForUpdateLoadInput.


        :param target_load: The target_load of this StatisticForUpdateLoadInput.  # noqa: E501
        :type: int
        """
        if (self._configuration.client_side_validation and
                target_load is not None and target_load < 0):  # noqa: E501
            raise ValueError("Invalid value for `target_load`, must be a value greater than or equal to `0`")  # noqa: E501

        self._target_load = target_load

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

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