# 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 TapiConnectivityGetconnectiondetailsOutput(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
        """TapiConnectivityGetconnectiondetailsOutput - a model defined in Swagger

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

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

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

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

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


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

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


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

        self._connection = connection
