# 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 UpdateAggregateWorkspaceRequest(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',
        'bearer_token': 'str',
        'cross_workspaces': 'list[CrossWorkspaceForUpdateAggregateWorkspaceInput]',
        'description': 'str',
        'external_prometheus': 'list[str]',
        'id': 'str',
        'ignore_error': 'bool',
        'max_query_rate': 'int',
        'name': 'str',
        'password': 'str',
        'username': 'str',
        'workspaces': 'list[str]'
    }

    attribute_map = {
        'auth_type': 'AuthType',
        'bearer_token': 'BearerToken',
        'cross_workspaces': 'CrossWorkspaces',
        'description': 'Description',
        'external_prometheus': 'ExternalPrometheus',
        'id': 'Id',
        'ignore_error': 'IgnoreError',
        'max_query_rate': 'MaxQueryRate',
        'name': 'Name',
        'password': 'Password',
        'username': 'Username',
        'workspaces': 'Workspaces'
    }

    def __init__(self, auth_type=None, bearer_token=None, cross_workspaces=None, description=None, external_prometheus=None, id=None, ignore_error=None, max_query_rate=None, name=None, password=None, username=None, workspaces=None, _configuration=None):  # noqa: E501
        """UpdateAggregateWorkspaceRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._auth_type = None
        self._bearer_token = None
        self._cross_workspaces = None
        self._description = None
        self._external_prometheus = None
        self._id = None
        self._ignore_error = None
        self._max_query_rate = None
        self._name = None
        self._password = None
        self._username = None
        self._workspaces = None
        self.discriminator = None

        if auth_type is not None:
            self.auth_type = auth_type
        if bearer_token is not None:
            self.bearer_token = bearer_token
        if cross_workspaces is not None:
            self.cross_workspaces = cross_workspaces
        if description is not None:
            self.description = description
        if external_prometheus is not None:
            self.external_prometheus = external_prometheus
        self.id = id
        if ignore_error is not None:
            self.ignore_error = ignore_error
        if max_query_rate is not None:
            self.max_query_rate = max_query_rate
        if name is not None:
            self.name = name
        if password is not None:
            self.password = password
        if username is not None:
            self.username = username
        if workspaces is not None:
            self.workspaces = workspaces

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


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

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


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

        self._auth_type = auth_type

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


        :return: The bearer_token of this UpdateAggregateWorkspaceRequest.  # noqa: E501
        :rtype: str
        """
        return self._bearer_token

    @bearer_token.setter
    def bearer_token(self, bearer_token):
        """Sets the bearer_token of this UpdateAggregateWorkspaceRequest.


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

        self._bearer_token = bearer_token

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


        :return: The cross_workspaces of this UpdateAggregateWorkspaceRequest.  # noqa: E501
        :rtype: list[CrossWorkspaceForUpdateAggregateWorkspaceInput]
        """
        return self._cross_workspaces

    @cross_workspaces.setter
    def cross_workspaces(self, cross_workspaces):
        """Sets the cross_workspaces of this UpdateAggregateWorkspaceRequest.


        :param cross_workspaces: The cross_workspaces of this UpdateAggregateWorkspaceRequest.  # noqa: E501
        :type: list[CrossWorkspaceForUpdateAggregateWorkspaceInput]
        """

        self._cross_workspaces = cross_workspaces

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


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

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


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

        self._description = description

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


        :return: The external_prometheus of this UpdateAggregateWorkspaceRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._external_prometheus

    @external_prometheus.setter
    def external_prometheus(self, external_prometheus):
        """Sets the external_prometheus of this UpdateAggregateWorkspaceRequest.


        :param external_prometheus: The external_prometheus of this UpdateAggregateWorkspaceRequest.  # noqa: E501
        :type: list[str]
        """

        self._external_prometheus = external_prometheus

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


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

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


        :param id: The id of this UpdateAggregateWorkspaceRequest.  # 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 ignore_error(self):
        """Gets the ignore_error of this UpdateAggregateWorkspaceRequest.  # noqa: E501


        :return: The ignore_error of this UpdateAggregateWorkspaceRequest.  # noqa: E501
        :rtype: bool
        """
        return self._ignore_error

    @ignore_error.setter
    def ignore_error(self, ignore_error):
        """Sets the ignore_error of this UpdateAggregateWorkspaceRequest.


        :param ignore_error: The ignore_error of this UpdateAggregateWorkspaceRequest.  # noqa: E501
        :type: bool
        """

        self._ignore_error = ignore_error

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


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


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

        self._max_query_rate = max_query_rate

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


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

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


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

        self._name = name

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


        :return: The password of this UpdateAggregateWorkspaceRequest.  # noqa: E501
        :rtype: str
        """
        return self._password

    @password.setter
    def password(self, password):
        """Sets the password of this UpdateAggregateWorkspaceRequest.


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

        self._password = password

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


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

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


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

        self._username = username

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


        :return: The workspaces of this UpdateAggregateWorkspaceRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._workspaces

    @workspaces.setter
    def workspaces(self, workspaces):
        """Sets the workspaces of this UpdateAggregateWorkspaceRequest.


        :param workspaces: The workspaces of this UpdateAggregateWorkspaceRequest.  # noqa: E501
        :type: list[str]
        """

        self._workspaces = workspaces

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

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