# coding: utf-8

"""
    livesaas20230801

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class UpdateActivityCouponRequest(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 = {
        'activity_id': 'int',
        'allow_close_icon': 'bool',
        'auto_send_time': 'int',
        'count': 'int',
        'coupon_id': 'int',
        'cut_off_time': 'int',
        'duration': 'int',
        'id': 'int',
        'is_viewer_level_limit': 'int',
        'is_watch_live_limit': 'int',
        'rule': 'int',
        'send_coupon_type': 'int',
        'viewer_level_config_ids': 'list[int]'
    }

    attribute_map = {
        'activity_id': 'ActivityId',
        'allow_close_icon': 'AllowCloseIcon',
        'auto_send_time': 'AutoSendTime',
        'count': 'Count',
        'coupon_id': 'CouponId',
        'cut_off_time': 'CutOffTime',
        'duration': 'Duration',
        'id': 'Id',
        'is_viewer_level_limit': 'IsViewerLevelLimit',
        'is_watch_live_limit': 'IsWatchLiveLimit',
        'rule': 'Rule',
        'send_coupon_type': 'SendCouponType',
        'viewer_level_config_ids': 'ViewerLevelConfigIds'
    }

    def __init__(self, activity_id=None, allow_close_icon=None, auto_send_time=None, count=None, coupon_id=None, cut_off_time=None, duration=None, id=None, is_viewer_level_limit=None, is_watch_live_limit=None, rule=None, send_coupon_type=None, viewer_level_config_ids=None, _configuration=None):  # noqa: E501
        """UpdateActivityCouponRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._activity_id = None
        self._allow_close_icon = None
        self._auto_send_time = None
        self._count = None
        self._coupon_id = None
        self._cut_off_time = None
        self._duration = None
        self._id = None
        self._is_viewer_level_limit = None
        self._is_watch_live_limit = None
        self._rule = None
        self._send_coupon_type = None
        self._viewer_level_config_ids = None
        self.discriminator = None

        self.activity_id = activity_id
        if allow_close_icon is not None:
            self.allow_close_icon = allow_close_icon
        if auto_send_time is not None:
            self.auto_send_time = auto_send_time
        if count is not None:
            self.count = count
        if coupon_id is not None:
            self.coupon_id = coupon_id
        if cut_off_time is not None:
            self.cut_off_time = cut_off_time
        if duration is not None:
            self.duration = duration
        self.id = id
        if is_viewer_level_limit is not None:
            self.is_viewer_level_limit = is_viewer_level_limit
        if is_watch_live_limit is not None:
            self.is_watch_live_limit = is_watch_live_limit
        if rule is not None:
            self.rule = rule
        if send_coupon_type is not None:
            self.send_coupon_type = send_coupon_type
        if viewer_level_config_ids is not None:
            self.viewer_level_config_ids = viewer_level_config_ids

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


        :return: The activity_id of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: int
        """
        return self._activity_id

    @activity_id.setter
    def activity_id(self, activity_id):
        """Sets the activity_id of this UpdateActivityCouponRequest.


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

        self._activity_id = activity_id

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


        :return: The allow_close_icon of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: bool
        """
        return self._allow_close_icon

    @allow_close_icon.setter
    def allow_close_icon(self, allow_close_icon):
        """Sets the allow_close_icon of this UpdateActivityCouponRequest.


        :param allow_close_icon: The allow_close_icon of this UpdateActivityCouponRequest.  # noqa: E501
        :type: bool
        """

        self._allow_close_icon = allow_close_icon

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


        :return: The auto_send_time of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: int
        """
        return self._auto_send_time

    @auto_send_time.setter
    def auto_send_time(self, auto_send_time):
        """Sets the auto_send_time of this UpdateActivityCouponRequest.


        :param auto_send_time: The auto_send_time of this UpdateActivityCouponRequest.  # noqa: E501
        :type: int
        """

        self._auto_send_time = auto_send_time

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


        :return: The count of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: int
        """
        return self._count

    @count.setter
    def count(self, count):
        """Sets the count of this UpdateActivityCouponRequest.


        :param count: The count of this UpdateActivityCouponRequest.  # noqa: E501
        :type: int
        """

        self._count = count

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


        :return: The coupon_id of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: int
        """
        return self._coupon_id

    @coupon_id.setter
    def coupon_id(self, coupon_id):
        """Sets the coupon_id of this UpdateActivityCouponRequest.


        :param coupon_id: The coupon_id of this UpdateActivityCouponRequest.  # noqa: E501
        :type: int
        """

        self._coupon_id = coupon_id

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


        :return: The cut_off_time of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: int
        """
        return self._cut_off_time

    @cut_off_time.setter
    def cut_off_time(self, cut_off_time):
        """Sets the cut_off_time of this UpdateActivityCouponRequest.


        :param cut_off_time: The cut_off_time of this UpdateActivityCouponRequest.  # noqa: E501
        :type: int
        """

        self._cut_off_time = cut_off_time

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


        :return: The duration of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: int
        """
        return self._duration

    @duration.setter
    def duration(self, duration):
        """Sets the duration of this UpdateActivityCouponRequest.


        :param duration: The duration of this UpdateActivityCouponRequest.  # noqa: E501
        :type: int
        """

        self._duration = duration

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


        :return: The id of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this UpdateActivityCouponRequest.


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

        self._id = id

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


        :return: The is_viewer_level_limit of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: int
        """
        return self._is_viewer_level_limit

    @is_viewer_level_limit.setter
    def is_viewer_level_limit(self, is_viewer_level_limit):
        """Sets the is_viewer_level_limit of this UpdateActivityCouponRequest.


        :param is_viewer_level_limit: The is_viewer_level_limit of this UpdateActivityCouponRequest.  # noqa: E501
        :type: int
        """

        self._is_viewer_level_limit = is_viewer_level_limit

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


        :return: The is_watch_live_limit of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: int
        """
        return self._is_watch_live_limit

    @is_watch_live_limit.setter
    def is_watch_live_limit(self, is_watch_live_limit):
        """Sets the is_watch_live_limit of this UpdateActivityCouponRequest.


        :param is_watch_live_limit: The is_watch_live_limit of this UpdateActivityCouponRequest.  # noqa: E501
        :type: int
        """

        self._is_watch_live_limit = is_watch_live_limit

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


        :return: The rule of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: int
        """
        return self._rule

    @rule.setter
    def rule(self, rule):
        """Sets the rule of this UpdateActivityCouponRequest.


        :param rule: The rule of this UpdateActivityCouponRequest.  # noqa: E501
        :type: int
        """

        self._rule = rule

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


        :return: The send_coupon_type of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: int
        """
        return self._send_coupon_type

    @send_coupon_type.setter
    def send_coupon_type(self, send_coupon_type):
        """Sets the send_coupon_type of this UpdateActivityCouponRequest.


        :param send_coupon_type: The send_coupon_type of this UpdateActivityCouponRequest.  # noqa: E501
        :type: int
        """

        self._send_coupon_type = send_coupon_type

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


        :return: The viewer_level_config_ids of this UpdateActivityCouponRequest.  # noqa: E501
        :rtype: list[int]
        """
        return self._viewer_level_config_ids

    @viewer_level_config_ids.setter
    def viewer_level_config_ids(self, viewer_level_config_ids):
        """Sets the viewer_level_config_ids of this UpdateActivityCouponRequest.


        :param viewer_level_config_ids: The viewer_level_config_ids of this UpdateActivityCouponRequest.  # noqa: E501
        :type: list[int]
        """

        self._viewer_level_config_ids = viewer_level_config_ids

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

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