# coding: utf-8

"""
    \"Data Governance Center: REST API v2\"

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

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


import pprint
import re  # noqa: F401

import six

from swagger_client.models.xml_ns0_logical_operator import XmlNs0LogicalOperator  # noqa: F401,E501
from swagger_client.models.xml_ns0_paged_request import XmlNs0PagedRequest  # noqa: F401,E501
from swagger_client.models.xml_ns0_sort_field import XmlNs0SortField  # noqa: F401,E501
from swagger_client.models.xml_ns0_sort_order import XmlNs0SortOrder  # noqa: F401,E501


class XmlNs0FindRelationTypesRequest(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 = {
        'limit': 'float',
        'offset': 'float',
        'co_role': 'str',
        'role': 'str',
        'role_co_role_logical_operator': 'XmlNs0LogicalOperator',
        'sort_field': 'XmlNs0SortField',
        'sort_order': 'XmlNs0SortOrder',
        'source_type_id': 'str',
        'source_type_name': 'str',
        'target_type_id': 'str',
        'target_type_name': 'str'
    }

    attribute_map = {
        'limit': 'limit',
        'offset': 'offset',
        'co_role': 'coRole',
        'role': 'role',
        'role_co_role_logical_operator': 'roleCoRoleLogicalOperator',
        'sort_field': 'sortField',
        'sort_order': 'sortOrder',
        'source_type_id': 'sourceTypeId',
        'source_type_name': 'sourceTypeName',
        'target_type_id': 'targetTypeId',
        'target_type_name': 'targetTypeName'
    }

    def __init__(self, limit=None, offset=None, co_role=None, role=None, role_co_role_logical_operator=None, sort_field=None, sort_order=None, source_type_id=None, source_type_name=None, target_type_id=None, target_type_name=None):  # noqa: E501
        """XmlNs0FindRelationTypesRequest - a model defined in Swagger"""  # noqa: E501

        self._limit = None
        self._offset = None
        self._co_role = None
        self._role = None
        self._role_co_role_logical_operator = None
        self._sort_field = None
        self._sort_order = None
        self._source_type_id = None
        self._source_type_name = None
        self._target_type_id = None
        self._target_type_name = None
        self.discriminator = None

        if limit is not None:
            self.limit = limit
        if offset is not None:
            self.offset = offset
        if co_role is not None:
            self.co_role = co_role
        if role is not None:
            self.role = role
        if role_co_role_logical_operator is not None:
            self.role_co_role_logical_operator = role_co_role_logical_operator
        if sort_field is not None:
            self.sort_field = sort_field
        if sort_order is not None:
            self.sort_order = sort_order
        if source_type_id is not None:
            self.source_type_id = source_type_id
        if source_type_name is not None:
            self.source_type_name = source_type_name
        if target_type_id is not None:
            self.target_type_id = target_type_id
        if target_type_name is not None:
            self.target_type_name = target_type_name

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

        The maximum number of results to retrieve. If not set (value = <tt>0</tt>), the default limit will be used  # noqa: E501

        :return: The limit of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :rtype: float
        """
        return self._limit

    @limit.setter
    def limit(self, limit):
        """Sets the limit of this XmlNs0FindRelationTypesRequest.

        The maximum number of results to retrieve. If not set (value = <tt>0</tt>), the default limit will be used  # noqa: E501

        :param limit: The limit of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :type: float
        """

        self._limit = limit

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

        The first result to retrieve. If not set (value = <tt>0</tt>), results will be retrieved starting from row <tt>0</tt>  # noqa: E501

        :return: The offset of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :rtype: float
        """
        return self._offset

    @offset.setter
    def offset(self, offset):
        """Sets the offset of this XmlNs0FindRelationTypesRequest.

        The first result to retrieve. If not set (value = <tt>0</tt>), results will be retrieved starting from row <tt>0</tt>  # noqa: E501

        :param offset: The offset of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :type: float
        """

        self._offset = offset

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

        The name of the role that the target plays to search for  # noqa: E501

        :return: The co_role of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :rtype: str
        """
        return self._co_role

    @co_role.setter
    def co_role(self, co_role):
        """Sets the co_role of this XmlNs0FindRelationTypesRequest.

        The name of the role that the target plays to search for  # noqa: E501

        :param co_role: The co_role of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :type: str
        """

        self._co_role = co_role

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

        The name of the role that the source plays to search for  # noqa: E501

        :return: The role of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :rtype: str
        """
        return self._role

    @role.setter
    def role(self, role):
        """Sets the role of this XmlNs0FindRelationTypesRequest.

        The name of the role that the source plays to search for  # noqa: E501

        :param role: The role of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :type: str
        """

        self._role = role

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

        The logical operator determining how to combine the role and coRole criteria: AND or OR  # noqa: E501

        :return: The role_co_role_logical_operator of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :rtype: XmlNs0LogicalOperator
        """
        return self._role_co_role_logical_operator

    @role_co_role_logical_operator.setter
    def role_co_role_logical_operator(self, role_co_role_logical_operator):
        """Sets the role_co_role_logical_operator of this XmlNs0FindRelationTypesRequest.

        The logical operator determining how to combine the role and coRole criteria: AND or OR  # noqa: E501

        :param role_co_role_logical_operator: The role_co_role_logical_operator of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :type: XmlNs0LogicalOperator
        """

        self._role_co_role_logical_operator = role_co_role_logical_operator

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

        The field that should be used as reference for sorting  # noqa: E501

        :return: The sort_field of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :rtype: XmlNs0SortField
        """
        return self._sort_field

    @sort_field.setter
    def sort_field(self, sort_field):
        """Sets the sort_field of this XmlNs0FindRelationTypesRequest.

        The field that should be used as reference for sorting  # noqa: E501

        :param sort_field: The sort_field of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :type: XmlNs0SortField
        """

        self._sort_field = sort_field

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

        The order of sorting  # noqa: E501

        :return: The sort_order of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :rtype: XmlNs0SortOrder
        """
        return self._sort_order

    @sort_order.setter
    def sort_order(self, sort_order):
        """Sets the sort_order of this XmlNs0FindRelationTypesRequest.

        The order of sorting  # noqa: E501

        :param sort_order: The sort_order of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :type: XmlNs0SortOrder
        """

        self._sort_order = sort_order

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

        The <code>id</code> of the source type of the relation type to search for  # noqa: E501

        :return: The source_type_id of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :rtype: str
        """
        return self._source_type_id

    @source_type_id.setter
    def source_type_id(self, source_type_id):
        """Sets the source_type_id of this XmlNs0FindRelationTypesRequest.

        The <code>id</code> of the source type of the relation type to search for  # noqa: E501

        :param source_type_id: The source_type_id of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :type: str
        """

        self._source_type_id = source_type_id

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

        The name of the source type of the relation type to search for  # noqa: E501

        :return: The source_type_name of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :rtype: str
        """
        return self._source_type_name

    @source_type_name.setter
    def source_type_name(self, source_type_name):
        """Sets the source_type_name of this XmlNs0FindRelationTypesRequest.

        The name of the source type of the relation type to search for  # noqa: E501

        :param source_type_name: The source_type_name of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :type: str
        """

        self._source_type_name = source_type_name

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

        The <code>id</code> of the target type of the relation type to search for  # noqa: E501

        :return: The target_type_id of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :rtype: str
        """
        return self._target_type_id

    @target_type_id.setter
    def target_type_id(self, target_type_id):
        """Sets the target_type_id of this XmlNs0FindRelationTypesRequest.

        The <code>id</code> of the target type of the relation type to search for  # noqa: E501

        :param target_type_id: The target_type_id of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :type: str
        """

        self._target_type_id = target_type_id

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

        The name of the target type of the relation type to search for  # noqa: E501

        :return: The target_type_name of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :rtype: str
        """
        return self._target_type_name

    @target_type_name.setter
    def target_type_name(self, target_type_name):
        """Sets the target_type_name of this XmlNs0FindRelationTypesRequest.

        The name of the target type of the relation type to search for  # noqa: E501

        :param target_type_name: The target_type_name of this XmlNs0FindRelationTypesRequest.  # noqa: E501
        :type: str
        """

        self._target_type_name = target_type_name

    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

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

        return self.__dict__ == other.__dict__

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