# coding: utf-8

"""
    vmp

    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 UpdateExternalPrometheusRequest(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 = {
        'auth_type': 'str',
        'custom_header_kvs': 'list[CustomHeaderKVForUpdateExternalPrometheusInput]',
        'description': 'str',
        'encrypted_bearer_token': 'str',
        'encrypted_password': 'str',
        'id': 'str',
        'max_query_rate': 'int',
        'name': 'str',
        'url': 'str',
        'username': 'str'
    }

    attribute_map = {
        'auth_type': 'AuthType',
        'custom_header_kvs': 'CustomHeaderKVs',
        'description': 'Description',
        'encrypted_bearer_token': 'EncryptedBearerToken',
        'encrypted_password': 'EncryptedPassword',
        'id': 'Id',
        'max_query_rate': 'MaxQueryRate',
        'name': 'Name',
        'url': 'URL',
        'username': 'Username'
    }

    def __init__(self, auth_type=None, custom_header_kvs=None, description=None, encrypted_bearer_token=None, encrypted_password=None, id=None, max_query_rate=None, name=None, url=None, username=None, _configuration=None):  # noqa: E501
        """UpdateExternalPrometheusRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._auth_type = None
        self._custom_header_kvs = None
        self._description = None
        self._encrypted_bearer_token = None
        self._encrypted_password = None
        self._id = None
        self._max_query_rate = None
        self._name = None
        self._url = None
        self._username = None
        self.discriminator = None

        if auth_type is not None:
            self.auth_type = auth_type
        if custom_header_kvs is not None:
            self.custom_header_kvs = custom_header_kvs
        if description is not None:
            self.description = description
        if encrypted_bearer_token is not None:
            self.encrypted_bearer_token = encrypted_bearer_token
        if encrypted_password is not None:
            self.encrypted_password = encrypted_password
        self.id = id
        if max_query_rate is not None:
            self.max_query_rate = max_query_rate
        if name is not None:
            self.name = name
        if url is not None:
            self.url = url
        if username is not None:
            self.username = username

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


        :return: The auth_type of this UpdateExternalPrometheusRequest.  # noqa: E501
        :rtype: str
        """
        return self._auth_type

    @auth_type.setter
    def auth_type(self, auth_type):
        """Sets the auth_type of this UpdateExternalPrometheusRequest.


        :param auth_type: The auth_type of this UpdateExternalPrometheusRequest.  # noqa: E501
        :type: str
        """

        self._auth_type = auth_type

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


        :return: The custom_header_kvs of this UpdateExternalPrometheusRequest.  # noqa: E501
        :rtype: list[CustomHeaderKVForUpdateExternalPrometheusInput]
        """
        return self._custom_header_kvs

    @custom_header_kvs.setter
    def custom_header_kvs(self, custom_header_kvs):
        """Sets the custom_header_kvs of this UpdateExternalPrometheusRequest.


        :param custom_header_kvs: The custom_header_kvs of this UpdateExternalPrometheusRequest.  # noqa: E501
        :type: list[CustomHeaderKVForUpdateExternalPrometheusInput]
        """

        self._custom_header_kvs = custom_header_kvs

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


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

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


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

        self._description = description

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


        :return: The encrypted_bearer_token of this UpdateExternalPrometheusRequest.  # noqa: E501
        :rtype: str
        """
        return self._encrypted_bearer_token

    @encrypted_bearer_token.setter
    def encrypted_bearer_token(self, encrypted_bearer_token):
        """Sets the encrypted_bearer_token of this UpdateExternalPrometheusRequest.


        :param encrypted_bearer_token: The encrypted_bearer_token of this UpdateExternalPrometheusRequest.  # noqa: E501
        :type: str
        """

        self._encrypted_bearer_token = encrypted_bearer_token

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


        :return: The encrypted_password of this UpdateExternalPrometheusRequest.  # noqa: E501
        :rtype: str
        """
        return self._encrypted_password

    @encrypted_password.setter
    def encrypted_password(self, encrypted_password):
        """Sets the encrypted_password of this UpdateExternalPrometheusRequest.


        :param encrypted_password: The encrypted_password of this UpdateExternalPrometheusRequest.  # noqa: E501
        :type: str
        """

        self._encrypted_password = encrypted_password

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


        :return: The id of this UpdateExternalPrometheusRequest.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this UpdateExternalPrometheusRequest.


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

        self._id = id

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


        :return: The max_query_rate of this UpdateExternalPrometheusRequest.  # noqa: E501
        :rtype: int
        """
        return self._max_query_rate

    @max_query_rate.setter
    def max_query_rate(self, max_query_rate):
        """Sets the max_query_rate of this UpdateExternalPrometheusRequest.


        :param max_query_rate: The max_query_rate of this UpdateExternalPrometheusRequest.  # noqa: E501
        :type: int
        """

        self._max_query_rate = max_query_rate

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


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

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


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

        self._name = name

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


        :return: The url of this UpdateExternalPrometheusRequest.  # noqa: E501
        :rtype: str
        """
        return self._url

    @url.setter
    def url(self, url):
        """Sets the url of this UpdateExternalPrometheusRequest.


        :param url: The url of this UpdateExternalPrometheusRequest.  # noqa: E501
        :type: str
        """

        self._url = url

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


        :return: The username of this UpdateExternalPrometheusRequest.  # noqa: E501
        :rtype: str
        """
        return self._username

    @username.setter
    def username(self, username):
        """Sets the username of this UpdateExternalPrometheusRequest.


        :param username: The username of this UpdateExternalPrometheusRequest.  # noqa: E501
        :type: str
        """

        self._username = username

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

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