# coding: utf-8

"""
    id

    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 CreateFaasServiceRequest(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 = {
        'function_id': 'str',
        'function_type': 'str',
        'trigger_name': 'str',
        'user_pool_uid': 'str'
    }

    attribute_map = {
        'function_id': 'FunctionId',
        'function_type': 'FunctionType',
        'trigger_name': 'TriggerName',
        'user_pool_uid': 'UserPoolUid'
    }

    def __init__(self, function_id=None, function_type=None, trigger_name=None, user_pool_uid=None, _configuration=None):  # noqa: E501
        """CreateFaasServiceRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._function_id = None
        self._function_type = None
        self._trigger_name = None
        self._user_pool_uid = None
        self.discriminator = None

        self.function_id = function_id
        self.function_type = function_type
        self.trigger_name = trigger_name
        self.user_pool_uid = user_pool_uid

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


        :return: The function_id of this CreateFaasServiceRequest.  # noqa: E501
        :rtype: str
        """
        return self._function_id

    @function_id.setter
    def function_id(self, function_id):
        """Sets the function_id of this CreateFaasServiceRequest.


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

        self._function_id = function_id

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


        :return: The function_type of this CreateFaasServiceRequest.  # noqa: E501
        :rtype: str
        """
        return self._function_type

    @function_type.setter
    def function_type(self, function_type):
        """Sets the function_type of this CreateFaasServiceRequest.


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

        self._function_type = function_type

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


        :return: The trigger_name of this CreateFaasServiceRequest.  # noqa: E501
        :rtype: str
        """
        return self._trigger_name

    @trigger_name.setter
    def trigger_name(self, trigger_name):
        """Sets the trigger_name of this CreateFaasServiceRequest.


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

        self._trigger_name = trigger_name

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


        :return: The user_pool_uid of this CreateFaasServiceRequest.  # noqa: E501
        :rtype: str
        """
        return self._user_pool_uid

    @user_pool_uid.setter
    def user_pool_uid(self, user_pool_uid):
        """Sets the user_pool_uid of this CreateFaasServiceRequest.


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

        self._user_pool_uid = user_pool_uid

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

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