# 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 UpgradeAXToAXBRequest(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 = {
        'call_display_type': 'int',
        'number_pool_no': 'str',
        'out_id': 'str',
        'phone_no_b': 'str',
        'sub_id': 'str',
        'user_data': 'str'
    }

    attribute_map = {
        'call_display_type': 'CallDisplayType',
        'number_pool_no': 'NumberPoolNo',
        'out_id': 'OutId',
        'phone_no_b': 'PhoneNoB',
        'sub_id': 'SubId',
        'user_data': 'UserData'
    }

    def __init__(self, call_display_type=None, number_pool_no=None, out_id=None, phone_no_b=None, sub_id=None, user_data=None, _configuration=None):  # noqa: E501
        """UpgradeAXToAXBRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._call_display_type = None
        self._number_pool_no = None
        self._out_id = None
        self._phone_no_b = None
        self._sub_id = None
        self._user_data = None
        self.discriminator = None

        if call_display_type is not None:
            self.call_display_type = call_display_type
        self.number_pool_no = number_pool_no
        if out_id is not None:
            self.out_id = out_id
        self.phone_no_b = phone_no_b
        self.sub_id = sub_id
        if user_data is not None:
            self.user_data = user_data

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


        :return: The call_display_type of this UpgradeAXToAXBRequest.  # noqa: E501
        :rtype: int
        """
        return self._call_display_type

    @call_display_type.setter
    def call_display_type(self, call_display_type):
        """Sets the call_display_type of this UpgradeAXToAXBRequest.


        :param call_display_type: The call_display_type of this UpgradeAXToAXBRequest.  # noqa: E501
        :type: int
        """

        self._call_display_type = call_display_type

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


        :return: The number_pool_no of this UpgradeAXToAXBRequest.  # noqa: E501
        :rtype: str
        """
        return self._number_pool_no

    @number_pool_no.setter
    def number_pool_no(self, number_pool_no):
        """Sets the number_pool_no of this UpgradeAXToAXBRequest.


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

        self._number_pool_no = number_pool_no

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


        :return: The out_id of this UpgradeAXToAXBRequest.  # noqa: E501
        :rtype: str
        """
        return self._out_id

    @out_id.setter
    def out_id(self, out_id):
        """Sets the out_id of this UpgradeAXToAXBRequest.


        :param out_id: The out_id of this UpgradeAXToAXBRequest.  # noqa: E501
        :type: str
        """

        self._out_id = out_id

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


        :return: The phone_no_b of this UpgradeAXToAXBRequest.  # noqa: E501
        :rtype: str
        """
        return self._phone_no_b

    @phone_no_b.setter
    def phone_no_b(self, phone_no_b):
        """Sets the phone_no_b of this UpgradeAXToAXBRequest.


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

        self._phone_no_b = phone_no_b

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


        :return: The sub_id of this UpgradeAXToAXBRequest.  # noqa: E501
        :rtype: str
        """
        return self._sub_id

    @sub_id.setter
    def sub_id(self, sub_id):
        """Sets the sub_id of this UpgradeAXToAXBRequest.


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

        self._sub_id = sub_id

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


        :return: The user_data of this UpgradeAXToAXBRequest.  # noqa: E501
        :rtype: str
        """
        return self._user_data

    @user_data.setter
    def user_data(self, user_data):
        """Sets the user_data of this UpgradeAXToAXBRequest.


        :param user_data: The user_data of this UpgradeAXToAXBRequest.  # noqa: E501
        :type: str
        """

        self._user_data = user_data

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

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