# coding: utf-8

"""
    hbase

    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 CreateDBInstanceRequest(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 = {
        'auto_renew': 'bool',
        'charge_type': 'str',
        'cold_storage': 'int',
        'deletion_protection': 'str',
        'enable_auth': 'bool',
        'enable_cloud_storage': 'bool',
        'engine_version': 'str',
        'instance_name': 'str',
        'instance_type': 'str',
        'maintenance_window': 'MaintenanceWindowForCreateDBInstanceInput',
        'master_spec': 'str',
        'multi_az': 'bool',
        'project_name': 'str',
        'purchase_months': 'int',
        'rs_count': 'int',
        'rs_spec': 'str',
        'region_id': 'str',
        'storage_capacity': 'int',
        'storage_type': 'str',
        'subnet_id': 'str',
        'tags': 'list[TagForCreateDBInstanceInput]',
        'vpc_id': 'str',
        'zone_id': 'str'
    }

    attribute_map = {
        'auto_renew': 'AutoRenew',
        'charge_type': 'ChargeType',
        'cold_storage': 'ColdStorage',
        'deletion_protection': 'DeletionProtection',
        'enable_auth': 'EnableAuth',
        'enable_cloud_storage': 'EnableCloudStorage',
        'engine_version': 'EngineVersion',
        'instance_name': 'InstanceName',
        'instance_type': 'InstanceType',
        'maintenance_window': 'MaintenanceWindow',
        'master_spec': 'MasterSpec',
        'multi_az': 'MultiAZ',
        'project_name': 'ProjectName',
        'purchase_months': 'PurchaseMonths',
        'rs_count': 'RSCount',
        'rs_spec': 'RSSpec',
        'region_id': 'RegionId',
        'storage_capacity': 'StorageCapacity',
        'storage_type': 'StorageType',
        'subnet_id': 'SubnetId',
        'tags': 'Tags',
        'vpc_id': 'VpcId',
        'zone_id': 'ZoneId'
    }

    def __init__(self, auto_renew=None, charge_type=None, cold_storage=None, deletion_protection=None, enable_auth=None, enable_cloud_storage=None, engine_version=None, instance_name=None, instance_type=None, maintenance_window=None, master_spec=None, multi_az=None, project_name=None, purchase_months=None, rs_count=None, rs_spec=None, region_id=None, storage_capacity=None, storage_type=None, subnet_id=None, tags=None, vpc_id=None, zone_id=None, _configuration=None):  # noqa: E501
        """CreateDBInstanceRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._auto_renew = None
        self._charge_type = None
        self._cold_storage = None
        self._deletion_protection = None
        self._enable_auth = None
        self._enable_cloud_storage = None
        self._engine_version = None
        self._instance_name = None
        self._instance_type = None
        self._maintenance_window = None
        self._master_spec = None
        self._multi_az = None
        self._project_name = None
        self._purchase_months = None
        self._rs_count = None
        self._rs_spec = None
        self._region_id = None
        self._storage_capacity = None
        self._storage_type = None
        self._subnet_id = None
        self._tags = None
        self._vpc_id = None
        self._zone_id = None
        self.discriminator = None

        if auto_renew is not None:
            self.auto_renew = auto_renew
        self.charge_type = charge_type
        if cold_storage is not None:
            self.cold_storage = cold_storage
        if deletion_protection is not None:
            self.deletion_protection = deletion_protection
        if enable_auth is not None:
            self.enable_auth = enable_auth
        if enable_cloud_storage is not None:
            self.enable_cloud_storage = enable_cloud_storage
        self.engine_version = engine_version
        if instance_name is not None:
            self.instance_name = instance_name
        if instance_type is not None:
            self.instance_type = instance_type
        if maintenance_window is not None:
            self.maintenance_window = maintenance_window
        self.master_spec = master_spec
        if multi_az is not None:
            self.multi_az = multi_az
        if project_name is not None:
            self.project_name = project_name
        if purchase_months is not None:
            self.purchase_months = purchase_months
        self.rs_count = rs_count
        self.rs_spec = rs_spec
        self.region_id = region_id
        self.storage_capacity = storage_capacity
        if storage_type is not None:
            self.storage_type = storage_type
        self.subnet_id = subnet_id
        if tags is not None:
            self.tags = tags
        self.vpc_id = vpc_id
        self.zone_id = zone_id

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


        :return: The auto_renew of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: bool
        """
        return self._auto_renew

    @auto_renew.setter
    def auto_renew(self, auto_renew):
        """Sets the auto_renew of this CreateDBInstanceRequest.


        :param auto_renew: The auto_renew of this CreateDBInstanceRequest.  # noqa: E501
        :type: bool
        """

        self._auto_renew = auto_renew

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


        :return: The charge_type of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._charge_type

    @charge_type.setter
    def charge_type(self, charge_type):
        """Sets the charge_type of this CreateDBInstanceRequest.


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

        self._charge_type = charge_type

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


        :return: The cold_storage of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: int
        """
        return self._cold_storage

    @cold_storage.setter
    def cold_storage(self, cold_storage):
        """Sets the cold_storage of this CreateDBInstanceRequest.


        :param cold_storage: The cold_storage of this CreateDBInstanceRequest.  # noqa: E501
        :type: int
        """

        self._cold_storage = cold_storage

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


        :return: The deletion_protection of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._deletion_protection

    @deletion_protection.setter
    def deletion_protection(self, deletion_protection):
        """Sets the deletion_protection of this CreateDBInstanceRequest.


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

        self._deletion_protection = deletion_protection

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


        :return: The enable_auth of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: bool
        """
        return self._enable_auth

    @enable_auth.setter
    def enable_auth(self, enable_auth):
        """Sets the enable_auth of this CreateDBInstanceRequest.


        :param enable_auth: The enable_auth of this CreateDBInstanceRequest.  # noqa: E501
        :type: bool
        """

        self._enable_auth = enable_auth

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


        :return: The enable_cloud_storage of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: bool
        """
        return self._enable_cloud_storage

    @enable_cloud_storage.setter
    def enable_cloud_storage(self, enable_cloud_storage):
        """Sets the enable_cloud_storage of this CreateDBInstanceRequest.


        :param enable_cloud_storage: The enable_cloud_storage of this CreateDBInstanceRequest.  # noqa: E501
        :type: bool
        """

        self._enable_cloud_storage = enable_cloud_storage

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


        :return: The engine_version of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._engine_version

    @engine_version.setter
    def engine_version(self, engine_version):
        """Sets the engine_version of this CreateDBInstanceRequest.


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

        self._engine_version = engine_version

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


        :return: The instance_name of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_name

    @instance_name.setter
    def instance_name(self, instance_name):
        """Sets the instance_name of this CreateDBInstanceRequest.


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

        self._instance_name = instance_name

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


        :return: The instance_type of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_type

    @instance_type.setter
    def instance_type(self, instance_type):
        """Sets the instance_type of this CreateDBInstanceRequest.


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

        self._instance_type = instance_type

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


        :return: The maintenance_window of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: MaintenanceWindowForCreateDBInstanceInput
        """
        return self._maintenance_window

    @maintenance_window.setter
    def maintenance_window(self, maintenance_window):
        """Sets the maintenance_window of this CreateDBInstanceRequest.


        :param maintenance_window: The maintenance_window of this CreateDBInstanceRequest.  # noqa: E501
        :type: MaintenanceWindowForCreateDBInstanceInput
        """

        self._maintenance_window = maintenance_window

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


        :return: The master_spec of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._master_spec

    @master_spec.setter
    def master_spec(self, master_spec):
        """Sets the master_spec of this CreateDBInstanceRequest.


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

        self._master_spec = master_spec

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


        :return: The multi_az of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: bool
        """
        return self._multi_az

    @multi_az.setter
    def multi_az(self, multi_az):
        """Sets the multi_az of this CreateDBInstanceRequest.


        :param multi_az: The multi_az of this CreateDBInstanceRequest.  # noqa: E501
        :type: bool
        """

        self._multi_az = multi_az

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


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

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


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

        self._project_name = project_name

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


        :return: The purchase_months of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: int
        """
        return self._purchase_months

    @purchase_months.setter
    def purchase_months(self, purchase_months):
        """Sets the purchase_months of this CreateDBInstanceRequest.


        :param purchase_months: The purchase_months of this CreateDBInstanceRequest.  # noqa: E501
        :type: int
        """

        self._purchase_months = purchase_months

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


        :return: The rs_count of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: int
        """
        return self._rs_count

    @rs_count.setter
    def rs_count(self, rs_count):
        """Sets the rs_count of this CreateDBInstanceRequest.


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

        self._rs_count = rs_count

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


        :return: The rs_spec of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._rs_spec

    @rs_spec.setter
    def rs_spec(self, rs_spec):
        """Sets the rs_spec of this CreateDBInstanceRequest.


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

        self._rs_spec = rs_spec

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


        :return: The region_id of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._region_id

    @region_id.setter
    def region_id(self, region_id):
        """Sets the region_id of this CreateDBInstanceRequest.


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

        self._region_id = region_id

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


        :return: The storage_capacity of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: int
        """
        return self._storage_capacity

    @storage_capacity.setter
    def storage_capacity(self, storage_capacity):
        """Sets the storage_capacity of this CreateDBInstanceRequest.


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

        self._storage_capacity = storage_capacity

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


        :return: The storage_type of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._storage_type

    @storage_type.setter
    def storage_type(self, storage_type):
        """Sets the storage_type of this CreateDBInstanceRequest.


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

        self._storage_type = storage_type

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


        :return: The subnet_id of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._subnet_id

    @subnet_id.setter
    def subnet_id(self, subnet_id):
        """Sets the subnet_id of this CreateDBInstanceRequest.


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

        self._subnet_id = subnet_id

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


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

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


        :param tags: The tags of this CreateDBInstanceRequest.  # noqa: E501
        :type: list[TagForCreateDBInstanceInput]
        """

        self._tags = tags

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


        :return: The vpc_id of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._vpc_id

    @vpc_id.setter
    def vpc_id(self, vpc_id):
        """Sets the vpc_id of this CreateDBInstanceRequest.


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

        self._vpc_id = vpc_id

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


        :return: The zone_id of this CreateDBInstanceRequest.  # noqa: E501
        :rtype: str
        """
        return self._zone_id

    @zone_id.setter
    def zone_id(self, zone_id):
        """Sets the zone_id of this CreateDBInstanceRequest.


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

        self._zone_id = zone_id

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

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