# coding: utf-8

"""
    graph

    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 AlterTableRequest(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 = {
        'enable_read': 'bool',
        'enable_rw_seperate_schedule': 'bool',
        'enable_write': 'bool',
        'io_qos_options': 'IOQosOptionsForAlterTableInput',
        'idc_replica_nums': 'list[IdcReplicaNumForAlterTableInput]',
        'idc_ro_nums': 'list[IdcRoNumForAlterTableInput]',
        'instance_id': 'str',
        'rw_schedulable_idcs': 'list[str]',
        'state': 'str',
        'table_name': 'str',
        'table_quota': 'TableQuotaForAlterTableInput'
    }

    attribute_map = {
        'enable_read': 'EnableRead',
        'enable_rw_seperate_schedule': 'EnableRwSeperateSchedule',
        'enable_write': 'EnableWrite',
        'io_qos_options': 'IOQosOptions',
        'idc_replica_nums': 'IdcReplicaNums',
        'idc_ro_nums': 'IdcRoNums',
        'instance_id': 'InstanceId',
        'rw_schedulable_idcs': 'RwSchedulableIdcs',
        'state': 'State',
        'table_name': 'TableName',
        'table_quota': 'TableQuota'
    }

    def __init__(self, enable_read=None, enable_rw_seperate_schedule=None, enable_write=None, io_qos_options=None, idc_replica_nums=None, idc_ro_nums=None, instance_id=None, rw_schedulable_idcs=None, state=None, table_name=None, table_quota=None, _configuration=None):  # noqa: E501
        """AlterTableRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._enable_read = None
        self._enable_rw_seperate_schedule = None
        self._enable_write = None
        self._io_qos_options = None
        self._idc_replica_nums = None
        self._idc_ro_nums = None
        self._instance_id = None
        self._rw_schedulable_idcs = None
        self._state = None
        self._table_name = None
        self._table_quota = None
        self.discriminator = None

        if enable_read is not None:
            self.enable_read = enable_read
        if enable_rw_seperate_schedule is not None:
            self.enable_rw_seperate_schedule = enable_rw_seperate_schedule
        if enable_write is not None:
            self.enable_write = enable_write
        if io_qos_options is not None:
            self.io_qos_options = io_qos_options
        if idc_replica_nums is not None:
            self.idc_replica_nums = idc_replica_nums
        if idc_ro_nums is not None:
            self.idc_ro_nums = idc_ro_nums
        self.instance_id = instance_id
        if rw_schedulable_idcs is not None:
            self.rw_schedulable_idcs = rw_schedulable_idcs
        if state is not None:
            self.state = state
        self.table_name = table_name
        if table_quota is not None:
            self.table_quota = table_quota

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


        :return: The enable_read of this AlterTableRequest.  # noqa: E501
        :rtype: bool
        """
        return self._enable_read

    @enable_read.setter
    def enable_read(self, enable_read):
        """Sets the enable_read of this AlterTableRequest.


        :param enable_read: The enable_read of this AlterTableRequest.  # noqa: E501
        :type: bool
        """

        self._enable_read = enable_read

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


        :return: The enable_rw_seperate_schedule of this AlterTableRequest.  # noqa: E501
        :rtype: bool
        """
        return self._enable_rw_seperate_schedule

    @enable_rw_seperate_schedule.setter
    def enable_rw_seperate_schedule(self, enable_rw_seperate_schedule):
        """Sets the enable_rw_seperate_schedule of this AlterTableRequest.


        :param enable_rw_seperate_schedule: The enable_rw_seperate_schedule of this AlterTableRequest.  # noqa: E501
        :type: bool
        """

        self._enable_rw_seperate_schedule = enable_rw_seperate_schedule

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


        :return: The enable_write of this AlterTableRequest.  # noqa: E501
        :rtype: bool
        """
        return self._enable_write

    @enable_write.setter
    def enable_write(self, enable_write):
        """Sets the enable_write of this AlterTableRequest.


        :param enable_write: The enable_write of this AlterTableRequest.  # noqa: E501
        :type: bool
        """

        self._enable_write = enable_write

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


        :return: The io_qos_options of this AlterTableRequest.  # noqa: E501
        :rtype: IOQosOptionsForAlterTableInput
        """
        return self._io_qos_options

    @io_qos_options.setter
    def io_qos_options(self, io_qos_options):
        """Sets the io_qos_options of this AlterTableRequest.


        :param io_qos_options: The io_qos_options of this AlterTableRequest.  # noqa: E501
        :type: IOQosOptionsForAlterTableInput
        """

        self._io_qos_options = io_qos_options

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


        :return: The idc_replica_nums of this AlterTableRequest.  # noqa: E501
        :rtype: list[IdcReplicaNumForAlterTableInput]
        """
        return self._idc_replica_nums

    @idc_replica_nums.setter
    def idc_replica_nums(self, idc_replica_nums):
        """Sets the idc_replica_nums of this AlterTableRequest.


        :param idc_replica_nums: The idc_replica_nums of this AlterTableRequest.  # noqa: E501
        :type: list[IdcReplicaNumForAlterTableInput]
        """

        self._idc_replica_nums = idc_replica_nums

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


        :return: The idc_ro_nums of this AlterTableRequest.  # noqa: E501
        :rtype: list[IdcRoNumForAlterTableInput]
        """
        return self._idc_ro_nums

    @idc_ro_nums.setter
    def idc_ro_nums(self, idc_ro_nums):
        """Sets the idc_ro_nums of this AlterTableRequest.


        :param idc_ro_nums: The idc_ro_nums of this AlterTableRequest.  # noqa: E501
        :type: list[IdcRoNumForAlterTableInput]
        """

        self._idc_ro_nums = idc_ro_nums

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


        :return: The instance_id of this AlterTableRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_id

    @instance_id.setter
    def instance_id(self, instance_id):
        """Sets the instance_id of this AlterTableRequest.


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

        self._instance_id = instance_id

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


        :return: The rw_schedulable_idcs of this AlterTableRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._rw_schedulable_idcs

    @rw_schedulable_idcs.setter
    def rw_schedulable_idcs(self, rw_schedulable_idcs):
        """Sets the rw_schedulable_idcs of this AlterTableRequest.


        :param rw_schedulable_idcs: The rw_schedulable_idcs of this AlterTableRequest.  # noqa: E501
        :type: list[str]
        """

        self._rw_schedulable_idcs = rw_schedulable_idcs

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


        :return: The state of this AlterTableRequest.  # noqa: E501
        :rtype: str
        """
        return self._state

    @state.setter
    def state(self, state):
        """Sets the state of this AlterTableRequest.


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

        self._state = state

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


        :return: The table_name of this AlterTableRequest.  # noqa: E501
        :rtype: str
        """
        return self._table_name

    @table_name.setter
    def table_name(self, table_name):
        """Sets the table_name of this AlterTableRequest.


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

        self._table_name = table_name

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


        :return: The table_quota of this AlterTableRequest.  # noqa: E501
        :rtype: TableQuotaForAlterTableInput
        """
        return self._table_quota

    @table_quota.setter
    def table_quota(self, table_quota):
        """Sets the table_quota of this AlterTableRequest.


        :param table_quota: The table_quota of this AlterTableRequest.  # noqa: E501
        :type: TableQuotaForAlterTableInput
        """

        self._table_quota = table_quota

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

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