|
| 1 | +// This file is auto-generated, don't edit it. Thanks. |
| 2 | +#ifndef ALIBABACLOUD_MODELS_PAGEQUERYAGENTLISTREQUEST_HPP_ |
| 3 | +#define ALIBABACLOUD_MODELS_PAGEQUERYAGENTLISTREQUEST_HPP_ |
| 4 | +#include <darabonba/Core.hpp> |
| 5 | +using namespace std; |
| 6 | +using json = nlohmann::json; |
| 7 | +namespace AlibabaCloud |
| 8 | +{ |
| 9 | +namespace Aiccs20191015 |
| 10 | +{ |
| 11 | +namespace Models |
| 12 | +{ |
| 13 | + class PageQueryAgentListRequest : public Darabonba::Model { |
| 14 | + public: |
| 15 | + friend void to_json(Darabonba::Json& j, const PageQueryAgentListRequest& obj) { |
| 16 | + DARABONBA_PTR_TO_JSON(AgentId, agentId_); |
| 17 | + DARABONBA_PTR_TO_JSON(AgentName, agentName_); |
| 18 | + DARABONBA_PTR_TO_JSON(OwnerId, ownerId_); |
| 19 | + DARABONBA_PTR_TO_JSON(PageNo, pageNo_); |
| 20 | + DARABONBA_PTR_TO_JSON(PageSize, pageSize_); |
| 21 | + DARABONBA_PTR_TO_JSON(ResourceOwnerAccount, resourceOwnerAccount_); |
| 22 | + DARABONBA_PTR_TO_JSON(ResourceOwnerId, resourceOwnerId_); |
| 23 | + DARABONBA_PTR_TO_JSON(Status, status_); |
| 24 | + }; |
| 25 | + friend void from_json(const Darabonba::Json& j, PageQueryAgentListRequest& obj) { |
| 26 | + DARABONBA_PTR_FROM_JSON(AgentId, agentId_); |
| 27 | + DARABONBA_PTR_FROM_JSON(AgentName, agentName_); |
| 28 | + DARABONBA_PTR_FROM_JSON(OwnerId, ownerId_); |
| 29 | + DARABONBA_PTR_FROM_JSON(PageNo, pageNo_); |
| 30 | + DARABONBA_PTR_FROM_JSON(PageSize, pageSize_); |
| 31 | + DARABONBA_PTR_FROM_JSON(ResourceOwnerAccount, resourceOwnerAccount_); |
| 32 | + DARABONBA_PTR_FROM_JSON(ResourceOwnerId, resourceOwnerId_); |
| 33 | + DARABONBA_PTR_FROM_JSON(Status, status_); |
| 34 | + }; |
| 35 | + PageQueryAgentListRequest() = default ; |
| 36 | + PageQueryAgentListRequest(const PageQueryAgentListRequest &) = default ; |
| 37 | + PageQueryAgentListRequest(PageQueryAgentListRequest &&) = default ; |
| 38 | + PageQueryAgentListRequest(const Darabonba::Json & obj) { from_json(obj, *this); }; |
| 39 | + virtual ~PageQueryAgentListRequest() = default ; |
| 40 | + PageQueryAgentListRequest& operator=(const PageQueryAgentListRequest &) = default ; |
| 41 | + PageQueryAgentListRequest& operator=(PageQueryAgentListRequest &&) = default ; |
| 42 | + virtual void validate() const override { |
| 43 | + }; |
| 44 | + virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); }; |
| 45 | + virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; }; |
| 46 | + virtual bool empty() const override { return this->agentId_ == nullptr |
| 47 | + && return this->agentName_ == nullptr && return this->ownerId_ == nullptr && return this->pageNo_ == nullptr && return this->pageSize_ == nullptr && return this->resourceOwnerAccount_ == nullptr |
| 48 | + && return this->resourceOwnerId_ == nullptr && return this->status_ == nullptr; }; |
| 49 | + // agentId Field Functions |
| 50 | + bool hasAgentId() const { return this->agentId_ != nullptr;}; |
| 51 | + void deleteAgentId() { this->agentId_ = nullptr;}; |
| 52 | + inline string agentId() const { DARABONBA_PTR_GET_DEFAULT(agentId_, "") }; |
| 53 | + inline PageQueryAgentListRequest& setAgentId(string agentId) { DARABONBA_PTR_SET_VALUE(agentId_, agentId) }; |
| 54 | + |
| 55 | + |
| 56 | + // agentName Field Functions |
| 57 | + bool hasAgentName() const { return this->agentName_ != nullptr;}; |
| 58 | + void deleteAgentName() { this->agentName_ = nullptr;}; |
| 59 | + inline string agentName() const { DARABONBA_PTR_GET_DEFAULT(agentName_, "") }; |
| 60 | + inline PageQueryAgentListRequest& setAgentName(string agentName) { DARABONBA_PTR_SET_VALUE(agentName_, agentName) }; |
| 61 | + |
| 62 | + |
| 63 | + // ownerId Field Functions |
| 64 | + bool hasOwnerId() const { return this->ownerId_ != nullptr;}; |
| 65 | + void deleteOwnerId() { this->ownerId_ = nullptr;}; |
| 66 | + inline int64_t ownerId() const { DARABONBA_PTR_GET_DEFAULT(ownerId_, 0L) }; |
| 67 | + inline PageQueryAgentListRequest& setOwnerId(int64_t ownerId) { DARABONBA_PTR_SET_VALUE(ownerId_, ownerId) }; |
| 68 | + |
| 69 | + |
| 70 | + // pageNo Field Functions |
| 71 | + bool hasPageNo() const { return this->pageNo_ != nullptr;}; |
| 72 | + void deletePageNo() { this->pageNo_ = nullptr;}; |
| 73 | + inline int64_t pageNo() const { DARABONBA_PTR_GET_DEFAULT(pageNo_, 0L) }; |
| 74 | + inline PageQueryAgentListRequest& setPageNo(int64_t pageNo) { DARABONBA_PTR_SET_VALUE(pageNo_, pageNo) }; |
| 75 | + |
| 76 | + |
| 77 | + // pageSize Field Functions |
| 78 | + bool hasPageSize() const { return this->pageSize_ != nullptr;}; |
| 79 | + void deletePageSize() { this->pageSize_ = nullptr;}; |
| 80 | + inline int64_t pageSize() const { DARABONBA_PTR_GET_DEFAULT(pageSize_, 0L) }; |
| 81 | + inline PageQueryAgentListRequest& setPageSize(int64_t pageSize) { DARABONBA_PTR_SET_VALUE(pageSize_, pageSize) }; |
| 82 | + |
| 83 | + |
| 84 | + // resourceOwnerAccount Field Functions |
| 85 | + bool hasResourceOwnerAccount() const { return this->resourceOwnerAccount_ != nullptr;}; |
| 86 | + void deleteResourceOwnerAccount() { this->resourceOwnerAccount_ = nullptr;}; |
| 87 | + inline string resourceOwnerAccount() const { DARABONBA_PTR_GET_DEFAULT(resourceOwnerAccount_, "") }; |
| 88 | + inline PageQueryAgentListRequest& setResourceOwnerAccount(string resourceOwnerAccount) { DARABONBA_PTR_SET_VALUE(resourceOwnerAccount_, resourceOwnerAccount) }; |
| 89 | + |
| 90 | + |
| 91 | + // resourceOwnerId Field Functions |
| 92 | + bool hasResourceOwnerId() const { return this->resourceOwnerId_ != nullptr;}; |
| 93 | + void deleteResourceOwnerId() { this->resourceOwnerId_ = nullptr;}; |
| 94 | + inline int64_t resourceOwnerId() const { DARABONBA_PTR_GET_DEFAULT(resourceOwnerId_, 0L) }; |
| 95 | + inline PageQueryAgentListRequest& setResourceOwnerId(int64_t resourceOwnerId) { DARABONBA_PTR_SET_VALUE(resourceOwnerId_, resourceOwnerId) }; |
| 96 | + |
| 97 | + |
| 98 | + // status Field Functions |
| 99 | + bool hasStatus() const { return this->status_ != nullptr;}; |
| 100 | + void deleteStatus() { this->status_ = nullptr;}; |
| 101 | + inline int64_t status() const { DARABONBA_PTR_GET_DEFAULT(status_, 0L) }; |
| 102 | + inline PageQueryAgentListRequest& setStatus(int64_t status) { DARABONBA_PTR_SET_VALUE(status_, status) }; |
| 103 | + |
| 104 | + |
| 105 | + protected: |
| 106 | + std::shared_ptr<string> agentId_ = nullptr; |
| 107 | + std::shared_ptr<string> agentName_ = nullptr; |
| 108 | + std::shared_ptr<int64_t> ownerId_ = nullptr; |
| 109 | + std::shared_ptr<int64_t> pageNo_ = nullptr; |
| 110 | + std::shared_ptr<int64_t> pageSize_ = nullptr; |
| 111 | + std::shared_ptr<string> resourceOwnerAccount_ = nullptr; |
| 112 | + std::shared_ptr<int64_t> resourceOwnerId_ = nullptr; |
| 113 | + std::shared_ptr<int64_t> status_ = nullptr; |
| 114 | + }; |
| 115 | + |
| 116 | + } // namespace Models |
| 117 | +} // namespace AlibabaCloud |
| 118 | +} // namespace Aiccs20191015 |
| 119 | +#endif |
0 commit comments