# coding: utf-8

"""
    Cloudera Manager API

    <h1>Cloudera Manager API v57</h1>       <p>Introduced in Cloudera Manager 7.13.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class ApiTagToEntities(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 = {
        'name': 'str',
        'value': 'str',
        'api_cluster_refs': 'list[ApiClusterRef]',
        'api_service_refs': 'list[ApiServiceRef]',
        'api_role_refs': 'list[ApiRoleRef]',
        'api_host_refs': 'list[ApiHostRef]',
        'api_control_plane_refs': 'list[ApiControlPlaneRef]'
    }

    attribute_map = {
        'name': 'name',
        'value': 'value',
        'api_cluster_refs': 'apiClusterRefs',
        'api_service_refs': 'apiServiceRefs',
        'api_role_refs': 'apiRoleRefs',
        'api_host_refs': 'apiHostRefs',
        'api_control_plane_refs': 'apiControlPlaneRefs'
    }

    def __init__(self, name=None, value=None, api_cluster_refs=None, api_service_refs=None, api_role_refs=None, api_host_refs=None, api_control_plane_refs=None):  # noqa: E501
        """ApiTagToEntities - a model defined in Swagger"""  # noqa: E501
        self._name = None
        self._value = None
        self._api_cluster_refs = None
        self._api_service_refs = None
        self._api_role_refs = None
        self._api_host_refs = None
        self._api_control_plane_refs = None
        self.discriminator = None
        if name is not None:
            self.name = name
        if value is not None:
            self.value = value
        if api_cluster_refs is not None:
            self.api_cluster_refs = api_cluster_refs
        if api_service_refs is not None:
            self.api_service_refs = api_service_refs
        if api_role_refs is not None:
            self.api_role_refs = api_role_refs
        if api_host_refs is not None:
            self.api_host_refs = api_host_refs
        if api_control_plane_refs is not None:
            self.api_control_plane_refs = api_control_plane_refs

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


        :return: The name of this ApiTagToEntities.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this ApiTagToEntities.


        :param name: The name of this ApiTagToEntities.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The value of this ApiTagToEntities.  # noqa: E501
        :rtype: str
        """
        return self._value

    @value.setter
    def value(self, value):
        """Sets the value of this ApiTagToEntities.


        :param value: The value of this ApiTagToEntities.  # noqa: E501
        :type: str
        """

        self._value = value

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


        :return: The api_cluster_refs of this ApiTagToEntities.  # noqa: E501
        :rtype: list[ApiClusterRef]
        """
        return self._api_cluster_refs

    @api_cluster_refs.setter
    def api_cluster_refs(self, api_cluster_refs):
        """Sets the api_cluster_refs of this ApiTagToEntities.


        :param api_cluster_refs: The api_cluster_refs of this ApiTagToEntities.  # noqa: E501
        :type: list[ApiClusterRef]
        """

        self._api_cluster_refs = api_cluster_refs

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


        :return: The api_service_refs of this ApiTagToEntities.  # noqa: E501
        :rtype: list[ApiServiceRef]
        """
        return self._api_service_refs

    @api_service_refs.setter
    def api_service_refs(self, api_service_refs):
        """Sets the api_service_refs of this ApiTagToEntities.


        :param api_service_refs: The api_service_refs of this ApiTagToEntities.  # noqa: E501
        :type: list[ApiServiceRef]
        """

        self._api_service_refs = api_service_refs

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


        :return: The api_role_refs of this ApiTagToEntities.  # noqa: E501
        :rtype: list[ApiRoleRef]
        """
        return self._api_role_refs

    @api_role_refs.setter
    def api_role_refs(self, api_role_refs):
        """Sets the api_role_refs of this ApiTagToEntities.


        :param api_role_refs: The api_role_refs of this ApiTagToEntities.  # noqa: E501
        :type: list[ApiRoleRef]
        """

        self._api_role_refs = api_role_refs

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


        :return: The api_host_refs of this ApiTagToEntities.  # noqa: E501
        :rtype: list[ApiHostRef]
        """
        return self._api_host_refs

    @api_host_refs.setter
    def api_host_refs(self, api_host_refs):
        """Sets the api_host_refs of this ApiTagToEntities.


        :param api_host_refs: The api_host_refs of this ApiTagToEntities.  # noqa: E501
        :type: list[ApiHostRef]
        """

        self._api_host_refs = api_host_refs

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


        :return: The api_control_plane_refs of this ApiTagToEntities.  # noqa: E501
        :rtype: list[ApiControlPlaneRef]
        """
        return self._api_control_plane_refs

    @api_control_plane_refs.setter
    def api_control_plane_refs(self, api_control_plane_refs):
        """Sets the api_control_plane_refs of this ApiTagToEntities.


        :param api_control_plane_refs: The api_control_plane_refs of this ApiTagToEntities.  # noqa: E501
        :type: list[ApiControlPlaneRef]
        """

        self._api_control_plane_refs = api_control_plane_refs

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

        return self.__dict__ == other.__dict__

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