# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from opera.api.openapi.models.base_model_ import Model
from opera.api.openapi import util


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

    Do not edit the class manually.
    """

    def __init__(self, success=None, message=None):  # noqa: E501
        """ValidationResult - a model defined in OpenAPI

        :param success: The success of this ValidationResult.  # noqa: E501
        :type success: bool
        :param message: The message of this ValidationResult.  # noqa: E501
        :type message: str
        """
        self.openapi_types = {
            'success': bool,
            'message': str
        }

        self.attribute_map = {
            'success': 'success',
            'message': 'message'
        }

        self._success = success
        self._message = message

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

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

    @property
    def success(self):
        """Gets the success of this ValidationResult.


        :return: The success of this ValidationResult.
        :rtype: bool
        """
        return self._success

    @success.setter
    def success(self, success):
        """Sets the success of this ValidationResult.


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

        self._success = success

    @property
    def message(self):
        """Gets the message of this ValidationResult.


        :return: The message of this ValidationResult.
        :rtype: str
        """
        return self._message

    @message.setter
    def message(self, message):
        """Sets the message of this ValidationResult.


        :param message: The message of this ValidationResult.
        :type message: str
        """

        self._message = message
