# 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_paged_request import XmlNs0PagedRequest  # noqa: F401,E501


class XmlNs0FindValidationResultRequest(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',
        'asset_id': 'str',
        'job_id': 'str',
        'most_recent_job': 'bool',
        'result': 'bool',
        'validation_rule_id': 'str'
    }

    attribute_map = {
        'limit': 'limit',
        'offset': 'offset',
        'asset_id': 'assetId',
        'job_id': 'jobId',
        'most_recent_job': 'mostRecentJob',
        'result': 'result',
        'validation_rule_id': 'validationRuleId'
    }

    def __init__(self, limit=None, offset=None, asset_id=None, job_id=None, most_recent_job=None, result=None, validation_rule_id=None):  # noqa: E501
        """XmlNs0FindValidationResultRequest - a model defined in Swagger"""  # noqa: E501

        self._limit = None
        self._offset = None
        self._asset_id = None
        self._job_id = None
        self._most_recent_job = None
        self._result = None
        self._validation_rule_id = None
        self.discriminator = None

        if limit is not None:
            self.limit = limit
        if offset is not None:
            self.offset = offset
        if asset_id is not None:
            self.asset_id = asset_id
        if job_id is not None:
            self.job_id = job_id
        if most_recent_job is not None:
            self.most_recent_job = most_recent_job
        if result is not None:
            self.result = result
        if validation_rule_id is not None:
            self.validation_rule_id = validation_rule_id

    @property
    def limit(self):
        """Gets the limit of this XmlNs0FindValidationResultRequest.  # 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 XmlNs0FindValidationResultRequest.  # noqa: E501
        :rtype: float
        """
        return self._limit

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

        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 XmlNs0FindValidationResultRequest.  # noqa: E501
        :type: float
        """

        self._limit = limit

    @property
    def offset(self):
        """Gets the offset of this XmlNs0FindValidationResultRequest.  # 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 XmlNs0FindValidationResultRequest.  # noqa: E501
        :rtype: float
        """
        return self._offset

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

        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 XmlNs0FindValidationResultRequest.  # noqa: E501
        :type: float
        """

        self._offset = offset

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

        The unique identifier of the asset for which we are searching validation results  # noqa: E501

        :return: The asset_id of this XmlNs0FindValidationResultRequest.  # noqa: E501
        :rtype: str
        """
        return self._asset_id

    @asset_id.setter
    def asset_id(self, asset_id):
        """Sets the asset_id of this XmlNs0FindValidationResultRequest.

        The unique identifier of the asset for which we are searching validation results  # noqa: E501

        :param asset_id: The asset_id of this XmlNs0FindValidationResultRequest.  # noqa: E501
        :type: str
        """

        self._asset_id = asset_id

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

        The unique identifier of the job for which we are searching validation results  # noqa: E501

        :return: The job_id of this XmlNs0FindValidationResultRequest.  # noqa: E501
        :rtype: str
        """
        return self._job_id

    @job_id.setter
    def job_id(self, job_id):
        """Sets the job_id of this XmlNs0FindValidationResultRequest.

        The unique identifier of the job for which we are searching validation results  # noqa: E501

        :param job_id: The job_id of this XmlNs0FindValidationResultRequest.  # noqa: E501
        :type: str
        """

        self._job_id = job_id

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

        Check the validationResults of only the most recent job according to the other criteria  # noqa: E501

        :return: The most_recent_job of this XmlNs0FindValidationResultRequest.  # noqa: E501
        :rtype: bool
        """
        return self._most_recent_job

    @most_recent_job.setter
    def most_recent_job(self, most_recent_job):
        """Sets the most_recent_job of this XmlNs0FindValidationResultRequest.

        Check the validationResults of only the most recent job according to the other criteria  # noqa: E501

        :param most_recent_job: The most_recent_job of this XmlNs0FindValidationResultRequest.  # noqa: E501
        :type: bool
        """

        self._most_recent_job = most_recent_job

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

        Filter on the result of validation results  # noqa: E501

        :return: The result of this XmlNs0FindValidationResultRequest.  # noqa: E501
        :rtype: bool
        """
        return self._result

    @result.setter
    def result(self, result):
        """Sets the result of this XmlNs0FindValidationResultRequest.

        Filter on the result of validation results  # noqa: E501

        :param result: The result of this XmlNs0FindValidationResultRequest.  # noqa: E501
        :type: bool
        """

        self._result = result

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

        The unique identifier of the validation rule for which we are searching validation results  # noqa: E501

        :return: The validation_rule_id of this XmlNs0FindValidationResultRequest.  # noqa: E501
        :rtype: str
        """
        return self._validation_rule_id

    @validation_rule_id.setter
    def validation_rule_id(self, validation_rule_id):
        """Sets the validation_rule_id of this XmlNs0FindValidationResultRequest.

        The unique identifier of the validation rule for which we are searching validation results  # noqa: E501

        :param validation_rule_id: The validation_rule_id of this XmlNs0FindValidationResultRequest.  # noqa: E501
        :type: str
        """

        self._validation_rule_id = validation_rule_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

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

        return self.__dict__ == other.__dict__

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