# 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 NetworkLocation(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',
        'terminal_link_latency': 'int',
        'terminal_link_latency_variation': 'int',
        'terminal_link_throughput': 'int',
        'terminal_link_packet_loss': 'float',
        'meta': 'dict(str, str)',
        'user_meta': 'dict(str, str)',
        'cellular_poa_config': 'CellularPoaConfig',
        'poa4_g_config': 'Poa4GConfig',
        'poa5_g_config': 'Poa5GConfig',
        'poa_wifi_config': 'PoaWifiConfig',
        'geo_data': 'GeoData',
        'physical_locations': 'list[PhysicalLocation]'
    }

    attribute_map = {
        'id': 'id',
        'name': 'name',
        'type': 'type',
        'net_char': 'netChar',
        'terminal_link_latency': 'terminalLinkLatency',
        'terminal_link_latency_variation': 'terminalLinkLatencyVariation',
        'terminal_link_throughput': 'terminalLinkThroughput',
        'terminal_link_packet_loss': 'terminalLinkPacketLoss',
        'meta': 'meta',
        'user_meta': 'userMeta',
        'cellular_poa_config': 'cellularPoaConfig',
        'poa4_g_config': 'poa4GConfig',
        'poa5_g_config': 'poa5GConfig',
        'poa_wifi_config': 'poaWifiConfig',
        'geo_data': 'geoData',
        'physical_locations': 'physicalLocations'
    }

    def __init__(self, id=None, name=None, type=None, net_char=None, terminal_link_latency=None, terminal_link_latency_variation=None, terminal_link_throughput=None, terminal_link_packet_loss=None, meta=None, user_meta=None, cellular_poa_config=None, poa4_g_config=None, poa5_g_config=None, poa_wifi_config=None, geo_data=None, physical_locations=None):  # noqa: E501
        """NetworkLocation - a model defined in Swagger"""  # noqa: E501
        self._id = None
        self._name = None
        self._type = None
        self._net_char = None
        self._terminal_link_latency = None
        self._terminal_link_latency_variation = None
        self._terminal_link_throughput = None
        self._terminal_link_packet_loss = None
        self._meta = None
        self._user_meta = None
        self._cellular_poa_config = None
        self._poa4_g_config = None
        self._poa5_g_config = None
        self._poa_wifi_config = None
        self._geo_data = None
        self._physical_locations = 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 terminal_link_latency is not None:
            self.terminal_link_latency = terminal_link_latency
        if terminal_link_latency_variation is not None:
            self.terminal_link_latency_variation = terminal_link_latency_variation
        if terminal_link_throughput is not None:
            self.terminal_link_throughput = terminal_link_throughput
        if terminal_link_packet_loss is not None:
            self.terminal_link_packet_loss = terminal_link_packet_loss
        if meta is not None:
            self.meta = meta
        if user_meta is not None:
            self.user_meta = user_meta
        if cellular_poa_config is not None:
            self.cellular_poa_config = cellular_poa_config
        if poa4_g_config is not None:
            self.poa4_g_config = poa4_g_config
        if poa5_g_config is not None:
            self.poa5_g_config = poa5_g_config
        if poa_wifi_config is not None:
            self.poa_wifi_config = poa_wifi_config
        if geo_data is not None:
            self.geo_data = geo_data
        if physical_locations is not None:
            self.physical_locations = physical_locations

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

        Unique network location ID  # noqa: E501

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

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

        Unique network location ID  # noqa: E501

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

        self._id = id

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

        Network location name  # noqa: E501

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

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

        Network location name  # noqa: E501

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

        self._name = name

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

        Network location type  # noqa: E501

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

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

        Network location type  # noqa: E501

        :param type: The type of this NetworkLocation.  # noqa: E501
        :type: str
        """
        allowed_values = ["POA", "POA-4G", "POA-5G", "POA-WIFI", "DEFAULT"]  # 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 NetworkLocation.  # noqa: E501


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

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


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

        self._net_char = net_char

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

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

        :return: The terminal_link_latency of this NetworkLocation.  # noqa: E501
        :rtype: int
        """
        return self._terminal_link_latency

    @terminal_link_latency.setter
    def terminal_link_latency(self, terminal_link_latency):
        """Sets the terminal_link_latency of this NetworkLocation.

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

        :param terminal_link_latency: The terminal_link_latency of this NetworkLocation.  # noqa: E501
        :type: int
        """

        self._terminal_link_latency = terminal_link_latency

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

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

        :return: The terminal_link_latency_variation of this NetworkLocation.  # noqa: E501
        :rtype: int
        """
        return self._terminal_link_latency_variation

    @terminal_link_latency_variation.setter
    def terminal_link_latency_variation(self, terminal_link_latency_variation):
        """Sets the terminal_link_latency_variation of this NetworkLocation.

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

        :param terminal_link_latency_variation: The terminal_link_latency_variation of this NetworkLocation.  # noqa: E501
        :type: int
        """

        self._terminal_link_latency_variation = terminal_link_latency_variation

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

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

        :return: The terminal_link_throughput of this NetworkLocation.  # noqa: E501
        :rtype: int
        """
        return self._terminal_link_throughput

    @terminal_link_throughput.setter
    def terminal_link_throughput(self, terminal_link_throughput):
        """Sets the terminal_link_throughput of this NetworkLocation.

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

        :param terminal_link_throughput: The terminal_link_throughput of this NetworkLocation.  # noqa: E501
        :type: int
        """

        self._terminal_link_throughput = terminal_link_throughput

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

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

        :return: The terminal_link_packet_loss of this NetworkLocation.  # noqa: E501
        :rtype: float
        """
        return self._terminal_link_packet_loss

    @terminal_link_packet_loss.setter
    def terminal_link_packet_loss(self, terminal_link_packet_loss):
        """Sets the terminal_link_packet_loss of this NetworkLocation.

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

        :param terminal_link_packet_loss: The terminal_link_packet_loss of this NetworkLocation.  # noqa: E501
        :type: float
        """

        self._terminal_link_packet_loss = terminal_link_packet_loss

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

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

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

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

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

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

        self._meta = meta

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

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

        :return: The user_meta of this NetworkLocation.  # 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 NetworkLocation.

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

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

        self._user_meta = user_meta

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


        :return: The cellular_poa_config of this NetworkLocation.  # noqa: E501
        :rtype: CellularPoaConfig
        """
        return self._cellular_poa_config

    @cellular_poa_config.setter
    def cellular_poa_config(self, cellular_poa_config):
        """Sets the cellular_poa_config of this NetworkLocation.


        :param cellular_poa_config: The cellular_poa_config of this NetworkLocation.  # noqa: E501
        :type: CellularPoaConfig
        """

        self._cellular_poa_config = cellular_poa_config

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


        :return: The poa4_g_config of this NetworkLocation.  # noqa: E501
        :rtype: Poa4GConfig
        """
        return self._poa4_g_config

    @poa4_g_config.setter
    def poa4_g_config(self, poa4_g_config):
        """Sets the poa4_g_config of this NetworkLocation.


        :param poa4_g_config: The poa4_g_config of this NetworkLocation.  # noqa: E501
        :type: Poa4GConfig
        """

        self._poa4_g_config = poa4_g_config

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


        :return: The poa5_g_config of this NetworkLocation.  # noqa: E501
        :rtype: Poa5GConfig
        """
        return self._poa5_g_config

    @poa5_g_config.setter
    def poa5_g_config(self, poa5_g_config):
        """Sets the poa5_g_config of this NetworkLocation.


        :param poa5_g_config: The poa5_g_config of this NetworkLocation.  # noqa: E501
        :type: Poa5GConfig
        """

        self._poa5_g_config = poa5_g_config

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


        :return: The poa_wifi_config of this NetworkLocation.  # noqa: E501
        :rtype: PoaWifiConfig
        """
        return self._poa_wifi_config

    @poa_wifi_config.setter
    def poa_wifi_config(self, poa_wifi_config):
        """Sets the poa_wifi_config of this NetworkLocation.


        :param poa_wifi_config: The poa_wifi_config of this NetworkLocation.  # noqa: E501
        :type: PoaWifiConfig
        """

        self._poa_wifi_config = poa_wifi_config

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


        :return: The geo_data of this NetworkLocation.  # noqa: E501
        :rtype: GeoData
        """
        return self._geo_data

    @geo_data.setter
    def geo_data(self, geo_data):
        """Sets the geo_data of this NetworkLocation.


        :param geo_data: The geo_data of this NetworkLocation.  # noqa: E501
        :type: GeoData
        """

        self._geo_data = geo_data

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


        :return: The physical_locations of this NetworkLocation.  # noqa: E501
        :rtype: list[PhysicalLocation]
        """
        return self._physical_locations

    @physical_locations.setter
    def physical_locations(self, physical_locations):
        """Sets the physical_locations of this NetworkLocation.


        :param physical_locations: The physical_locations of this NetworkLocation.  # noqa: E501
        :type: list[PhysicalLocation]
        """

        self._physical_locations = physical_locations

    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(NetworkLocation, 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, NetworkLocation):
            return False

        return self.__dict__ == other.__dict__

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