# coding: utf-8

"""
    AssistedInstall

    Assisted installation  # noqa: E501

    OpenAPI spec version: 1.0.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class L2Connectivity(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 = {
        'outgoing_nic': 'str',
        'outgoing_ip_address': 'str',
        'remote_ip_address': 'str',
        'remote_mac': 'str',
        'successful': 'bool'
    }

    attribute_map = {
        'outgoing_nic': 'outgoing_nic',
        'outgoing_ip_address': 'outgoing_ip_address',
        'remote_ip_address': 'remote_ip_address',
        'remote_mac': 'remote_mac',
        'successful': 'successful'
    }

    def __init__(self, outgoing_nic=None, outgoing_ip_address=None, remote_ip_address=None, remote_mac=None, successful=None):  # noqa: E501
        """L2Connectivity - a model defined in Swagger"""  # noqa: E501

        self._outgoing_nic = None
        self._outgoing_ip_address = None
        self._remote_ip_address = None
        self._remote_mac = None
        self._successful = None
        self.discriminator = None

        if outgoing_nic is not None:
            self.outgoing_nic = outgoing_nic
        if outgoing_ip_address is not None:
            self.outgoing_ip_address = outgoing_ip_address
        if remote_ip_address is not None:
            self.remote_ip_address = remote_ip_address
        if remote_mac is not None:
            self.remote_mac = remote_mac
        if successful is not None:
            self.successful = successful

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


        :return: The outgoing_nic of this L2Connectivity.  # noqa: E501
        :rtype: str
        """
        return self._outgoing_nic

    @outgoing_nic.setter
    def outgoing_nic(self, outgoing_nic):
        """Sets the outgoing_nic of this L2Connectivity.


        :param outgoing_nic: The outgoing_nic of this L2Connectivity.  # noqa: E501
        :type: str
        """

        self._outgoing_nic = outgoing_nic

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


        :return: The outgoing_ip_address of this L2Connectivity.  # noqa: E501
        :rtype: str
        """
        return self._outgoing_ip_address

    @outgoing_ip_address.setter
    def outgoing_ip_address(self, outgoing_ip_address):
        """Sets the outgoing_ip_address of this L2Connectivity.


        :param outgoing_ip_address: The outgoing_ip_address of this L2Connectivity.  # noqa: E501
        :type: str
        """

        self._outgoing_ip_address = outgoing_ip_address

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


        :return: The remote_ip_address of this L2Connectivity.  # noqa: E501
        :rtype: str
        """
        return self._remote_ip_address

    @remote_ip_address.setter
    def remote_ip_address(self, remote_ip_address):
        """Sets the remote_ip_address of this L2Connectivity.


        :param remote_ip_address: The remote_ip_address of this L2Connectivity.  # noqa: E501
        :type: str
        """

        self._remote_ip_address = remote_ip_address

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


        :return: The remote_mac of this L2Connectivity.  # noqa: E501
        :rtype: str
        """
        return self._remote_mac

    @remote_mac.setter
    def remote_mac(self, remote_mac):
        """Sets the remote_mac of this L2Connectivity.


        :param remote_mac: The remote_mac of this L2Connectivity.  # noqa: E501
        :type: str
        """

        self._remote_mac = remote_mac

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


        :return: The successful of this L2Connectivity.  # noqa: E501
        :rtype: bool
        """
        return self._successful

    @successful.setter
    def successful(self, successful):
        """Sets the successful of this L2Connectivity.


        :param successful: The successful of this L2Connectivity.  # noqa: E501
        :type: bool
        """

        self._successful = successful

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

        return self.__dict__ == other.__dict__

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