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


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

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

        :param available_capacity: The available_capacity of this TapiCommonCapacityWrapper.  # noqa: E501
        :type available_capacity: TapiCommonCapacity
        """
        self.swagger_types = {
            'available_capacity': TapiCommonCapacity
        }

        self.attribute_map = {
            'available_capacity': 'available-capacity'
        }
        self._available_capacity = available_capacity

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

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

    @property
    def available_capacity(self) -> TapiCommonCapacity:
        """Gets the available_capacity of this TapiCommonCapacityWrapper.


        :return: The available_capacity of this TapiCommonCapacityWrapper.
        :rtype: TapiCommonCapacity
        """
        return self._available_capacity

    @available_capacity.setter
    def available_capacity(self, available_capacity: TapiCommonCapacity):
        """Sets the available_capacity of this TapiCommonCapacityWrapper.


        :param available_capacity: The available_capacity of this TapiCommonCapacityWrapper.
        :type available_capacity: TapiCommonCapacity
        """

        self._available_capacity = available_capacity
