# coding: utf-8

"""
    Isilon SDK

    Isilon SDK - Language bindings for the OneFS API  # noqa: E501

    OpenAPI spec version: 7
    Contact: sdk@isilon.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from isi_sdk_8_2_0.models.event_eventgroup_occurrences import EventEventgroupOccurrences  # noqa: F401,E501
from isi_sdk_8_2_0.models.event_eventgroup_occurrences_eventgroup import EventEventgroupOccurrencesEventgroup  # noqa: F401,E501


class EventEventgroupOccurrencesExtended(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 = {
        'eventgroups': 'list[EventEventgroupOccurrencesEventgroup]',
        'resume': 'str',
        'total': 'int'
    }

    attribute_map = {
        'eventgroups': 'eventgroups',
        'resume': 'resume',
        'total': 'total'
    }

    def __init__(self, eventgroups=None, resume=None, total=None):  # noqa: E501
        """EventEventgroupOccurrencesExtended - a model defined in Swagger"""  # noqa: E501

        self._eventgroups = None
        self._resume = None
        self._total = None
        self.discriminator = None

        if eventgroups is not None:
            self.eventgroups = eventgroups
        if resume is not None:
            self.resume = resume
        if total is not None:
            self.total = total

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


        :return: The eventgroups of this EventEventgroupOccurrencesExtended.  # noqa: E501
        :rtype: list[EventEventgroupOccurrencesEventgroup]
        """
        return self._eventgroups

    @eventgroups.setter
    def eventgroups(self, eventgroups):
        """Sets the eventgroups of this EventEventgroupOccurrencesExtended.


        :param eventgroups: The eventgroups of this EventEventgroupOccurrencesExtended.  # noqa: E501
        :type: list[EventEventgroupOccurrencesEventgroup]
        """

        self._eventgroups = eventgroups

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

        Provide this token as the 'resume' query argument to continue listing results.  # noqa: E501

        :return: The resume of this EventEventgroupOccurrencesExtended.  # noqa: E501
        :rtype: str
        """
        return self._resume

    @resume.setter
    def resume(self, resume):
        """Sets the resume of this EventEventgroupOccurrencesExtended.

        Provide this token as the 'resume' query argument to continue listing results.  # noqa: E501

        :param resume: The resume of this EventEventgroupOccurrencesExtended.  # noqa: E501
        :type: str
        """
        if resume is not None and len(resume) > 8192:
            raise ValueError("Invalid value for `resume`, length must be less than or equal to `8192`")  # noqa: E501
        if resume is not None and len(resume) < 0:
            raise ValueError("Invalid value for `resume`, length must be greater than or equal to `0`")  # noqa: E501

        self._resume = resume

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

        Total number of items available.  # noqa: E501

        :return: The total of this EventEventgroupOccurrencesExtended.  # noqa: E501
        :rtype: int
        """
        return self._total

    @total.setter
    def total(self, total):
        """Sets the total of this EventEventgroupOccurrencesExtended.

        Total number of items available.  # noqa: E501

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

        self._total = total

    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

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

        return self.__dict__ == other.__dict__

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