# coding: utf-8

"""
    mongodb

    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 ParamForDescribeTemplateParameterOutput(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 = {
        'default_value': 'str',
        'description': 'str',
        'need_restart': 'bool',
        'param_name': 'str',
        'unit': 'str',
        'value_range': 'str'
    }

    attribute_map = {
        'default_value': 'DefaultValue',
        'description': 'Description',
        'need_restart': 'NeedRestart',
        'param_name': 'ParamName',
        'unit': 'Unit',
        'value_range': 'ValueRange'
    }

    def __init__(self, default_value=None, description=None, need_restart=None, param_name=None, unit=None, value_range=None, _configuration=None):  # noqa: E501
        """ParamForDescribeTemplateParameterOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._default_value = None
        self._description = None
        self._need_restart = None
        self._param_name = None
        self._unit = None
        self._value_range = None
        self.discriminator = None

        if default_value is not None:
            self.default_value = default_value
        if description is not None:
            self.description = description
        if need_restart is not None:
            self.need_restart = need_restart
        if param_name is not None:
            self.param_name = param_name
        if unit is not None:
            self.unit = unit
        if value_range is not None:
            self.value_range = value_range

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


        :return: The default_value of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :rtype: str
        """
        return self._default_value

    @default_value.setter
    def default_value(self, default_value):
        """Sets the default_value of this ParamForDescribeTemplateParameterOutput.


        :param default_value: The default_value of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :type: str
        """

        self._default_value = default_value

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


        :return: The description of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this ParamForDescribeTemplateParameterOutput.


        :param description: The description of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The need_restart of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :rtype: bool
        """
        return self._need_restart

    @need_restart.setter
    def need_restart(self, need_restart):
        """Sets the need_restart of this ParamForDescribeTemplateParameterOutput.


        :param need_restart: The need_restart of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :type: bool
        """

        self._need_restart = need_restart

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


        :return: The param_name of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :rtype: str
        """
        return self._param_name

    @param_name.setter
    def param_name(self, param_name):
        """Sets the param_name of this ParamForDescribeTemplateParameterOutput.


        :param param_name: The param_name of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :type: str
        """

        self._param_name = param_name

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


        :return: The unit of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :rtype: str
        """
        return self._unit

    @unit.setter
    def unit(self, unit):
        """Sets the unit of this ParamForDescribeTemplateParameterOutput.


        :param unit: The unit of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :type: str
        """

        self._unit = unit

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


        :return: The value_range of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :rtype: str
        """
        return self._value_range

    @value_range.setter
    def value_range(self, value_range):
        """Sets the value_range of this ParamForDescribeTemplateParameterOutput.


        :param value_range: The value_range of this ParamForDescribeTemplateParameterOutput.  # noqa: E501
        :type: str
        """

        self._value_range = value_range

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

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