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


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

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

        :param schedule: The schedule of this TapiCommonTimeRangeWrapper.  # noqa: E501
        :type schedule: TapiCommonTimeRange
        """
        self.swagger_types = {
            'schedule': TapiCommonTimeRange
        }

        self.attribute_map = {
            'schedule': 'schedule'
        }
        self._schedule = schedule

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

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

    @property
    def schedule(self) -> TapiCommonTimeRange:
        """Gets the schedule of this TapiCommonTimeRangeWrapper.


        :return: The schedule of this TapiCommonTimeRangeWrapper.
        :rtype: TapiCommonTimeRange
        """
        return self._schedule

    @schedule.setter
    def schedule(self, schedule: TapiCommonTimeRange):
        """Sets the schedule of this TapiCommonTimeRangeWrapper.


        :param schedule: The schedule of this TapiCommonTimeRangeWrapper.
        :type schedule: TapiCommonTimeRange
        """

        self._schedule = schedule
