# 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


class SetProjectTemplateTermBaseDto(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 = {
        'read_term_bases': 'list[IdReference]',
        'write_term_base': 'IdReference',
        'quality_assurance_term_bases': 'list[IdReference]',
        'target_lang': 'str',
        'workflow_step': 'IdReference'
    }

    attribute_map = {
        'read_term_bases': 'readTermBases',
        'write_term_base': 'writeTermBase',
        'quality_assurance_term_bases': 'qualityAssuranceTermBases',
        'target_lang': 'targetLang',
        'workflow_step': 'workflowStep'
    }

    def __init__(self, read_term_bases=None, write_term_base=None, quality_assurance_term_bases=None, target_lang=None, workflow_step=None):  # noqa: E501
        """SetProjectTemplateTermBaseDto - a model defined in Swagger"""  # noqa: E501

        self._read_term_bases = None
        self._write_term_base = None
        self._quality_assurance_term_bases = None
        self._target_lang = None
        self._workflow_step = None
        self.discriminator = None

        if read_term_bases is not None:
            self.read_term_bases = read_term_bases
        if write_term_base is not None:
            self.write_term_base = write_term_base
        if quality_assurance_term_bases is not None:
            self.quality_assurance_term_bases = quality_assurance_term_bases
        if target_lang is not None:
            self.target_lang = target_lang
        if workflow_step is not None:
            self.workflow_step = workflow_step

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


        :return: The read_term_bases of this SetProjectTemplateTermBaseDto.  # noqa: E501
        :rtype: list[IdReference]
        """
        return self._read_term_bases

    @read_term_bases.setter
    def read_term_bases(self, read_term_bases):
        """Sets the read_term_bases of this SetProjectTemplateTermBaseDto.


        :param read_term_bases: The read_term_bases of this SetProjectTemplateTermBaseDto.  # noqa: E501
        :type: list[IdReference]
        """

        self._read_term_bases = read_term_bases

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


        :return: The write_term_base of this SetProjectTemplateTermBaseDto.  # noqa: E501
        :rtype: IdReference
        """
        return self._write_term_base

    @write_term_base.setter
    def write_term_base(self, write_term_base):
        """Sets the write_term_base of this SetProjectTemplateTermBaseDto.


        :param write_term_base: The write_term_base of this SetProjectTemplateTermBaseDto.  # noqa: E501
        :type: IdReference
        """

        self._write_term_base = write_term_base

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


        :return: The quality_assurance_term_bases of this SetProjectTemplateTermBaseDto.  # noqa: E501
        :rtype: list[IdReference]
        """
        return self._quality_assurance_term_bases

    @quality_assurance_term_bases.setter
    def quality_assurance_term_bases(self, quality_assurance_term_bases):
        """Sets the quality_assurance_term_bases of this SetProjectTemplateTermBaseDto.


        :param quality_assurance_term_bases: The quality_assurance_term_bases of this SetProjectTemplateTermBaseDto.  # noqa: E501
        :type: list[IdReference]
        """

        self._quality_assurance_term_bases = quality_assurance_term_bases

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


        :return: The target_lang of this SetProjectTemplateTermBaseDto.  # noqa: E501
        :rtype: str
        """
        return self._target_lang

    @target_lang.setter
    def target_lang(self, target_lang):
        """Sets the target_lang of this SetProjectTemplateTermBaseDto.


        :param target_lang: The target_lang of this SetProjectTemplateTermBaseDto.  # noqa: E501
        :type: str
        """

        self._target_lang = target_lang

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


        :return: The workflow_step of this SetProjectTemplateTermBaseDto.  # noqa: E501
        :rtype: IdReference
        """
        return self._workflow_step

    @workflow_step.setter
    def workflow_step(self, workflow_step):
        """Sets the workflow_step of this SetProjectTemplateTermBaseDto.


        :param workflow_step: The workflow_step of this SetProjectTemplateTermBaseDto.  # noqa: E501
        :type: IdReference
        """

        self._workflow_step = workflow_step

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

        return self.__dict__ == other.__dict__

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