# coding: utf-8

"""
    Seeq REST API

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

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

from pprint import pformat
from six import iteritems
import re


class ContextNumericInputV1(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 = {
        'datum_id': 'str',
        'end_time': 'str',
        'numeric_description_id': 'str',
        'start_time': 'str',
        'table_id': 'str',
        'value': 'float'
    }

    attribute_map = {
        'datum_id': 'datumId',
        'end_time': 'endTime',
        'numeric_description_id': 'numericDescriptionId',
        'start_time': 'startTime',
        'table_id': 'tableId',
        'value': 'value'
    }

    def __init__(self, datum_id=None, end_time=None, numeric_description_id=None, start_time=None, table_id=None, value=None):
        """
        ContextNumericInputV1 - a model defined in Swagger
        """

        self._datum_id = None
        self._end_time = None
        self._numeric_description_id = None
        self._start_time = None
        self._table_id = None
        self._value = None

        if datum_id is not None:
          self.datum_id = datum_id
        if end_time is not None:
          self.end_time = end_time
        if numeric_description_id is not None:
          self.numeric_description_id = numeric_description_id
        if start_time is not None:
          self.start_time = start_time
        if table_id is not None:
          self.table_id = table_id
        if value is not None:
          self.value = value

    @property
    def datum_id(self):
        """
        Gets the datum_id of this ContextNumericInputV1.
        If provided, the ID of a more specific aspect of the Item to associate with the label, such as the ID of a capsule

        :return: The datum_id of this ContextNumericInputV1.
        :rtype: str
        """
        return self._datum_id

    @datum_id.setter
    def datum_id(self, datum_id):
        """
        Sets the datum_id of this ContextNumericInputV1.
        If provided, the ID of a more specific aspect of the Item to associate with the label, such as the ID of a capsule

        :param datum_id: The datum_id of this ContextNumericInputV1.
        :type: str
        """

        self._datum_id = datum_id

    @property
    def end_time(self):
        """
        Gets the end_time of this ContextNumericInputV1.
        The end time of the numeric in the form of an ISO8601 timestamp. If provided, start time must also be provided.

        :return: The end_time of this ContextNumericInputV1.
        :rtype: str
        """
        return self._end_time

    @end_time.setter
    def end_time(self, end_time):
        """
        Sets the end_time of this ContextNumericInputV1.
        The end time of the numeric in the form of an ISO8601 timestamp. If provided, start time must also be provided.

        :param end_time: The end_time of this ContextNumericInputV1.
        :type: str
        """

        self._end_time = end_time

    @property
    def numeric_description_id(self):
        """
        Gets the numeric_description_id of this ContextNumericInputV1.
        The ID of the numeric description

        :return: The numeric_description_id of this ContextNumericInputV1.
        :rtype: str
        """
        return self._numeric_description_id

    @numeric_description_id.setter
    def numeric_description_id(self, numeric_description_id):
        """
        Sets the numeric_description_id of this ContextNumericInputV1.
        The ID of the numeric description

        :param numeric_description_id: The numeric_description_id of this ContextNumericInputV1.
        :type: str
        """

        self._numeric_description_id = numeric_description_id

    @property
    def start_time(self):
        """
        Gets the start_time of this ContextNumericInputV1.
        The start time of the numeric in the form of an ISO8601 timestamp. If provided, end time must also be provided.

        :return: The start_time of this ContextNumericInputV1.
        :rtype: str
        """
        return self._start_time

    @start_time.setter
    def start_time(self, start_time):
        """
        Sets the start_time of this ContextNumericInputV1.
        The start time of the numeric in the form of an ISO8601 timestamp. If provided, end time must also be provided.

        :param start_time: The start_time of this ContextNumericInputV1.
        :type: str
        """

        self._start_time = start_time

    @property
    def table_id(self):
        """
        Gets the table_id of this ContextNumericInputV1.
        The table ID of the context

        :return: The table_id of this ContextNumericInputV1.
        :rtype: str
        """
        return self._table_id

    @table_id.setter
    def table_id(self, table_id):
        """
        Sets the table_id of this ContextNumericInputV1.
        The table ID of the context

        :param table_id: The table_id of this ContextNumericInputV1.
        :type: str
        """

        self._table_id = table_id

    @property
    def value(self):
        """
        Gets the value of this ContextNumericInputV1.
        The value of the numeric context

        :return: The value of this ContextNumericInputV1.
        :rtype: float
        """
        return self._value

    @value.setter
    def value(self, value):
        """
        Sets the value of this ContextNumericInputV1.
        The value of the numeric context

        :param value: The value of this ContextNumericInputV1.
        :type: float
        """

        self._value = value

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in 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 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, ContextNumericInputV1):
            return False

        return self.__dict__ == other.__dict__

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