# 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:<EMAIL>>).  # 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.analyse_job_reference import AnalyseJobReference  # noqa: F401,E501
from memsource_cli.models.data_dto import DataDto  # noqa: F401,E501


class AnalyseLanguagePartV2Dto(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 = {
        'id': 'str',
        'source_lang': 'str',
        'target_lang': 'str',
        'data': 'DataDto',
        'discounted_data': 'DataDto',
        'jobs': 'list[AnalyseJobReference]'
    }

    attribute_map = {
        'id': 'id',
        'source_lang': 'sourceLang',
        'target_lang': 'targetLang',
        'data': 'data',
        'discounted_data': 'discountedData',
        'jobs': 'jobs'
    }

    def __init__(self, id=None, source_lang=None, target_lang=None, data=None, discounted_data=None, jobs=None):  # noqa: E501
        """AnalyseLanguagePartV2Dto - a model defined in Swagger"""  # noqa: E501

        self._id = None
        self._source_lang = None
        self._target_lang = None
        self._data = None
        self._discounted_data = None
        self._jobs = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if source_lang is not None:
            self.source_lang = source_lang
        if target_lang is not None:
            self.target_lang = target_lang
        if data is not None:
            self.data = data
        if discounted_data is not None:
            self.discounted_data = discounted_data
        if jobs is not None:
            self.jobs = jobs

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


        :return: The id of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this AnalyseLanguagePartV2Dto.


        :param id: The id of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :type: str
        """

        self._id = id

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


        :return: The source_lang of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :rtype: str
        """
        return self._source_lang

    @source_lang.setter
    def source_lang(self, source_lang):
        """Sets the source_lang of this AnalyseLanguagePartV2Dto.


        :param source_lang: The source_lang of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :type: str
        """

        self._source_lang = source_lang

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


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

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


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

        self._target_lang = target_lang

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


        :return: The data of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :rtype: DataDto
        """
        return self._data

    @data.setter
    def data(self, data):
        """Sets the data of this AnalyseLanguagePartV2Dto.


        :param data: The data of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :type: DataDto
        """

        self._data = data

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


        :return: The discounted_data of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :rtype: DataDto
        """
        return self._discounted_data

    @discounted_data.setter
    def discounted_data(self, discounted_data):
        """Sets the discounted_data of this AnalyseLanguagePartV2Dto.


        :param discounted_data: The discounted_data of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :type: DataDto
        """

        self._discounted_data = discounted_data

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


        :return: The jobs of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :rtype: list[AnalyseJobReference]
        """
        return self._jobs

    @jobs.setter
    def jobs(self, jobs):
        """Sets the jobs of this AnalyseLanguagePartV2Dto.


        :param jobs: The jobs of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :type: list[AnalyseJobReference]
        """

        self._jobs = jobs

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

        return self.__dict__ == other.__dict__

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

# 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:<EMAIL>>).  # 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.analyse_job_reference import AnalyseJobReference  # noqa: F401,E501
from memsource_cli.models.data_dto import DataDto  # noqa: F401,E501


class AnalyseLanguagePartV2Dto(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 = {
        'id': 'str',
        'source_lang': 'str',
        'target_lang': 'str',
        'data': 'DataDto',
        'discounted_data': 'DataDto',
        'jobs': 'list[AnalyseJobReference]'
    }

    attribute_map = {
        'id': 'id',
        'source_lang': 'sourceLang',
        'target_lang': 'targetLang',
        'data': 'data',
        'discounted_data': 'discountedData',
        'jobs': 'jobs'
    }

    def __init__(self, id=None, source_lang=None, target_lang=None, data=None, discounted_data=None, jobs=None):  # noqa: E501
        """AnalyseLanguagePartV2Dto - a model defined in Swagger"""  # noqa: E501

        self._id = None
        self._source_lang = None
        self._target_lang = None
        self._data = None
        self._discounted_data = None
        self._jobs = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if source_lang is not None:
            self.source_lang = source_lang
        if target_lang is not None:
            self.target_lang = target_lang
        if data is not None:
            self.data = data
        if discounted_data is not None:
            self.discounted_data = discounted_data
        if jobs is not None:
            self.jobs = jobs

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


        :return: The id of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this AnalyseLanguagePartV2Dto.


        :param id: The id of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :type: str
        """

        self._id = id

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


        :return: The source_lang of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :rtype: str
        """
        return self._source_lang

    @source_lang.setter
    def source_lang(self, source_lang):
        """Sets the source_lang of this AnalyseLanguagePartV2Dto.


        :param source_lang: The source_lang of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :type: str
        """

        self._source_lang = source_lang

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


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

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


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

        self._target_lang = target_lang

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


        :return: The data of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :rtype: DataDto
        """
        return self._data

    @data.setter
    def data(self, data):
        """Sets the data of this AnalyseLanguagePartV2Dto.


        :param data: The data of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :type: DataDto
        """

        self._data = data

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


        :return: The discounted_data of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :rtype: DataDto
        """
        return self._discounted_data

    @discounted_data.setter
    def discounted_data(self, discounted_data):
        """Sets the discounted_data of this AnalyseLanguagePartV2Dto.


        :param discounted_data: The discounted_data of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :type: DataDto
        """

        self._discounted_data = discounted_data

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


        :return: The jobs of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :rtype: list[AnalyseJobReference]
        """
        return self._jobs

    @jobs.setter
    def jobs(self, jobs):
        """Sets the jobs of this AnalyseLanguagePartV2Dto.


        :param jobs: The jobs of this AnalyseLanguagePartV2Dto.  # noqa: E501
        :type: list[AnalyseJobReference]
        """

        self._jobs = jobs

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

        return self.__dict__ == other.__dict__

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

# 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:<EMAIL>>).  # noqa: E501      OpenAPI spec version: Latest          Generated by: https://github.com/swagger-api/swagger-codegen.git # noqa: F401 # noqa: F401,E501 # noqa: F401,E501 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. # noqa: E501 AnalyseLanguagePartV2Dto - a model defined in Swagger # noqa: E501 Gets the id of this AnalyseLanguagePartV2Dto.  # noqa: E501           :return: The id of this AnalyseLanguagePartV2Dto.  # noqa: E501         :rtype: str Sets the id of this AnalyseLanguagePartV2Dto.           :param id: The id of this AnalyseLanguagePartV2Dto.  # noqa: E501         :type: str Gets the source_lang of this AnalyseLanguagePartV2Dto.  # noqa: E501           :return: The source_lang of this AnalyseLanguagePartV2Dto.  # noqa: E501         :rtype: str Sets the source_lang of this AnalyseLanguagePartV2Dto.           :param source_lang: The source_lang of this AnalyseLanguagePartV2Dto.  # noqa: E501         :type: str Gets the target_lang of this AnalyseLanguagePartV2Dto.  # noqa: E501           :return: The target_lang of this AnalyseLanguagePartV2Dto.  # noqa: E501         :rtype: str Sets the target_lang of this AnalyseLanguagePartV2Dto.           :param target_lang: The target_lang of this AnalyseLanguagePartV2Dto.  # noqa: E501         :type: str Gets the data of this AnalyseLanguagePartV2Dto.  # noqa: E501           :return: The data of this AnalyseLanguagePartV2Dto.  # noqa: E501         :rtype: DataDto Sets the data of this AnalyseLanguagePartV2Dto.           :param data: The data of this AnalyseLanguagePartV2Dto.  # noqa: E501         :type: DataDto Gets the discounted_data of this AnalyseLanguagePartV2Dto.  # noqa: E501           :return: The discounted_data of this AnalyseLanguagePartV2Dto.  # noqa: E501         :rtype: DataDto Sets the discounted_data of this AnalyseLanguagePartV2Dto.           :param discounted_data: The discounted_data of this AnalyseLanguagePartV2Dto.  # noqa: E501         :type: DataDto Gets the jobs of this AnalyseLanguagePartV2Dto.  # noqa: E501           :return: The jobs of this AnalyseLanguagePartV2Dto.  # noqa: E501         :rtype: list[AnalyseJobReference] Sets the jobs of this AnalyseLanguagePartV2Dto.           :param jobs: The jobs of this AnalyseLanguagePartV2Dto.  # noqa: E501         :type: list[AnalyseJobReference] Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal