# coding: utf-8

"""
    Memsource REST API

    Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis-qa-with-the-memsource-api-team/).    If you have any questions, please contact [Memsource Support](<mailto:support@memsource.com>).  # noqa: E501

    OpenAPI spec version: Latest
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from memsource_cli.models.id_reference import IdReference  # noqa: F401,E501
from memsource_cli.models.provider_reference import ProviderReference  # noqa: F401,E501
from memsource_cli.models.uid_reference import UidReference  # noqa: F401,E501


class QuoteCreateDto(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 = {
        'name': 'str',
        'project': 'UidReference',
        'analyse': 'IdReference',
        'price_list': 'IdReference',
        'net_rate_scheme': 'IdReference',
        'workflow_step_list': 'list[IdReference]',
        'provider': 'ProviderReference'
    }

    attribute_map = {
        'name': 'name',
        'project': 'project',
        'analyse': 'analyse',
        'price_list': 'priceList',
        'net_rate_scheme': 'netRateScheme',
        'workflow_step_list': 'workflowStepList',
        'provider': 'provider'
    }

    def __init__(self, name=None, project=None, analyse=None, price_list=None, net_rate_scheme=None, workflow_step_list=None, provider=None):  # noqa: E501
        """QuoteCreateDto - a model defined in Swagger"""  # noqa: E501

        self._name = None
        self._project = None
        self._analyse = None
        self._price_list = None
        self._net_rate_scheme = None
        self._workflow_step_list = None
        self._provider = None
        self.discriminator = None

        self.name = name
        self.project = project
        self.analyse = analyse
        self.price_list = price_list
        if net_rate_scheme is not None:
            self.net_rate_scheme = net_rate_scheme
        if workflow_step_list is not None:
            self.workflow_step_list = workflow_step_list
        if provider is not None:
            self.provider = provider

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


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

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


        :param name: The name of this QuoteCreateDto.  # noqa: E501
        :type: str
        """
        if name is None:
            raise ValueError("Invalid value for `name`, must not be `None`")  # noqa: E501
        if name is not None and len(name) > 255:
            raise ValueError("Invalid value for `name`, length must be less than or equal to `255`")  # noqa: E501
        if name is not None and len(name) < 0:
            raise ValueError("Invalid value for `name`, length must be greater than or equal to `0`")  # noqa: E501

        self._name = name

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


        :return: The project of this QuoteCreateDto.  # noqa: E501
        :rtype: UidReference
        """
        return self._project

    @project.setter
    def project(self, project):
        """Sets the project of this QuoteCreateDto.


        :param project: The project of this QuoteCreateDto.  # noqa: E501
        :type: UidReference
        """
        if project is None:
            raise ValueError("Invalid value for `project`, must not be `None`")  # noqa: E501

        self._project = project

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


        :return: The analyse of this QuoteCreateDto.  # noqa: E501
        :rtype: IdReference
        """
        return self._analyse

    @analyse.setter
    def analyse(self, analyse):
        """Sets the analyse of this QuoteCreateDto.


        :param analyse: The analyse of this QuoteCreateDto.  # noqa: E501
        :type: IdReference
        """
        if analyse is None:
            raise ValueError("Invalid value for `analyse`, must not be `None`")  # noqa: E501

        self._analyse = analyse

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


        :return: The price_list of this QuoteCreateDto.  # noqa: E501
        :rtype: IdReference
        """
        return self._price_list

    @price_list.setter
    def price_list(self, price_list):
        """Sets the price_list of this QuoteCreateDto.


        :param price_list: The price_list of this QuoteCreateDto.  # noqa: E501
        :type: IdReference
        """
        if price_list is None:
            raise ValueError("Invalid value for `price_list`, must not be `None`")  # noqa: E501

        self._price_list = price_list

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


        :return: The net_rate_scheme of this QuoteCreateDto.  # noqa: E501
        :rtype: IdReference
        """
        return self._net_rate_scheme

    @net_rate_scheme.setter
    def net_rate_scheme(self, net_rate_scheme):
        """Sets the net_rate_scheme of this QuoteCreateDto.


        :param net_rate_scheme: The net_rate_scheme of this QuoteCreateDto.  # noqa: E501
        :type: IdReference
        """

        self._net_rate_scheme = net_rate_scheme

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


        :return: The workflow_step_list of this QuoteCreateDto.  # noqa: E501
        :rtype: list[IdReference]
        """
        return self._workflow_step_list

    @workflow_step_list.setter
    def workflow_step_list(self, workflow_step_list):
        """Sets the workflow_step_list of this QuoteCreateDto.


        :param workflow_step_list: The workflow_step_list of this QuoteCreateDto.  # noqa: E501
        :type: list[IdReference]
        """

        self._workflow_step_list = workflow_step_list

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


        :return: The provider of this QuoteCreateDto.  # noqa: E501
        :rtype: ProviderReference
        """
        return self._provider

    @provider.setter
    def provider(self, provider):
        """Sets the provider of this QuoteCreateDto.


        :param provider: The provider of this QuoteCreateDto.  # noqa: E501
        :type: ProviderReference
        """

        self._provider = provider

    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(QuoteCreateDto, 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, QuoteCreateDto):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
