# coding: utf-8

"""
    Yahoo!広告 検索広告 API リファレンス / Yahoo! JAPAN Ads Search Ads API Reference

    <div lang=\"ja\">Yahoo!広告 検索広告 APIのWebサービスについて説明します。</div> <div lang=\"en\">Search Ads API Web Services supported in Yahoo! JAPAN Ads API.</div> <div><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/design/v12/Route.yaml\">OpenAPI Specification</a></div> <div lang=\"ja\"><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/ja\">Best Practice</a></div> <div lang=\"en\"><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/en\">Best Practice</a></div>   # noqa: E501

    The version of the OpenAPI document: v12
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from yahoo_search_api_v12.configuration import Configuration


class ConversionTrackerServiceAppConversion(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'app_conversion_type': 'ConversionTrackerServiceAppConversionType',
        'app_id': 'str',
        'app_platform': 'ConversionTrackerServiceAppPlatform',
        'app_postback_url': 'ConversionTrackerServiceAppPostbackUrl',
        'snippet_id': 'int',
        'snippet_label': 'str'
    }

    attribute_map = {
        'app_conversion_type': 'appConversionType',
        'app_id': 'appId',
        'app_platform': 'appPlatform',
        'app_postback_url': 'appPostbackUrl',
        'snippet_id': 'snippetId',
        'snippet_label': 'snippetLabel'
    }

    def __init__(self, app_conversion_type=None, app_id=None, app_platform=None, app_postback_url=None, snippet_id=None, snippet_label=None, local_vars_configuration=None):  # noqa: E501
        """ConversionTrackerServiceAppConversion - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._app_conversion_type = None
        self._app_id = None
        self._app_platform = None
        self._app_postback_url = None
        self._snippet_id = None
        self._snippet_label = None
        self.discriminator = None

        self.app_conversion_type = app_conversion_type
        self.app_id = app_id
        self.app_platform = app_platform
        self.app_postback_url = app_postback_url
        self.snippet_id = snippet_id
        self.snippet_label = snippet_label

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


        :return: The app_conversion_type of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :rtype: ConversionTrackerServiceAppConversionType
        """
        return self._app_conversion_type

    @app_conversion_type.setter
    def app_conversion_type(self, app_conversion_type):
        """Sets the app_conversion_type of this ConversionTrackerServiceAppConversion.


        :param app_conversion_type: The app_conversion_type of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :type: ConversionTrackerServiceAppConversionType
        """

        self._app_conversion_type = app_conversion_type

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

        <div lang=\"ja\">アプリケーションIDです。<br> このフィールドは、ADD時に省略可能となり、SET時は無視されます。</div> <div lang=\"en\">Application ID.<br> This field is optional in ADD operation, and will be ignored in SET operation.</div>   # noqa: E501

        :return: The app_id of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :rtype: str
        """
        return self._app_id

    @app_id.setter
    def app_id(self, app_id):
        """Sets the app_id of this ConversionTrackerServiceAppConversion.

        <div lang=\"ja\">アプリケーションIDです。<br> このフィールドは、ADD時に省略可能となり、SET時は無視されます。</div> <div lang=\"en\">Application ID.<br> This field is optional in ADD operation, and will be ignored in SET operation.</div>   # noqa: E501

        :param app_id: The app_id of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :type: str
        """

        self._app_id = app_id

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


        :return: The app_platform of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :rtype: ConversionTrackerServiceAppPlatform
        """
        return self._app_platform

    @app_platform.setter
    def app_platform(self, app_platform):
        """Sets the app_platform of this ConversionTrackerServiceAppConversion.


        :param app_platform: The app_platform of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :type: ConversionTrackerServiceAppPlatform
        """

        self._app_platform = app_platform

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


        :return: The app_postback_url of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :rtype: ConversionTrackerServiceAppPostbackUrl
        """
        return self._app_postback_url

    @app_postback_url.setter
    def app_postback_url(self, app_postback_url):
        """Sets the app_postback_url of this ConversionTrackerServiceAppConversion.


        :param app_postback_url: The app_postback_url of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :type: ConversionTrackerServiceAppPostbackUrl
        """

        self._app_postback_url = app_postback_url

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

        <div lang=\"ja\">コンバージョンIDです。</div> <div lang=\"en\">Conversion ID.</div>   # noqa: E501

        :return: The snippet_id of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :rtype: int
        """
        return self._snippet_id

    @snippet_id.setter
    def snippet_id(self, snippet_id):
        """Sets the snippet_id of this ConversionTrackerServiceAppConversion.

        <div lang=\"ja\">コンバージョンIDです。</div> <div lang=\"en\">Conversion ID.</div>   # noqa: E501

        :param snippet_id: The snippet_id of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :type: int
        """

        self._snippet_id = snippet_id

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

        <div lang=\"ja\">コンバージョントラッカーラベルです。</div> <div lang=\"en\">Conversion tracker label.</div>   # noqa: E501

        :return: The snippet_label of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :rtype: str
        """
        return self._snippet_label

    @snippet_label.setter
    def snippet_label(self, snippet_label):
        """Sets the snippet_label of this ConversionTrackerServiceAppConversion.

        <div lang=\"ja\">コンバージョントラッカーラベルです。</div> <div lang=\"en\">Conversion tracker label.</div>   # noqa: E501

        :param snippet_label: The snippet_label of this ConversionTrackerServiceAppConversion.  # noqa: E501
        :type: str
        """

        self._snippet_label = snippet_label

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

        for attr, _ in six.iteritems(self.openapi_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, ConversionTrackerServiceAppConversion):
            return False

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
