# coding: utf-8

"""
    rcs_5g

    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 SendRcsRequest(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 = {
        'channel_type': 'str',
        'chatbot_id': 'str',
        'failback_flag': 'bool',
        'message_type': 'str',
        'params': 'str',
        'receiver': 'str',
        'sms_sign': 'str',
        'sms_sub_account_id': 'str',
        'sms_template_id': 'str',
        'template_code': 'str'
    }

    attribute_map = {
        'channel_type': 'ChannelType',
        'chatbot_id': 'ChatbotId',
        'failback_flag': 'FailbackFlag',
        'message_type': 'MessageType',
        'params': 'Params',
        'receiver': 'Receiver',
        'sms_sign': 'SmsSign',
        'sms_sub_account_id': 'SmsSubAccountId',
        'sms_template_id': 'SmsTemplateId',
        'template_code': 'TemplateCode'
    }

    def __init__(self, channel_type=None, chatbot_id=None, failback_flag=None, message_type=None, params=None, receiver=None, sms_sign=None, sms_sub_account_id=None, sms_template_id=None, template_code=None, _configuration=None):  # noqa: E501
        """SendRcsRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._channel_type = None
        self._chatbot_id = None
        self._failback_flag = None
        self._message_type = None
        self._params = None
        self._receiver = None
        self._sms_sign = None
        self._sms_sub_account_id = None
        self._sms_template_id = None
        self._template_code = None
        self.discriminator = None

        if channel_type is not None:
            self.channel_type = channel_type
        self.chatbot_id = chatbot_id
        if failback_flag is not None:
            self.failback_flag = failback_flag
        if message_type is not None:
            self.message_type = message_type
        self.params = params
        self.receiver = receiver
        if sms_sign is not None:
            self.sms_sign = sms_sign
        if sms_sub_account_id is not None:
            self.sms_sub_account_id = sms_sub_account_id
        if sms_template_id is not None:
            self.sms_template_id = sms_template_id
        self.template_code = template_code

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


        :return: The channel_type of this SendRcsRequest.  # noqa: E501
        :rtype: str
        """
        return self._channel_type

    @channel_type.setter
    def channel_type(self, channel_type):
        """Sets the channel_type of this SendRcsRequest.


        :param channel_type: The channel_type of this SendRcsRequest.  # noqa: E501
        :type: str
        """
        allowed_values = ["RCS"]  # noqa: E501
        if (self._configuration.client_side_validation and
                channel_type not in allowed_values):
            raise ValueError(
                "Invalid value for `channel_type` ({0}), must be one of {1}"  # noqa: E501
                .format(channel_type, allowed_values)
            )

        self._channel_type = channel_type

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


        :return: The chatbot_id of this SendRcsRequest.  # noqa: E501
        :rtype: str
        """
        return self._chatbot_id

    @chatbot_id.setter
    def chatbot_id(self, chatbot_id):
        """Sets the chatbot_id of this SendRcsRequest.


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

        self._chatbot_id = chatbot_id

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


        :return: The failback_flag of this SendRcsRequest.  # noqa: E501
        :rtype: bool
        """
        return self._failback_flag

    @failback_flag.setter
    def failback_flag(self, failback_flag):
        """Sets the failback_flag of this SendRcsRequest.


        :param failback_flag: The failback_flag of this SendRcsRequest.  # noqa: E501
        :type: bool
        """

        self._failback_flag = failback_flag

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


        :return: The message_type of this SendRcsRequest.  # noqa: E501
        :rtype: str
        """
        return self._message_type

    @message_type.setter
    def message_type(self, message_type):
        """Sets the message_type of this SendRcsRequest.


        :param message_type: The message_type of this SendRcsRequest.  # noqa: E501
        :type: str
        """
        allowed_values = ["TEMPLATE"]  # noqa: E501
        if (self._configuration.client_side_validation and
                message_type not in allowed_values):
            raise ValueError(
                "Invalid value for `message_type` ({0}), must be one of {1}"  # noqa: E501
                .format(message_type, allowed_values)
            )

        self._message_type = message_type

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


        :return: The params of this SendRcsRequest.  # noqa: E501
        :rtype: str
        """
        return self._params

    @params.setter
    def params(self, params):
        """Sets the params of this SendRcsRequest.


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

        self._params = params

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


        :return: The receiver of this SendRcsRequest.  # noqa: E501
        :rtype: str
        """
        return self._receiver

    @receiver.setter
    def receiver(self, receiver):
        """Sets the receiver of this SendRcsRequest.


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

        self._receiver = receiver

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


        :return: The sms_sign of this SendRcsRequest.  # noqa: E501
        :rtype: str
        """
        return self._sms_sign

    @sms_sign.setter
    def sms_sign(self, sms_sign):
        """Sets the sms_sign of this SendRcsRequest.


        :param sms_sign: The sms_sign of this SendRcsRequest.  # noqa: E501
        :type: str
        """

        self._sms_sign = sms_sign

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


        :return: The sms_sub_account_id of this SendRcsRequest.  # noqa: E501
        :rtype: str
        """
        return self._sms_sub_account_id

    @sms_sub_account_id.setter
    def sms_sub_account_id(self, sms_sub_account_id):
        """Sets the sms_sub_account_id of this SendRcsRequest.


        :param sms_sub_account_id: The sms_sub_account_id of this SendRcsRequest.  # noqa: E501
        :type: str
        """

        self._sms_sub_account_id = sms_sub_account_id

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


        :return: The sms_template_id of this SendRcsRequest.  # noqa: E501
        :rtype: str
        """
        return self._sms_template_id

    @sms_template_id.setter
    def sms_template_id(self, sms_template_id):
        """Sets the sms_template_id of this SendRcsRequest.


        :param sms_template_id: The sms_template_id of this SendRcsRequest.  # noqa: E501
        :type: str
        """

        self._sms_template_id = sms_template_id

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


        :return: The template_code of this SendRcsRequest.  # noqa: E501
        :rtype: str
        """
        return self._template_code

    @template_code.setter
    def template_code(self, template_code):
        """Sets the template_code of this SendRcsRequest.


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

        self._template_code = template_code

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

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