# 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 CreateExternalPrometheusRequest(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[CustomHeaderKVForCreateExternalPrometheusInput]',
        'description': 'str',
        'encrypted_bearer_token': 'str',
        'encrypted_password': 'str',
        'max_query_rate': 'int',
        'name': 'str',
        'project_name': 'str',
        'subnet_ids': 'list[str]',
        'tags': 'list[TagForCreateExternalPrometheusInput]',
        'type': 'str',
        'url': 'str',
        'username': 'str',
        'vpcid': 'str'
    }

    attribute_map = {
        'auth_type': 'AuthType',
        'custom_header_kvs': 'CustomHeaderKVs',
        'description': 'Description',
        'encrypted_bearer_token': 'EncryptedBearerToken',
        'encrypted_password': 'EncryptedPassword',
        'max_query_rate': 'MaxQueryRate',
        'name': 'Name',
        'project_name': 'ProjectName',
        'subnet_ids': 'SubnetIds',
        'tags': 'Tags',
        'type': 'Type',
        'url': 'URL',
        'username': 'Username',
        'vpcid': 'VPCId'
    }

    def __init__(self, auth_type=None, custom_header_kvs=None, description=None, encrypted_bearer_token=None, encrypted_password=None, max_query_rate=None, name=None, project_name=None, subnet_ids=None, tags=None, type=None, url=None, username=None, vpcid=None, _configuration=None):  # noqa: E501
        """CreateExternalPrometheusRequest - 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._max_query_rate = None
        self._name = None
        self._project_name = None
        self._subnet_ids = None
        self._tags = None
        self._type = None
        self._url = None
        self._username = None
        self._vpcid = 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
        if max_query_rate is not None:
            self.max_query_rate = max_query_rate
        self.name = name
        if project_name is not None:
            self.project_name = project_name
        if subnet_ids is not None:
            self.subnet_ids = subnet_ids
        if tags is not None:
            self.tags = tags
        if type is not None:
            self.type = type
        self.url = url
        if username is not None:
            self.username = username
        if vpcid is not None:
            self.vpcid = vpcid

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


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

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


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

        self._auth_type = auth_type

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


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

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


        :param custom_header_kvs: The custom_header_kvs of this CreateExternalPrometheusRequest.  # noqa: E501
        :type: list[CustomHeaderKVForCreateExternalPrometheusInput]
        """

        self._custom_header_kvs = custom_header_kvs

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


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

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


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

        self._description = description

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


        :return: The encrypted_bearer_token of this CreateExternalPrometheusRequest.  # 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 CreateExternalPrometheusRequest.


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

        self._encrypted_bearer_token = encrypted_bearer_token

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


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

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


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

        self._encrypted_password = encrypted_password

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


        :return: The max_query_rate of this CreateExternalPrometheusRequest.  # 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 CreateExternalPrometheusRequest.


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

        self._max_query_rate = max_query_rate

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


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

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


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

        self._name = name

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


        :return: The project_name of this CreateExternalPrometheusRequest.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this CreateExternalPrometheusRequest.


        :param project_name: The project_name of this CreateExternalPrometheusRequest.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

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


        :return: The subnet_ids of this CreateExternalPrometheusRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._subnet_ids

    @subnet_ids.setter
    def subnet_ids(self, subnet_ids):
        """Sets the subnet_ids of this CreateExternalPrometheusRequest.


        :param subnet_ids: The subnet_ids of this CreateExternalPrometheusRequest.  # noqa: E501
        :type: list[str]
        """

        self._subnet_ids = subnet_ids

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


        :return: The tags of this CreateExternalPrometheusRequest.  # noqa: E501
        :rtype: list[TagForCreateExternalPrometheusInput]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this CreateExternalPrometheusRequest.


        :param tags: The tags of this CreateExternalPrometheusRequest.  # noqa: E501
        :type: list[TagForCreateExternalPrometheusInput]
        """

        self._tags = tags

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


        :return: The type of this CreateExternalPrometheusRequest.  # noqa: E501
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this CreateExternalPrometheusRequest.


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

        self._type = type

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


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

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


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

        self._url = url

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


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

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


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

        self._username = username

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


        :return: The vpcid of this CreateExternalPrometheusRequest.  # noqa: E501
        :rtype: str
        """
        return self._vpcid

    @vpcid.setter
    def vpcid(self, vpcid):
        """Sets the vpcid of this CreateExternalPrometheusRequest.


        :param vpcid: The vpcid of this CreateExternalPrometheusRequest.  # noqa: E501
        :type: str
        """

        self._vpcid = vpcid

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

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