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


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

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

        :param max_allowed_cost: The max_allowed_cost of this TapiPathComputationValueOrPriorityWrapper.  # noqa: E501
        :type max_allowed_cost: TapiPathComputationValueOrPriority
        """
        self.swagger_types = {
            'max_allowed_cost': TapiPathComputationValueOrPriority
        }

        self.attribute_map = {
            'max_allowed_cost': 'max-allowed-cost'
        }
        self._max_allowed_cost = max_allowed_cost

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

        :param dikt: A dict.
        :type: dict
        :return: The tapi.path.computation.ValueOrPriorityWrapper of this TapiPathComputationValueOrPriorityWrapper.  # noqa: E501
        :rtype: TapiPathComputationValueOrPriorityWrapper
        """
        return util.deserialize_model(dikt, cls)

    @property
    def max_allowed_cost(self) -> TapiPathComputationValueOrPriority:
        """Gets the max_allowed_cost of this TapiPathComputationValueOrPriorityWrapper.


        :return: The max_allowed_cost of this TapiPathComputationValueOrPriorityWrapper.
        :rtype: TapiPathComputationValueOrPriority
        """
        return self._max_allowed_cost

    @max_allowed_cost.setter
    def max_allowed_cost(self, max_allowed_cost: TapiPathComputationValueOrPriority):
        """Sets the max_allowed_cost of this TapiPathComputationValueOrPriorityWrapper.


        :param max_allowed_cost: The max_allowed_cost of this TapiPathComputationValueOrPriorityWrapper.
        :type max_allowed_cost: TapiPathComputationValueOrPriority
        """

        self._max_allowed_cost = max_allowed_cost
