# 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_lifecycle_state import TapiCommonLifecycleState  # noqa: F401,E501
from tapi_server.models.tapi_common_operational_state import TapiCommonOperationalState  # noqa: F401,E501
from tapi_server import util


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

    Do not edit the class manually.
    """
    def __init__(self, operational_state: TapiCommonOperationalState=None, lifecycle_state: TapiCommonLifecycleState=None):  # noqa: E501
        """TapiCommonOperationalStatePac - a model defined in Swagger

        :param operational_state: The operational_state of this TapiCommonOperationalStatePac.  # noqa: E501
        :type operational_state: TapiCommonOperationalState
        :param lifecycle_state: The lifecycle_state of this TapiCommonOperationalStatePac.  # noqa: E501
        :type lifecycle_state: TapiCommonLifecycleState
        """
        self.swagger_types = {
            'operational_state': TapiCommonOperationalState,
            'lifecycle_state': TapiCommonLifecycleState
        }

        self.attribute_map = {
            'operational_state': 'operational-state',
            'lifecycle_state': 'lifecycle-state'
        }
        self._operational_state = operational_state
        self._lifecycle_state = lifecycle_state

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

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

    @property
    def operational_state(self) -> TapiCommonOperationalState:
        """Gets the operational_state of this TapiCommonOperationalStatePac.


        :return: The operational_state of this TapiCommonOperationalStatePac.
        :rtype: TapiCommonOperationalState
        """
        return self._operational_state

    @operational_state.setter
    def operational_state(self, operational_state: TapiCommonOperationalState):
        """Sets the operational_state of this TapiCommonOperationalStatePac.


        :param operational_state: The operational_state of this TapiCommonOperationalStatePac.
        :type operational_state: TapiCommonOperationalState
        """

        self._operational_state = operational_state

    @property
    def lifecycle_state(self) -> TapiCommonLifecycleState:
        """Gets the lifecycle_state of this TapiCommonOperationalStatePac.


        :return: The lifecycle_state of this TapiCommonOperationalStatePac.
        :rtype: TapiCommonLifecycleState
        """
        return self._lifecycle_state

    @lifecycle_state.setter
    def lifecycle_state(self, lifecycle_state: TapiCommonLifecycleState):
        """Sets the lifecycle_state of this TapiCommonOperationalStatePac.


        :param lifecycle_state: The lifecycle_state of this TapiCommonOperationalStatePac.
        :type lifecycle_state: TapiCommonLifecycleState
        """

        self._lifecycle_state = lifecycle_state
