# coding: utf-8

"""
    Internal API

    SmartDiagnostics REST API for internal users only  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class EdgeAgentSettingsChild(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 = {
        'edge_agent_log_upload_enabled': 'bool',
        'edge_agent_log_batch_min': 'int',
        'edge_agent_log_batch_min_seconds': 'int',
        'edge_agent_log_batch_max': 'int',
        'edge_agent_log_batch_max_seconds': 'int',
        'edge_agent_polling_interval_seconds': 'int',
        'edge_agent_cascade_stop': 'bool',
        'edge_agent_exit_code_from': 'str'
    }

    attribute_map = {
        'edge_agent_log_upload_enabled': 'EdgeAgentLogUploadEnabled',
        'edge_agent_log_batch_min': 'EdgeAgentLogBatchMin',
        'edge_agent_log_batch_min_seconds': 'EdgeAgentLogBatchMinSeconds',
        'edge_agent_log_batch_max': 'EdgeAgentLogBatchMax',
        'edge_agent_log_batch_max_seconds': 'EdgeAgentLogBatchMaxSeconds',
        'edge_agent_polling_interval_seconds': 'EdgeAgentPollingIntervalSeconds',
        'edge_agent_cascade_stop': 'EdgeAgentCascadeStop',
        'edge_agent_exit_code_from': 'EdgeAgentExitCodeFrom'
    }

    def __init__(self, edge_agent_log_upload_enabled=None, edge_agent_log_batch_min=None, edge_agent_log_batch_min_seconds=None, edge_agent_log_batch_max=None, edge_agent_log_batch_max_seconds=None, edge_agent_polling_interval_seconds=None, edge_agent_cascade_stop=None, edge_agent_exit_code_from=None):  # noqa: E501
        """EdgeAgentSettingsChild - a model defined in Swagger"""  # noqa: E501
        self._edge_agent_log_upload_enabled = None
        self._edge_agent_log_batch_min = None
        self._edge_agent_log_batch_min_seconds = None
        self._edge_agent_log_batch_max = None
        self._edge_agent_log_batch_max_seconds = None
        self._edge_agent_polling_interval_seconds = None
        self._edge_agent_cascade_stop = None
        self._edge_agent_exit_code_from = None
        self.discriminator = None
        self.edge_agent_log_upload_enabled = edge_agent_log_upload_enabled
        self.edge_agent_log_batch_min = edge_agent_log_batch_min
        self.edge_agent_log_batch_min_seconds = edge_agent_log_batch_min_seconds
        self.edge_agent_log_batch_max = edge_agent_log_batch_max
        self.edge_agent_log_batch_max_seconds = edge_agent_log_batch_max_seconds
        self.edge_agent_polling_interval_seconds = edge_agent_polling_interval_seconds
        self.edge_agent_cascade_stop = edge_agent_cascade_stop
        if edge_agent_exit_code_from is not None:
            self.edge_agent_exit_code_from = edge_agent_exit_code_from

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


        :return: The edge_agent_log_upload_enabled of this EdgeAgentSettingsChild.  # noqa: E501
        :rtype: bool
        """
        return self._edge_agent_log_upload_enabled

    @edge_agent_log_upload_enabled.setter
    def edge_agent_log_upload_enabled(self, edge_agent_log_upload_enabled):
        """Sets the edge_agent_log_upload_enabled of this EdgeAgentSettingsChild.


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

        self._edge_agent_log_upload_enabled = edge_agent_log_upload_enabled

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


        :return: The edge_agent_log_batch_min of this EdgeAgentSettingsChild.  # noqa: E501
        :rtype: int
        """
        return self._edge_agent_log_batch_min

    @edge_agent_log_batch_min.setter
    def edge_agent_log_batch_min(self, edge_agent_log_batch_min):
        """Sets the edge_agent_log_batch_min of this EdgeAgentSettingsChild.


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

        self._edge_agent_log_batch_min = edge_agent_log_batch_min

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


        :return: The edge_agent_log_batch_min_seconds of this EdgeAgentSettingsChild.  # noqa: E501
        :rtype: int
        """
        return self._edge_agent_log_batch_min_seconds

    @edge_agent_log_batch_min_seconds.setter
    def edge_agent_log_batch_min_seconds(self, edge_agent_log_batch_min_seconds):
        """Sets the edge_agent_log_batch_min_seconds of this EdgeAgentSettingsChild.


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

        self._edge_agent_log_batch_min_seconds = edge_agent_log_batch_min_seconds

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


        :return: The edge_agent_log_batch_max of this EdgeAgentSettingsChild.  # noqa: E501
        :rtype: int
        """
        return self._edge_agent_log_batch_max

    @edge_agent_log_batch_max.setter
    def edge_agent_log_batch_max(self, edge_agent_log_batch_max):
        """Sets the edge_agent_log_batch_max of this EdgeAgentSettingsChild.


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

        self._edge_agent_log_batch_max = edge_agent_log_batch_max

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


        :return: The edge_agent_log_batch_max_seconds of this EdgeAgentSettingsChild.  # noqa: E501
        :rtype: int
        """
        return self._edge_agent_log_batch_max_seconds

    @edge_agent_log_batch_max_seconds.setter
    def edge_agent_log_batch_max_seconds(self, edge_agent_log_batch_max_seconds):
        """Sets the edge_agent_log_batch_max_seconds of this EdgeAgentSettingsChild.


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

        self._edge_agent_log_batch_max_seconds = edge_agent_log_batch_max_seconds

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


        :return: The edge_agent_polling_interval_seconds of this EdgeAgentSettingsChild.  # noqa: E501
        :rtype: int
        """
        return self._edge_agent_polling_interval_seconds

    @edge_agent_polling_interval_seconds.setter
    def edge_agent_polling_interval_seconds(self, edge_agent_polling_interval_seconds):
        """Sets the edge_agent_polling_interval_seconds of this EdgeAgentSettingsChild.


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

        self._edge_agent_polling_interval_seconds = edge_agent_polling_interval_seconds

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


        :return: The edge_agent_cascade_stop of this EdgeAgentSettingsChild.  # noqa: E501
        :rtype: bool
        """
        return self._edge_agent_cascade_stop

    @edge_agent_cascade_stop.setter
    def edge_agent_cascade_stop(self, edge_agent_cascade_stop):
        """Sets the edge_agent_cascade_stop of this EdgeAgentSettingsChild.


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

        self._edge_agent_cascade_stop = edge_agent_cascade_stop

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


        :return: The edge_agent_exit_code_from of this EdgeAgentSettingsChild.  # noqa: E501
        :rtype: str
        """
        return self._edge_agent_exit_code_from

    @edge_agent_exit_code_from.setter
    def edge_agent_exit_code_from(self, edge_agent_exit_code_from):
        """Sets the edge_agent_exit_code_from of this EdgeAgentSettingsChild.


        :param edge_agent_exit_code_from: The edge_agent_exit_code_from of this EdgeAgentSettingsChild.  # noqa: E501
        :type: str
        """

        self._edge_agent_exit_code_from = edge_agent_exit_code_from

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

        return self.__dict__ == other.__dict__

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