# 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 AssetServiceSchedule(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 = {
        'day_of_week': 'AssetServiceDayOfWeek',
        'end_hour': 'int',
        'end_minute': 'AssetServiceMinuteOfHour',
        'start_hour': 'int',
        'start_minute': 'AssetServiceMinuteOfHour'
    }

    attribute_map = {
        'day_of_week': 'dayOfWeek',
        'end_hour': 'endHour',
        'end_minute': 'endMinute',
        'start_hour': 'startHour',
        'start_minute': 'startMinute'
    }

    def __init__(self, day_of_week=None, end_hour=None, end_minute=None, start_hour=None, start_minute=None, local_vars_configuration=None):  # noqa: E501
        """AssetServiceSchedule - 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._day_of_week = None
        self._end_hour = None
        self._end_minute = None
        self._start_hour = None
        self._start_minute = None
        self.discriminator = None

        self.day_of_week = day_of_week
        self.end_hour = end_hour
        self.end_minute = end_minute
        self.start_hour = start_hour
        self.start_minute = start_minute

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


        :return: The day_of_week of this AssetServiceSchedule.  # noqa: E501
        :rtype: AssetServiceDayOfWeek
        """
        return self._day_of_week

    @day_of_week.setter
    def day_of_week(self, day_of_week):
        """Sets the day_of_week of this AssetServiceSchedule.


        :param day_of_week: The day_of_week of this AssetServiceSchedule.  # noqa: E501
        :type: AssetServiceDayOfWeek
        """

        self._day_of_week = day_of_week

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

        <div lang=\"ja\">終了時です。<br> ※0 ～ 24の範囲で設定してください。<br> このフィールドは、ADDおよびSET時に必須となります。</div> <div lang=\"en\">End time in hour.<br> *Specify from 0 - 24.<br> This field is required in ADD and SET operation.</div>   # noqa: E501

        :return: The end_hour of this AssetServiceSchedule.  # noqa: E501
        :rtype: int
        """
        return self._end_hour

    @end_hour.setter
    def end_hour(self, end_hour):
        """Sets the end_hour of this AssetServiceSchedule.

        <div lang=\"ja\">終了時です。<br> ※0 ～ 24の範囲で設定してください。<br> このフィールドは、ADDおよびSET時に必須となります。</div> <div lang=\"en\">End time in hour.<br> *Specify from 0 - 24.<br> This field is required in ADD and SET operation.</div>   # noqa: E501

        :param end_hour: The end_hour of this AssetServiceSchedule.  # noqa: E501
        :type: int
        """

        self._end_hour = end_hour

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


        :return: The end_minute of this AssetServiceSchedule.  # noqa: E501
        :rtype: AssetServiceMinuteOfHour
        """
        return self._end_minute

    @end_minute.setter
    def end_minute(self, end_minute):
        """Sets the end_minute of this AssetServiceSchedule.


        :param end_minute: The end_minute of this AssetServiceSchedule.  # noqa: E501
        :type: AssetServiceMinuteOfHour
        """

        self._end_minute = end_minute

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

        <div lang=\"ja\">開始時です。<br> ※0 ～ 23の範囲で設定してください。<br> このフィールドは、ADDおよびSET時に必須となります。</div> <div lang=\"en\">Start time in hour.<br> *Specify from 0 - 23.<br> This field is required in ADD and SET operation.</div>   # noqa: E501

        :return: The start_hour of this AssetServiceSchedule.  # noqa: E501
        :rtype: int
        """
        return self._start_hour

    @start_hour.setter
    def start_hour(self, start_hour):
        """Sets the start_hour of this AssetServiceSchedule.

        <div lang=\"ja\">開始時です。<br> ※0 ～ 23の範囲で設定してください。<br> このフィールドは、ADDおよびSET時に必須となります。</div> <div lang=\"en\">Start time in hour.<br> *Specify from 0 - 23.<br> This field is required in ADD and SET operation.</div>   # noqa: E501

        :param start_hour: The start_hour of this AssetServiceSchedule.  # noqa: E501
        :type: int
        """

        self._start_hour = start_hour

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


        :return: The start_minute of this AssetServiceSchedule.  # noqa: E501
        :rtype: AssetServiceMinuteOfHour
        """
        return self._start_minute

    @start_minute.setter
    def start_minute(self, start_minute):
        """Sets the start_minute of this AssetServiceSchedule.


        :param start_minute: The start_minute of this AssetServiceSchedule.  # noqa: E501
        :type: AssetServiceMinuteOfHour
        """

        self._start_minute = start_minute

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

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