# 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 UpdateWorkspaceRequest(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',
        'delete_protection_enabled': 'bool',
        'description': 'str',
        'id': 'str',
        'instance_type_id': 'str',
        'name': 'str',
        'password': 'str',
        'public_access_enabled': 'bool',
        'public_query_bandwidth': 'int',
        'public_write_bandwidth': 'int',
        'quota': 'QuotaForUpdateWorkspaceInput',
        'search_latency_offset': 'str',
        'username': 'str'
    }

    attribute_map = {
        'auth_type': 'AuthType',
        'bearer_token': 'BearerToken',
        'delete_protection_enabled': 'DeleteProtectionEnabled',
        'description': 'Description',
        'id': 'Id',
        'instance_type_id': 'InstanceTypeId',
        'name': 'Name',
        'password': 'Password',
        'public_access_enabled': 'PublicAccessEnabled',
        'public_query_bandwidth': 'PublicQueryBandwidth',
        'public_write_bandwidth': 'PublicWriteBandwidth',
        'quota': 'Quota',
        'search_latency_offset': 'SearchLatencyOffset',
        'username': 'Username'
    }

    def __init__(self, auth_type=None, bearer_token=None, delete_protection_enabled=None, description=None, id=None, instance_type_id=None, name=None, password=None, public_access_enabled=None, public_query_bandwidth=None, public_write_bandwidth=None, quota=None, search_latency_offset=None, username=None, _configuration=None):  # noqa: E501
        """UpdateWorkspaceRequest - 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._delete_protection_enabled = None
        self._description = None
        self._id = None
        self._instance_type_id = None
        self._name = None
        self._password = None
        self._public_access_enabled = None
        self._public_query_bandwidth = None
        self._public_write_bandwidth = None
        self._quota = None
        self._search_latency_offset = None
        self._username = 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 delete_protection_enabled is not None:
            self.delete_protection_enabled = delete_protection_enabled
        if description is not None:
            self.description = description
        self.id = id
        if instance_type_id is not None:
            self.instance_type_id = instance_type_id
        if name is not None:
            self.name = name
        if password is not None:
            self.password = password
        if public_access_enabled is not None:
            self.public_access_enabled = public_access_enabled
        if public_query_bandwidth is not None:
            self.public_query_bandwidth = public_query_bandwidth
        if public_write_bandwidth is not None:
            self.public_write_bandwidth = public_write_bandwidth
        if quota is not None:
            self.quota = quota
        if search_latency_offset is not None:
            self.search_latency_offset = search_latency_offset
        if username is not None:
            self.username = username

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


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

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


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

        self._auth_type = auth_type

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


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

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


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

        self._bearer_token = bearer_token

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


        :return: The delete_protection_enabled of this UpdateWorkspaceRequest.  # noqa: E501
        :rtype: bool
        """
        return self._delete_protection_enabled

    @delete_protection_enabled.setter
    def delete_protection_enabled(self, delete_protection_enabled):
        """Sets the delete_protection_enabled of this UpdateWorkspaceRequest.


        :param delete_protection_enabled: The delete_protection_enabled of this UpdateWorkspaceRequest.  # noqa: E501
        :type: bool
        """

        self._delete_protection_enabled = delete_protection_enabled

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


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

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


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

        self._description = description

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


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

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


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


        :return: The instance_type_id of this UpdateWorkspaceRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_type_id

    @instance_type_id.setter
    def instance_type_id(self, instance_type_id):
        """Sets the instance_type_id of this UpdateWorkspaceRequest.


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

        self._instance_type_id = instance_type_id

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


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

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


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

        self._name = name

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


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

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


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

        self._password = password

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


        :return: The public_access_enabled of this UpdateWorkspaceRequest.  # noqa: E501
        :rtype: bool
        """
        return self._public_access_enabled

    @public_access_enabled.setter
    def public_access_enabled(self, public_access_enabled):
        """Sets the public_access_enabled of this UpdateWorkspaceRequest.


        :param public_access_enabled: The public_access_enabled of this UpdateWorkspaceRequest.  # noqa: E501
        :type: bool
        """

        self._public_access_enabled = public_access_enabled

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


        :return: The public_query_bandwidth of this UpdateWorkspaceRequest.  # noqa: E501
        :rtype: int
        """
        return self._public_query_bandwidth

    @public_query_bandwidth.setter
    def public_query_bandwidth(self, public_query_bandwidth):
        """Sets the public_query_bandwidth of this UpdateWorkspaceRequest.


        :param public_query_bandwidth: The public_query_bandwidth of this UpdateWorkspaceRequest.  # noqa: E501
        :type: int
        """

        self._public_query_bandwidth = public_query_bandwidth

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


        :return: The public_write_bandwidth of this UpdateWorkspaceRequest.  # noqa: E501
        :rtype: int
        """
        return self._public_write_bandwidth

    @public_write_bandwidth.setter
    def public_write_bandwidth(self, public_write_bandwidth):
        """Sets the public_write_bandwidth of this UpdateWorkspaceRequest.


        :param public_write_bandwidth: The public_write_bandwidth of this UpdateWorkspaceRequest.  # noqa: E501
        :type: int
        """

        self._public_write_bandwidth = public_write_bandwidth

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


        :return: The quota of this UpdateWorkspaceRequest.  # noqa: E501
        :rtype: QuotaForUpdateWorkspaceInput
        """
        return self._quota

    @quota.setter
    def quota(self, quota):
        """Sets the quota of this UpdateWorkspaceRequest.


        :param quota: The quota of this UpdateWorkspaceRequest.  # noqa: E501
        :type: QuotaForUpdateWorkspaceInput
        """

        self._quota = quota

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


        :return: The search_latency_offset of this UpdateWorkspaceRequest.  # noqa: E501
        :rtype: str
        """
        return self._search_latency_offset

    @search_latency_offset.setter
    def search_latency_offset(self, search_latency_offset):
        """Sets the search_latency_offset of this UpdateWorkspaceRequest.


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

        self._search_latency_offset = search_latency_offset

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


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

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


        :param username: The username of this UpdateWorkspaceRequest.  # 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(UpdateWorkspaceRequest, 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, UpdateWorkspaceRequest):
            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, UpdateWorkspaceRequest):
            return True

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