# coding: utf-8

"""
    Fingerprint Server API

    Fingerprint Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device.   # noqa: E501

    OpenAPI spec version: 3
    Contact: support@fingerprint.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import re  # noqa: F401
from typing import Dict, List, Optional  # noqa: F401
from fingerprint_pro_server_api_sdk.base_model import BaseModel


class ErrorPlainResponse(BaseModel):
    """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 = {
        'error': 'str'
    }

    attribute_map = {
        'error': 'error'
    }

    def __init__(self, error=None):  # noqa: E501
        """ErrorPlainResponse - a model defined in Swagger"""  # noqa: E501
        self._error = None
        self.discriminator = None
        self.error = error
        self.retry_after = 0

    @property
    def error(self) -> str:
        """Gets the error of this ErrorPlainResponse.  # noqa: E501


        :return: The error of this ErrorPlainResponse.  # noqa: E501
        """
        return self._error

    @error.setter
    def error(self, error: str):
        """Sets the error of this ErrorPlainResponse.


        :param error: The error of this ErrorPlainResponse.  # noqa: E501
        """
        if error is None:
            raise ValueError("Invalid value for `error`, must not be `None`")  # noqa: E501

        self._error = error

    @property
    def retry_after(self) -> int:
        """Indicates how many seconds you should wait before attempting the next request for 429 error """
        return self._retry_after

    @retry_after.setter
    def retry_after(self, retry_after: int):
        self._retry_after = retry_after
