# coding: utf-8

"""
    Yahoo!広告 ディスプレイ広告 API リファレンス / Yahoo! JAPAN Ads Display Ads API Reference

    <div lang=\"ja\">Yahoo!広告 ディスプレイ広告 APIのWebサービスについて説明します。</div> <div lang=\"en\">Display Ads API Web Services supported in Yahoo! JAPAN Ads API.</div> <div><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-display-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-display-api-documents/blob/master/bestpractice/ja\">Best Practice</a></div> <div lang=\"en\"><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-display-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_display_test.configuration import Configuration


class DictionaryServiceSharedAudienceListMaster(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 = {
        'audience_list_id': 'int',
        'audience_list_name': 'str',
        'sub_audience_list_name': 'str',
        'children': 'list[DictionaryServiceSharedAudienceListMaster]',
        'is_guaranteed_permitted': 'str'
    }

    attribute_map = {
        'audience_list_id': 'audienceListId',
        'audience_list_name': 'audienceListName',
        'sub_audience_list_name': 'subAudienceListName',
        'children': 'children',
        'is_guaranteed_permitted': 'isGuaranteedPermitted'
    }

    def __init__(self, audience_list_id=None, audience_list_name=None, sub_audience_list_name=None, children=None, is_guaranteed_permitted=None, local_vars_configuration=None):  # noqa: E501
        """DictionaryServiceSharedAudienceListMaster - 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._audience_list_id = None
        self._audience_list_name = None
        self._sub_audience_list_name = None
        self._children = None
        self._is_guaranteed_permitted = None
        self.discriminator = None

        self.audience_list_id = audience_list_id
        self.audience_list_name = audience_list_name
        self.sub_audience_list_name = sub_audience_list_name
        self.children = children
        self.is_guaranteed_permitted = is_guaranteed_permitted

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

        <div lang=\"ja\"> オーディエンスリストIDです。<br> </div> <div lang=\"en\"> Audience list ID. </div>   # noqa: E501

        :return: The audience_list_id of this DictionaryServiceSharedAudienceListMaster.  # noqa: E501
        :rtype: int
        """
        return self._audience_list_id

    @audience_list_id.setter
    def audience_list_id(self, audience_list_id):
        """Sets the audience_list_id of this DictionaryServiceSharedAudienceListMaster.

        <div lang=\"ja\"> オーディエンスリストIDです。<br> </div> <div lang=\"en\"> Audience list ID. </div>   # noqa: E501

        :param audience_list_id: The audience_list_id of this DictionaryServiceSharedAudienceListMaster.  # noqa: E501
        :type: int
        """

        self._audience_list_id = audience_list_id

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

        <div lang=\"ja\">オーディエンスリスト名です</div> <div lang=\"en\">Audience list name.</div>   # noqa: E501

        :return: The audience_list_name of this DictionaryServiceSharedAudienceListMaster.  # noqa: E501
        :rtype: str
        """
        return self._audience_list_name

    @audience_list_name.setter
    def audience_list_name(self, audience_list_name):
        """Sets the audience_list_name of this DictionaryServiceSharedAudienceListMaster.

        <div lang=\"ja\">オーディエンスリスト名です</div> <div lang=\"en\">Audience list name.</div>   # noqa: E501

        :param audience_list_name: The audience_list_name of this DictionaryServiceSharedAudienceListMaster.  # noqa: E501
        :type: str
        """

        self._audience_list_name = audience_list_name

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

        <div lang=\"ja\">サブオーディエンスリスト名です。</div> <div lang=\"en\">Sub-Audience list name.</div>   # noqa: E501

        :return: The sub_audience_list_name of this DictionaryServiceSharedAudienceListMaster.  # noqa: E501
        :rtype: str
        """
        return self._sub_audience_list_name

    @sub_audience_list_name.setter
    def sub_audience_list_name(self, sub_audience_list_name):
        """Sets the sub_audience_list_name of this DictionaryServiceSharedAudienceListMaster.

        <div lang=\"ja\">サブオーディエンスリスト名です。</div> <div lang=\"en\">Sub-Audience list name.</div>   # noqa: E501

        :param sub_audience_list_name: The sub_audience_list_name of this DictionaryServiceSharedAudienceListMaster.  # noqa: E501
        :type: str
        """

        self._sub_audience_list_name = sub_audience_list_name

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

        <div lang=\"ja\">子要素としてDictionaryServiceSharedAudienceListMasterオブジェクトを使用します。</div> <div lang=\"en\">DictionaryServiceSharedAudienceListMaster object is used.</div>   # noqa: E501

        :return: The children of this DictionaryServiceSharedAudienceListMaster.  # noqa: E501
        :rtype: list[DictionaryServiceSharedAudienceListMaster]
        """
        return self._children

    @children.setter
    def children(self, children):
        """Sets the children of this DictionaryServiceSharedAudienceListMaster.

        <div lang=\"ja\">子要素としてDictionaryServiceSharedAudienceListMasterオブジェクトを使用します。</div> <div lang=\"en\">DictionaryServiceSharedAudienceListMaster object is used.</div>   # noqa: E501

        :param children: The children of this DictionaryServiceSharedAudienceListMaster.  # noqa: E501
        :type: list[DictionaryServiceSharedAudienceListMaster]
        """

        self._children = children

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

        <div lang=\"ja\">予約型販売対象を表します</div> <div lang=\"en\">Indicates that it is subject to guaranteed sale.</div>   # noqa: E501

        :return: The is_guaranteed_permitted of this DictionaryServiceSharedAudienceListMaster.  # noqa: E501
        :rtype: str
        """
        return self._is_guaranteed_permitted

    @is_guaranteed_permitted.setter
    def is_guaranteed_permitted(self, is_guaranteed_permitted):
        """Sets the is_guaranteed_permitted of this DictionaryServiceSharedAudienceListMaster.

        <div lang=\"ja\">予約型販売対象を表します</div> <div lang=\"en\">Indicates that it is subject to guaranteed sale.</div>   # noqa: E501

        :param is_guaranteed_permitted: The is_guaranteed_permitted of this DictionaryServiceSharedAudienceListMaster.  # noqa: E501
        :type: str
        """

        self._is_guaranteed_permitted = is_guaranteed_permitted

    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, DictionaryServiceSharedAudienceListMaster):
            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, DictionaryServiceSharedAudienceListMaster):
            return True

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