# 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_common_name_and_value import TapiCommonNameAndValue  # noqa: F401,E501
from tapi_server import util


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

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

        :param name: The name of this TapiCommonNameAndValueWrapper.  # noqa: E501
        :type name: TapiCommonNameAndValue
        """
        self.swagger_types = {
            'name': TapiCommonNameAndValue
        }

        self.attribute_map = {
            'name': 'name'
        }
        self._name = name

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

        :param dikt: A dict.
        :type: dict
        :return: The tapi.common.NameAndValueWrapper of this TapiCommonNameAndValueWrapper.  # noqa: E501
        :rtype: TapiCommonNameAndValueWrapper
        """
        return util.deserialize_model(dikt, cls)

    @property
    def name(self) -> TapiCommonNameAndValue:
        """Gets the name of this TapiCommonNameAndValueWrapper.


        :return: The name of this TapiCommonNameAndValueWrapper.
        :rtype: TapiCommonNameAndValue
        """
        return self._name

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


        :param name: The name of this TapiCommonNameAndValueWrapper.
        :type name: TapiCommonNameAndValue
        """

        self._name = name
