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


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

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

        :param optimization_constraint: The optimization_constraint of this TapiPathComputationPathOptimizationConstraintWrapper.  # noqa: E501
        :type optimization_constraint: TapiPathComputationPathOptimizationConstraint
        """
        self.swagger_types = {
            'optimization_constraint': TapiPathComputationPathOptimizationConstraint
        }

        self.attribute_map = {
            'optimization_constraint': 'optimization-constraint'
        }
        self._optimization_constraint = optimization_constraint

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

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

    @property
    def optimization_constraint(self) -> TapiPathComputationPathOptimizationConstraint:
        """Gets the optimization_constraint of this TapiPathComputationPathOptimizationConstraintWrapper.


        :return: The optimization_constraint of this TapiPathComputationPathOptimizationConstraintWrapper.
        :rtype: TapiPathComputationPathOptimizationConstraint
        """
        return self._optimization_constraint

    @optimization_constraint.setter
    def optimization_constraint(self, optimization_constraint: TapiPathComputationPathOptimizationConstraint):
        """Sets the optimization_constraint of this TapiPathComputationPathOptimizationConstraintWrapper.


        :param optimization_constraint: The optimization_constraint of this TapiPathComputationPathOptimizationConstraintWrapper.
        :type optimization_constraint: TapiPathComputationPathOptimizationConstraint
        """

        self._optimization_constraint = optimization_constraint
