# coding: utf-8

"""
    XMS API

    XMS is the controller of distributed storage system  # noqa: E501

    OpenAPI spec version: 3.2.14
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401
import six


class FSGatewayGroupUpdateReqGatewayGroup(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 = {
        'description': 'str',
        'encoding': 'str',
        'name': 'str',
        'security': 'str',
        'types': 'list[str]',
        'vip': 'str'
    }

    attribute_map = {
        'description': 'description',
        'encoding': 'encoding',
        'name': 'name',
        'security': 'security',
        'types': 'types',
        'vip': 'vip'
    }

    def __init__(self, description=None, encoding=None, name=None, security=None, types=None, vip=None):  # noqa: E501
        """FSGatewayGroupUpdateReqGatewayGroup - a model defined in Swagger"""  # noqa: E501

        self._description = None
        self._encoding = None
        self._name = None
        self._security = None
        self._types = None
        self._vip = None
        self.discriminator = None

        if description is not None:
            self.description = description
        if encoding is not None:
            self.encoding = encoding
        if name is not None:
            self.name = name
        if security is not None:
            self.security = security
        if types is not None:
            self.types = types
        if vip is not None:
            self.vip = vip

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

        description of gateway group  # noqa: E501

        :return: The description of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this FSGatewayGroupUpdateReqGatewayGroup.

        description of gateway group  # noqa: E501

        :param description: The description of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :type: str
        """

        self._description = description

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

        encoding format, default is utf8  # noqa: E501

        :return: The encoding of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :rtype: str
        """
        return self._encoding

    @encoding.setter
    def encoding(self, encoding):
        """Sets the encoding of this FSGatewayGroupUpdateReqGatewayGroup.

        encoding format, default is utf8  # noqa: E501

        :param encoding: The encoding of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :type: str
        """

        self._encoding = encoding

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

        name of gateway group  # noqa: E501

        :return: The name of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this FSGatewayGroupUpdateReqGatewayGroup.

        name of gateway group  # noqa: E501

        :param name: The name of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :type: str
        """

        self._name = name

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

        security type  # noqa: E501

        :return: The security of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :rtype: str
        """
        return self._security

    @security.setter
    def security(self, security):
        """Sets the security of this FSGatewayGroupUpdateReqGatewayGroup.

        security type  # noqa: E501

        :param security: The security of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :type: str
        """

        self._security = security

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

        types of supported  # noqa: E501

        :return: The types of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :rtype: list[str]
        """
        return self._types

    @types.setter
    def types(self, types):
        """Sets the types of this FSGatewayGroupUpdateReqGatewayGroup.

        types of supported  # noqa: E501

        :param types: The types of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :type: list[str]
        """

        self._types = types

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

        virtual ip of gateway group  # noqa: E501

        :return: The vip of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :rtype: str
        """
        return self._vip

    @vip.setter
    def vip(self, vip):
        """Sets the vip of this FSGatewayGroupUpdateReqGatewayGroup.

        virtual ip of gateway group  # noqa: E501

        :param vip: The vip of this FSGatewayGroupUpdateReqGatewayGroup.  # noqa: E501
        :type: str
        """

        self._vip = vip

    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

        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, FSGatewayGroupUpdateReqGatewayGroup):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
