# coding: utf-8

"""
    XMS API

    XMS is the controller of distributed storage system  # noqa: E501

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


import pprint
import re  # noqa: F401
import six

# from xms_client.models.host_nestview import HostNestview  # noqa: F401,E501


class BootNode(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 = {
        'admin_network': 'str',
        'gateway_network': 'str',
        'host': 'HostNestview',
        'installer_path': 'str',
        'private_network': 'str',
        'public_network': 'str',
        'status': 'str'
    }

    attribute_map = {
        'admin_network': 'admin_network',
        'gateway_network': 'gateway_network',
        'host': 'host',
        'installer_path': 'installer_path',
        'private_network': 'private_network',
        'public_network': 'public_network',
        'status': 'status'
    }

    def __init__(self, admin_network=None, gateway_network=None, host=None, installer_path=None, private_network=None, public_network=None, status=None):  # noqa: E501
        """BootNode - a model defined in Swagger"""  # noqa: E501

        self._admin_network = None
        self._gateway_network = None
        self._host = None
        self._installer_path = None
        self._private_network = None
        self._public_network = None
        self._status = None
        self.discriminator = None

        self.admin_network = admin_network
        self.gateway_network = gateway_network
        if host is not None:
            self.host = host
        self.installer_path = installer_path
        self.private_network = private_network
        self.public_network = public_network
        if status is not None:
            self.status = status

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


        :return: The admin_network of this BootNode.  # noqa: E501
        :rtype: str
        """
        return self._admin_network

    @admin_network.setter
    def admin_network(self, admin_network):
        """Sets the admin_network of this BootNode.


        :param admin_network: The admin_network of this BootNode.  # noqa: E501
        :type: str
        """
        if admin_network is None:
            raise ValueError("Invalid value for `admin_network`, must not be `None`")  # noqa: E501

        self._admin_network = admin_network

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


        :return: The gateway_network of this BootNode.  # noqa: E501
        :rtype: str
        """
        return self._gateway_network

    @gateway_network.setter
    def gateway_network(self, gateway_network):
        """Sets the gateway_network of this BootNode.


        :param gateway_network: The gateway_network of this BootNode.  # noqa: E501
        :type: str
        """
        if gateway_network is None:
            raise ValueError("Invalid value for `gateway_network`, must not be `None`")  # noqa: E501

        self._gateway_network = gateway_network

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


        :return: The host of this BootNode.  # noqa: E501
        :rtype: HostNestview
        """
        return self._host

    @host.setter
    def host(self, host):
        """Sets the host of this BootNode.


        :param host: The host of this BootNode.  # noqa: E501
        :type: HostNestview
        """

        self._host = host

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


        :return: The installer_path of this BootNode.  # noqa: E501
        :rtype: str
        """
        return self._installer_path

    @installer_path.setter
    def installer_path(self, installer_path):
        """Sets the installer_path of this BootNode.


        :param installer_path: The installer_path of this BootNode.  # noqa: E501
        :type: str
        """
        if installer_path is None:
            raise ValueError("Invalid value for `installer_path`, must not be `None`")  # noqa: E501

        self._installer_path = installer_path

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


        :return: The private_network of this BootNode.  # noqa: E501
        :rtype: str
        """
        return self._private_network

    @private_network.setter
    def private_network(self, private_network):
        """Sets the private_network of this BootNode.


        :param private_network: The private_network of this BootNode.  # noqa: E501
        :type: str
        """
        if private_network is None:
            raise ValueError("Invalid value for `private_network`, must not be `None`")  # noqa: E501

        self._private_network = private_network

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


        :return: The public_network of this BootNode.  # noqa: E501
        :rtype: str
        """
        return self._public_network

    @public_network.setter
    def public_network(self, public_network):
        """Sets the public_network of this BootNode.


        :param public_network: The public_network of this BootNode.  # noqa: E501
        :type: str
        """
        if public_network is None:
            raise ValueError("Invalid value for `public_network`, must not be `None`")  # noqa: E501

        self._public_network = public_network

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


        :return: The status of this BootNode.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this BootNode.


        :param status: The status of this BootNode.  # noqa: E501
        :type: str
        """

        self._status = status

    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

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

        return self.__dict__ == other.__dict__

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