# 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 Deployment(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 = {
        'net_char': 'NetworkCharacteristics',
        'connectivity': 'ConnectivityConfig',
        'd2d': 'D2dConfig',
        'inter_domain_latency': 'int',
        'inter_domain_latency_variation': 'int',
        'inter_domain_throughput': 'int',
        'inter_domain_packet_loss': 'float',
        'meta': 'dict(str, str)',
        'user_meta': 'dict(str, str)',
        'domains': 'list[Domain]'
    }

    attribute_map = {
        'net_char': 'netChar',
        'connectivity': 'connectivity',
        'd2d': 'd2d',
        'inter_domain_latency': 'interDomainLatency',
        'inter_domain_latency_variation': 'interDomainLatencyVariation',
        'inter_domain_throughput': 'interDomainThroughput',
        'inter_domain_packet_loss': 'interDomainPacketLoss',
        'meta': 'meta',
        'user_meta': 'userMeta',
        'domains': 'domains'
    }

    def __init__(self, net_char=None, connectivity=None, d2d=None, inter_domain_latency=None, inter_domain_latency_variation=None, inter_domain_throughput=None, inter_domain_packet_loss=None, meta=None, user_meta=None, domains=None):  # noqa: E501
        """Deployment - a model defined in Swagger"""  # noqa: E501
        self._net_char = None
        self._connectivity = None
        self._d2d = None
        self._inter_domain_latency = None
        self._inter_domain_latency_variation = None
        self._inter_domain_throughput = None
        self._inter_domain_packet_loss = None
        self._meta = None
        self._user_meta = None
        self._domains = None
        self.discriminator = None
        if net_char is not None:
            self.net_char = net_char
        if connectivity is not None:
            self.connectivity = connectivity
        if d2d is not None:
            self.d2d = d2d
        if inter_domain_latency is not None:
            self.inter_domain_latency = inter_domain_latency
        if inter_domain_latency_variation is not None:
            self.inter_domain_latency_variation = inter_domain_latency_variation
        if inter_domain_throughput is not None:
            self.inter_domain_throughput = inter_domain_throughput
        if inter_domain_packet_loss is not None:
            self.inter_domain_packet_loss = inter_domain_packet_loss
        if meta is not None:
            self.meta = meta
        if user_meta is not None:
            self.user_meta = user_meta
        if domains is not None:
            self.domains = domains

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


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

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


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

        self._net_char = net_char

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


        :return: The connectivity of this Deployment.  # noqa: E501
        :rtype: ConnectivityConfig
        """
        return self._connectivity

    @connectivity.setter
    def connectivity(self, connectivity):
        """Sets the connectivity of this Deployment.


        :param connectivity: The connectivity of this Deployment.  # noqa: E501
        :type: ConnectivityConfig
        """

        self._connectivity = connectivity

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


        :return: The d2d of this Deployment.  # noqa: E501
        :rtype: D2dConfig
        """
        return self._d2d

    @d2d.setter
    def d2d(self, d2d):
        """Sets the d2d of this Deployment.


        :param d2d: The d2d of this Deployment.  # noqa: E501
        :type: D2dConfig
        """

        self._d2d = d2d

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

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

        :return: The inter_domain_latency of this Deployment.  # noqa: E501
        :rtype: int
        """
        return self._inter_domain_latency

    @inter_domain_latency.setter
    def inter_domain_latency(self, inter_domain_latency):
        """Sets the inter_domain_latency of this Deployment.

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

        :param inter_domain_latency: The inter_domain_latency of this Deployment.  # noqa: E501
        :type: int
        """

        self._inter_domain_latency = inter_domain_latency

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

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

        :return: The inter_domain_latency_variation of this Deployment.  # noqa: E501
        :rtype: int
        """
        return self._inter_domain_latency_variation

    @inter_domain_latency_variation.setter
    def inter_domain_latency_variation(self, inter_domain_latency_variation):
        """Sets the inter_domain_latency_variation of this Deployment.

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

        :param inter_domain_latency_variation: The inter_domain_latency_variation of this Deployment.  # noqa: E501
        :type: int
        """

        self._inter_domain_latency_variation = inter_domain_latency_variation

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

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

        :return: The inter_domain_throughput of this Deployment.  # noqa: E501
        :rtype: int
        """
        return self._inter_domain_throughput

    @inter_domain_throughput.setter
    def inter_domain_throughput(self, inter_domain_throughput):
        """Sets the inter_domain_throughput of this Deployment.

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

        :param inter_domain_throughput: The inter_domain_throughput of this Deployment.  # noqa: E501
        :type: int
        """

        self._inter_domain_throughput = inter_domain_throughput

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

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

        :return: The inter_domain_packet_loss of this Deployment.  # noqa: E501
        :rtype: float
        """
        return self._inter_domain_packet_loss

    @inter_domain_packet_loss.setter
    def inter_domain_packet_loss(self, inter_domain_packet_loss):
        """Sets the inter_domain_packet_loss of this Deployment.

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

        :param inter_domain_packet_loss: The inter_domain_packet_loss of this Deployment.  # noqa: E501
        :type: float
        """

        self._inter_domain_packet_loss = inter_domain_packet_loss

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

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

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

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

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

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

        self._meta = meta

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

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

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

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

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

        self._user_meta = user_meta

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


        :return: The domains of this Deployment.  # noqa: E501
        :rtype: list[Domain]
        """
        return self._domains

    @domains.setter
    def domains(self, domains):
        """Sets the domains of this Deployment.


        :param domains: The domains of this Deployment.  # noqa: E501
        :type: list[Domain]
        """

        self._domains = domains

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

        return self.__dict__ == other.__dict__

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