# coding: utf-8

"""
    MEC Sandbox API

    The MEC Sandbox API described using OpenAPI  # noqa: E501

    OpenAPI spec version: 0.0.9
    Contact: cti_support@etsi.org
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

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

    Do not edit the class manually.
    """
    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'id': 'str',
        'name': 'str',
        'type': 'str',
        'net_char': 'NetworkCharacteristics',
        'inter_zone_latency': 'int',
        'inter_zone_latency_variation': 'int',
        'inter_zone_throughput': 'int',
        'inter_zone_packet_loss': 'float',
        'meta': 'dict(str, str)',
        'user_meta': 'dict(str, str)',
        'cellular_domain_config': 'CellularDomainConfig',
        'zones': 'list[Zone]'
    }

    attribute_map = {
        'id': 'id',
        'name': 'name',
        'type': 'type',
        'net_char': 'netChar',
        'inter_zone_latency': 'interZoneLatency',
        'inter_zone_latency_variation': 'interZoneLatencyVariation',
        'inter_zone_throughput': 'interZoneThroughput',
        'inter_zone_packet_loss': 'interZonePacketLoss',
        'meta': 'meta',
        'user_meta': 'userMeta',
        'cellular_domain_config': 'cellularDomainConfig',
        'zones': 'zones'
    }

    def __init__(self, id=None, name=None, type=None, net_char=None, inter_zone_latency=None, inter_zone_latency_variation=None, inter_zone_throughput=None, inter_zone_packet_loss=None, meta=None, user_meta=None, cellular_domain_config=None, zones=None):  # noqa: E501
        """Domain - a model defined in Swagger"""  # noqa: E501
        self._id = None
        self._name = None
        self._type = None
        self._net_char = None
        self._inter_zone_latency = None
        self._inter_zone_latency_variation = None
        self._inter_zone_throughput = None
        self._inter_zone_packet_loss = None
        self._meta = None
        self._user_meta = None
        self._cellular_domain_config = None
        self._zones = None
        self.discriminator = None
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if type is not None:
            self.type = type
        if net_char is not None:
            self.net_char = net_char
        if inter_zone_latency is not None:
            self.inter_zone_latency = inter_zone_latency
        if inter_zone_latency_variation is not None:
            self.inter_zone_latency_variation = inter_zone_latency_variation
        if inter_zone_throughput is not None:
            self.inter_zone_throughput = inter_zone_throughput
        if inter_zone_packet_loss is not None:
            self.inter_zone_packet_loss = inter_zone_packet_loss
        if meta is not None:
            self.meta = meta
        if user_meta is not None:
            self.user_meta = user_meta
        if cellular_domain_config is not None:
            self.cellular_domain_config = cellular_domain_config
        if zones is not None:
            self.zones = zones

    @property
    def id(self):
        """Gets the id of this Domain.  # noqa: E501

        Unique domain ID  # noqa: E501

        :return: The id of this Domain.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this Domain.

        Unique domain ID  # noqa: E501

        :param id: The id of this Domain.  # noqa: E501
        :type: str
        """

        self._id = id

    @property
    def name(self):
        """Gets the name of this Domain.  # noqa: E501

        Domain name  # noqa: E501

        :return: The name of this Domain.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this Domain.

        Domain name  # noqa: E501

        :param name: The name of this Domain.  # noqa: E501
        :type: str
        """

        self._name = name

    @property
    def type(self):
        """Gets the type of this Domain.  # noqa: E501

        Domain type  # noqa: E501

        :return: The type of this Domain.  # noqa: E501
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this Domain.

        Domain type  # noqa: E501

        :param type: The type of this Domain.  # noqa: E501
        :type: str
        """
        allowed_values = ["OPERATOR", "OPERATOR-CELLULAR", "PUBLIC"]  # noqa: E501
        if type not in allowed_values:
            raise ValueError(
                "Invalid value for `type` ({0}), must be one of {1}"  # noqa: E501
                .format(type, allowed_values)
            )

        self._type = type

    @property
    def net_char(self):
        """Gets the net_char of this Domain.  # noqa: E501


        :return: The net_char of this Domain.  # noqa: E501
        :rtype: NetworkCharacteristics
        """
        return self._net_char

    @net_char.setter
    def net_char(self, net_char):
        """Sets the net_char of this Domain.


        :param net_char: The net_char of this Domain.  # noqa: E501
        :type: NetworkCharacteristics
        """

        self._net_char = net_char

    @property
    def inter_zone_latency(self):
        """Gets the inter_zone_latency of this Domain.  # noqa: E501

        **DEPRECATED** As of release 1.5.0, replaced by netChar latency  # noqa: E501

        :return: The inter_zone_latency of this Domain.  # noqa: E501
        :rtype: int
        """
        return self._inter_zone_latency

    @inter_zone_latency.setter
    def inter_zone_latency(self, inter_zone_latency):
        """Sets the inter_zone_latency of this Domain.

        **DEPRECATED** As of release 1.5.0, replaced by netChar latency  # noqa: E501

        :param inter_zone_latency: The inter_zone_latency of this Domain.  # noqa: E501
        :type: int
        """

        self._inter_zone_latency = inter_zone_latency

    @property
    def inter_zone_latency_variation(self):
        """Gets the inter_zone_latency_variation of this Domain.  # noqa: E501

        **DEPRECATED** As of release 1.5.0, replaced by netChar latencyVariation  # noqa: E501

        :return: The inter_zone_latency_variation of this Domain.  # noqa: E501
        :rtype: int
        """
        return self._inter_zone_latency_variation

    @inter_zone_latency_variation.setter
    def inter_zone_latency_variation(self, inter_zone_latency_variation):
        """Sets the inter_zone_latency_variation of this Domain.

        **DEPRECATED** As of release 1.5.0, replaced by netChar latencyVariation  # noqa: E501

        :param inter_zone_latency_variation: The inter_zone_latency_variation of this Domain.  # noqa: E501
        :type: int
        """

        self._inter_zone_latency_variation = inter_zone_latency_variation

    @property
    def inter_zone_throughput(self):
        """Gets the inter_zone_throughput of this Domain.  # noqa: E501

        **DEPRECATED** As of release 1.5.0, replaced by netChar throughputUl and throughputDl  # noqa: E501

        :return: The inter_zone_throughput of this Domain.  # noqa: E501
        :rtype: int
        """
        return self._inter_zone_throughput

    @inter_zone_throughput.setter
    def inter_zone_throughput(self, inter_zone_throughput):
        """Sets the inter_zone_throughput of this Domain.

        **DEPRECATED** As of release 1.5.0, replaced by netChar throughputUl and throughputDl  # noqa: E501

        :param inter_zone_throughput: The inter_zone_throughput of this Domain.  # noqa: E501
        :type: int
        """

        self._inter_zone_throughput = inter_zone_throughput

    @property
    def inter_zone_packet_loss(self):
        """Gets the inter_zone_packet_loss of this Domain.  # noqa: E501

        **DEPRECATED** As of release 1.5.0, replaced by netChar packetLoss  # noqa: E501

        :return: The inter_zone_packet_loss of this Domain.  # noqa: E501
        :rtype: float
        """
        return self._inter_zone_packet_loss

    @inter_zone_packet_loss.setter
    def inter_zone_packet_loss(self, inter_zone_packet_loss):
        """Sets the inter_zone_packet_loss of this Domain.

        **DEPRECATED** As of release 1.5.0, replaced by netChar packetLoss  # noqa: E501

        :param inter_zone_packet_loss: The inter_zone_packet_loss of this Domain.  # noqa: E501
        :type: float
        """

        self._inter_zone_packet_loss = inter_zone_packet_loss

    @property
    def meta(self):
        """Gets the meta of this Domain.  # noqa: E501

        Key/Value Pair Map (string, string)  # noqa: E501

        :return: The meta of this Domain.  # noqa: E501
        :rtype: dict(str, str)
        """
        return self._meta

    @meta.setter
    def meta(self, meta):
        """Sets the meta of this Domain.

        Key/Value Pair Map (string, string)  # noqa: E501

        :param meta: The meta of this Domain.  # noqa: E501
        :type: dict(str, str)
        """

        self._meta = meta

    @property
    def user_meta(self):
        """Gets the user_meta of this Domain.  # noqa: E501

        Key/Value Pair Map (string, string)  # noqa: E501

        :return: The user_meta of this Domain.  # noqa: E501
        :rtype: dict(str, str)
        """
        return self._user_meta

    @user_meta.setter
    def user_meta(self, user_meta):
        """Sets the user_meta of this Domain.

        Key/Value Pair Map (string, string)  # noqa: E501

        :param user_meta: The user_meta of this Domain.  # noqa: E501
        :type: dict(str, str)
        """

        self._user_meta = user_meta

    @property
    def cellular_domain_config(self):
        """Gets the cellular_domain_config of this Domain.  # noqa: E501


        :return: The cellular_domain_config of this Domain.  # noqa: E501
        :rtype: CellularDomainConfig
        """
        return self._cellular_domain_config

    @cellular_domain_config.setter
    def cellular_domain_config(self, cellular_domain_config):
        """Sets the cellular_domain_config of this Domain.


        :param cellular_domain_config: The cellular_domain_config of this Domain.  # noqa: E501
        :type: CellularDomainConfig
        """

        self._cellular_domain_config = cellular_domain_config

    @property
    def zones(self):
        """Gets the zones of this Domain.  # noqa: E501


        :return: The zones of this Domain.  # noqa: E501
        :rtype: list[Zone]
        """
        return self._zones

    @zones.setter
    def zones(self, zones):
        """Sets the zones of this Domain.


        :param zones: The zones of this Domain.  # noqa: E501
        :type: list[Zone]
        """

        self._zones = zones

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(Domain, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, Domain):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
