forked from loafle/openapi-generator-original
- Handling `std::set` in cpp-restdsk - Member variables using `std:set` added to `Pet` in cpp-restsdk 3.0 Petstore sample [cpp-pistache-server] taking into account a remark on this issue about cpp-pistache-server and its set management - Switching `std::vector` to `std::set` for openapi set type in cpp-pistache-server
85 lines
2.0 KiB
C++
85 lines
2.0 KiB
C++
/**
|
|
* 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 <nlohmann/json.hpp>
|
|
#include <nlohmann/json.hpp>
|
|
|
|
namespace org::openapitools::server::model
|
|
{
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
class Vaccine
|
|
{
|
|
public:
|
|
Vaccine();
|
|
virtual ~Vaccine() = default;
|
|
|
|
|
|
/// <summary>
|
|
/// Validate the current data in the model. Throws a ValidationException on failure.
|
|
/// </summary>
|
|
void validate() const;
|
|
|
|
/// <summary>
|
|
/// Validate the current data in the model. Returns false on error and writes an error
|
|
/// message into the given stringstream.
|
|
/// </summary>
|
|
bool validate(std::stringstream& msg) const;
|
|
|
|
/// <summary>
|
|
/// Helper overload for validate. Used when one model stores another model and calls it's validate.
|
|
/// Not meant to be called outside that case.
|
|
/// </summary>
|
|
bool validate(std::stringstream& msg, const std::string& pathPrefix) const;
|
|
|
|
bool operator==(const Vaccine& rhs) const;
|
|
bool operator!=(const Vaccine& rhs) const;
|
|
|
|
/////////////////////////////////////////////
|
|
/// Vaccine members
|
|
|
|
/// <summary>
|
|
/// vaccination date
|
|
/// </summary>
|
|
nlohmann::json getDate() const;
|
|
void setDate(nlohmann::json const& value);
|
|
/// <summary>
|
|
/// true if a booster is still needed to complete the vaccination
|
|
/// </summary>
|
|
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_ */
|