from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from chromestatus_openapi.models.base_model import Model
from chromestatus_openapi.models.summary_suggestion import SummarySuggestion
from chromestatus_openapi import util

from chromestatus_openapi.models.summary_suggestion import SummarySuggestion  # noqa: E501

class SummarySuggestionListResponse(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    def __init__(self, suggestions=None, next_cursor=None, total_count=None):  # noqa: E501
        """SummarySuggestionListResponse - a model defined in OpenAPI

        :param suggestions: The suggestions of this SummarySuggestionListResponse.  # noqa: E501
        :type suggestions: List[SummarySuggestion]
        :param next_cursor: The next_cursor of this SummarySuggestionListResponse.  # noqa: E501
        :type next_cursor: str
        :param total_count: The total_count of this SummarySuggestionListResponse.  # noqa: E501
        :type total_count: int
        """
        self.openapi_types = {
            'suggestions': List[SummarySuggestion],
            'next_cursor': str,
            'total_count': int
        }

        self.attribute_map = {
            'suggestions': 'suggestions',
            'next_cursor': 'next_cursor',
            'total_count': 'total_count'
        }

        self._suggestions = suggestions
        self._next_cursor = next_cursor
        self._total_count = total_count

    @classmethod
    def from_dict(cls, dikt) -> 'SummarySuggestionListResponse':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The SummarySuggestionListResponse of this SummarySuggestionListResponse.  # noqa: E501
        :rtype: SummarySuggestionListResponse
        """
        return util.deserialize_model(dikt, cls)

    @property
    def suggestions(self) -> List[SummarySuggestion]:
        """Gets the suggestions of this SummarySuggestionListResponse.

        List of pending summary suggestion objects for the current page.  # noqa: E501

        :return: The suggestions of this SummarySuggestionListResponse.
        :rtype: List[SummarySuggestion]
        """
        return self._suggestions

    @suggestions.setter
    def suggestions(self, suggestions: List[SummarySuggestion]):
        """Sets the suggestions of this SummarySuggestionListResponse.

        List of pending summary suggestion objects for the current page.  # noqa: E501

        :param suggestions: The suggestions of this SummarySuggestionListResponse.
        :type suggestions: List[SummarySuggestion]
        """
        if suggestions is None:
            raise ValueError("Invalid value for `suggestions`, must not be `None`")  # noqa: E501

        self._suggestions = suggestions

    @property
    def next_cursor(self) -> str:
        """Gets the next_cursor of this SummarySuggestionListResponse.

        Opaque cursor token for requesting the next page of suggestions. Null when on the last page.  # noqa: E501

        :return: The next_cursor of this SummarySuggestionListResponse.
        :rtype: str
        """
        return self._next_cursor

    @next_cursor.setter
    def next_cursor(self, next_cursor: str):
        """Sets the next_cursor of this SummarySuggestionListResponse.

        Opaque cursor token for requesting the next page of suggestions. Null when on the last page.  # noqa: E501

        :param next_cursor: The next_cursor of this SummarySuggestionListResponse.
        :type next_cursor: str
        """

        self._next_cursor = next_cursor

    @property
    def total_count(self) -> int:
        """Gets the total_count of this SummarySuggestionListResponse.

        Total count of matching pending summary suggestions across all pages.  # noqa: E501

        :return: The total_count of this SummarySuggestionListResponse.
        :rtype: int
        """
        return self._total_count

    @total_count.setter
    def total_count(self, total_count: int):
        """Sets the total_count of this SummarySuggestionListResponse.

        Total count of matching pending summary suggestions across all pages.  # noqa: E501

        :param total_count: The total_count of this SummarySuggestionListResponse.
        :type total_count: int
        """
        if total_count is None:
            raise ValueError("Invalid value for `total_count`, must not be `None`")  # noqa: E501
        if total_count is not None and total_count < 0:  # noqa: E501
            raise ValueError("Invalid value for `total_count`, must be a value greater than or equal to `0`")  # noqa: E501

        self._total_count = total_count
