# coding: utf-8

"""
    external/v1/auth_service.proto

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

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

    NOTE
    ----
    standard swagger-codegen-cli for this python client has been modified
    by custom templates. The purpose of these templates is to include
    typing information in the API and Model code. Please refer to the
    main grid repository for more info
"""

import pprint
import re  # noqa: F401

from typing import TYPE_CHECKING

import six

if TYPE_CHECKING:
    from datetime import datetime
    from lightning_cloud.openapi.models import *

class V1NotificationPreferencesRequest(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 = {
        'email_enabled': 'bool',
        'notification_type': 'V1NotificationType',
        'threshold': 'str',
        'user_id': 'str'
    }

    attribute_map = {
        'email_enabled': 'emailEnabled',
        'notification_type': 'notificationType',
        'threshold': 'threshold',
        'user_id': 'userId'
    }

    def __init__(self, email_enabled: 'bool' =None, notification_type: 'V1NotificationType' =None, threshold: 'str' =None, user_id: 'str' =None):  # noqa: E501
        """V1NotificationPreferencesRequest - a model defined in Swagger"""  # noqa: E501
        self._email_enabled = None
        self._notification_type = None
        self._threshold = None
        self._user_id = None
        self.discriminator = None
        if email_enabled is not None:
            self.email_enabled = email_enabled
        if notification_type is not None:
            self.notification_type = notification_type
        if threshold is not None:
            self.threshold = threshold
        if user_id is not None:
            self.user_id = user_id

    @property
    def email_enabled(self) -> 'bool':
        """Gets the email_enabled of this V1NotificationPreferencesRequest.  # noqa: E501


        :return: The email_enabled of this V1NotificationPreferencesRequest.  # noqa: E501
        :rtype: bool
        """
        return self._email_enabled

    @email_enabled.setter
    def email_enabled(self, email_enabled: 'bool'):
        """Sets the email_enabled of this V1NotificationPreferencesRequest.


        :param email_enabled: The email_enabled of this V1NotificationPreferencesRequest.  # noqa: E501
        :type: bool
        """

        self._email_enabled = email_enabled

    @property
    def notification_type(self) -> 'V1NotificationType':
        """Gets the notification_type of this V1NotificationPreferencesRequest.  # noqa: E501


        :return: The notification_type of this V1NotificationPreferencesRequest.  # noqa: E501
        :rtype: V1NotificationType
        """
        return self._notification_type

    @notification_type.setter
    def notification_type(self, notification_type: 'V1NotificationType'):
        """Sets the notification_type of this V1NotificationPreferencesRequest.


        :param notification_type: The notification_type of this V1NotificationPreferencesRequest.  # noqa: E501
        :type: V1NotificationType
        """

        self._notification_type = notification_type

    @property
    def threshold(self) -> 'str':
        """Gets the threshold of this V1NotificationPreferencesRequest.  # noqa: E501


        :return: The threshold of this V1NotificationPreferencesRequest.  # noqa: E501
        :rtype: str
        """
        return self._threshold

    @threshold.setter
    def threshold(self, threshold: 'str'):
        """Sets the threshold of this V1NotificationPreferencesRequest.


        :param threshold: The threshold of this V1NotificationPreferencesRequest.  # noqa: E501
        :type: str
        """

        self._threshold = threshold

    @property
    def user_id(self) -> 'str':
        """Gets the user_id of this V1NotificationPreferencesRequest.  # noqa: E501


        :return: The user_id of this V1NotificationPreferencesRequest.  # noqa: E501
        :rtype: str
        """
        return self._user_id

    @user_id.setter
    def user_id(self, user_id: 'str'):
        """Sets the user_id of this V1NotificationPreferencesRequest.


        :param user_id: The user_id of this V1NotificationPreferencesRequest.  # noqa: E501
        :type: str
        """

        self._user_id = user_id

    def to_dict(self) -> dict:
        """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(V1NotificationPreferencesRequest, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self) -> str:
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self) -> str:
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other: 'V1NotificationPreferencesRequest') -> bool:
        """Returns true if both objects are equal"""
        if not isinstance(other, V1NotificationPreferencesRequest):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other: 'V1NotificationPreferencesRequest') -> bool:
        """Returns true if both objects are not equal"""
        return not self == other
