/** * Jungfraujoch * Jungfraujoch Broker Web API * * The version of the OpenAPI document: 1.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ #include "Plot_request.h" #include "Helpers.h" #include namespace org::openapitools::server::model { Plot_request::Plot_request() { m_Binning = 0L; m_BinningIsSet = false; } void Plot_request::validate() const { std::stringstream msg; if (!validate(msg)) { throw org::openapitools::server::helpers::ValidationException(msg.str()); } } bool Plot_request::validate(std::stringstream& msg) const { return validate(msg, ""); } bool Plot_request::validate(std::stringstream& msg, const std::string& pathPrefix) const { bool success = true; const std::string _pathPrefix = pathPrefix.empty() ? "Plot_request" : pathPrefix; return success; } bool Plot_request::operator==(const Plot_request& rhs) const { return ((!binningIsSet() && !rhs.binningIsSet()) || (binningIsSet() && rhs.binningIsSet() && getBinning() == rhs.getBinning())) ; } bool Plot_request::operator!=(const Plot_request& rhs) const { return !(*this == rhs); } void to_json(nlohmann::json& j, const Plot_request& o) { j = nlohmann::json(); if(o.binningIsSet()) j["binning"] = o.m_Binning; } void from_json(const nlohmann::json& j, Plot_request& o) { if(j.find("binning") != j.end()) { j.at("binning").get_to(o.m_Binning); o.m_BinningIsSet = true; } } int64_t Plot_request::getBinning() const { return m_Binning; } void Plot_request::setBinning(int64_t const value) { m_Binning = value; m_BinningIsSet = true; } bool Plot_request::binningIsSet() const { return m_BinningIsSet; } void Plot_request::unsetBinning() { m_BinningIsSet = false; } } // namespace org::openapitools::server::model