# coding: utf-8

"""
    vms

    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 PhoneListForBatchAppendInput(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 = {
        'ext': 'str',
        'phone': 'str',
        'phone_param_json': 'str',
        'sms_param_json': 'str',
        'tts_content': 'str'
    }

    attribute_map = {
        'ext': 'Ext',
        'phone': 'Phone',
        'phone_param_json': 'PhoneParamJson',
        'sms_param_json': 'SmsParamJson',
        'tts_content': 'TtsContent'
    }

    def __init__(self, ext=None, phone=None, phone_param_json=None, sms_param_json=None, tts_content=None, _configuration=None):  # noqa: E501
        """PhoneListForBatchAppendInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._ext = None
        self._phone = None
        self._phone_param_json = None
        self._sms_param_json = None
        self._tts_content = None
        self.discriminator = None

        if ext is not None:
            self.ext = ext
        if phone is not None:
            self.phone = phone
        if phone_param_json is not None:
            self.phone_param_json = phone_param_json
        if sms_param_json is not None:
            self.sms_param_json = sms_param_json
        if tts_content is not None:
            self.tts_content = tts_content

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


        :return: The ext of this PhoneListForBatchAppendInput.  # noqa: E501
        :rtype: str
        """
        return self._ext

    @ext.setter
    def ext(self, ext):
        """Sets the ext of this PhoneListForBatchAppendInput.


        :param ext: The ext of this PhoneListForBatchAppendInput.  # noqa: E501
        :type: str
        """
        if (self._configuration.client_side_validation and
                ext is not None and len(ext) > 255):
            raise ValueError("Invalid value for `ext`, length must be less than or equal to `255`")  # noqa: E501

        self._ext = ext

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


        :return: The phone of this PhoneListForBatchAppendInput.  # noqa: E501
        :rtype: str
        """
        return self._phone

    @phone.setter
    def phone(self, phone):
        """Sets the phone of this PhoneListForBatchAppendInput.


        :param phone: The phone of this PhoneListForBatchAppendInput.  # noqa: E501
        :type: str
        """

        self._phone = phone

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


        :return: The phone_param_json of this PhoneListForBatchAppendInput.  # noqa: E501
        :rtype: str
        """
        return self._phone_param_json

    @phone_param_json.setter
    def phone_param_json(self, phone_param_json):
        """Sets the phone_param_json of this PhoneListForBatchAppendInput.


        :param phone_param_json: The phone_param_json of this PhoneListForBatchAppendInput.  # noqa: E501
        :type: str
        """

        self._phone_param_json = phone_param_json

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


        :return: The sms_param_json of this PhoneListForBatchAppendInput.  # noqa: E501
        :rtype: str
        """
        return self._sms_param_json

    @sms_param_json.setter
    def sms_param_json(self, sms_param_json):
        """Sets the sms_param_json of this PhoneListForBatchAppendInput.


        :param sms_param_json: The sms_param_json of this PhoneListForBatchAppendInput.  # noqa: E501
        :type: str
        """

        self._sms_param_json = sms_param_json

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


        :return: The tts_content of this PhoneListForBatchAppendInput.  # noqa: E501
        :rtype: str
        """
        return self._tts_content

    @tts_content.setter
    def tts_content(self, tts_content):
        """Sets the tts_content of this PhoneListForBatchAppendInput.


        :param tts_content: The tts_content of this PhoneListForBatchAppendInput.  # noqa: E501
        :type: str
        """

        self._tts_content = tts_content

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

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