# 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 GuaranteedAdGroupAdServiceSelector(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 = {
        'account_id': 'int',
        'campaign_ids': 'list[int]',
        'ad_group_ids': 'list[int]',
        'ad_group_ad_ids': 'list[int]',
        'contains_label_id_flg': 'bool',
        'label_ids': 'list[int]',
        'media_ids': 'list[int]',
        'ad_types': 'list[GuaranteedAdGroupAdServiceAdType]',
        'main_media_formats': 'list[GuaranteedAdGroupAdServiceMainMediaFormat]',
        'number_results': 'int',
        'start_index': 'int'
    }

    attribute_map = {
        'account_id': 'accountId',
        'campaign_ids': 'campaignIds',
        'ad_group_ids': 'adGroupIds',
        'ad_group_ad_ids': 'adGroupAdIds',
        'contains_label_id_flg': 'containsLabelIdFlg',
        'label_ids': 'labelIds',
        'media_ids': 'mediaIds',
        'ad_types': 'adTypes',
        'main_media_formats': 'mainMediaFormats',
        'number_results': 'numberResults',
        'start_index': 'startIndex'
    }

    def __init__(self, account_id=None, campaign_ids=None, ad_group_ids=None, ad_group_ad_ids=None, contains_label_id_flg=None, label_ids=None, media_ids=None, ad_types=None, main_media_formats=None, number_results=500, start_index=1, local_vars_configuration=None):  # noqa: E501
        """GuaranteedAdGroupAdServiceSelector - 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._account_id = None
        self._campaign_ids = None
        self._ad_group_ids = None
        self._ad_group_ad_ids = None
        self._contains_label_id_flg = None
        self._label_ids = None
        self._media_ids = None
        self._ad_types = None
        self._main_media_formats = None
        self._number_results = None
        self._start_index = None
        self.discriminator = None

        self.account_id = account_id
        self.campaign_ids = campaign_ids
        self.ad_group_ids = ad_group_ids
        self.ad_group_ad_ids = ad_group_ad_ids
        self.contains_label_id_flg = contains_label_id_flg
        self.label_ids = label_ids
        self.media_ids = media_ids
        self.ad_types = ad_types
        self.main_media_formats = main_media_formats
        self.number_results = number_results
        self.start_index = start_index

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

        <div lang=\"ja\">検索条件 : アカウントID</div> <div lang=\"en\">Search condition: Account ID</div>   # noqa: E501

        :return: The account_id of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :rtype: int
        """
        return self._account_id

    @account_id.setter
    def account_id(self, account_id):
        """Sets the account_id of this GuaranteedAdGroupAdServiceSelector.

        <div lang=\"ja\">検索条件 : アカウントID</div> <div lang=\"en\">Search condition: Account ID</div>   # noqa: E501

        :param account_id: The account_id of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and account_id is None:  # noqa: E501
            raise ValueError("Invalid value for `account_id`, must not be `None`")  # noqa: E501

        self._account_id = account_id

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

        <div lang=\"ja\">検索条件 : キャンペーンID</div> <div lang=\"en\">Search condition: Campaign ID</div>   # noqa: E501

        :return: The campaign_ids of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :rtype: list[int]
        """
        return self._campaign_ids

    @campaign_ids.setter
    def campaign_ids(self, campaign_ids):
        """Sets the campaign_ids of this GuaranteedAdGroupAdServiceSelector.

        <div lang=\"ja\">検索条件 : キャンペーンID</div> <div lang=\"en\">Search condition: Campaign ID</div>   # noqa: E501

        :param campaign_ids: The campaign_ids of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :type: list[int]
        """

        self._campaign_ids = campaign_ids

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

        <div lang=\"ja\">検索条件 : 広告グループID</div> <div lang=\"en\">Search condition: Ad group ID</div>   # noqa: E501

        :return: The ad_group_ids of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :rtype: list[int]
        """
        return self._ad_group_ids

    @ad_group_ids.setter
    def ad_group_ids(self, ad_group_ids):
        """Sets the ad_group_ids of this GuaranteedAdGroupAdServiceSelector.

        <div lang=\"ja\">検索条件 : 広告グループID</div> <div lang=\"en\">Search condition: Ad group ID</div>   # noqa: E501

        :param ad_group_ids: The ad_group_ids of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :type: list[int]
        """

        self._ad_group_ids = ad_group_ids

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

        <div lang=\"ja\">検索条件 : 広告ID</div> <div lang=\"en\">Search condition: Ad ID</div>   # noqa: E501

        :return: The ad_group_ad_ids of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :rtype: list[int]
        """
        return self._ad_group_ad_ids

    @ad_group_ad_ids.setter
    def ad_group_ad_ids(self, ad_group_ad_ids):
        """Sets the ad_group_ad_ids of this GuaranteedAdGroupAdServiceSelector.

        <div lang=\"ja\">検索条件 : 広告ID</div> <div lang=\"en\">Search condition: Ad ID</div>   # noqa: E501

        :param ad_group_ad_ids: The ad_group_ad_ids of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :type: list[int]
        """

        self._ad_group_ad_ids = ad_group_ad_ids

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

        <div lang=\"ja\">ラベルID取得フラグです。<br> このフィールドは省略可能となります。その際、デフォルト値はfalseとなります。 </div> <div lang=\"en\">Flag of contains label ID.<br> This field is optional. The default value will be false. </div>   # noqa: E501

        :return: The contains_label_id_flg of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :rtype: bool
        """
        return self._contains_label_id_flg

    @contains_label_id_flg.setter
    def contains_label_id_flg(self, contains_label_id_flg):
        """Sets the contains_label_id_flg of this GuaranteedAdGroupAdServiceSelector.

        <div lang=\"ja\">ラベルID取得フラグです。<br> このフィールドは省略可能となります。その際、デフォルト値はfalseとなります。 </div> <div lang=\"en\">Flag of contains label ID.<br> This field is optional. The default value will be false. </div>   # noqa: E501

        :param contains_label_id_flg: The contains_label_id_flg of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :type: bool
        """

        self._contains_label_id_flg = contains_label_id_flg

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

        <div lang=\"ja\">検索条件 : ラベルID</div> <div lang=\"en\">Search condition: Label ID</div>   # noqa: E501

        :return: The label_ids of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :rtype: list[int]
        """
        return self._label_ids

    @label_ids.setter
    def label_ids(self, label_ids):
        """Sets the label_ids of this GuaranteedAdGroupAdServiceSelector.

        <div lang=\"ja\">検索条件 : ラベルID</div> <div lang=\"en\">Search condition: Label ID</div>   # noqa: E501

        :param label_ids: The label_ids of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :type: list[int]
        """

        self._label_ids = label_ids

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

        <div lang=\"ja\">検索条件 : 画像ID</div> <div lang=\"en\">Search condition: Media ID</div>   # noqa: E501

        :return: The media_ids of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :rtype: list[int]
        """
        return self._media_ids

    @media_ids.setter
    def media_ids(self, media_ids):
        """Sets the media_ids of this GuaranteedAdGroupAdServiceSelector.

        <div lang=\"ja\">検索条件 : 画像ID</div> <div lang=\"en\">Search condition: Media ID</div>   # noqa: E501

        :param media_ids: The media_ids of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :type: list[int]
        """

        self._media_ids = media_ids

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


        :return: The ad_types of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :rtype: list[GuaranteedAdGroupAdServiceAdType]
        """
        return self._ad_types

    @ad_types.setter
    def ad_types(self, ad_types):
        """Sets the ad_types of this GuaranteedAdGroupAdServiceSelector.


        :param ad_types: The ad_types of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :type: list[GuaranteedAdGroupAdServiceAdType]
        """

        self._ad_types = ad_types

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


        :return: The main_media_formats of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :rtype: list[GuaranteedAdGroupAdServiceMainMediaFormat]
        """
        return self._main_media_formats

    @main_media_formats.setter
    def main_media_formats(self, main_media_formats):
        """Sets the main_media_formats of this GuaranteedAdGroupAdServiceSelector.


        :param main_media_formats: The main_media_formats of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :type: list[GuaranteedAdGroupAdServiceMainMediaFormat]
        """

        self._main_media_formats = main_media_formats

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

        <div lang=\"ja\">ページの最大件数です。このフィールドは、1以上を指定する必要があります。</div> <div lang=\"en\">Maximum number of results to return in this page. This field must be greater than or equal to 1. Also see Entity Limits per operation.</div>   # noqa: E501

        :return: The number_results of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :rtype: int
        """
        return self._number_results

    @number_results.setter
    def number_results(self, number_results):
        """Sets the number_results of this GuaranteedAdGroupAdServiceSelector.

        <div lang=\"ja\">ページの最大件数です。このフィールドは、1以上を指定する必要があります。</div> <div lang=\"en\">Maximum number of results to return in this page. This field must be greater than or equal to 1. Also see Entity Limits per operation.</div>   # noqa: E501

        :param number_results: The number_results of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :type: int
        """
        if (self.local_vars_configuration.client_side_validation and
                number_results is not None and number_results > 500):  # noqa: E501
            raise ValueError("Invalid value for `number_results`, must be a value less than or equal to `500`")  # noqa: E501
        if (self.local_vars_configuration.client_side_validation and
                number_results is not None and number_results < 1):  # noqa: E501
            raise ValueError("Invalid value for `number_results`, must be a value greater than or equal to `1`")  # noqa: E501

        self._number_results = number_results

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

        <div lang=\"ja\">ページの先頭のインデックスです。このフィールドは、1以上を指定する必要があります。</div> <div lang=\"en\">Index of the first result to return in this page. This field must be greater than or equal to 1.</div>   # noqa: E501

        :return: The start_index of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :rtype: int
        """
        return self._start_index

    @start_index.setter
    def start_index(self, start_index):
        """Sets the start_index of this GuaranteedAdGroupAdServiceSelector.

        <div lang=\"ja\">ページの先頭のインデックスです。このフィールドは、1以上を指定する必要があります。</div> <div lang=\"en\">Index of the first result to return in this page. This field must be greater than or equal to 1.</div>   # noqa: E501

        :param start_index: The start_index of this GuaranteedAdGroupAdServiceSelector.  # noqa: E501
        :type: int
        """
        if (self.local_vars_configuration.client_side_validation and
                start_index is not None and start_index < 1):  # noqa: E501
            raise ValueError("Invalid value for `start_index`, must be a value greater than or equal to `1`")  # noqa: E501

        self._start_index = start_index

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

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