# 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 ApiAtlasReplicationArguments(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 = {
        'source_service': 'ApiServiceRef',
        'source_storage_filter': 'SourceStorageFilter',
        'policy_name': 'str',
        'staging_dir': 'str',
        'atlas_entity_regex_pattern': 'str',
        'safety_valves_target': 'dict(str, IcebergReplicationSafetyValve)',
        'match_type': 'str',
        'atlas_entity_type': 'list[str]',
        'skip_lineage': 'bool',
        'fetch_type': 'str'
    }

    attribute_map = {
        'source_service': 'sourceService',
        'source_storage_filter': 'sourceStorageFilter',
        'policy_name': 'policyName',
        'staging_dir': 'stagingDir',
        'atlas_entity_regex_pattern': 'atlasEntityRegexPattern',
        'safety_valves_target': 'safetyValvesTarget',
        'match_type': 'matchType',
        'atlas_entity_type': 'atlasEntityType',
        'skip_lineage': 'skipLineage',
        'fetch_type': 'fetchType'
    }

    def __init__(self, source_service=None, source_storage_filter=None, policy_name=None, staging_dir=None, atlas_entity_regex_pattern=None, safety_valves_target=None, match_type=None, atlas_entity_type=None, skip_lineage=None, fetch_type=None):  # noqa: E501
        """ApiAtlasReplicationArguments - a model defined in Swagger"""  # noqa: E501
        self._source_service = None
        self._source_storage_filter = None
        self._policy_name = None
        self._staging_dir = None
        self._atlas_entity_regex_pattern = None
        self._safety_valves_target = None
        self._match_type = None
        self._atlas_entity_type = None
        self._skip_lineage = None
        self._fetch_type = None
        self.discriminator = None
        if source_service is not None:
            self.source_service = source_service
        if source_storage_filter is not None:
            self.source_storage_filter = source_storage_filter
        if policy_name is not None:
            self.policy_name = policy_name
        if staging_dir is not None:
            self.staging_dir = staging_dir
        if atlas_entity_regex_pattern is not None:
            self.atlas_entity_regex_pattern = atlas_entity_regex_pattern
        if safety_valves_target is not None:
            self.safety_valves_target = safety_valves_target
        if match_type is not None:
            self.match_type = match_type
        if atlas_entity_type is not None:
            self.atlas_entity_type = atlas_entity_type
        self.skip_lineage = skip_lineage
        if fetch_type is not None:
            self.fetch_type = fetch_type

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


        :return: The source_service of this ApiAtlasReplicationArguments.  # noqa: E501
        :rtype: ApiServiceRef
        """
        return self._source_service

    @source_service.setter
    def source_service(self, source_service):
        """Sets the source_service of this ApiAtlasReplicationArguments.


        :param source_service: The source_service of this ApiAtlasReplicationArguments.  # noqa: E501
        :type: ApiServiceRef
        """

        self._source_service = source_service

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


        :return: The source_storage_filter of this ApiAtlasReplicationArguments.  # noqa: E501
        :rtype: SourceStorageFilter
        """
        return self._source_storage_filter

    @source_storage_filter.setter
    def source_storage_filter(self, source_storage_filter):
        """Sets the source_storage_filter of this ApiAtlasReplicationArguments.


        :param source_storage_filter: The source_storage_filter of this ApiAtlasReplicationArguments.  # noqa: E501
        :type: SourceStorageFilter
        """

        self._source_storage_filter = source_storage_filter

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


        :return: The policy_name of this ApiAtlasReplicationArguments.  # noqa: E501
        :rtype: str
        """
        return self._policy_name

    @policy_name.setter
    def policy_name(self, policy_name):
        """Sets the policy_name of this ApiAtlasReplicationArguments.


        :param policy_name: The policy_name of this ApiAtlasReplicationArguments.  # noqa: E501
        :type: str
        """

        self._policy_name = policy_name

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


        :return: The staging_dir of this ApiAtlasReplicationArguments.  # noqa: E501
        :rtype: str
        """
        return self._staging_dir

    @staging_dir.setter
    def staging_dir(self, staging_dir):
        """Sets the staging_dir of this ApiAtlasReplicationArguments.


        :param staging_dir: The staging_dir of this ApiAtlasReplicationArguments.  # noqa: E501
        :type: str
        """

        self._staging_dir = staging_dir

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


        :return: The atlas_entity_regex_pattern of this ApiAtlasReplicationArguments.  # noqa: E501
        :rtype: str
        """
        return self._atlas_entity_regex_pattern

    @atlas_entity_regex_pattern.setter
    def atlas_entity_regex_pattern(self, atlas_entity_regex_pattern):
        """Sets the atlas_entity_regex_pattern of this ApiAtlasReplicationArguments.


        :param atlas_entity_regex_pattern: The atlas_entity_regex_pattern of this ApiAtlasReplicationArguments.  # noqa: E501
        :type: str
        """

        self._atlas_entity_regex_pattern = atlas_entity_regex_pattern

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


        :return: The safety_valves_target of this ApiAtlasReplicationArguments.  # noqa: E501
        :rtype: dict(str, IcebergReplicationSafetyValve)
        """
        return self._safety_valves_target

    @safety_valves_target.setter
    def safety_valves_target(self, safety_valves_target):
        """Sets the safety_valves_target of this ApiAtlasReplicationArguments.


        :param safety_valves_target: The safety_valves_target of this ApiAtlasReplicationArguments.  # noqa: E501
        :type: dict(str, IcebergReplicationSafetyValve)
        """

        self._safety_valves_target = safety_valves_target

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


        :return: The match_type of this ApiAtlasReplicationArguments.  # noqa: E501
        :rtype: str
        """
        return self._match_type

    @match_type.setter
    def match_type(self, match_type):
        """Sets the match_type of this ApiAtlasReplicationArguments.


        :param match_type: The match_type of this ApiAtlasReplicationArguments.  # noqa: E501
        :type: str
        """

        self._match_type = match_type

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


        :return: The atlas_entity_type of this ApiAtlasReplicationArguments.  # noqa: E501
        :rtype: list[str]
        """
        return self._atlas_entity_type

    @atlas_entity_type.setter
    def atlas_entity_type(self, atlas_entity_type):
        """Sets the atlas_entity_type of this ApiAtlasReplicationArguments.


        :param atlas_entity_type: The atlas_entity_type of this ApiAtlasReplicationArguments.  # noqa: E501
        :type: list[str]
        """

        self._atlas_entity_type = atlas_entity_type

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


        :return: The skip_lineage of this ApiAtlasReplicationArguments.  # noqa: E501
        :rtype: bool
        """
        return self._skip_lineage

    @skip_lineage.setter
    def skip_lineage(self, skip_lineage):
        """Sets the skip_lineage of this ApiAtlasReplicationArguments.


        :param skip_lineage: The skip_lineage of this ApiAtlasReplicationArguments.  # noqa: E501
        :type: bool
        """
        if skip_lineage is None:
            raise ValueError("Invalid value for `skip_lineage`, must not be `None`")  # noqa: E501

        self._skip_lineage = skip_lineage

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


        :return: The fetch_type of this ApiAtlasReplicationArguments.  # noqa: E501
        :rtype: str
        """
        return self._fetch_type

    @fetch_type.setter
    def fetch_type(self, fetch_type):
        """Sets the fetch_type of this ApiAtlasReplicationArguments.


        :param fetch_type: The fetch_type of this ApiAtlasReplicationArguments.  # noqa: E501
        :type: str
        """

        self._fetch_type = fetch_type

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

        return self.__dict__ == other.__dict__

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