/** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /* * Vaccine.h * * */ #ifndef Vaccine_H_ #define Vaccine_H_ #include #include namespace org::openapitools::server::model { /// /// /// class Vaccine { public: Vaccine(); virtual ~Vaccine() = default; /// /// Validate the current data in the model. Throws a ValidationException on failure. /// void validate() const; /// /// Validate the current data in the model. Returns false on error and writes an error /// message into the given stringstream. /// bool validate(std::stringstream& msg) const; /// /// Helper overload for validate. Used when one model stores another model and calls it's validate. /// Not meant to be called outside that case. /// bool validate(std::stringstream& msg, const std::string& pathPrefix) const; bool operator==(const Vaccine& rhs) const; bool operator!=(const Vaccine& rhs) const; ///////////////////////////////////////////// /// Vaccine members /// /// vaccination date /// nlohmann::json getDate() const; void setDate(nlohmann::json const& value); /// /// true if a booster is still needed to complete the vaccination /// bool isBoosterRequired() const; void setBoosterRequired(bool const value); friend void to_json(nlohmann::json& j, const Vaccine& o); friend void from_json(const nlohmann::json& j, Vaccine& o); protected: nlohmann::json m_date; bool m_BoosterRequired; }; } // namespace org::openapitools::server::model #endif /* Vaccine_H_ */