# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from tapi_server.models.base_model_ import Model
from tapi_server.models.tapi_connectivity_connection import TapiConnectivityConnection  # noqa: F401,E501
from tapi_server import util


class TapiConnectivityConnectionWrapper(Model):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """
    def __init__(self, connection: TapiConnectivityConnection=None):  # noqa: E501
        """TapiConnectivityConnectionWrapper - a model defined in Swagger

        :param connection: The connection of this TapiConnectivityConnectionWrapper.  # noqa: E501
        :type connection: TapiConnectivityConnection
        """
        self.swagger_types = {
            'connection': TapiConnectivityConnection
        }

        self.attribute_map = {
            'connection': 'connection'
        }
        self._connection = connection

    @classmethod
    def from_dict(cls, dikt) -> 'TapiConnectivityConnectionWrapper':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The tapi.connectivity.ConnectionWrapper of this TapiConnectivityConnectionWrapper.  # noqa: E501
        :rtype: TapiConnectivityConnectionWrapper
        """
        return util.deserialize_model(dikt, cls)

    @property
    def connection(self) -> TapiConnectivityConnection:
        """Gets the connection of this TapiConnectivityConnectionWrapper.


        :return: The connection of this TapiConnectivityConnectionWrapper.
        :rtype: TapiConnectivityConnection
        """
        return self._connection

    @connection.setter
    def connection(self, connection: TapiConnectivityConnection):
        """Sets the connection of this TapiConnectivityConnectionWrapper.


        :param connection: The connection of this TapiConnectivityConnectionWrapper.
        :type connection: TapiConnectivityConnection
        """

        self._connection = connection
