|  | 
|  | 1 | +// This file is auto-generated, don't edit it. Thanks. | 
|  | 2 | +#ifndef ALIBABACLOUD_MODELS_APIGLLMMODEL_HPP_ | 
|  | 3 | +#define ALIBABACLOUD_MODELS_APIGLLMMODEL_HPP_ | 
|  | 4 | +#include <darabonba/Core.hpp> | 
|  | 5 | +using namespace std; | 
|  | 6 | +using json = nlohmann::json; | 
|  | 7 | +namespace AlibabaCloud | 
|  | 8 | +{ | 
|  | 9 | +namespace AgentRun20250910 | 
|  | 10 | +{ | 
|  | 11 | +namespace Models | 
|  | 12 | +{ | 
|  | 13 | + class ApigLLMModel : public Darabonba::Model { | 
|  | 14 | + public: | 
|  | 15 | + friend void to_json(Darabonba::Json& j, const ApigLLMModel& obj) {  | 
|  | 16 | + DARABONBA_PTR_TO_JSON(address, address_); | 
|  | 17 | + DARABONBA_PTR_TO_JSON(apiKey, apiKey_); | 
|  | 18 | + DARABONBA_PTR_TO_JSON(createdTime, createdTime_); | 
|  | 19 | + DARABONBA_PTR_TO_JSON(desc, desc_); | 
|  | 20 | + DARABONBA_PTR_TO_JSON(gatewayId, gatewayId_); | 
|  | 21 | + DARABONBA_PTR_TO_JSON(modelId, modelId_); | 
|  | 22 | + DARABONBA_PTR_TO_JSON(models, models_); | 
|  | 23 | + DARABONBA_PTR_TO_JSON(modelsWeight, modelsWeight_); | 
|  | 24 | + DARABONBA_PTR_TO_JSON(name, name_); | 
|  | 25 | + DARABONBA_PTR_TO_JSON(provider, provider_); | 
|  | 26 | + DARABONBA_PTR_TO_JSON(targetId, targetId_); | 
|  | 27 | + DARABONBA_PTR_TO_JSON(tenantId, tenantId_); | 
|  | 28 | + DARABONBA_PTR_TO_JSON(type, type_); | 
|  | 29 | + DARABONBA_PTR_TO_JSON(updateTime, updateTime_); | 
|  | 30 | + }; | 
|  | 31 | + friend void from_json(const Darabonba::Json& j, ApigLLMModel& obj) {  | 
|  | 32 | + DARABONBA_PTR_FROM_JSON(address, address_); | 
|  | 33 | + DARABONBA_PTR_FROM_JSON(apiKey, apiKey_); | 
|  | 34 | + DARABONBA_PTR_FROM_JSON(createdTime, createdTime_); | 
|  | 35 | + DARABONBA_PTR_FROM_JSON(desc, desc_); | 
|  | 36 | + DARABONBA_PTR_FROM_JSON(gatewayId, gatewayId_); | 
|  | 37 | + DARABONBA_PTR_FROM_JSON(modelId, modelId_); | 
|  | 38 | + DARABONBA_PTR_FROM_JSON(models, models_); | 
|  | 39 | + DARABONBA_PTR_FROM_JSON(modelsWeight, modelsWeight_); | 
|  | 40 | + DARABONBA_PTR_FROM_JSON(name, name_); | 
|  | 41 | + DARABONBA_PTR_FROM_JSON(provider, provider_); | 
|  | 42 | + DARABONBA_PTR_FROM_JSON(targetId, targetId_); | 
|  | 43 | + DARABONBA_PTR_FROM_JSON(tenantId, tenantId_); | 
|  | 44 | + DARABONBA_PTR_FROM_JSON(type, type_); | 
|  | 45 | + DARABONBA_PTR_FROM_JSON(updateTime, updateTime_); | 
|  | 46 | + }; | 
|  | 47 | + ApigLLMModel() = default ; | 
|  | 48 | + ApigLLMModel(const ApigLLMModel &) = default ; | 
|  | 49 | + ApigLLMModel(ApigLLMModel &&) = default ; | 
|  | 50 | + ApigLLMModel(const Darabonba::Json & obj) { from_json(obj, *this); }; | 
|  | 51 | + virtual ~ApigLLMModel() = default ; | 
|  | 52 | + ApigLLMModel& operator=(const ApigLLMModel &) = default ; | 
|  | 53 | + ApigLLMModel& operator=(ApigLLMModel &&) = default ; | 
|  | 54 | + virtual void validate() const override { | 
|  | 55 | + }; | 
|  | 56 | + virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); }; | 
|  | 57 | + virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; }; | 
|  | 58 | + virtual bool empty() const override { return this->address_ == nullptr | 
|  | 59 | + && return this->apiKey_ == nullptr && return this->createdTime_ == nullptr && return this->desc_ == nullptr && return this->gatewayId_ == nullptr && return this->modelId_ == nullptr | 
|  | 60 | + && return this->models_ == nullptr && return this->modelsWeight_ == nullptr && return this->name_ == nullptr && return this->provider_ == nullptr && return this->targetId_ == nullptr | 
|  | 61 | + && return this->tenantId_ == nullptr && return this->type_ == nullptr && return this->updateTime_ == nullptr; }; | 
|  | 62 | + // address Field Functions  | 
|  | 63 | + bool hasAddress() const { return this->address_ != nullptr;}; | 
|  | 64 | + void deleteAddress() { this->address_ = nullptr;}; | 
|  | 65 | + inline string address() const { DARABONBA_PTR_GET_DEFAULT(address_, "") }; | 
|  | 66 | + inline ApigLLMModel& setAddress(string address) { DARABONBA_PTR_SET_VALUE(address_, address) }; | 
|  | 67 | + | 
|  | 68 | + | 
|  | 69 | + // apiKey Field Functions  | 
|  | 70 | + bool hasApiKey() const { return this->apiKey_ != nullptr;}; | 
|  | 71 | + void deleteApiKey() { this->apiKey_ = nullptr;}; | 
|  | 72 | + inline string apiKey() const { DARABONBA_PTR_GET_DEFAULT(apiKey_, "") }; | 
|  | 73 | + inline ApigLLMModel& setApiKey(string apiKey) { DARABONBA_PTR_SET_VALUE(apiKey_, apiKey) }; | 
|  | 74 | + | 
|  | 75 | + | 
|  | 76 | + // createdTime Field Functions  | 
|  | 77 | + bool hasCreatedTime() const { return this->createdTime_ != nullptr;}; | 
|  | 78 | + void deleteCreatedTime() { this->createdTime_ = nullptr;}; | 
|  | 79 | + inline string createdTime() const { DARABONBA_PTR_GET_DEFAULT(createdTime_, "") }; | 
|  | 80 | + inline ApigLLMModel& setCreatedTime(string createdTime) { DARABONBA_PTR_SET_VALUE(createdTime_, createdTime) }; | 
|  | 81 | + | 
|  | 82 | + | 
|  | 83 | + // desc Field Functions  | 
|  | 84 | + bool hasDesc() const { return this->desc_ != nullptr;}; | 
|  | 85 | + void deleteDesc() { this->desc_ = nullptr;}; | 
|  | 86 | + inline string desc() const { DARABONBA_PTR_GET_DEFAULT(desc_, "") }; | 
|  | 87 | + inline ApigLLMModel& setDesc(string desc) { DARABONBA_PTR_SET_VALUE(desc_, desc) }; | 
|  | 88 | + | 
|  | 89 | + | 
|  | 90 | + // gatewayId Field Functions  | 
|  | 91 | + bool hasGatewayId() const { return this->gatewayId_ != nullptr;}; | 
|  | 92 | + void deleteGatewayId() { this->gatewayId_ = nullptr;}; | 
|  | 93 | + inline string gatewayId() const { DARABONBA_PTR_GET_DEFAULT(gatewayId_, "") }; | 
|  | 94 | + inline ApigLLMModel& setGatewayId(string gatewayId) { DARABONBA_PTR_SET_VALUE(gatewayId_, gatewayId) }; | 
|  | 95 | + | 
|  | 96 | + | 
|  | 97 | + // modelId Field Functions  | 
|  | 98 | + bool hasModelId() const { return this->modelId_ != nullptr;}; | 
|  | 99 | + void deleteModelId() { this->modelId_ = nullptr;}; | 
|  | 100 | + inline string modelId() const { DARABONBA_PTR_GET_DEFAULT(modelId_, "") }; | 
|  | 101 | + inline ApigLLMModel& setModelId(string modelId) { DARABONBA_PTR_SET_VALUE(modelId_, modelId) }; | 
|  | 102 | + | 
|  | 103 | + | 
|  | 104 | + // models Field Functions  | 
|  | 105 | + bool hasModels() const { return this->models_ != nullptr;}; | 
|  | 106 | + void deleteModels() { this->models_ = nullptr;}; | 
|  | 107 | + inline string models() const { DARABONBA_PTR_GET_DEFAULT(models_, "") }; | 
|  | 108 | + inline ApigLLMModel& setModels(string models) { DARABONBA_PTR_SET_VALUE(models_, models) }; | 
|  | 109 | + | 
|  | 110 | + | 
|  | 111 | + // modelsWeight Field Functions  | 
|  | 112 | + bool hasModelsWeight() const { return this->modelsWeight_ != nullptr;}; | 
|  | 113 | + void deleteModelsWeight() { this->modelsWeight_ = nullptr;}; | 
|  | 114 | + inline string modelsWeight() const { DARABONBA_PTR_GET_DEFAULT(modelsWeight_, "") }; | 
|  | 115 | + inline ApigLLMModel& setModelsWeight(string modelsWeight) { DARABONBA_PTR_SET_VALUE(modelsWeight_, modelsWeight) }; | 
|  | 116 | + | 
|  | 117 | + | 
|  | 118 | + // name Field Functions  | 
|  | 119 | + bool hasName() const { return this->name_ != nullptr;}; | 
|  | 120 | + void deleteName() { this->name_ = nullptr;}; | 
|  | 121 | + inline string name() const { DARABONBA_PTR_GET_DEFAULT(name_, "") }; | 
|  | 122 | + inline ApigLLMModel& setName(string name) { DARABONBA_PTR_SET_VALUE(name_, name) }; | 
|  | 123 | + | 
|  | 124 | + | 
|  | 125 | + // provider Field Functions  | 
|  | 126 | + bool hasProvider() const { return this->provider_ != nullptr;}; | 
|  | 127 | + void deleteProvider() { this->provider_ = nullptr;}; | 
|  | 128 | + inline string provider() const { DARABONBA_PTR_GET_DEFAULT(provider_, "") }; | 
|  | 129 | + inline ApigLLMModel& setProvider(string provider) { DARABONBA_PTR_SET_VALUE(provider_, provider) }; | 
|  | 130 | + | 
|  | 131 | + | 
|  | 132 | + // targetId Field Functions  | 
|  | 133 | + bool hasTargetId() const { return this->targetId_ != nullptr;}; | 
|  | 134 | + void deleteTargetId() { this->targetId_ = nullptr;}; | 
|  | 135 | + inline string targetId() const { DARABONBA_PTR_GET_DEFAULT(targetId_, "") }; | 
|  | 136 | + inline ApigLLMModel& setTargetId(string targetId) { DARABONBA_PTR_SET_VALUE(targetId_, targetId) }; | 
|  | 137 | + | 
|  | 138 | + | 
|  | 139 | + // tenantId Field Functions  | 
|  | 140 | + bool hasTenantId() const { return this->tenantId_ != nullptr;}; | 
|  | 141 | + void deleteTenantId() { this->tenantId_ = nullptr;}; | 
|  | 142 | + inline string tenantId() const { DARABONBA_PTR_GET_DEFAULT(tenantId_, "") }; | 
|  | 143 | + inline ApigLLMModel& setTenantId(string tenantId) { DARABONBA_PTR_SET_VALUE(tenantId_, tenantId) }; | 
|  | 144 | + | 
|  | 145 | + | 
|  | 146 | + // type Field Functions  | 
|  | 147 | + bool hasType() const { return this->type_ != nullptr;}; | 
|  | 148 | + void deleteType() { this->type_ = nullptr;}; | 
|  | 149 | + inline string type() const { DARABONBA_PTR_GET_DEFAULT(type_, "") }; | 
|  | 150 | + inline ApigLLMModel& setType(string type) { DARABONBA_PTR_SET_VALUE(type_, type) }; | 
|  | 151 | + | 
|  | 152 | + | 
|  | 153 | + // updateTime Field Functions  | 
|  | 154 | + bool hasUpdateTime() const { return this->updateTime_ != nullptr;}; | 
|  | 155 | + void deleteUpdateTime() { this->updateTime_ = nullptr;}; | 
|  | 156 | + inline string updateTime() const { DARABONBA_PTR_GET_DEFAULT(updateTime_, "") }; | 
|  | 157 | + inline ApigLLMModel& setUpdateTime(string updateTime) { DARABONBA_PTR_SET_VALUE(updateTime_, updateTime) }; | 
|  | 158 | + | 
|  | 159 | + | 
|  | 160 | + protected: | 
|  | 161 | + std::shared_ptr<string> address_ = nullptr; | 
|  | 162 | + std::shared_ptr<string> apiKey_ = nullptr; | 
|  | 163 | + std::shared_ptr<string> createdTime_ = nullptr; | 
|  | 164 | + std::shared_ptr<string> desc_ = nullptr; | 
|  | 165 | + std::shared_ptr<string> gatewayId_ = nullptr; | 
|  | 166 | + std::shared_ptr<string> modelId_ = nullptr; | 
|  | 167 | + std::shared_ptr<string> models_ = nullptr; | 
|  | 168 | + std::shared_ptr<string> modelsWeight_ = nullptr; | 
|  | 169 | + std::shared_ptr<string> name_ = nullptr; | 
|  | 170 | + std::shared_ptr<string> provider_ = nullptr; | 
|  | 171 | + std::shared_ptr<string> targetId_ = nullptr; | 
|  | 172 | + std::shared_ptr<string> tenantId_ = nullptr; | 
|  | 173 | + std::shared_ptr<string> type_ = nullptr; | 
|  | 174 | + std::shared_ptr<string> updateTime_ = nullptr; | 
|  | 175 | + }; | 
|  | 176 | + | 
|  | 177 | + } // namespace Models | 
|  | 178 | +} // namespace AlibabaCloud | 
|  | 179 | +} // namespace AgentRun20250910 | 
|  | 180 | +#endif | 
0 commit comments