# coding: utf-8

"""
    syntropy-controller

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

from syntropy_sdk.models.tsoa_pick_agent_connection_agent_connection_id_ import (  # noqa: F401,E501
    TsoaPickAgentConnectionAgentConnectionId_,
)


class AgentConnectionWithServicesObject(TsoaPickAgentConnectionAgentConnectionId_):
    """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 = {
        "agent_connection_subnets": "list[TsoaPickAgentConnectionSubnetOrAgentConnectionSubnetIdOrAgentServiceSubnetIdOrAgentConnectionSubnetIsEnabledOrAgentConnectionSubnetErrorOrAgentConnectionSubnetStatus_]",
        "agent_2": "AgentConnectionWithServicesAgent",
        "agent_1": "AgentConnectionWithServicesAgent",
    }
    if hasattr(TsoaPickAgentConnectionAgentConnectionId_, "swagger_types"):
        swagger_types.update(TsoaPickAgentConnectionAgentConnectionId_.swagger_types)

    attribute_map = {
        "agent_connection_subnets": "agent_connection_subnets",
        "agent_2": "agent_2",
        "agent_1": "agent_1",
    }
    if hasattr(TsoaPickAgentConnectionAgentConnectionId_, "attribute_map"):
        attribute_map.update(TsoaPickAgentConnectionAgentConnectionId_.attribute_map)

    def __init__(
        self, agent_connection_subnets=None, agent_2=None, agent_1=None, *args, **kwargs
    ):  # noqa: E501
        """AgentConnectionWithServicesObject - a model defined in Swagger"""  # noqa: E501
        self._agent_connection_subnets = None
        self._agent_2 = None
        self._agent_1 = None
        self.discriminator = None
        self.agent_connection_subnets = agent_connection_subnets
        self.agent_2 = agent_2
        self.agent_1 = agent_1
        TsoaPickAgentConnectionAgentConnectionId_.__init__(self, *args, **kwargs)

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


        :return: The agent_connection_subnets of this AgentConnectionWithServicesObject.  # noqa: E501
        :rtype: list[TsoaPickAgentConnectionSubnetOrAgentConnectionSubnetIdOrAgentServiceSubnetIdOrAgentConnectionSubnetIsEnabledOrAgentConnectionSubnetErrorOrAgentConnectionSubnetStatus_]
        """
        return self._agent_connection_subnets

    @agent_connection_subnets.setter
    def agent_connection_subnets(self, agent_connection_subnets):
        """Sets the agent_connection_subnets of this AgentConnectionWithServicesObject.


        :param agent_connection_subnets: The agent_connection_subnets of this AgentConnectionWithServicesObject.  # noqa: E501
        :type: list[TsoaPickAgentConnectionSubnetOrAgentConnectionSubnetIdOrAgentServiceSubnetIdOrAgentConnectionSubnetIsEnabledOrAgentConnectionSubnetErrorOrAgentConnectionSubnetStatus_]
        """
        if agent_connection_subnets is None:
            raise ValueError(
                "Invalid value for `agent_connection_subnets`, must not be `None`"
            )  # noqa: E501

        self._agent_connection_subnets = agent_connection_subnets

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


        :return: The agent_2 of this AgentConnectionWithServicesObject.  # noqa: E501
        :rtype: AgentConnectionWithServicesAgent
        """
        return self._agent_2

    @agent_2.setter
    def agent_2(self, agent_2):
        """Sets the agent_2 of this AgentConnectionWithServicesObject.


        :param agent_2: The agent_2 of this AgentConnectionWithServicesObject.  # noqa: E501
        :type: AgentConnectionWithServicesAgent
        """
        if agent_2 is None:
            raise ValueError(
                "Invalid value for `agent_2`, must not be `None`"
            )  # noqa: E501

        self._agent_2 = agent_2

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


        :return: The agent_1 of this AgentConnectionWithServicesObject.  # noqa: E501
        :rtype: AgentConnectionWithServicesAgent
        """
        return self._agent_1

    @agent_1.setter
    def agent_1(self, agent_1):
        """Sets the agent_1 of this AgentConnectionWithServicesObject.


        :param agent_1: The agent_1 of this AgentConnectionWithServicesObject.  # noqa: E501
        :type: AgentConnectionWithServicesAgent
        """
        if agent_1 is None:
            raise ValueError(
                "Invalid value for `agent_1`, must not be `None`"
            )  # noqa: E501

        self._agent_1 = agent_1

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

        return self.__dict__ == other.__dict__

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