# coding: utf-8

"""
    alb

    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 DescribeServerGroupAttributesResponse(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 = {
        'cross_zone_enabled': 'str',
        'description': 'str',
        'health_check': 'HealthCheckForDescribeServerGroupAttributesOutput',
        'ip_address_type': 'str',
        'listeners': 'list[str]',
        'project_name': 'str',
        'protocol': 'str',
        'request_id': 'str',
        'scheduler': 'str',
        'server_group_id': 'str',
        'server_group_name': 'str',
        'server_group_type': 'str',
        'servers': 'list[ServerForDescribeServerGroupAttributesOutput]',
        'status': 'str',
        'sticky_session_config': 'StickySessionConfigForDescribeServerGroupAttributesOutput',
        'tags': 'list[TagForDescribeServerGroupAttributesOutput]',
        'vpc_id': 'str'
    }

    attribute_map = {
        'cross_zone_enabled': 'CrossZoneEnabled',
        'description': 'Description',
        'health_check': 'HealthCheck',
        'ip_address_type': 'IpAddressType',
        'listeners': 'Listeners',
        'project_name': 'ProjectName',
        'protocol': 'Protocol',
        'request_id': 'RequestId',
        'scheduler': 'Scheduler',
        'server_group_id': 'ServerGroupId',
        'server_group_name': 'ServerGroupName',
        'server_group_type': 'ServerGroupType',
        'servers': 'Servers',
        'status': 'Status',
        'sticky_session_config': 'StickySessionConfig',
        'tags': 'Tags',
        'vpc_id': 'VpcId'
    }

    def __init__(self, cross_zone_enabled=None, description=None, health_check=None, ip_address_type=None, listeners=None, project_name=None, protocol=None, request_id=None, scheduler=None, server_group_id=None, server_group_name=None, server_group_type=None, servers=None, status=None, sticky_session_config=None, tags=None, vpc_id=None, _configuration=None):  # noqa: E501
        """DescribeServerGroupAttributesResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._cross_zone_enabled = None
        self._description = None
        self._health_check = None
        self._ip_address_type = None
        self._listeners = None
        self._project_name = None
        self._protocol = None
        self._request_id = None
        self._scheduler = None
        self._server_group_id = None
        self._server_group_name = None
        self._server_group_type = None
        self._servers = None
        self._status = None
        self._sticky_session_config = None
        self._tags = None
        self._vpc_id = None
        self.discriminator = None

        if cross_zone_enabled is not None:
            self.cross_zone_enabled = cross_zone_enabled
        if description is not None:
            self.description = description
        if health_check is not None:
            self.health_check = health_check
        if ip_address_type is not None:
            self.ip_address_type = ip_address_type
        if listeners is not None:
            self.listeners = listeners
        if project_name is not None:
            self.project_name = project_name
        if protocol is not None:
            self.protocol = protocol
        if request_id is not None:
            self.request_id = request_id
        if scheduler is not None:
            self.scheduler = scheduler
        if server_group_id is not None:
            self.server_group_id = server_group_id
        if server_group_name is not None:
            self.server_group_name = server_group_name
        if server_group_type is not None:
            self.server_group_type = server_group_type
        if servers is not None:
            self.servers = servers
        if status is not None:
            self.status = status
        if sticky_session_config is not None:
            self.sticky_session_config = sticky_session_config
        if tags is not None:
            self.tags = tags
        if vpc_id is not None:
            self.vpc_id = vpc_id

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


        :return: The cross_zone_enabled of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: str
        """
        return self._cross_zone_enabled

    @cross_zone_enabled.setter
    def cross_zone_enabled(self, cross_zone_enabled):
        """Sets the cross_zone_enabled of this DescribeServerGroupAttributesResponse.


        :param cross_zone_enabled: The cross_zone_enabled of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: str
        """

        self._cross_zone_enabled = cross_zone_enabled

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


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

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


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

        self._description = description

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


        :return: The health_check of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: HealthCheckForDescribeServerGroupAttributesOutput
        """
        return self._health_check

    @health_check.setter
    def health_check(self, health_check):
        """Sets the health_check of this DescribeServerGroupAttributesResponse.


        :param health_check: The health_check of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: HealthCheckForDescribeServerGroupAttributesOutput
        """

        self._health_check = health_check

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


        :return: The ip_address_type of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: str
        """
        return self._ip_address_type

    @ip_address_type.setter
    def ip_address_type(self, ip_address_type):
        """Sets the ip_address_type of this DescribeServerGroupAttributesResponse.


        :param ip_address_type: The ip_address_type of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: str
        """

        self._ip_address_type = ip_address_type

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


        :return: The listeners of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: list[str]
        """
        return self._listeners

    @listeners.setter
    def listeners(self, listeners):
        """Sets the listeners of this DescribeServerGroupAttributesResponse.


        :param listeners: The listeners of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: list[str]
        """

        self._listeners = listeners

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


        :return: The project_name of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this DescribeServerGroupAttributesResponse.


        :param project_name: The project_name of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

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


        :return: The protocol of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: str
        """
        return self._protocol

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


        :param protocol: The protocol of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: str
        """

        self._protocol = protocol

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


        :return: The request_id of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: str
        """
        return self._request_id

    @request_id.setter
    def request_id(self, request_id):
        """Sets the request_id of this DescribeServerGroupAttributesResponse.


        :param request_id: The request_id of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: str
        """

        self._request_id = request_id

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


        :return: The scheduler of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: str
        """
        return self._scheduler

    @scheduler.setter
    def scheduler(self, scheduler):
        """Sets the scheduler of this DescribeServerGroupAttributesResponse.


        :param scheduler: The scheduler of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: str
        """

        self._scheduler = scheduler

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


        :return: The server_group_id of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: str
        """
        return self._server_group_id

    @server_group_id.setter
    def server_group_id(self, server_group_id):
        """Sets the server_group_id of this DescribeServerGroupAttributesResponse.


        :param server_group_id: The server_group_id of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: str
        """

        self._server_group_id = server_group_id

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


        :return: The server_group_name of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: str
        """
        return self._server_group_name

    @server_group_name.setter
    def server_group_name(self, server_group_name):
        """Sets the server_group_name of this DescribeServerGroupAttributesResponse.


        :param server_group_name: The server_group_name of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: str
        """

        self._server_group_name = server_group_name

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


        :return: The server_group_type of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: str
        """
        return self._server_group_type

    @server_group_type.setter
    def server_group_type(self, server_group_type):
        """Sets the server_group_type of this DescribeServerGroupAttributesResponse.


        :param server_group_type: The server_group_type of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: str
        """

        self._server_group_type = server_group_type

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


        :return: The servers of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: list[ServerForDescribeServerGroupAttributesOutput]
        """
        return self._servers

    @servers.setter
    def servers(self, servers):
        """Sets the servers of this DescribeServerGroupAttributesResponse.


        :param servers: The servers of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: list[ServerForDescribeServerGroupAttributesOutput]
        """

        self._servers = servers

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


        :return: The status of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this DescribeServerGroupAttributesResponse.


        :param status: The status of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: str
        """

        self._status = status

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


        :return: The sticky_session_config of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: StickySessionConfigForDescribeServerGroupAttributesOutput
        """
        return self._sticky_session_config

    @sticky_session_config.setter
    def sticky_session_config(self, sticky_session_config):
        """Sets the sticky_session_config of this DescribeServerGroupAttributesResponse.


        :param sticky_session_config: The sticky_session_config of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: StickySessionConfigForDescribeServerGroupAttributesOutput
        """

        self._sticky_session_config = sticky_session_config

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


        :return: The tags of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: list[TagForDescribeServerGroupAttributesOutput]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this DescribeServerGroupAttributesResponse.


        :param tags: The tags of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: list[TagForDescribeServerGroupAttributesOutput]
        """

        self._tags = tags

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


        :return: The vpc_id of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :rtype: str
        """
        return self._vpc_id

    @vpc_id.setter
    def vpc_id(self, vpc_id):
        """Sets the vpc_id of this DescribeServerGroupAttributesResponse.


        :param vpc_id: The vpc_id of this DescribeServerGroupAttributesResponse.  # noqa: E501
        :type: str
        """

        self._vpc_id = vpc_id

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

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