# coding: utf-8

"""
    ARLAS Tagger API

    (Un)Tag fields of ARLAS collections

    OpenAPI spec version: 16.0.0
    Contact: contact@gisaia.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class TagRequest(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 = {
        'filter': 'Filter',
        'form': 'Form',
        'search': 'Search',
        'tag': 'Tag',
        'propagation': 'Propagation',
        'label': 'str'
    }

    attribute_map = {
        'filter': 'filter',
        'form': 'form',
        'search': 'search',
        'tag': 'tag',
        'propagation': 'propagation',
        'label': 'label'
    }

    def __init__(self, filter=None, form=None, search=None, tag=None, propagation=None, label=None):
        """
        TagRequest - a model defined in Swagger
        """

        self._filter = None
        self._form = None
        self._search = None
        self._tag = None
        self._propagation = None
        self._label = None

        if filter is not None:
          self.filter = filter
        if form is not None:
          self.form = form
        if search is not None:
          self.search = search
        if tag is not None:
          self.tag = tag
        if propagation is not None:
          self.propagation = propagation
        if label is not None:
          self.label = label

    @property
    def filter(self):
        """
        Gets the filter of this TagRequest.

        :return: The filter of this TagRequest.
        :rtype: Filter
        """
        return self._filter

    @filter.setter
    def filter(self, filter):
        """
        Sets the filter of this TagRequest.

        :param filter: The filter of this TagRequest.
        :type: Filter
        """

        self._filter = filter

    @property
    def form(self):
        """
        Gets the form of this TagRequest.

        :return: The form of this TagRequest.
        :rtype: Form
        """
        return self._form

    @form.setter
    def form(self, form):
        """
        Sets the form of this TagRequest.

        :param form: The form of this TagRequest.
        :type: Form
        """

        self._form = form

    @property
    def search(self):
        """
        Gets the search of this TagRequest.

        :return: The search of this TagRequest.
        :rtype: Search
        """
        return self._search

    @search.setter
    def search(self, search):
        """
        Sets the search of this TagRequest.

        :param search: The search of this TagRequest.
        :type: Search
        """

        self._search = search

    @property
    def tag(self):
        """
        Gets the tag of this TagRequest.

        :return: The tag of this TagRequest.
        :rtype: Tag
        """
        return self._tag

    @tag.setter
    def tag(self, tag):
        """
        Sets the tag of this TagRequest.

        :param tag: The tag of this TagRequest.
        :type: Tag
        """

        self._tag = tag

    @property
    def propagation(self):
        """
        Gets the propagation of this TagRequest.

        :return: The propagation of this TagRequest.
        :rtype: Propagation
        """
        return self._propagation

    @propagation.setter
    def propagation(self, propagation):
        """
        Sets the propagation of this TagRequest.

        :param propagation: The propagation of this TagRequest.
        :type: Propagation
        """

        self._propagation = propagation

    @property
    def label(self):
        """
        Gets the label of this TagRequest.

        :return: The label of this TagRequest.
        :rtype: str
        """
        return self._label

    @label.setter
    def label(self, label):
        """
        Sets the label of this TagRequest.

        :param label: The label of this TagRequest.
        :type: str
        """

        self._label = label

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in 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 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, TagRequest):
            return False

        return self.__dict__ == other.__dict__

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