# coding: utf-8

"""
    syntropy-controller

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

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

import pprint
import re  # noqa: F401

import six


class Body3(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 = {"cmd": "list[VppCallableObject]", "ip": "str", "auth_key": "str"}

    attribute_map = {"cmd": "cmd", "ip": "ip", "auth_key": "authKey"}

    def __init__(self, cmd=None, ip=None, auth_key=None):  # noqa: E501
        """Body3 - a model defined in Swagger"""  # noqa: E501
        self._cmd = None
        self._ip = None
        self._auth_key = None
        self.discriminator = None
        self.cmd = cmd
        self.ip = ip
        self.auth_key = auth_key

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


        :return: The cmd of this Body3.  # noqa: E501
        :rtype: list[VppCallableObject]
        """
        return self._cmd

    @cmd.setter
    def cmd(self, cmd):
        """Sets the cmd of this Body3.


        :param cmd: The cmd of this Body3.  # noqa: E501
        :type: list[VppCallableObject]
        """
        if cmd is None:
            raise ValueError(
                "Invalid value for `cmd`, must not be `None`"
            )  # noqa: E501

        self._cmd = cmd

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


        :return: The ip of this Body3.  # noqa: E501
        :rtype: str
        """
        return self._ip

    @ip.setter
    def ip(self, ip):
        """Sets the ip of this Body3.


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

        self._ip = ip

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


        :return: The auth_key of this Body3.  # noqa: E501
        :rtype: str
        """
        return self._auth_key

    @auth_key.setter
    def auth_key(self, auth_key):
        """Sets the auth_key of this Body3.


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

        self._auth_key = auth_key

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

        return self.__dict__ == other.__dict__

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