# coding: utf-8

"""
    apig

    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 UpdateGatewayServiceRequest(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 = {
        'auth_spec': 'AuthSpecForUpdateGatewayServiceInput',
        'comments': 'str',
        'domain_spec': 'DomainSpecForUpdateGatewayServiceInput',
        'id': 'str',
        'protocol': 'list[str]',
        'service_network_spec': 'ServiceNetworkSpecForUpdateGatewayServiceInput'
    }

    attribute_map = {
        'auth_spec': 'AuthSpec',
        'comments': 'Comments',
        'domain_spec': 'DomainSpec',
        'id': 'Id',
        'protocol': 'Protocol',
        'service_network_spec': 'ServiceNetworkSpec'
    }

    def __init__(self, auth_spec=None, comments=None, domain_spec=None, id=None, protocol=None, service_network_spec=None, _configuration=None):  # noqa: E501
        """UpdateGatewayServiceRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._auth_spec = None
        self._comments = None
        self._domain_spec = None
        self._id = None
        self._protocol = None
        self._service_network_spec = None
        self.discriminator = None

        if auth_spec is not None:
            self.auth_spec = auth_spec
        if comments is not None:
            self.comments = comments
        if domain_spec is not None:
            self.domain_spec = domain_spec
        self.id = id
        if protocol is not None:
            self.protocol = protocol
        if service_network_spec is not None:
            self.service_network_spec = service_network_spec

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


        :return: The auth_spec of this UpdateGatewayServiceRequest.  # noqa: E501
        :rtype: AuthSpecForUpdateGatewayServiceInput
        """
        return self._auth_spec

    @auth_spec.setter
    def auth_spec(self, auth_spec):
        """Sets the auth_spec of this UpdateGatewayServiceRequest.


        :param auth_spec: The auth_spec of this UpdateGatewayServiceRequest.  # noqa: E501
        :type: AuthSpecForUpdateGatewayServiceInput
        """

        self._auth_spec = auth_spec

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


        :return: The comments of this UpdateGatewayServiceRequest.  # noqa: E501
        :rtype: str
        """
        return self._comments

    @comments.setter
    def comments(self, comments):
        """Sets the comments of this UpdateGatewayServiceRequest.


        :param comments: The comments of this UpdateGatewayServiceRequest.  # noqa: E501
        :type: str
        """

        self._comments = comments

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


        :return: The domain_spec of this UpdateGatewayServiceRequest.  # noqa: E501
        :rtype: DomainSpecForUpdateGatewayServiceInput
        """
        return self._domain_spec

    @domain_spec.setter
    def domain_spec(self, domain_spec):
        """Sets the domain_spec of this UpdateGatewayServiceRequest.


        :param domain_spec: The domain_spec of this UpdateGatewayServiceRequest.  # noqa: E501
        :type: DomainSpecForUpdateGatewayServiceInput
        """

        self._domain_spec = domain_spec

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


        :return: The id of this UpdateGatewayServiceRequest.  # noqa: E501
        :rtype: str
        """
        return self._id

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


        :param id: The id of this UpdateGatewayServiceRequest.  # noqa: E501
        :type: str
        """
        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 protocol(self):
        """Gets the protocol of this UpdateGatewayServiceRequest.  # noqa: E501


        :return: The protocol of this UpdateGatewayServiceRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._protocol

    @protocol.setter
    def protocol(self, protocol):
        """Sets the protocol of this UpdateGatewayServiceRequest.


        :param protocol: The protocol of this UpdateGatewayServiceRequest.  # noqa: E501
        :type: list[str]
        """

        self._protocol = protocol

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


        :return: The service_network_spec of this UpdateGatewayServiceRequest.  # noqa: E501
        :rtype: ServiceNetworkSpecForUpdateGatewayServiceInput
        """
        return self._service_network_spec

    @service_network_spec.setter
    def service_network_spec(self, service_network_spec):
        """Sets the service_network_spec of this UpdateGatewayServiceRequest.


        :param service_network_spec: The service_network_spec of this UpdateGatewayServiceRequest.  # noqa: E501
        :type: ServiceNetworkSpecForUpdateGatewayServiceInput
        """

        self._service_network_spec = service_network_spec

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

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