# coding: utf-8

"""
    mem0

    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 CreateMemoryProjectRequest(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 = {
        'charge_type': 'str',
        'client_token': 'str',
        'description': 'str',
        'enable_graph_memory': 'bool',
        'enable_vpc': 'bool',
        'long_term_memory_strategies': 'list[LongTermMemoryStrategyForCreateMemoryProjectInput]',
        'memory_project_name': 'str',
        'memory_project_type': 'str',
        'project_name': 'str',
        'region_id': 'str',
        'subnet_id': 'str',
        'tags': 'list[TagForCreateMemoryProjectInput]',
        'vpc_id': 'str'
    }

    attribute_map = {
        'charge_type': 'ChargeType',
        'client_token': 'ClientToken',
        'description': 'Description',
        'enable_graph_memory': 'EnableGraphMemory',
        'enable_vpc': 'EnableVPC',
        'long_term_memory_strategies': 'LongTermMemoryStrategies',
        'memory_project_name': 'MemoryProjectName',
        'memory_project_type': 'MemoryProjectType',
        'project_name': 'ProjectName',
        'region_id': 'RegionId',
        'subnet_id': 'SubnetId',
        'tags': 'Tags',
        'vpc_id': 'VpcId'
    }

    def __init__(self, charge_type=None, client_token=None, description=None, enable_graph_memory=None, enable_vpc=None, long_term_memory_strategies=None, memory_project_name=None, memory_project_type=None, project_name=None, region_id=None, subnet_id=None, tags=None, vpc_id=None, _configuration=None):  # noqa: E501
        """CreateMemoryProjectRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._charge_type = None
        self._client_token = None
        self._description = None
        self._enable_graph_memory = None
        self._enable_vpc = None
        self._long_term_memory_strategies = None
        self._memory_project_name = None
        self._memory_project_type = None
        self._project_name = None
        self._region_id = None
        self._subnet_id = None
        self._tags = None
        self._vpc_id = None
        self.discriminator = None

        self.charge_type = charge_type
        if client_token is not None:
            self.client_token = client_token
        if description is not None:
            self.description = description
        if enable_graph_memory is not None:
            self.enable_graph_memory = enable_graph_memory
        if enable_vpc is not None:
            self.enable_vpc = enable_vpc
        if long_term_memory_strategies is not None:
            self.long_term_memory_strategies = long_term_memory_strategies
        if memory_project_name is not None:
            self.memory_project_name = memory_project_name
        self.memory_project_type = memory_project_type
        if project_name is not None:
            self.project_name = project_name
        self.region_id = region_id
        if subnet_id is not None:
            self.subnet_id = subnet_id
        if tags is not None:
            self.tags = tags
        if vpc_id is not None:
            self.vpc_id = vpc_id

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


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

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


        :param charge_type: The charge_type of this CreateMemoryProjectRequest.  # 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
        allowed_values = ["PostPaid", "PrePaid"]  # noqa: E501
        if (self._configuration.client_side_validation and
                charge_type not in allowed_values):
            raise ValueError(
                "Invalid value for `charge_type` ({0}), must be one of {1}"  # noqa: E501
                .format(charge_type, allowed_values)
            )

        self._charge_type = charge_type

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


        :return: The client_token of this CreateMemoryProjectRequest.  # noqa: E501
        :rtype: str
        """
        return self._client_token

    @client_token.setter
    def client_token(self, client_token):
        """Sets the client_token of this CreateMemoryProjectRequest.


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

        self._client_token = client_token

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


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

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


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

        self._description = description

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


        :return: The enable_graph_memory of this CreateMemoryProjectRequest.  # noqa: E501
        :rtype: bool
        """
        return self._enable_graph_memory

    @enable_graph_memory.setter
    def enable_graph_memory(self, enable_graph_memory):
        """Sets the enable_graph_memory of this CreateMemoryProjectRequest.


        :param enable_graph_memory: The enable_graph_memory of this CreateMemoryProjectRequest.  # noqa: E501
        :type: bool
        """

        self._enable_graph_memory = enable_graph_memory

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


        :return: The enable_vpc of this CreateMemoryProjectRequest.  # noqa: E501
        :rtype: bool
        """
        return self._enable_vpc

    @enable_vpc.setter
    def enable_vpc(self, enable_vpc):
        """Sets the enable_vpc of this CreateMemoryProjectRequest.


        :param enable_vpc: The enable_vpc of this CreateMemoryProjectRequest.  # noqa: E501
        :type: bool
        """

        self._enable_vpc = enable_vpc

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


        :return: The long_term_memory_strategies of this CreateMemoryProjectRequest.  # noqa: E501
        :rtype: list[LongTermMemoryStrategyForCreateMemoryProjectInput]
        """
        return self._long_term_memory_strategies

    @long_term_memory_strategies.setter
    def long_term_memory_strategies(self, long_term_memory_strategies):
        """Sets the long_term_memory_strategies of this CreateMemoryProjectRequest.


        :param long_term_memory_strategies: The long_term_memory_strategies of this CreateMemoryProjectRequest.  # noqa: E501
        :type: list[LongTermMemoryStrategyForCreateMemoryProjectInput]
        """

        self._long_term_memory_strategies = long_term_memory_strategies

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


        :return: The memory_project_name of this CreateMemoryProjectRequest.  # noqa: E501
        :rtype: str
        """
        return self._memory_project_name

    @memory_project_name.setter
    def memory_project_name(self, memory_project_name):
        """Sets the memory_project_name of this CreateMemoryProjectRequest.


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

        self._memory_project_name = memory_project_name

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


        :return: The memory_project_type of this CreateMemoryProjectRequest.  # noqa: E501
        :rtype: str
        """
        return self._memory_project_type

    @memory_project_type.setter
    def memory_project_type(self, memory_project_type):
        """Sets the memory_project_type of this CreateMemoryProjectRequest.


        :param memory_project_type: The memory_project_type of this CreateMemoryProjectRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and memory_project_type is None:
            raise ValueError("Invalid value for `memory_project_type`, must not be `None`")  # noqa: E501
        allowed_values = ["ShortTermMemory", "LongTermMemory"]  # noqa: E501
        if (self._configuration.client_side_validation and
                memory_project_type not in allowed_values):
            raise ValueError(
                "Invalid value for `memory_project_type` ({0}), must be one of {1}"  # noqa: E501
                .format(memory_project_type, allowed_values)
            )

        self._memory_project_type = memory_project_type

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


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

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


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

        self._project_name = project_name

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


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

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


        :param region_id: The region_id of this CreateMemoryProjectRequest.  # 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 subnet_id(self):
        """Gets the subnet_id of this CreateMemoryProjectRequest.  # noqa: E501


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

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


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

        self._subnet_id = subnet_id

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


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

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


        :param tags: The tags of this CreateMemoryProjectRequest.  # noqa: E501
        :type: list[TagForCreateMemoryProjectInput]
        """

        self._tags = tags

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


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

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


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

        self._vpc_id = vpc_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(CreateMemoryProjectRequest, 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, CreateMemoryProjectRequest):
            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, CreateMemoryProjectRequest):
            return True

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