# 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.116.2-v202603172347-CD
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

from pprint import pformat
from six import iteritems
import re


class ContextCommentInputV1(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 = {
        'category_id': 'str',
        'comment': 'str',
        'datum_id': 'str',
        'end_time': 'str',
        'is_pinned': 'bool',
        'mentions': 'list[MentionInputV1]',
        'source': 'ContextSourceInputV1',
        'start_time': 'str',
        'table_id': 'str'
    }

    attribute_map = {
        'category_id': 'categoryId',
        'comment': 'comment',
        'datum_id': 'datumId',
        'end_time': 'endTime',
        'is_pinned': 'isPinned',
        'mentions': 'mentions',
        'source': 'source',
        'start_time': 'startTime',
        'table_id': 'tableId'
    }

    def __init__(self, category_id=None, comment=None, datum_id=None, end_time=None, is_pinned=None, mentions=None, source=None, start_time=None, table_id=None):
        """
        ContextCommentInputV1 - a model defined in Swagger
        """

        self._category_id = None
        self._comment = None
        self._datum_id = None
        self._end_time = None
        self._is_pinned = None
        self._mentions = None
        self._source = None
        self._start_time = None
        self._table_id = None

        if category_id is not None:
          self.category_id = category_id
        if comment is not None:
          self.comment = comment
        if datum_id is not None:
          self.datum_id = datum_id
        if end_time is not None:
          self.end_time = end_time
        if is_pinned is not None:
          self.is_pinned = is_pinned
        if mentions is not None:
          self.mentions = mentions
        if source is not None:
          self.source = source
        if start_time is not None:
          self.start_time = start_time
        if table_id is not None:
          self.table_id = table_id

    @property
    def category_id(self):
        """
        Gets the category_id of this ContextCommentInputV1.
        The ID of the comment category to associate with this comment

        :return: The category_id of this ContextCommentInputV1.
        :rtype: str
        """
        return self._category_id

    @category_id.setter
    def category_id(self, category_id):
        """
        Sets the category_id of this ContextCommentInputV1.
        The ID of the comment category to associate with this comment

        :param category_id: The category_id of this ContextCommentInputV1.
        :type: str
        """

        self._category_id = category_id

    @property
    def comment(self):
        """
        Gets the comment of this ContextCommentInputV1.
        The text of the comment

        :return: The comment of this ContextCommentInputV1.
        :rtype: str
        """
        return self._comment

    @comment.setter
    def comment(self, comment):
        """
        Sets the comment of this ContextCommentInputV1.
        The text of the comment

        :param comment: The comment of this ContextCommentInputV1.
        :type: str
        """

        self._comment = comment

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

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

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

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

        self._datum_id = datum_id

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

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

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

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

        self._end_time = end_time

    @property
    def is_pinned(self):
        """
        Gets the is_pinned of this ContextCommentInputV1.

        :return: The is_pinned of this ContextCommentInputV1.
        :rtype: bool
        """
        return self._is_pinned

    @is_pinned.setter
    def is_pinned(self, is_pinned):
        """
        Sets the is_pinned of this ContextCommentInputV1.

        :param is_pinned: The is_pinned of this ContextCommentInputV1.
        :type: bool
        """

        self._is_pinned = is_pinned

    @property
    def mentions(self):
        """
        Gets the mentions of this ContextCommentInputV1.
        List of users or groups mentioned in the comment for notification purposes

        :return: The mentions of this ContextCommentInputV1.
        :rtype: list[MentionInputV1]
        """
        return self._mentions

    @mentions.setter
    def mentions(self, mentions):
        """
        Sets the mentions of this ContextCommentInputV1.
        List of users or groups mentioned in the comment for notification purposes

        :param mentions: The mentions of this ContextCommentInputV1.
        :type: list[MentionInputV1]
        """

        self._mentions = mentions

    @property
    def source(self):
        """
        Gets the source of this ContextCommentInputV1.

        :return: The source of this ContextCommentInputV1.
        :rtype: ContextSourceInputV1
        """
        return self._source

    @source.setter
    def source(self, source):
        """
        Sets the source of this ContextCommentInputV1.

        :param source: The source of this ContextCommentInputV1.
        :type: ContextSourceInputV1
        """

        self._source = source

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

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

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

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

        self._start_time = start_time

    @property
    def table_id(self):
        """
        Gets the table_id of this ContextCommentInputV1.
        If provided, the ID of the Table Definition that will be used for permissions checking. The user needs read permissions on the provided table definition and theitem has to be in the table in order to create context. If not provided, the user must have read permissions on the item id the context is being applied to.

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

    @table_id.setter
    def table_id(self, table_id):
        """
        Sets the table_id of this ContextCommentInputV1.
        If provided, the ID of the Table Definition that will be used for permissions checking. The user needs read permissions on the provided table definition and theitem has to be in the table in order to create context. If not provided, the user must have read permissions on the item id the context is being applied to.

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

        self._table_id = table_id

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

        return self.__dict__ == other.__dict__

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