# 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 PoolForCreatePoolInput(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_type': 'str',
        'addresses': 'list[AddressForCreatePoolInput]',
        'capacity': 'int',
        'capacity_mode': 'str',
        'name': 'str',
        'remark': 'str'
    }

    attribute_map = {
        'addr_type': 'AddrType',
        'addresses': 'Addresses',
        'capacity': 'Capacity',
        'capacity_mode': 'CapacityMode',
        'name': 'Name',
        'remark': 'Remark'
    }

    def __init__(self, addr_type=None, addresses=None, capacity=None, capacity_mode=None, name=None, remark=None, _configuration=None):  # noqa: E501
        """PoolForCreatePoolInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._addr_type = None
        self._addresses = None
        self._capacity = None
        self._capacity_mode = None
        self._name = None
        self._remark = None
        self.discriminator = None

        if addr_type is not None:
            self.addr_type = addr_type
        if addresses is not None:
            self.addresses = addresses
        if capacity is not None:
            self.capacity = capacity
        if capacity_mode is not None:
            self.capacity_mode = capacity_mode
        if name is not None:
            self.name = name
        if remark is not None:
            self.remark = remark

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


        :return: The addr_type of this PoolForCreatePoolInput.  # noqa: E501
        :rtype: str
        """
        return self._addr_type

    @addr_type.setter
    def addr_type(self, addr_type):
        """Sets the addr_type of this PoolForCreatePoolInput.


        :param addr_type: The addr_type of this PoolForCreatePoolInput.  # noqa: E501
        :type: str
        """

        self._addr_type = addr_type

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


        :return: The addresses of this PoolForCreatePoolInput.  # noqa: E501
        :rtype: list[AddressForCreatePoolInput]
        """
        return self._addresses

    @addresses.setter
    def addresses(self, addresses):
        """Sets the addresses of this PoolForCreatePoolInput.


        :param addresses: The addresses of this PoolForCreatePoolInput.  # noqa: E501
        :type: list[AddressForCreatePoolInput]
        """

        self._addresses = addresses

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


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

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


        :param capacity: The capacity of this PoolForCreatePoolInput.  # noqa: E501
        :type: int
        """

        self._capacity = capacity

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


        :return: The capacity_mode of this PoolForCreatePoolInput.  # noqa: E501
        :rtype: str
        """
        return self._capacity_mode

    @capacity_mode.setter
    def capacity_mode(self, capacity_mode):
        """Sets the capacity_mode of this PoolForCreatePoolInput.


        :param capacity_mode: The capacity_mode of this PoolForCreatePoolInput.  # noqa: E501
        :type: str
        """
        allowed_values = ["pool", "address"]  # noqa: E501
        if (self._configuration.client_side_validation and
                capacity_mode not in allowed_values):
            raise ValueError(
                "Invalid value for `capacity_mode` ({0}), must be one of {1}"  # noqa: E501
                .format(capacity_mode, allowed_values)
            )

        self._capacity_mode = capacity_mode

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


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

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


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

        self._name = name

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


        :return: The remark of this PoolForCreatePoolInput.  # noqa: E501
        :rtype: str
        """
        return self._remark

    @remark.setter
    def remark(self, remark):
        """Sets the remark of this PoolForCreatePoolInput.


        :param remark: The remark of this PoolForCreatePoolInput.  # noqa: E501
        :type: str
        """

        self._remark = remark

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

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