# coding: utf-8

"""
    vei_api

    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 ResourcesForUpdateDeploymentInput(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 = {
        'cpu_limit': 'float',
        'cpu_request': 'float',
        'memory_limit': 'int',
        'memory_limit_unit': 'str',
        'memory_request': 'int',
        'memory_request_unit': 'str'
    }

    attribute_map = {
        'cpu_limit': 'cpu_limit',
        'cpu_request': 'cpu_request',
        'memory_limit': 'memory_limit',
        'memory_limit_unit': 'memory_limit_unit',
        'memory_request': 'memory_request',
        'memory_request_unit': 'memory_request_unit'
    }

    def __init__(self, cpu_limit=None, cpu_request=None, memory_limit=None, memory_limit_unit=None, memory_request=None, memory_request_unit=None, _configuration=None):  # noqa: E501
        """ResourcesForUpdateDeploymentInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._cpu_limit = None
        self._cpu_request = None
        self._memory_limit = None
        self._memory_limit_unit = None
        self._memory_request = None
        self._memory_request_unit = None
        self.discriminator = None

        if cpu_limit is not None:
            self.cpu_limit = cpu_limit
        if cpu_request is not None:
            self.cpu_request = cpu_request
        if memory_limit is not None:
            self.memory_limit = memory_limit
        if memory_limit_unit is not None:
            self.memory_limit_unit = memory_limit_unit
        if memory_request is not None:
            self.memory_request = memory_request
        if memory_request_unit is not None:
            self.memory_request_unit = memory_request_unit

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


        :return: The cpu_limit of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :rtype: float
        """
        return self._cpu_limit

    @cpu_limit.setter
    def cpu_limit(self, cpu_limit):
        """Sets the cpu_limit of this ResourcesForUpdateDeploymentInput.


        :param cpu_limit: The cpu_limit of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :type: float
        """

        self._cpu_limit = cpu_limit

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


        :return: The cpu_request of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :rtype: float
        """
        return self._cpu_request

    @cpu_request.setter
    def cpu_request(self, cpu_request):
        """Sets the cpu_request of this ResourcesForUpdateDeploymentInput.


        :param cpu_request: The cpu_request of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :type: float
        """

        self._cpu_request = cpu_request

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


        :return: The memory_limit of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :rtype: int
        """
        return self._memory_limit

    @memory_limit.setter
    def memory_limit(self, memory_limit):
        """Sets the memory_limit of this ResourcesForUpdateDeploymentInput.


        :param memory_limit: The memory_limit of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :type: int
        """

        self._memory_limit = memory_limit

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


        :return: The memory_limit_unit of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :rtype: str
        """
        return self._memory_limit_unit

    @memory_limit_unit.setter
    def memory_limit_unit(self, memory_limit_unit):
        """Sets the memory_limit_unit of this ResourcesForUpdateDeploymentInput.


        :param memory_limit_unit: The memory_limit_unit of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :type: str
        """

        self._memory_limit_unit = memory_limit_unit

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


        :return: The memory_request of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :rtype: int
        """
        return self._memory_request

    @memory_request.setter
    def memory_request(self, memory_request):
        """Sets the memory_request of this ResourcesForUpdateDeploymentInput.


        :param memory_request: The memory_request of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :type: int
        """

        self._memory_request = memory_request

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


        :return: The memory_request_unit of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :rtype: str
        """
        return self._memory_request_unit

    @memory_request_unit.setter
    def memory_request_unit(self, memory_request_unit):
        """Sets the memory_request_unit of this ResourcesForUpdateDeploymentInput.


        :param memory_request_unit: The memory_request_unit of this ResourcesForUpdateDeploymentInput.  # noqa: E501
        :type: str
        """

        self._memory_request_unit = memory_request_unit

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

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