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


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

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

        :param cep_port_role: The cep_port_role of this TapiTopologyPortRoleRuleWrapper.  # noqa: E501
        :type cep_port_role: TapiTopologyPortRoleRule
        """
        self.swagger_types = {
            'cep_port_role': TapiTopologyPortRoleRule
        }

        self.attribute_map = {
            'cep_port_role': 'cep-port-role'
        }
        self._cep_port_role = cep_port_role

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

        :param dikt: A dict.
        :type: dict
        :return: The tapi.topology.PortRoleRuleWrapper of this TapiTopologyPortRoleRuleWrapper.  # noqa: E501
        :rtype: TapiTopologyPortRoleRuleWrapper
        """
        return util.deserialize_model(dikt, cls)

    @property
    def cep_port_role(self) -> TapiTopologyPortRoleRule:
        """Gets the cep_port_role of this TapiTopologyPortRoleRuleWrapper.


        :return: The cep_port_role of this TapiTopologyPortRoleRuleWrapper.
        :rtype: TapiTopologyPortRoleRule
        """
        return self._cep_port_role

    @cep_port_role.setter
    def cep_port_role(self, cep_port_role: TapiTopologyPortRoleRule):
        """Sets the cep_port_role of this TapiTopologyPortRoleRuleWrapper.


        :param cep_port_role: The cep_port_role of this TapiTopologyPortRoleRuleWrapper.
        :type cep_port_role: TapiTopologyPortRoleRule
        """

        self._cep_port_role = cep_port_role
