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


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

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

        :param service: The service of this TapiPathComputationOptimizep2ppathOutput.  # noqa: E501
        :type service: TapiPathComputationPathComputationService
        """
        self.swagger_types = {
            'service': TapiPathComputationPathComputationService
        }

        self.attribute_map = {
            'service': 'service'
        }
        self._service = service

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

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

    @property
    def service(self) -> TapiPathComputationPathComputationService:
        """Gets the service of this TapiPathComputationOptimizep2ppathOutput.


        :return: The service of this TapiPathComputationOptimizep2ppathOutput.
        :rtype: TapiPathComputationPathComputationService
        """
        return self._service

    @service.setter
    def service(self, service: TapiPathComputationPathComputationService):
        """Sets the service of this TapiPathComputationOptimizep2ppathOutput.


        :param service: The service of this TapiPathComputationOptimizep2ppathOutput.
        :type service: TapiPathComputationPathComputationService
        """

        self._service = service
