From 949e7960dc2bf733cb3da226a6805657cf126318 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 14 Sep 2022 13:26:18 +0000 Subject: [PATCH] Add spInstanceId and spInstanceType for api OnsInstanceBaseInfo. --- VERSION | 2 +- ons/CMakeLists.txt | 8 -- ons/include/alibabacloud/ons/OnsClient.h | 16 --- .../ons/model/ListTagResourcesRequest.h | 102 +++++++------- .../ons/model/OnsConsumerAccumulateRequest.h | 80 +++++------ .../model/OnsConsumerGetConnectionRequest.h | 74 +++++----- .../ons/model/OnsConsumerResetOffsetRequest.h | 92 ++++++------- .../ons/model/OnsConsumerStatusRequest.h | 86 ++++++------ .../ons/model/OnsConsumerTimeSpanRequest.h | 80 +++++------ .../ons/model/OnsDLQMessageGetByIdRequest.h | 80 +++++------ .../OnsDLQMessagePageQueryByGroupIdRequest.h | 104 +++++++------- .../model/OnsDLQMessageResendByIdRequest.h | 80 +++++------ .../ons/model/OnsGroupConsumerUpdateRequest.h | 80 +++++------ .../ons/model/OnsGroupCreateRequest.h | 86 ++++++------ .../ons/model/OnsGroupDeleteRequest.h | 74 +++++----- .../ons/model/OnsGroupListRequest.h | 99 +++++++------- .../ons/model/OnsGroupSubDetailRequest.h | 74 +++++----- .../ons/model/OnsInstanceBaseInfoRequest.h | 68 +++++----- .../ons/model/OnsInstanceBaseInfoResult.h | 11 +- .../ons/model/OnsInstanceCreateRequest.h | 74 +++++----- .../ons/model/OnsInstanceDeleteRequest.h | 68 +++++----- .../model/OnsInstanceInServiceListRequest.h | 81 ++++++----- .../ons/model/OnsInstanceUpdateRequest.h | 80 +++++------ .../ons/model/OnsMessageGetByKeyRequest.h | 80 +++++------ .../ons/model/OnsMessageGetByMsgIdRequest.h | 80 +++++------ .../model/OnsMessagePageQueryByTopicRequest.h | 104 +++++++------- .../ons/model/OnsMessagePushRequest.h | 92 ++++++------- .../ons/model/OnsMessageTraceRequest.h | 80 +++++------ .../ons/model/OnsRegionListRequest.h | 62 ++++----- .../ons/model/OnsRegionListResult.h | 2 +- .../ons/model/OnsTopicCreateRequest.h | 86 ++++++------ .../ons/model/OnsTopicDeleteRequest.h | 74 +++++----- .../ons/model/OnsTopicListRequest.h | 93 ++++++------- .../ons/model/OnsTopicStatusRequest.h | 74 +++++----- .../ons/model/OnsTopicSubDetailRequest.h | 74 +++++----- .../ons/model/OnsTopicUpdateRequest.h | 80 +++++------ .../ons/model/OnsTraceGetResultRequest.h | 68 +++++----- .../ons/model/OnsTraceQueryByMsgIdRequest.h | 92 ++++++------- .../ons/model/OnsTraceQueryByMsgKeyRequest.h | 92 ++++++------- .../ons/model/OnsTrendGroupOutputTpsRequest.h | 104 +++++++------- .../ons/model/OnsTrendTopicInputTpsRequest.h | 98 +++++++------- .../ons/model/OnsWarnCreateRequest.h | 72 ---------- .../ons/model/OnsWarnCreateResult.h | 51 ------- .../ons/model/OnsWarnDeleteRequest.h | 54 -------- .../ons/model/OnsWarnDeleteResult.h | 51 ------- .../ons/model/OpenOnsServiceRequest.h | 62 ++++----- .../ons/model/TagResourcesRequest.h | 96 ++++++------- .../ons/model/UntagResourcesRequest.h | 92 ++++++------- ons/src/OnsClient.cc | 72 ---------- ons/src/model/ListTagResourcesRequest.cc | 105 ++++++-------- ons/src/model/OnsConsumerAccumulateRequest.cc | 70 +++++----- .../model/OnsConsumerGetConnectionRequest.cc | 58 ++++---- .../model/OnsConsumerResetOffsetRequest.cc | 94 ++++++------- ons/src/model/OnsConsumerStatusRequest.cc | 82 +++++------ ons/src/model/OnsConsumerTimeSpanRequest.cc | 70 +++++----- ons/src/model/OnsDLQMessageGetByIdRequest.cc | 70 +++++----- .../OnsDLQMessagePageQueryByGroupIdRequest.cc | 118 +++++++--------- .../model/OnsDLQMessageResendByIdRequest.cc | 70 +++++----- .../model/OnsGroupConsumerUpdateRequest.cc | 70 +++++----- ons/src/model/OnsGroupCreateRequest.cc | 82 +++++------ ons/src/model/OnsGroupDeleteRequest.cc | 58 ++++---- ons/src/model/OnsGroupListRequest.cc | 101 +++++++------- ons/src/model/OnsGroupSubDetailRequest.cc | 58 ++++---- ons/src/model/OnsInstanceBaseInfoRequest.cc | 46 +++---- ons/src/model/OnsInstanceBaseInfoResult.cc | 10 +- ons/src/model/OnsInstanceCreateRequest.cc | 58 ++++---- ons/src/model/OnsInstanceDeleteRequest.cc | 46 +++---- .../model/OnsInstanceInServiceListRequest.cc | 65 +++++---- ons/src/model/OnsInstanceUpdateRequest.cc | 70 +++++----- ons/src/model/OnsMessageGetByKeyRequest.cc | 70 +++++----- ons/src/model/OnsMessageGetByMsgIdRequest.cc | 70 +++++----- .../OnsMessagePageQueryByTopicRequest.cc | 118 +++++++--------- ons/src/model/OnsMessagePushRequest.cc | 94 ++++++------- ons/src/model/OnsMessageTraceRequest.cc | 70 +++++----- ons/src/model/OnsRegionListRequest.cc | 34 +++-- ons/src/model/OnsRegionListResult.cc | 16 +-- ons/src/model/OnsTopicCreateRequest.cc | 82 +++++------ ons/src/model/OnsTopicDeleteRequest.cc | 58 ++++---- ons/src/model/OnsTopicListRequest.cc | 89 ++++++------ ons/src/model/OnsTopicStatusRequest.cc | 58 ++++---- ons/src/model/OnsTopicSubDetailRequest.cc | 58 ++++---- ons/src/model/OnsTopicUpdateRequest.cc | 70 +++++----- ons/src/model/OnsTraceGetResultRequest.cc | 46 +++---- ons/src/model/OnsTraceQueryByMsgIdRequest.cc | 94 ++++++------- ons/src/model/OnsTraceQueryByMsgKeyRequest.cc | 94 ++++++------- .../model/OnsTrendGroupOutputTpsRequest.cc | 118 +++++++--------- ons/src/model/OnsTrendTopicInputTpsRequest.cc | 106 +++++++-------- ons/src/model/OnsWarnCreateRequest.cc | 128 ------------------ ons/src/model/OnsWarnCreateResult.cc | 51 ------- ons/src/model/OnsWarnDeleteRequest.cc | 62 --------- ons/src/model/OnsWarnDeleteResult.cc | 51 ------- ons/src/model/OpenOnsServiceRequest.cc | 34 +++-- ons/src/model/TagResourcesRequest.cc | 93 ++++++------- ons/src/model/UntagResourcesRequest.cc | 96 ++++++------- 94 files changed, 2842 insertions(+), 4003 deletions(-) delete mode 100644 ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h delete mode 100644 ons/include/alibabacloud/ons/model/OnsWarnCreateResult.h delete mode 100644 ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h delete mode 100644 ons/include/alibabacloud/ons/model/OnsWarnDeleteResult.h delete mode 100644 ons/src/model/OnsWarnCreateRequest.cc delete mode 100644 ons/src/model/OnsWarnCreateResult.cc delete mode 100644 ons/src/model/OnsWarnDeleteRequest.cc delete mode 100644 ons/src/model/OnsWarnDeleteResult.cc diff --git a/VERSION b/VERSION index 89598ce2a..e20d19277 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1256 \ No newline at end of file +1.36.1257 \ No newline at end of file diff --git a/ons/CMakeLists.txt b/ons/CMakeLists.txt index 3f1108d29..4be6471c3 100644 --- a/ons/CMakeLists.txt +++ b/ons/CMakeLists.txt @@ -93,10 +93,6 @@ set(ons_public_header_model include/alibabacloud/ons/model/OnsTrendGroupOutputTpsResult.h include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h include/alibabacloud/ons/model/OnsTrendTopicInputTpsResult.h - include/alibabacloud/ons/model/OnsWarnCreateRequest.h - include/alibabacloud/ons/model/OnsWarnCreateResult.h - include/alibabacloud/ons/model/OnsWarnDeleteRequest.h - include/alibabacloud/ons/model/OnsWarnDeleteResult.h include/alibabacloud/ons/model/OpenOnsServiceRequest.h include/alibabacloud/ons/model/OpenOnsServiceResult.h include/alibabacloud/ons/model/TagResourcesRequest.h @@ -178,10 +174,6 @@ set(ons_src src/model/OnsTrendGroupOutputTpsResult.cc src/model/OnsTrendTopicInputTpsRequest.cc src/model/OnsTrendTopicInputTpsResult.cc - src/model/OnsWarnCreateRequest.cc - src/model/OnsWarnCreateResult.cc - src/model/OnsWarnDeleteRequest.cc - src/model/OnsWarnDeleteResult.cc src/model/OpenOnsServiceRequest.cc src/model/OpenOnsServiceResult.cc src/model/TagResourcesRequest.cc diff --git a/ons/include/alibabacloud/ons/OnsClient.h b/ons/include/alibabacloud/ons/OnsClient.h index c28bcade5..37f7de93c 100644 --- a/ons/include/alibabacloud/ons/OnsClient.h +++ b/ons/include/alibabacloud/ons/OnsClient.h @@ -94,10 +94,6 @@ #include "model/OnsTrendGroupOutputTpsResult.h" #include "model/OnsTrendTopicInputTpsRequest.h" #include "model/OnsTrendTopicInputTpsResult.h" -#include "model/OnsWarnCreateRequest.h" -#include "model/OnsWarnCreateResult.h" -#include "model/OnsWarnDeleteRequest.h" -#include "model/OnsWarnDeleteResult.h" #include "model/OpenOnsServiceRequest.h" #include "model/OpenOnsServiceResult.h" #include "model/TagResourcesRequest.h" @@ -221,12 +217,6 @@ namespace AlibabaCloud typedef Outcome OnsTrendTopicInputTpsOutcome; typedef std::future OnsTrendTopicInputTpsOutcomeCallable; typedef std::function&)> OnsTrendTopicInputTpsAsyncHandler; - typedef Outcome OnsWarnCreateOutcome; - typedef std::future OnsWarnCreateOutcomeCallable; - typedef std::function&)> OnsWarnCreateAsyncHandler; - typedef Outcome OnsWarnDeleteOutcome; - typedef std::future OnsWarnDeleteOutcomeCallable; - typedef std::function&)> OnsWarnDeleteAsyncHandler; typedef Outcome OpenOnsServiceOutcome; typedef std::future OpenOnsServiceOutcomeCallable; typedef std::function&)> OpenOnsServiceAsyncHandler; @@ -349,12 +339,6 @@ namespace AlibabaCloud OnsTrendTopicInputTpsOutcome onsTrendTopicInputTps(const Model::OnsTrendTopicInputTpsRequest &request)const; void onsTrendTopicInputTpsAsync(const Model::OnsTrendTopicInputTpsRequest& request, const OnsTrendTopicInputTpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OnsTrendTopicInputTpsOutcomeCallable onsTrendTopicInputTpsCallable(const Model::OnsTrendTopicInputTpsRequest& request) const; - OnsWarnCreateOutcome onsWarnCreate(const Model::OnsWarnCreateRequest &request)const; - void onsWarnCreateAsync(const Model::OnsWarnCreateRequest& request, const OnsWarnCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - OnsWarnCreateOutcomeCallable onsWarnCreateCallable(const Model::OnsWarnCreateRequest& request) const; - OnsWarnDeleteOutcome onsWarnDelete(const Model::OnsWarnDeleteRequest &request)const; - void onsWarnDeleteAsync(const Model::OnsWarnDeleteRequest& request, const OnsWarnDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - OnsWarnDeleteOutcomeCallable onsWarnDeleteCallable(const Model::OnsWarnDeleteRequest& request) const; OpenOnsServiceOutcome openOnsService(const Model::OpenOnsServiceRequest &request)const; void openOnsServiceAsync(const Model::OpenOnsServiceRequest& request, const OpenOnsServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OpenOnsServiceOutcomeCallable openOnsServiceCallable(const Model::OpenOnsServiceRequest& request) const; diff --git a/ons/include/alibabacloud/ons/model/ListTagResourcesRequest.h b/ons/include/alibabacloud/ons/model/ListTagResourcesRequest.h index 9b8869af7..0226f0b03 100644 --- a/ons/include/alibabacloud/ons/model/ListTagResourcesRequest.h +++ b/ons/include/alibabacloud/ons/model/ListTagResourcesRequest.h @@ -1,66 +1,58 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT ListTagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - ListTagResourcesRequest(); - ~ListTagResourcesRequest(); - - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::vector getTag()const; - void setTag(const std::vector& tag); - - private: - std::vector resourceId_; - std::string resourceType_; - std::string instanceId_; - std::string nextToken_; - std::vector tag_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector resourceId_; + std::string resourceType_; + std::string instanceId_; + std::string nextToken_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h index 3b232f86a..17c1e4917 100644 --- a/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsConsumerAccumulateRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsConsumerAccumulateRequest : public RpcServiceRequest - { - - public: - OnsConsumerAccumulateRequest(); - ~OnsConsumerAccumulateRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getDetail()const; - void setDetail(bool detail); - - private: - std::string groupId_; - std::string instanceId_; - bool detail_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsConsumerAccumulateRequest : public RpcServiceRequest { +public: + OnsConsumerAccumulateRequest(); + ~OnsConsumerAccumulateRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + bool getDetail() const; + void setDetail(bool detail); + +private: + std::string groupId_; + std::string instanceId_; + bool detail_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERACCUMULATEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h index 685c2053d..11a428700 100644 --- a/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsConsumerGetConnectionRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsConsumerGetConnectionRequest : public RpcServiceRequest - { - - public: - OnsConsumerGetConnectionRequest(); - ~OnsConsumerGetConnectionRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string groupId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsConsumerGetConnectionRequest : public RpcServiceRequest { +public: + OnsConsumerGetConnectionRequest(); + ~OnsConsumerGetConnectionRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string groupId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERGETCONNECTIONREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h index 10dc12c29..11ad34b61 100644 --- a/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsConsumerResetOffsetRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsConsumerResetOffsetRequest : public RpcServiceRequest - { - - public: - OnsConsumerResetOffsetRequest(); - ~OnsConsumerResetOffsetRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - long getResetTimestamp()const; - void setResetTimestamp(long resetTimestamp); - int getType()const; - void setType(int type); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - std::string groupId_; - long resetTimestamp_; - int type_; - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsConsumerResetOffsetRequest : public RpcServiceRequest { +public: + OnsConsumerResetOffsetRequest(); + ~OnsConsumerResetOffsetRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + long getResetTimestamp() const; + void setResetTimestamp(long resetTimestamp); + int getType() const; + void setType(int type); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + std::string groupId_; + long resetTimestamp_; + int type_; + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERRESETOFFSETREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h index be2d42113..cf0b9aef7 100644 --- a/ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsConsumerStatusRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsConsumerStatusRequest : public RpcServiceRequest - { - - public: - OnsConsumerStatusRequest(); - ~OnsConsumerStatusRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getNeedJstack()const; - void setNeedJstack(bool needJstack); - bool getDetail()const; - void setDetail(bool detail); - - private: - std::string groupId_; - std::string instanceId_; - bool needJstack_; - bool detail_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsConsumerStatusRequest : public RpcServiceRequest { +public: + OnsConsumerStatusRequest(); + ~OnsConsumerStatusRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + bool getNeedJstack() const; + void setNeedJstack(bool needJstack); + bool getDetail() const; + void setDetail(bool detail); + +private: + std::string groupId_; + std::string instanceId_; + bool needJstack_; + bool detail_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERSTATUSREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h b/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h index e99760b61..725becdc7 100644 --- a/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsConsumerTimeSpanRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsConsumerTimeSpanRequest : public RpcServiceRequest - { - - public: - OnsConsumerTimeSpanRequest(); - ~OnsConsumerTimeSpanRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - std::string groupId_; - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsConsumerTimeSpanRequest : public RpcServiceRequest { +public: + OnsConsumerTimeSpanRequest(); + ~OnsConsumerTimeSpanRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + std::string groupId_; + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSCONSUMERTIMESPANREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h b/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h index 99ba10bf5..5aece4425 100644 --- a/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessageGetByIdRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsDLQMessageGetByIdRequest : public RpcServiceRequest - { - - public: - OnsDLQMessageGetByIdRequest(); - ~OnsDLQMessageGetByIdRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getMsgId()const; - void setMsgId(const std::string& msgId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string groupId_; - std::string msgId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsDLQMessageGetByIdRequest : public RpcServiceRequest { +public: + OnsDLQMessageGetByIdRequest(); + ~OnsDLQMessageGetByIdRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getMsgId() const; + void setMsgId(const std::string &msgId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string groupId_; + std::string msgId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEGETBYIDREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h b/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h index 535e3137d..50b6faf18 100644 --- a/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessagePageQueryByGroupIdRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsDLQMessagePageQueryByGroupIdRequest : public RpcServiceRequest - { - - public: - OnsDLQMessagePageQueryByGroupIdRequest(); - ~OnsDLQMessagePageQueryByGroupIdRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - long getEndTime()const; - void setEndTime(long endTime); - long getBeginTime()const; - void setBeginTime(long beginTime); - int getCurrentPage()const; - void setCurrentPage(int currentPage); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string groupId_; - long endTime_; - long beginTime_; - int currentPage_; - std::string instanceId_; - int pageSize_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsDLQMessagePageQueryByGroupIdRequest : public RpcServiceRequest { +public: + OnsDLQMessagePageQueryByGroupIdRequest(); + ~OnsDLQMessagePageQueryByGroupIdRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + long getEndTime() const; + void setEndTime(long endTime); + long getBeginTime() const; + void setBeginTime(long beginTime); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string groupId_; + long endTime_; + long beginTime_; + int currentPage_; + std::string instanceId_; + int pageSize_; + std::string taskId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGEPAGEQUERYBYGROUPIDREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h b/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h index 7dfa29ce5..22e1f1a29 100644 --- a/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsDLQMessageResendByIdRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsDLQMessageResendByIdRequest : public RpcServiceRequest - { - - public: - OnsDLQMessageResendByIdRequest(); - ~OnsDLQMessageResendByIdRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getMsgId()const; - void setMsgId(const std::string& msgId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string groupId_; - std::string msgId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsDLQMessageResendByIdRequest : public RpcServiceRequest { +public: + OnsDLQMessageResendByIdRequest(); + ~OnsDLQMessageResendByIdRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getMsgId() const; + void setMsgId(const std::string &msgId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string groupId_; + std::string msgId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSDLQMESSAGERESENDBYIDREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h index bac3c8389..c70dfc05a 100644 --- a/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsGroupConsumerUpdateRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsGroupConsumerUpdateRequest : public RpcServiceRequest - { - - public: - OnsGroupConsumerUpdateRequest(); - ~OnsGroupConsumerUpdateRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - bool getReadEnable()const; - void setReadEnable(bool readEnable); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string groupId_; - bool readEnable_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsGroupConsumerUpdateRequest : public RpcServiceRequest { +public: + OnsGroupConsumerUpdateRequest(); + ~OnsGroupConsumerUpdateRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + bool getReadEnable() const; + void setReadEnable(bool readEnable); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string groupId_; + bool readEnable_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPCONSUMERUPDATEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h index 39db90d85..47eb53b58 100644 --- a/ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsGroupCreateRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsGroupCreateRequest : public RpcServiceRequest - { - - public: - OnsGroupCreateRequest(); - ~OnsGroupCreateRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getGroupType()const; - void setGroupType(const std::string& groupType); - - private: - std::string groupId_; - std::string remark_; - std::string instanceId_; - std::string groupType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsGroupCreateRequest : public RpcServiceRequest { +public: + OnsGroupCreateRequest(); + ~OnsGroupCreateRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getGroupType() const; + void setGroupType(const std::string &groupType); + +private: + std::string groupId_; + std::string remark_; + std::string instanceId_; + std::string groupType_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPCREATEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h index 359f21457..63a95f3f5 100644 --- a/ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsGroupDeleteRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsGroupDeleteRequest : public RpcServiceRequest - { - - public: - OnsGroupDeleteRequest(); - ~OnsGroupDeleteRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string groupId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsGroupDeleteRequest : public RpcServiceRequest { +public: + OnsGroupDeleteRequest(); + ~OnsGroupDeleteRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string groupId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPDELETEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsGroupListRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupListRequest.h index bec57f023..8b3a5ce9c 100644 --- a/ons/include/alibabacloud/ons/model/OnsGroupListRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsGroupListRequest.h @@ -1,63 +1,58 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsGroupListRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - OnsGroupListRequest(); - ~OnsGroupListRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getGroupType()const; - void setGroupType(const std::string& groupType); - std::vector getTag()const; - void setTag(const std::vector& tag); - - private: - std::string groupId_; - std::string instanceId_; - std::string groupType_; - std::vector tag_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsGroupListRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + OnsGroupListRequest(); + ~OnsGroupListRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getGroupType() const; + void setGroupType(const std::string &groupType); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::string groupId_; + std::string userId_; + std::string instanceId_; + std::string groupType_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPLISTREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h b/ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h index c2b428bf9..349eb59dc 100644 --- a/ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsGroupSubDetailRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsGroupSubDetailRequest : public RpcServiceRequest - { - - public: - OnsGroupSubDetailRequest(); - ~OnsGroupSubDetailRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string groupId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsGroupSubDetailRequest : public RpcServiceRequest { +public: + OnsGroupSubDetailRequest(); + ~OnsGroupSubDetailRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string groupId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSGROUPSUBDETAILREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h index ed9bb7543..c38560cb4 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFOREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsInstanceBaseInfoRequest : public RpcServiceRequest - { - - public: - OnsInstanceBaseInfoRequest(); - ~OnsInstanceBaseInfoRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFOREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsInstanceBaseInfoRequest : public RpcServiceRequest { +public: + OnsInstanceBaseInfoRequest(); + ~OnsInstanceBaseInfoRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEBASEINFOREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h index c4bcd3a7b..bb4a3c0f6 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceBaseInfoResult.h @@ -42,16 +42,19 @@ namespace AlibabaCloud std::string httpInternetEndpoint; std::string httpInternetSecureEndpoint; }; - Endpoints endpoints; long maxTps; + int spInstanceType; + std::string instanceId; + std::string createTime; + bool independentNaming; + std::string remark; + Endpoints endpoints; std::string instanceName; int topicCapacity; + std::string spInstanceId; long releaseTime; - std::string instanceId; int instanceStatus; - bool independentNaming; int instanceType; - std::string remark; }; diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h index ff7f2b60c..4d82b8b2f 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceCreateRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsInstanceCreateRequest : public RpcServiceRequest - { - - public: - OnsInstanceCreateRequest(); - ~OnsInstanceCreateRequest(); - - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - - private: - std::string remark_; - std::string instanceName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsInstanceCreateRequest : public RpcServiceRequest { +public: + OnsInstanceCreateRequest(); + ~OnsInstanceCreateRequest(); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + +private: + std::string remark_; + std::string instanceName_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCECREATEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h index e35365dc6..b86c8c922 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceDeleteRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsInstanceDeleteRequest : public RpcServiceRequest - { - - public: - OnsInstanceDeleteRequest(); - ~OnsInstanceDeleteRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsInstanceDeleteRequest : public RpcServiceRequest { +public: + OnsInstanceDeleteRequest(); + ~OnsInstanceDeleteRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEDELETEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h index 51e78c1fb..a2646a2c8 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceInServiceListRequest.h @@ -1,54 +1,49 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsInstanceInServiceListRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - OnsInstanceInServiceListRequest(); - ~OnsInstanceInServiceListRequest(); - - std::vector getTag()const; - void setTag(const std::vector& tag); - - private: - std::vector tag_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsInstanceInServiceListRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + OnsInstanceInServiceListRequest(); + ~OnsInstanceInServiceListRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::string userId_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEINSERVICELISTREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h b/ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h index 235db51e2..c42319d5d 100644 --- a/ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsInstanceUpdateRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsInstanceUpdateRequest : public RpcServiceRequest - { - - public: - OnsInstanceUpdateRequest(); - ~OnsInstanceUpdateRequest(); - - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string remark_; - std::string instanceName_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsInstanceUpdateRequest : public RpcServiceRequest { +public: + OnsInstanceUpdateRequest(); + ~OnsInstanceUpdateRequest(); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string remark_; + std::string instanceName_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSINSTANCEUPDATEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h index 69b7a1a78..09d10d124 100644 --- a/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMessageGetByKeyRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsMessageGetByKeyRequest : public RpcServiceRequest - { - - public: - OnsMessageGetByKeyRequest(); - ~OnsMessageGetByKeyRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - std::string getKey()const; - void setKey(const std::string& key); - - private: - std::string instanceId_; - std::string topic_; - std::string key_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsMessageGetByKeyRequest : public RpcServiceRequest { +public: + OnsMessageGetByKeyRequest(); + ~OnsMessageGetByKeyRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + std::string getKey() const; + void setKey(const std::string &key); + +private: + std::string instanceId_; + std::string topic_; + std::string key_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYKEYREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h index 0a8b28940..f9fad8851 100644 --- a/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMessageGetByMsgIdRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsMessageGetByMsgIdRequest : public RpcServiceRequest - { - - public: - OnsMessageGetByMsgIdRequest(); - ~OnsMessageGetByMsgIdRequest(); - - std::string getMsgId()const; - void setMsgId(const std::string& msgId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - std::string msgId_; - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsMessageGetByMsgIdRequest : public RpcServiceRequest { +public: + OnsMessageGetByMsgIdRequest(); + ~OnsMessageGetByMsgIdRequest(); + std::string getMsgId() const; + void setMsgId(const std::string &msgId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + std::string msgId_; + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEGETBYMSGIDREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h b/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h index a90d700ba..50a5d07ce 100644 --- a/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMessagePageQueryByTopicRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsMessagePageQueryByTopicRequest : public RpcServiceRequest - { - - public: - OnsMessagePageQueryByTopicRequest(); - ~OnsMessagePageQueryByTopicRequest(); - - long getEndTime()const; - void setEndTime(long endTime); - long getBeginTime()const; - void setBeginTime(long beginTime); - int getCurrentPage()const; - void setCurrentPage(int currentPage); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getTopic()const; - void setTopic(const std::string& topic); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - long endTime_; - long beginTime_; - int currentPage_; - std::string instanceId_; - int pageSize_; - std::string topic_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsMessagePageQueryByTopicRequest : public RpcServiceRequest { +public: + OnsMessagePageQueryByTopicRequest(); + ~OnsMessagePageQueryByTopicRequest(); + long getEndTime() const; + void setEndTime(long endTime); + long getBeginTime() const; + void setBeginTime(long beginTime); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getTopic() const; + void setTopic(const std::string &topic); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + long endTime_; + long beginTime_; + int currentPage_; + std::string instanceId_; + int pageSize_; + std::string topic_; + std::string taskId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPAGEQUERYBYTOPICREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h b/ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h index c392c3334..1430debc2 100644 --- a/ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMessagePushRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsMessagePushRequest : public RpcServiceRequest - { - - public: - OnsMessagePushRequest(); - ~OnsMessagePushRequest(); - - std::string getClientId()const; - void setClientId(const std::string& clientId); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getMsgId()const; - void setMsgId(const std::string& msgId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - std::string clientId_; - std::string groupId_; - std::string msgId_; - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsMessagePushRequest : public RpcServiceRequest { +public: + OnsMessagePushRequest(); + ~OnsMessagePushRequest(); + std::string getClientId() const; + void setClientId(const std::string &clientId); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getMsgId() const; + void setMsgId(const std::string &msgId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + std::string clientId_; + std::string groupId_; + std::string msgId_; + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGEPUSHREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h b/ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h index 01d8b151e..11cfb985f 100644 --- a/ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsMessageTraceRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsMessageTraceRequest : public RpcServiceRequest - { - - public: - OnsMessageTraceRequest(); - ~OnsMessageTraceRequest(); - - std::string getMsgId()const; - void setMsgId(const std::string& msgId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - std::string msgId_; - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsMessageTraceRequest : public RpcServiceRequest { +public: + OnsMessageTraceRequest(); + ~OnsMessageTraceRequest(); + std::string getMsgId() const; + void setMsgId(const std::string &msgId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + std::string msgId_; + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSMESSAGETRACEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsRegionListRequest.h b/ons/include/alibabacloud/ons/model/OnsRegionListRequest.h index 571acc181..51ab772f7 100644 --- a/ons/include/alibabacloud/ons/model/OnsRegionListRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsRegionListRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsRegionListRequest : public RpcServiceRequest - { - - public: - OnsRegionListRequest(); - ~OnsRegionListRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsRegionListRequest : public RpcServiceRequest { +public: + OnsRegionListRequest(); + ~OnsRegionListRequest(); + +private: +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSREGIONLISTREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsRegionListResult.h b/ons/include/alibabacloud/ons/model/OnsRegionListResult.h index 5883541fe..52495f4a9 100644 --- a/ons/include/alibabacloud/ons/model/OnsRegionListResult.h +++ b/ons/include/alibabacloud/ons/model/OnsRegionListResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string channelName; std::string regionName; - std::string onsRegionId; long createTime; + std::string onsRegionId; long updateTime; long id; int channelId; diff --git a/ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h index f14760325..e0a3bb567 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicCreateRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsTopicCreateRequest : public RpcServiceRequest - { - - public: - OnsTopicCreateRequest(); - ~OnsTopicCreateRequest(); - - int getMessageType()const; - void setMessageType(int messageType); - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - int messageType_; - std::string remark_; - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsTopicCreateRequest : public RpcServiceRequest { +public: + OnsTopicCreateRequest(); + ~OnsTopicCreateRequest(); + int getMessageType() const; + void setMessageType(int messageType); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + int messageType_; + std::string remark_; + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICCREATEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h index 34ea7352f..bfe439c17 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicDeleteRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsTopicDeleteRequest : public RpcServiceRequest - { - - public: - OnsTopicDeleteRequest(); - ~OnsTopicDeleteRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsTopicDeleteRequest : public RpcServiceRequest { +public: + OnsTopicDeleteRequest(); + ~OnsTopicDeleteRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICDELETEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsTopicListRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicListRequest.h index f28f96851..060bc6d5c 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicListRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicListRequest.h @@ -1,60 +1,55 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsTopicListRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - OnsTopicListRequest(); - ~OnsTopicListRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - std::vector getTag()const; - void setTag(const std::vector& tag); - - private: - std::string instanceId_; - std::string topic_; - std::vector tag_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsTopicListRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + OnsTopicListRequest(); + ~OnsTopicListRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::string userId_; + std::string instanceId_; + std::string topic_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICLISTREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h index 280c1d7cc..0354ccad4 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicStatusRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsTopicStatusRequest : public RpcServiceRequest - { - - public: - OnsTopicStatusRequest(); - ~OnsTopicStatusRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsTopicStatusRequest : public RpcServiceRequest { +public: + OnsTopicStatusRequest(); + ~OnsTopicStatusRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICSTATUSREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h index a910e66ed..e137d1a47 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicSubDetailRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICSUBDETAILREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSTOPICSUBDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsTopicSubDetailRequest : public RpcServiceRequest - { - - public: - OnsTopicSubDetailRequest(); - ~OnsTopicSubDetailRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICSUBDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICSUBDETAILREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICSUBDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsTopicSubDetailRequest : public RpcServiceRequest { +public: + OnsTopicSubDetailRequest(); + ~OnsTopicSubDetailRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICSUBDETAILREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h b/ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h index bd42617ca..6435afdf3 100644 --- a/ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTopicUpdateRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsTopicUpdateRequest : public RpcServiceRequest - { - - public: - OnsTopicUpdateRequest(); - ~OnsTopicUpdateRequest(); - - int getPerm()const; - void setPerm(int perm); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - int perm_; - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsTopicUpdateRequest : public RpcServiceRequest { +public: + OnsTopicUpdateRequest(); + ~OnsTopicUpdateRequest(); + int getPerm() const; + void setPerm(int perm); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + int perm_; + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTOPICUPDATEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h b/ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h index a14851895..4f5723cfe 100644 --- a/ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTraceGetResultRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsTraceGetResultRequest : public RpcServiceRequest - { - - public: - OnsTraceGetResultRequest(); - ~OnsTraceGetResultRequest(); - - std::string getQueryId()const; - void setQueryId(const std::string& queryId); - - private: - std::string queryId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsTraceGetResultRequest : public RpcServiceRequest { +public: + OnsTraceGetResultRequest(); + ~OnsTraceGetResultRequest(); + std::string getQueryId() const; + void setQueryId(const std::string &queryId); + +private: + std::string queryId_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEGETRESULTREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h index a185b5eb9..5555af699 100644 --- a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgIdRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgIdRequest : public RpcServiceRequest - { - - public: - OnsTraceQueryByMsgIdRequest(); - ~OnsTraceQueryByMsgIdRequest(); - - std::string getMsgId()const; - void setMsgId(const std::string& msgId); - long getEndTime()const; - void setEndTime(long endTime); - long getBeginTime()const; - void setBeginTime(long beginTime); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - std::string msgId_; - long endTime_; - long beginTime_; - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgIdRequest : public RpcServiceRequest { +public: + OnsTraceQueryByMsgIdRequest(); + ~OnsTraceQueryByMsgIdRequest(); + std::string getMsgId() const; + void setMsgId(const std::string &msgId); + long getEndTime() const; + void setEndTime(long endTime); + long getBeginTime() const; + void setBeginTime(long beginTime); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + std::string msgId_; + long endTime_; + long beginTime_; + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGIDREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h index 2277e8611..fb1e07152 100644 --- a/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTraceQueryByMsgKeyRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgKeyRequest : public RpcServiceRequest - { - - public: - OnsTraceQueryByMsgKeyRequest(); - ~OnsTraceQueryByMsgKeyRequest(); - - long getEndTime()const; - void setEndTime(long endTime); - long getBeginTime()const; - void setBeginTime(long beginTime); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - std::string getMsgKey()const; - void setMsgKey(const std::string& msgKey); - - private: - long endTime_; - long beginTime_; - std::string instanceId_; - std::string topic_; - std::string msgKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsTraceQueryByMsgKeyRequest : public RpcServiceRequest { +public: + OnsTraceQueryByMsgKeyRequest(); + ~OnsTraceQueryByMsgKeyRequest(); + long getEndTime() const; + void setEndTime(long endTime); + long getBeginTime() const; + void setBeginTime(long beginTime); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + std::string getMsgKey() const; + void setMsgKey(const std::string &msgKey); + +private: + long endTime_; + long beginTime_; + std::string instanceId_; + std::string topic_; + std::string msgKey_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRACEQUERYBYMSGKEYREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h b/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h index 01d1a24d5..308ee1303 100644 --- a/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTrendGroupOutputTpsRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsTrendGroupOutputTpsRequest : public RpcServiceRequest - { - - public: - OnsTrendGroupOutputTpsRequest(); - ~OnsTrendGroupOutputTpsRequest(); - - long getPeriod()const; - void setPeriod(long period); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - long getEndTime()const; - void setEndTime(long endTime); - long getBeginTime()const; - void setBeginTime(long beginTime); - int getType()const; - void setType(int type); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - long period_; - std::string groupId_; - long endTime_; - long beginTime_; - int type_; - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsTrendGroupOutputTpsRequest : public RpcServiceRequest { +public: + OnsTrendGroupOutputTpsRequest(); + ~OnsTrendGroupOutputTpsRequest(); + long getPeriod() const; + void setPeriod(long period); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + long getEndTime() const; + void setEndTime(long endTime); + long getBeginTime() const; + void setBeginTime(long beginTime); + int getType() const; + void setType(int type); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + long period_; + std::string groupId_; + long endTime_; + long beginTime_; + int type_; + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDGROUPOUTPUTTPSREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h b/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h index ddbf10660..2c9a37efa 100644 --- a/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h +++ b/ons/include/alibabacloud/ons/model/OnsTrendTopicInputTpsRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsTrendTopicInputTpsRequest : public RpcServiceRequest - { - - public: - OnsTrendTopicInputTpsRequest(); - ~OnsTrendTopicInputTpsRequest(); - - long getPeriod()const; - void setPeriod(long period); - long getEndTime()const; - void setEndTime(long endTime); - long getBeginTime()const; - void setBeginTime(long beginTime); - int getType()const; - void setType(int type); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - long period_; - long endTime_; - long beginTime_; - int type_; - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OnsTrendTopicInputTpsRequest : public RpcServiceRequest { +public: + OnsTrendTopicInputTpsRequest(); + ~OnsTrendTopicInputTpsRequest(); + long getPeriod() const; + void setPeriod(long period); + long getEndTime() const; + void setEndTime(long endTime); + long getBeginTime() const; + void setBeginTime(long beginTime); + int getType() const; + void setType(int type); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTopic() const; + void setTopic(const std::string &topic); + +private: + long period_; + long endTime_; + long beginTime_; + int type_; + std::string instanceId_; + std::string topic_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_ONSTRENDTOPICINPUTTPSREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h b/ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h deleted file mode 100644 index fe9aadb9e..000000000 --- a/ons/include/alibabacloud/ons/model/OnsWarnCreateRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSWARNCREATEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSWARNCREATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsWarnCreateRequest : public RpcServiceRequest - { - - public: - OnsWarnCreateRequest(); - ~OnsWarnCreateRequest(); - - std::string getLevel()const; - void setLevel(const std::string& level); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getDelayTime()const; - void setDelayTime(const std::string& delayTime); - std::string getThreshold()const; - void setThreshold(const std::string& threshold); - std::string getAlertTime()const; - void setAlertTime(const std::string& alertTime); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getBlockTime()const; - void setBlockTime(const std::string& blockTime); - std::string getTopic()const; - void setTopic(const std::string& topic); - std::string getContacts()const; - void setContacts(const std::string& contacts); - - private: - std::string level_; - std::string groupId_; - std::string delayTime_; - std::string threshold_; - std::string alertTime_; - std::string instanceId_; - std::string blockTime_; - std::string topic_; - std::string contacts_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSWARNCREATEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsWarnCreateResult.h b/ons/include/alibabacloud/ons/model/OnsWarnCreateResult.h deleted file mode 100644 index 11722c810..000000000 --- a/ons/include/alibabacloud/ons/model/OnsWarnCreateResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSWARNCREATERESULT_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSWARNCREATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsWarnCreateResult : public ServiceResult - { - public: - - - OnsWarnCreateResult(); - explicit OnsWarnCreateResult(const std::string &payload); - ~OnsWarnCreateResult(); - std::string getHelpUrl()const; - - protected: - void parse(const std::string &payload); - private: - std::string helpUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSWARNCREATERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h b/ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h deleted file mode 100644 index 03454ede8..000000000 --- a/ons/include/alibabacloud/ons/model/OnsWarnDeleteRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSWARNDELETEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSWARNDELETEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsWarnDeleteRequest : public RpcServiceRequest - { - - public: - OnsWarnDeleteRequest(); - ~OnsWarnDeleteRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTopic()const; - void setTopic(const std::string& topic); - - private: - std::string groupId_; - std::string instanceId_; - std::string topic_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSWARNDELETEREQUEST_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OnsWarnDeleteResult.h b/ons/include/alibabacloud/ons/model/OnsWarnDeleteResult.h deleted file mode 100644 index 0c00b0d09..000000000 --- a/ons/include/alibabacloud/ons/model/OnsWarnDeleteResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_ONSWARNDELETERESULT_H_ -#define ALIBABACLOUD_ONS_MODEL_ONSWARNDELETERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OnsWarnDeleteResult : public ServiceResult - { - public: - - - OnsWarnDeleteResult(); - explicit OnsWarnDeleteResult(const std::string &payload); - ~OnsWarnDeleteResult(); - std::string getHelpUrl()const; - - protected: - void parse(const std::string &payload); - private: - std::string helpUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_ONSWARNDELETERESULT_H_ \ No newline at end of file diff --git a/ons/include/alibabacloud/ons/model/OpenOnsServiceRequest.h b/ons/include/alibabacloud/ons/model/OpenOnsServiceRequest.h index bc85024c2..f45ccbdd6 100644 --- a/ons/include/alibabacloud/ons/model/OpenOnsServiceRequest.h +++ b/ons/include/alibabacloud/ons/model/OpenOnsServiceRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_OPENONSSERVICEREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_OPENONSSERVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT OpenOnsServiceRequest : public RpcServiceRequest - { - - public: - OpenOnsServiceRequest(); - ~OpenOnsServiceRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_OPENONSSERVICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_OPENONSSERVICEREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_OPENONSSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT OpenOnsServiceRequest : public RpcServiceRequest { +public: + OpenOnsServiceRequest(); + ~OpenOnsServiceRequest(); + +private: +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_OPENONSSERVICEREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/TagResourcesRequest.h b/ons/include/alibabacloud/ons/model/TagResourcesRequest.h index 1dd9ea653..d21dc81e7 100644 --- a/ons/include/alibabacloud/ons/model/TagResourcesRequest.h +++ b/ons/include/alibabacloud/ons/model/TagResourcesRequest.h @@ -1,63 +1,55 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT TagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - TagResourcesRequest(); - ~TagResourcesRequest(); - - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::vector getTag()const; - void setTag(const std::vector& tag); - - private: - std::vector resourceId_; - std::string resourceType_; - std::string instanceId_; - std::vector tag_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector resourceId_; + std::string resourceType_; + std::string instanceId_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/ons/include/alibabacloud/ons/model/UntagResourcesRequest.h b/ons/include/alibabacloud/ons/model/UntagResourcesRequest.h index fe2a13db4..8e82a301e 100644 --- a/ons/include/alibabacloud/ons/model/UntagResourcesRequest.h +++ b/ons/include/alibabacloud/ons/model/UntagResourcesRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ons - { - namespace Model - { - class ALIBABACLOUD_ONS_EXPORT UntagResourcesRequest : public RpcServiceRequest - { - - public: - UntagResourcesRequest(); - ~UntagResourcesRequest(); - - bool getAll()const; - void setAll(bool all); - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::vector getTagKey()const; - void setTagKey(const std::vector& tagKey); - - private: - bool all_; - std::vector resourceId_; - std::string resourceType_; - std::string instanceId_; - std::vector tagKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ons { +namespace Model { +class ALIBABACLOUD_ONS_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + bool getAll() const; + void setAll(bool all); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + bool all_; + std::vector resourceId_; + std::string resourceType_; + std::string instanceId_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Ons +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ONS_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/ons/src/OnsClient.cc b/ons/src/OnsClient.cc index 8f857c052..8a61e3bcc 100644 --- a/ons/src/OnsClient.cc +++ b/ons/src/OnsClient.cc @@ -1347,78 +1347,6 @@ OnsClient::OnsTrendTopicInputTpsOutcomeCallable OnsClient::onsTrendTopicInputTps return task->get_future(); } -OnsClient::OnsWarnCreateOutcome OnsClient::onsWarnCreate(const OnsWarnCreateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return OnsWarnCreateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return OnsWarnCreateOutcome(OnsWarnCreateResult(outcome.result())); - else - return OnsWarnCreateOutcome(outcome.error()); -} - -void OnsClient::onsWarnCreateAsync(const OnsWarnCreateRequest& request, const OnsWarnCreateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, onsWarnCreate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -OnsClient::OnsWarnCreateOutcomeCallable OnsClient::onsWarnCreateCallable(const OnsWarnCreateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->onsWarnCreate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -OnsClient::OnsWarnDeleteOutcome OnsClient::onsWarnDelete(const OnsWarnDeleteRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return OnsWarnDeleteOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return OnsWarnDeleteOutcome(OnsWarnDeleteResult(outcome.result())); - else - return OnsWarnDeleteOutcome(outcome.error()); -} - -void OnsClient::onsWarnDeleteAsync(const OnsWarnDeleteRequest& request, const OnsWarnDeleteAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, onsWarnDelete(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -OnsClient::OnsWarnDeleteOutcomeCallable OnsClient::onsWarnDeleteCallable(const OnsWarnDeleteRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->onsWarnDelete(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - OnsClient::OpenOnsServiceOutcome OnsClient::openOnsService(const OpenOnsServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ons/src/model/ListTagResourcesRequest.cc b/ons/src/model/ListTagResourcesRequest.cc index 4b14bf215..12cc05f1b 100644 --- a/ons/src/model/ListTagResourcesRequest.cc +++ b/ons/src/model/ListTagResourcesRequest.cc @@ -1,91 +1,76 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() : - RpcServiceRequest("ons", "2019-02-14", "ListTagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTagResourcesRequest::~ListTagResourcesRequest() -{} - -std::vector ListTagResourcesRequest::getResourceId()const -{ - return resourceId_; + */ + +#include + +using AlibabaCloud::Ons::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("ons", "2019-02-14", "ListTagResources") { + setMethod(HttpRequest::Method::Post); } -void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string ListTagResourcesRequest::getResourceType()const -{ - return resourceType_; +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void ListTagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; } -std::string ListTagResourcesRequest::getInstanceId()const -{ - return instanceId_; +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void ListTagResourcesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListTagResourcesRequest::getInstanceId() const { + return instanceId_; } -std::string ListTagResourcesRequest::getNextToken()const -{ - return nextToken_; +void ListTagResourcesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ListTagResourcesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; } -std::vector ListTagResourcesRequest::getTag()const -{ - return tag_; +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListTagResourcesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector ListTagResourcesRequest::getTag() const { + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } diff --git a/ons/src/model/OnsConsumerAccumulateRequest.cc b/ons/src/model/OnsConsumerAccumulateRequest.cc index f1e5db611..ecdd0fdf8 100644 --- a/ons/src/model/OnsConsumerAccumulateRequest.cc +++ b/ons/src/model/OnsConsumerAccumulateRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsConsumerAccumulateRequest; - -OnsConsumerAccumulateRequest::OnsConsumerAccumulateRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsConsumerAccumulate") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsConsumerAccumulateRequest::~OnsConsumerAccumulateRequest() -{} - -std::string OnsConsumerAccumulateRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsConsumerAccumulateRequest; + +OnsConsumerAccumulateRequest::OnsConsumerAccumulateRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsConsumerAccumulate") { + setMethod(HttpRequest::Method::Post); } -void OnsConsumerAccumulateRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsConsumerAccumulateRequest::~OnsConsumerAccumulateRequest() {} + +std::string OnsConsumerAccumulateRequest::getGroupId() const { + return groupId_; } -std::string OnsConsumerAccumulateRequest::getInstanceId()const -{ - return instanceId_; +void OnsConsumerAccumulateRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsConsumerAccumulateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsConsumerAccumulateRequest::getInstanceId() const { + return instanceId_; } -bool OnsConsumerAccumulateRequest::getDetail()const -{ - return detail_; +void OnsConsumerAccumulateRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsConsumerAccumulateRequest::setDetail(bool detail) -{ - detail_ = detail; - setParameter("Detail", detail ? "true" : "false"); +bool OnsConsumerAccumulateRequest::getDetail() const { + return detail_; +} + +void OnsConsumerAccumulateRequest::setDetail(bool detail) { + detail_ = detail; + setParameter(std::string("Detail"), detail ? "true" : "false"); } diff --git a/ons/src/model/OnsConsumerGetConnectionRequest.cc b/ons/src/model/OnsConsumerGetConnectionRequest.cc index 3ed9f74c3..da15c47b3 100644 --- a/ons/src/model/OnsConsumerGetConnectionRequest.cc +++ b/ons/src/model/OnsConsumerGetConnectionRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsConsumerGetConnectionRequest; - -OnsConsumerGetConnectionRequest::OnsConsumerGetConnectionRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsConsumerGetConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsConsumerGetConnectionRequest::~OnsConsumerGetConnectionRequest() -{} - -std::string OnsConsumerGetConnectionRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsConsumerGetConnectionRequest; + +OnsConsumerGetConnectionRequest::OnsConsumerGetConnectionRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsConsumerGetConnection") { + setMethod(HttpRequest::Method::Post); } -void OnsConsumerGetConnectionRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsConsumerGetConnectionRequest::~OnsConsumerGetConnectionRequest() {} + +std::string OnsConsumerGetConnectionRequest::getGroupId() const { + return groupId_; } -std::string OnsConsumerGetConnectionRequest::getInstanceId()const -{ - return instanceId_; +void OnsConsumerGetConnectionRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsConsumerGetConnectionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsConsumerGetConnectionRequest::getInstanceId() const { + return instanceId_; +} + +void OnsConsumerGetConnectionRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ons/src/model/OnsConsumerResetOffsetRequest.cc b/ons/src/model/OnsConsumerResetOffsetRequest.cc index 64374da4d..10006f4d0 100644 --- a/ons/src/model/OnsConsumerResetOffsetRequest.cc +++ b/ons/src/model/OnsConsumerResetOffsetRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsConsumerResetOffsetRequest; - -OnsConsumerResetOffsetRequest::OnsConsumerResetOffsetRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsConsumerResetOffset") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsConsumerResetOffsetRequest::~OnsConsumerResetOffsetRequest() -{} - -std::string OnsConsumerResetOffsetRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsConsumerResetOffsetRequest; + +OnsConsumerResetOffsetRequest::OnsConsumerResetOffsetRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsConsumerResetOffset") { + setMethod(HttpRequest::Method::Post); } -void OnsConsumerResetOffsetRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsConsumerResetOffsetRequest::~OnsConsumerResetOffsetRequest() {} + +std::string OnsConsumerResetOffsetRequest::getGroupId() const { + return groupId_; } -long OnsConsumerResetOffsetRequest::getResetTimestamp()const -{ - return resetTimestamp_; +void OnsConsumerResetOffsetRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsConsumerResetOffsetRequest::setResetTimestamp(long resetTimestamp) -{ - resetTimestamp_ = resetTimestamp; - setParameter("ResetTimestamp", std::to_string(resetTimestamp)); +long OnsConsumerResetOffsetRequest::getResetTimestamp() const { + return resetTimestamp_; } -int OnsConsumerResetOffsetRequest::getType()const -{ - return type_; +void OnsConsumerResetOffsetRequest::setResetTimestamp(long resetTimestamp) { + resetTimestamp_ = resetTimestamp; + setParameter(std::string("ResetTimestamp"), std::to_string(resetTimestamp)); } -void OnsConsumerResetOffsetRequest::setType(int type) -{ - type_ = type; - setParameter("Type", std::to_string(type)); +int OnsConsumerResetOffsetRequest::getType() const { + return type_; } -std::string OnsConsumerResetOffsetRequest::getInstanceId()const -{ - return instanceId_; +void OnsConsumerResetOffsetRequest::setType(int type) { + type_ = type; + setParameter(std::string("Type"), std::to_string(type)); } -void OnsConsumerResetOffsetRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsConsumerResetOffsetRequest::getInstanceId() const { + return instanceId_; } -std::string OnsConsumerResetOffsetRequest::getTopic()const -{ - return topic_; +void OnsConsumerResetOffsetRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsConsumerResetOffsetRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsConsumerResetOffsetRequest::getTopic() const { + return topic_; +} + +void OnsConsumerResetOffsetRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsConsumerStatusRequest.cc b/ons/src/model/OnsConsumerStatusRequest.cc index ce820773d..1f0d19ed2 100644 --- a/ons/src/model/OnsConsumerStatusRequest.cc +++ b/ons/src/model/OnsConsumerStatusRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsConsumerStatusRequest; - -OnsConsumerStatusRequest::OnsConsumerStatusRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsConsumerStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsConsumerStatusRequest::~OnsConsumerStatusRequest() -{} - -std::string OnsConsumerStatusRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsConsumerStatusRequest; + +OnsConsumerStatusRequest::OnsConsumerStatusRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsConsumerStatus") { + setMethod(HttpRequest::Method::Post); } -void OnsConsumerStatusRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsConsumerStatusRequest::~OnsConsumerStatusRequest() {} + +std::string OnsConsumerStatusRequest::getGroupId() const { + return groupId_; } -std::string OnsConsumerStatusRequest::getInstanceId()const -{ - return instanceId_; +void OnsConsumerStatusRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsConsumerStatusRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsConsumerStatusRequest::getInstanceId() const { + return instanceId_; } -bool OnsConsumerStatusRequest::getNeedJstack()const -{ - return needJstack_; +void OnsConsumerStatusRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsConsumerStatusRequest::setNeedJstack(bool needJstack) -{ - needJstack_ = needJstack; - setParameter("NeedJstack", needJstack ? "true" : "false"); +bool OnsConsumerStatusRequest::getNeedJstack() const { + return needJstack_; } -bool OnsConsumerStatusRequest::getDetail()const -{ - return detail_; +void OnsConsumerStatusRequest::setNeedJstack(bool needJstack) { + needJstack_ = needJstack; + setParameter(std::string("NeedJstack"), needJstack ? "true" : "false"); } -void OnsConsumerStatusRequest::setDetail(bool detail) -{ - detail_ = detail; - setParameter("Detail", detail ? "true" : "false"); +bool OnsConsumerStatusRequest::getDetail() const { + return detail_; +} + +void OnsConsumerStatusRequest::setDetail(bool detail) { + detail_ = detail; + setParameter(std::string("Detail"), detail ? "true" : "false"); } diff --git a/ons/src/model/OnsConsumerTimeSpanRequest.cc b/ons/src/model/OnsConsumerTimeSpanRequest.cc index 622a0a6e0..0e23e0cfb 100644 --- a/ons/src/model/OnsConsumerTimeSpanRequest.cc +++ b/ons/src/model/OnsConsumerTimeSpanRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsConsumerTimeSpanRequest; - -OnsConsumerTimeSpanRequest::OnsConsumerTimeSpanRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsConsumerTimeSpan") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsConsumerTimeSpanRequest::~OnsConsumerTimeSpanRequest() -{} - -std::string OnsConsumerTimeSpanRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsConsumerTimeSpanRequest; + +OnsConsumerTimeSpanRequest::OnsConsumerTimeSpanRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsConsumerTimeSpan") { + setMethod(HttpRequest::Method::Post); } -void OnsConsumerTimeSpanRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsConsumerTimeSpanRequest::~OnsConsumerTimeSpanRequest() {} + +std::string OnsConsumerTimeSpanRequest::getGroupId() const { + return groupId_; } -std::string OnsConsumerTimeSpanRequest::getInstanceId()const -{ - return instanceId_; +void OnsConsumerTimeSpanRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsConsumerTimeSpanRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsConsumerTimeSpanRequest::getInstanceId() const { + return instanceId_; } -std::string OnsConsumerTimeSpanRequest::getTopic()const -{ - return topic_; +void OnsConsumerTimeSpanRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsConsumerTimeSpanRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsConsumerTimeSpanRequest::getTopic() const { + return topic_; +} + +void OnsConsumerTimeSpanRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsDLQMessageGetByIdRequest.cc b/ons/src/model/OnsDLQMessageGetByIdRequest.cc index c2c475b0d..c87d54d7a 100644 --- a/ons/src/model/OnsDLQMessageGetByIdRequest.cc +++ b/ons/src/model/OnsDLQMessageGetByIdRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsDLQMessageGetByIdRequest; - -OnsDLQMessageGetByIdRequest::OnsDLQMessageGetByIdRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageGetById") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsDLQMessageGetByIdRequest::~OnsDLQMessageGetByIdRequest() -{} - -std::string OnsDLQMessageGetByIdRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsDLQMessageGetByIdRequest; + +OnsDLQMessageGetByIdRequest::OnsDLQMessageGetByIdRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageGetById") { + setMethod(HttpRequest::Method::Post); } -void OnsDLQMessageGetByIdRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsDLQMessageGetByIdRequest::~OnsDLQMessageGetByIdRequest() {} + +std::string OnsDLQMessageGetByIdRequest::getGroupId() const { + return groupId_; } -std::string OnsDLQMessageGetByIdRequest::getMsgId()const -{ - return msgId_; +void OnsDLQMessageGetByIdRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsDLQMessageGetByIdRequest::setMsgId(const std::string& msgId) -{ - msgId_ = msgId; - setParameter("MsgId", msgId); +std::string OnsDLQMessageGetByIdRequest::getMsgId() const { + return msgId_; } -std::string OnsDLQMessageGetByIdRequest::getInstanceId()const -{ - return instanceId_; +void OnsDLQMessageGetByIdRequest::setMsgId(const std::string &msgId) { + msgId_ = msgId; + setParameter(std::string("MsgId"), msgId); } -void OnsDLQMessageGetByIdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsDLQMessageGetByIdRequest::getInstanceId() const { + return instanceId_; +} + +void OnsDLQMessageGetByIdRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc b/ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc index fe5d5c860..ade52070d 100644 --- a/ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc +++ b/ons/src/model/OnsDLQMessagePageQueryByGroupIdRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsDLQMessagePageQueryByGroupIdRequest; - -OnsDLQMessagePageQueryByGroupIdRequest::OnsDLQMessagePageQueryByGroupIdRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessagePageQueryByGroupId") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsDLQMessagePageQueryByGroupIdRequest::~OnsDLQMessagePageQueryByGroupIdRequest() -{} - -std::string OnsDLQMessagePageQueryByGroupIdRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsDLQMessagePageQueryByGroupIdRequest; + +OnsDLQMessagePageQueryByGroupIdRequest::OnsDLQMessagePageQueryByGroupIdRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessagePageQueryByGroupId") { + setMethod(HttpRequest::Method::Post); } -void OnsDLQMessagePageQueryByGroupIdRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsDLQMessagePageQueryByGroupIdRequest::~OnsDLQMessagePageQueryByGroupIdRequest() {} + +std::string OnsDLQMessagePageQueryByGroupIdRequest::getGroupId() const { + return groupId_; } -long OnsDLQMessagePageQueryByGroupIdRequest::getEndTime()const -{ - return endTime_; +void OnsDLQMessagePageQueryByGroupIdRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsDLQMessagePageQueryByGroupIdRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long OnsDLQMessagePageQueryByGroupIdRequest::getEndTime() const { + return endTime_; } -long OnsDLQMessagePageQueryByGroupIdRequest::getBeginTime()const -{ - return beginTime_; +void OnsDLQMessagePageQueryByGroupIdRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void OnsDLQMessagePageQueryByGroupIdRequest::setBeginTime(long beginTime) -{ - beginTime_ = beginTime; - setParameter("BeginTime", std::to_string(beginTime)); +long OnsDLQMessagePageQueryByGroupIdRequest::getBeginTime() const { + return beginTime_; } -int OnsDLQMessagePageQueryByGroupIdRequest::getCurrentPage()const -{ - return currentPage_; +void OnsDLQMessagePageQueryByGroupIdRequest::setBeginTime(long beginTime) { + beginTime_ = beginTime; + setParameter(std::string("BeginTime"), std::to_string(beginTime)); } -void OnsDLQMessagePageQueryByGroupIdRequest::setCurrentPage(int currentPage) -{ - currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); +int OnsDLQMessagePageQueryByGroupIdRequest::getCurrentPage() const { + return currentPage_; } -std::string OnsDLQMessagePageQueryByGroupIdRequest::getInstanceId()const -{ - return instanceId_; +void OnsDLQMessagePageQueryByGroupIdRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); } -void OnsDLQMessagePageQueryByGroupIdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsDLQMessagePageQueryByGroupIdRequest::getInstanceId() const { + return instanceId_; } -int OnsDLQMessagePageQueryByGroupIdRequest::getPageSize()const -{ - return pageSize_; +void OnsDLQMessagePageQueryByGroupIdRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsDLQMessagePageQueryByGroupIdRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int OnsDLQMessagePageQueryByGroupIdRequest::getPageSize() const { + return pageSize_; } -std::string OnsDLQMessagePageQueryByGroupIdRequest::getTaskId()const -{ - return taskId_; +void OnsDLQMessagePageQueryByGroupIdRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void OnsDLQMessagePageQueryByGroupIdRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string OnsDLQMessagePageQueryByGroupIdRequest::getTaskId() const { + return taskId_; +} + +void OnsDLQMessagePageQueryByGroupIdRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/ons/src/model/OnsDLQMessageResendByIdRequest.cc b/ons/src/model/OnsDLQMessageResendByIdRequest.cc index d0ed0c05b..c8775e14b 100644 --- a/ons/src/model/OnsDLQMessageResendByIdRequest.cc +++ b/ons/src/model/OnsDLQMessageResendByIdRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsDLQMessageResendByIdRequest; - -OnsDLQMessageResendByIdRequest::OnsDLQMessageResendByIdRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageResendById") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsDLQMessageResendByIdRequest::~OnsDLQMessageResendByIdRequest() -{} - -std::string OnsDLQMessageResendByIdRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsDLQMessageResendByIdRequest; + +OnsDLQMessageResendByIdRequest::OnsDLQMessageResendByIdRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsDLQMessageResendById") { + setMethod(HttpRequest::Method::Post); } -void OnsDLQMessageResendByIdRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsDLQMessageResendByIdRequest::~OnsDLQMessageResendByIdRequest() {} + +std::string OnsDLQMessageResendByIdRequest::getGroupId() const { + return groupId_; } -std::string OnsDLQMessageResendByIdRequest::getMsgId()const -{ - return msgId_; +void OnsDLQMessageResendByIdRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsDLQMessageResendByIdRequest::setMsgId(const std::string& msgId) -{ - msgId_ = msgId; - setParameter("MsgId", msgId); +std::string OnsDLQMessageResendByIdRequest::getMsgId() const { + return msgId_; } -std::string OnsDLQMessageResendByIdRequest::getInstanceId()const -{ - return instanceId_; +void OnsDLQMessageResendByIdRequest::setMsgId(const std::string &msgId) { + msgId_ = msgId; + setParameter(std::string("MsgId"), msgId); } -void OnsDLQMessageResendByIdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsDLQMessageResendByIdRequest::getInstanceId() const { + return instanceId_; +} + +void OnsDLQMessageResendByIdRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ons/src/model/OnsGroupConsumerUpdateRequest.cc b/ons/src/model/OnsGroupConsumerUpdateRequest.cc index 745b79659..02dcbd5f8 100644 --- a/ons/src/model/OnsGroupConsumerUpdateRequest.cc +++ b/ons/src/model/OnsGroupConsumerUpdateRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsGroupConsumerUpdateRequest; - -OnsGroupConsumerUpdateRequest::OnsGroupConsumerUpdateRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsGroupConsumerUpdate") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsGroupConsumerUpdateRequest::~OnsGroupConsumerUpdateRequest() -{} - -std::string OnsGroupConsumerUpdateRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsGroupConsumerUpdateRequest; + +OnsGroupConsumerUpdateRequest::OnsGroupConsumerUpdateRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsGroupConsumerUpdate") { + setMethod(HttpRequest::Method::Post); } -void OnsGroupConsumerUpdateRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsGroupConsumerUpdateRequest::~OnsGroupConsumerUpdateRequest() {} + +std::string OnsGroupConsumerUpdateRequest::getGroupId() const { + return groupId_; } -bool OnsGroupConsumerUpdateRequest::getReadEnable()const -{ - return readEnable_; +void OnsGroupConsumerUpdateRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsGroupConsumerUpdateRequest::setReadEnable(bool readEnable) -{ - readEnable_ = readEnable; - setParameter("ReadEnable", readEnable ? "true" : "false"); +bool OnsGroupConsumerUpdateRequest::getReadEnable() const { + return readEnable_; } -std::string OnsGroupConsumerUpdateRequest::getInstanceId()const -{ - return instanceId_; +void OnsGroupConsumerUpdateRequest::setReadEnable(bool readEnable) { + readEnable_ = readEnable; + setParameter(std::string("ReadEnable"), readEnable ? "true" : "false"); } -void OnsGroupConsumerUpdateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsGroupConsumerUpdateRequest::getInstanceId() const { + return instanceId_; +} + +void OnsGroupConsumerUpdateRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ons/src/model/OnsGroupCreateRequest.cc b/ons/src/model/OnsGroupCreateRequest.cc index 7578c2e4b..e8df13237 100644 --- a/ons/src/model/OnsGroupCreateRequest.cc +++ b/ons/src/model/OnsGroupCreateRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsGroupCreateRequest; - -OnsGroupCreateRequest::OnsGroupCreateRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsGroupCreate") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsGroupCreateRequest::~OnsGroupCreateRequest() -{} - -std::string OnsGroupCreateRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsGroupCreateRequest; + +OnsGroupCreateRequest::OnsGroupCreateRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsGroupCreate") { + setMethod(HttpRequest::Method::Post); } -void OnsGroupCreateRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsGroupCreateRequest::~OnsGroupCreateRequest() {} + +std::string OnsGroupCreateRequest::getGroupId() const { + return groupId_; } -std::string OnsGroupCreateRequest::getRemark()const -{ - return remark_; +void OnsGroupCreateRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsGroupCreateRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setParameter("Remark", remark); +std::string OnsGroupCreateRequest::getRemark() const { + return remark_; } -std::string OnsGroupCreateRequest::getInstanceId()const -{ - return instanceId_; +void OnsGroupCreateRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); } -void OnsGroupCreateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsGroupCreateRequest::getInstanceId() const { + return instanceId_; } -std::string OnsGroupCreateRequest::getGroupType()const -{ - return groupType_; +void OnsGroupCreateRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsGroupCreateRequest::setGroupType(const std::string& groupType) -{ - groupType_ = groupType; - setParameter("GroupType", groupType); +std::string OnsGroupCreateRequest::getGroupType() const { + return groupType_; +} + +void OnsGroupCreateRequest::setGroupType(const std::string &groupType) { + groupType_ = groupType; + setParameter(std::string("GroupType"), groupType); } diff --git a/ons/src/model/OnsGroupDeleteRequest.cc b/ons/src/model/OnsGroupDeleteRequest.cc index 1c385f414..e2531f539 100644 --- a/ons/src/model/OnsGroupDeleteRequest.cc +++ b/ons/src/model/OnsGroupDeleteRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsGroupDeleteRequest; - -OnsGroupDeleteRequest::OnsGroupDeleteRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsGroupDelete") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsGroupDeleteRequest::~OnsGroupDeleteRequest() -{} - -std::string OnsGroupDeleteRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsGroupDeleteRequest; + +OnsGroupDeleteRequest::OnsGroupDeleteRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsGroupDelete") { + setMethod(HttpRequest::Method::Post); } -void OnsGroupDeleteRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsGroupDeleteRequest::~OnsGroupDeleteRequest() {} + +std::string OnsGroupDeleteRequest::getGroupId() const { + return groupId_; } -std::string OnsGroupDeleteRequest::getInstanceId()const -{ - return instanceId_; +void OnsGroupDeleteRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsGroupDeleteRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsGroupDeleteRequest::getInstanceId() const { + return instanceId_; +} + +void OnsGroupDeleteRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ons/src/model/OnsGroupListRequest.cc b/ons/src/model/OnsGroupListRequest.cc index 5cb0e9254..07ff51fae 100644 --- a/ons/src/model/OnsGroupListRequest.cc +++ b/ons/src/model/OnsGroupListRequest.cc @@ -1,78 +1,77 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsGroupListRequest; - -OnsGroupListRequest::OnsGroupListRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsGroupList") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsGroupListRequest::~OnsGroupListRequest() -{} - -std::string OnsGroupListRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsGroupListRequest; + +OnsGroupListRequest::OnsGroupListRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsGroupList") { + setMethod(HttpRequest::Method::Post); } -void OnsGroupListRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsGroupListRequest::~OnsGroupListRequest() {} + +std::string OnsGroupListRequest::getGroupId() const { + return groupId_; } -std::string OnsGroupListRequest::getInstanceId()const -{ - return instanceId_; +void OnsGroupListRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsGroupListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsGroupListRequest::getUserId() const { + return userId_; } -std::string OnsGroupListRequest::getGroupType()const -{ - return groupType_; +void OnsGroupListRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void OnsGroupListRequest::setGroupType(const std::string& groupType) -{ - groupType_ = groupType; - setParameter("GroupType", groupType); +std::string OnsGroupListRequest::getInstanceId() const { + return instanceId_; } -std::vector OnsGroupListRequest::getTag()const -{ - return tag_; +void OnsGroupListRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsGroupListRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::string OnsGroupListRequest::getGroupType() const { + return groupType_; +} + +void OnsGroupListRequest::setGroupType(const std::string &groupType) { + groupType_ = groupType; + setParameter(std::string("GroupType"), groupType); +} + +std::vector OnsGroupListRequest::getTag() const { + return tag_; +} + +void OnsGroupListRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } diff --git a/ons/src/model/OnsGroupSubDetailRequest.cc b/ons/src/model/OnsGroupSubDetailRequest.cc index 13ebc60ea..33f76b253 100644 --- a/ons/src/model/OnsGroupSubDetailRequest.cc +++ b/ons/src/model/OnsGroupSubDetailRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsGroupSubDetailRequest; - -OnsGroupSubDetailRequest::OnsGroupSubDetailRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsGroupSubDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsGroupSubDetailRequest::~OnsGroupSubDetailRequest() -{} - -std::string OnsGroupSubDetailRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsGroupSubDetailRequest; + +OnsGroupSubDetailRequest::OnsGroupSubDetailRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsGroupSubDetail") { + setMethod(HttpRequest::Method::Post); } -void OnsGroupSubDetailRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +OnsGroupSubDetailRequest::~OnsGroupSubDetailRequest() {} + +std::string OnsGroupSubDetailRequest::getGroupId() const { + return groupId_; } -std::string OnsGroupSubDetailRequest::getInstanceId()const -{ - return instanceId_; +void OnsGroupSubDetailRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsGroupSubDetailRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsGroupSubDetailRequest::getInstanceId() const { + return instanceId_; +} + +void OnsGroupSubDetailRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ons/src/model/OnsInstanceBaseInfoRequest.cc b/ons/src/model/OnsInstanceBaseInfoRequest.cc index f36092d97..70035e05f 100644 --- a/ons/src/model/OnsInstanceBaseInfoRequest.cc +++ b/ons/src/model/OnsInstanceBaseInfoRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsInstanceBaseInfoRequest; - -OnsInstanceBaseInfoRequest::OnsInstanceBaseInfoRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsInstanceBaseInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsInstanceBaseInfoRequest::~OnsInstanceBaseInfoRequest() -{} - -std::string OnsInstanceBaseInfoRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsInstanceBaseInfoRequest; + +OnsInstanceBaseInfoRequest::OnsInstanceBaseInfoRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsInstanceBaseInfo") { + setMethod(HttpRequest::Method::Post); } -void OnsInstanceBaseInfoRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +OnsInstanceBaseInfoRequest::~OnsInstanceBaseInfoRequest() {} + +std::string OnsInstanceBaseInfoRequest::getInstanceId() const { + return instanceId_; +} + +void OnsInstanceBaseInfoRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ons/src/model/OnsInstanceBaseInfoResult.cc b/ons/src/model/OnsInstanceBaseInfoResult.cc index 14979e5fc..827c8c095 100644 --- a/ons/src/model/OnsInstanceBaseInfoResult.cc +++ b/ons/src/model/OnsInstanceBaseInfoResult.cc @@ -58,17 +58,23 @@ void OnsInstanceBaseInfoResult::parse(const std::string &payload) instanceBaseInfo_.instanceId = instanceBaseInfoNode["InstanceId"].asString(); if(!instanceBaseInfoNode["InstanceType"].isNull()) instanceBaseInfo_.instanceType = std::stoi(instanceBaseInfoNode["InstanceType"].asString()); + if(!instanceBaseInfoNode["CreateTime"].isNull()) + instanceBaseInfo_.createTime = instanceBaseInfoNode["CreateTime"].asString(); + if(!instanceBaseInfoNode["spInstanceId"].isNull()) + instanceBaseInfo_.spInstanceId = instanceBaseInfoNode["spInstanceId"].asString(); + if(!instanceBaseInfoNode["spInstanceType"].isNull()) + instanceBaseInfo_.spInstanceType = std::stoi(instanceBaseInfoNode["spInstanceType"].asString()); auto endpointsNode = instanceBaseInfoNode["Endpoints"]; if(!endpointsNode["TcpEndpoint"].isNull()) instanceBaseInfo_.endpoints.tcpEndpoint = endpointsNode["TcpEndpoint"].asString(); + if(!endpointsNode["TcpInternetEndpoint"].isNull()) + instanceBaseInfo_.endpoints.tcpInternetEndpoint = endpointsNode["TcpInternetEndpoint"].asString(); if(!endpointsNode["HttpInternetEndpoint"].isNull()) instanceBaseInfo_.endpoints.httpInternetEndpoint = endpointsNode["HttpInternetEndpoint"].asString(); if(!endpointsNode["HttpInternalEndpoint"].isNull()) instanceBaseInfo_.endpoints.httpInternalEndpoint = endpointsNode["HttpInternalEndpoint"].asString(); if(!endpointsNode["HttpInternetSecureEndpoint"].isNull()) instanceBaseInfo_.endpoints.httpInternetSecureEndpoint = endpointsNode["HttpInternetSecureEndpoint"].asString(); - if(!endpointsNode["TcpInternetEndpoint"].isNull()) - instanceBaseInfo_.endpoints.tcpInternetEndpoint = endpointsNode["TcpInternetEndpoint"].asString(); if(!value["HelpUrl"].isNull()) helpUrl_ = value["HelpUrl"].asString(); diff --git a/ons/src/model/OnsInstanceCreateRequest.cc b/ons/src/model/OnsInstanceCreateRequest.cc index 28d004a1e..d1baafb3a 100644 --- a/ons/src/model/OnsInstanceCreateRequest.cc +++ b/ons/src/model/OnsInstanceCreateRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsInstanceCreateRequest; - -OnsInstanceCreateRequest::OnsInstanceCreateRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsInstanceCreate") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsInstanceCreateRequest::~OnsInstanceCreateRequest() -{} - -std::string OnsInstanceCreateRequest::getRemark()const -{ - return remark_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsInstanceCreateRequest; + +OnsInstanceCreateRequest::OnsInstanceCreateRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsInstanceCreate") { + setMethod(HttpRequest::Method::Post); } -void OnsInstanceCreateRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setParameter("Remark", remark); +OnsInstanceCreateRequest::~OnsInstanceCreateRequest() {} + +std::string OnsInstanceCreateRequest::getRemark() const { + return remark_; } -std::string OnsInstanceCreateRequest::getInstanceName()const -{ - return instanceName_; +void OnsInstanceCreateRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); } -void OnsInstanceCreateRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +std::string OnsInstanceCreateRequest::getInstanceName() const { + return instanceName_; +} + +void OnsInstanceCreateRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } diff --git a/ons/src/model/OnsInstanceDeleteRequest.cc b/ons/src/model/OnsInstanceDeleteRequest.cc index 9d5872cd1..d2c0ca696 100644 --- a/ons/src/model/OnsInstanceDeleteRequest.cc +++ b/ons/src/model/OnsInstanceDeleteRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsInstanceDeleteRequest; - -OnsInstanceDeleteRequest::OnsInstanceDeleteRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsInstanceDelete") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsInstanceDeleteRequest::~OnsInstanceDeleteRequest() -{} - -std::string OnsInstanceDeleteRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsInstanceDeleteRequest; + +OnsInstanceDeleteRequest::OnsInstanceDeleteRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsInstanceDelete") { + setMethod(HttpRequest::Method::Post); } -void OnsInstanceDeleteRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +OnsInstanceDeleteRequest::~OnsInstanceDeleteRequest() {} + +std::string OnsInstanceDeleteRequest::getInstanceId() const { + return instanceId_; +} + +void OnsInstanceDeleteRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ons/src/model/OnsInstanceInServiceListRequest.cc b/ons/src/model/OnsInstanceInServiceListRequest.cc index 8ebd913f8..a70a31a70 100644 --- a/ons/src/model/OnsInstanceInServiceListRequest.cc +++ b/ons/src/model/OnsInstanceInServiceListRequest.cc @@ -1,45 +1,50 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsInstanceInServiceListRequest; - -OnsInstanceInServiceListRequest::OnsInstanceInServiceListRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsInstanceInServiceList") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsInstanceInServiceListRequest::~OnsInstanceInServiceListRequest() -{} - -std::vector OnsInstanceInServiceListRequest::getTag()const -{ - return tag_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsInstanceInServiceListRequest; + +OnsInstanceInServiceListRequest::OnsInstanceInServiceListRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsInstanceInServiceList") { + setMethod(HttpRequest::Method::Post); } -void OnsInstanceInServiceListRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +OnsInstanceInServiceListRequest::~OnsInstanceInServiceListRequest() {} + +std::string OnsInstanceInServiceListRequest::getUserId() const { + return userId_; +} + +void OnsInstanceInServiceListRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::vector OnsInstanceInServiceListRequest::getTag() const { + return tag_; +} + +void OnsInstanceInServiceListRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } diff --git a/ons/src/model/OnsInstanceUpdateRequest.cc b/ons/src/model/OnsInstanceUpdateRequest.cc index 4a89bd4e1..27d2e9570 100644 --- a/ons/src/model/OnsInstanceUpdateRequest.cc +++ b/ons/src/model/OnsInstanceUpdateRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsInstanceUpdateRequest; - -OnsInstanceUpdateRequest::OnsInstanceUpdateRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsInstanceUpdate") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsInstanceUpdateRequest::~OnsInstanceUpdateRequest() -{} - -std::string OnsInstanceUpdateRequest::getRemark()const -{ - return remark_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsInstanceUpdateRequest; + +OnsInstanceUpdateRequest::OnsInstanceUpdateRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsInstanceUpdate") { + setMethod(HttpRequest::Method::Post); } -void OnsInstanceUpdateRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setParameter("Remark", remark); +OnsInstanceUpdateRequest::~OnsInstanceUpdateRequest() {} + +std::string OnsInstanceUpdateRequest::getRemark() const { + return remark_; } -std::string OnsInstanceUpdateRequest::getInstanceName()const -{ - return instanceName_; +void OnsInstanceUpdateRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); } -void OnsInstanceUpdateRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +std::string OnsInstanceUpdateRequest::getInstanceName() const { + return instanceName_; } -std::string OnsInstanceUpdateRequest::getInstanceId()const -{ - return instanceId_; +void OnsInstanceUpdateRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -void OnsInstanceUpdateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsInstanceUpdateRequest::getInstanceId() const { + return instanceId_; +} + +void OnsInstanceUpdateRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ons/src/model/OnsMessageGetByKeyRequest.cc b/ons/src/model/OnsMessageGetByKeyRequest.cc index 7fa97af36..1dcfa62e3 100644 --- a/ons/src/model/OnsMessageGetByKeyRequest.cc +++ b/ons/src/model/OnsMessageGetByKeyRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMessageGetByKeyRequest; - -OnsMessageGetByKeyRequest::OnsMessageGetByKeyRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByKey") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMessageGetByKeyRequest::~OnsMessageGetByKeyRequest() -{} - -std::string OnsMessageGetByKeyRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMessageGetByKeyRequest; + +OnsMessageGetByKeyRequest::OnsMessageGetByKeyRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByKey") { + setMethod(HttpRequest::Method::Post); } -void OnsMessageGetByKeyRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +OnsMessageGetByKeyRequest::~OnsMessageGetByKeyRequest() {} + +std::string OnsMessageGetByKeyRequest::getInstanceId() const { + return instanceId_; } -std::string OnsMessageGetByKeyRequest::getTopic()const -{ - return topic_; +void OnsMessageGetByKeyRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsMessageGetByKeyRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsMessageGetByKeyRequest::getTopic() const { + return topic_; } -std::string OnsMessageGetByKeyRequest::getKey()const -{ - return key_; +void OnsMessageGetByKeyRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } -void OnsMessageGetByKeyRequest::setKey(const std::string& key) -{ - key_ = key; - setParameter("Key", key); +std::string OnsMessageGetByKeyRequest::getKey() const { + return key_; +} + +void OnsMessageGetByKeyRequest::setKey(const std::string &key) { + key_ = key; + setParameter(std::string("Key"), key); } diff --git a/ons/src/model/OnsMessageGetByMsgIdRequest.cc b/ons/src/model/OnsMessageGetByMsgIdRequest.cc index 25129f812..727fac8cd 100644 --- a/ons/src/model/OnsMessageGetByMsgIdRequest.cc +++ b/ons/src/model/OnsMessageGetByMsgIdRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMessageGetByMsgIdRequest; - -OnsMessageGetByMsgIdRequest::OnsMessageGetByMsgIdRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByMsgId") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMessageGetByMsgIdRequest::~OnsMessageGetByMsgIdRequest() -{} - -std::string OnsMessageGetByMsgIdRequest::getMsgId()const -{ - return msgId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMessageGetByMsgIdRequest; + +OnsMessageGetByMsgIdRequest::OnsMessageGetByMsgIdRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsMessageGetByMsgId") { + setMethod(HttpRequest::Method::Post); } -void OnsMessageGetByMsgIdRequest::setMsgId(const std::string& msgId) -{ - msgId_ = msgId; - setParameter("MsgId", msgId); +OnsMessageGetByMsgIdRequest::~OnsMessageGetByMsgIdRequest() {} + +std::string OnsMessageGetByMsgIdRequest::getMsgId() const { + return msgId_; } -std::string OnsMessageGetByMsgIdRequest::getInstanceId()const -{ - return instanceId_; +void OnsMessageGetByMsgIdRequest::setMsgId(const std::string &msgId) { + msgId_ = msgId; + setParameter(std::string("MsgId"), msgId); } -void OnsMessageGetByMsgIdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsMessageGetByMsgIdRequest::getInstanceId() const { + return instanceId_; } -std::string OnsMessageGetByMsgIdRequest::getTopic()const -{ - return topic_; +void OnsMessageGetByMsgIdRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsMessageGetByMsgIdRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsMessageGetByMsgIdRequest::getTopic() const { + return topic_; +} + +void OnsMessageGetByMsgIdRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsMessagePageQueryByTopicRequest.cc b/ons/src/model/OnsMessagePageQueryByTopicRequest.cc index 23aebb3b9..57094b991 100644 --- a/ons/src/model/OnsMessagePageQueryByTopicRequest.cc +++ b/ons/src/model/OnsMessagePageQueryByTopicRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMessagePageQueryByTopicRequest; - -OnsMessagePageQueryByTopicRequest::OnsMessagePageQueryByTopicRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMessagePageQueryByTopic") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMessagePageQueryByTopicRequest::~OnsMessagePageQueryByTopicRequest() -{} - -long OnsMessagePageQueryByTopicRequest::getEndTime()const -{ - return endTime_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMessagePageQueryByTopicRequest; + +OnsMessagePageQueryByTopicRequest::OnsMessagePageQueryByTopicRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsMessagePageQueryByTopic") { + setMethod(HttpRequest::Method::Post); } -void OnsMessagePageQueryByTopicRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +OnsMessagePageQueryByTopicRequest::~OnsMessagePageQueryByTopicRequest() {} + +long OnsMessagePageQueryByTopicRequest::getEndTime() const { + return endTime_; } -long OnsMessagePageQueryByTopicRequest::getBeginTime()const -{ - return beginTime_; +void OnsMessagePageQueryByTopicRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void OnsMessagePageQueryByTopicRequest::setBeginTime(long beginTime) -{ - beginTime_ = beginTime; - setParameter("BeginTime", std::to_string(beginTime)); +long OnsMessagePageQueryByTopicRequest::getBeginTime() const { + return beginTime_; } -int OnsMessagePageQueryByTopicRequest::getCurrentPage()const -{ - return currentPage_; +void OnsMessagePageQueryByTopicRequest::setBeginTime(long beginTime) { + beginTime_ = beginTime; + setParameter(std::string("BeginTime"), std::to_string(beginTime)); } -void OnsMessagePageQueryByTopicRequest::setCurrentPage(int currentPage) -{ - currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); +int OnsMessagePageQueryByTopicRequest::getCurrentPage() const { + return currentPage_; } -std::string OnsMessagePageQueryByTopicRequest::getInstanceId()const -{ - return instanceId_; +void OnsMessagePageQueryByTopicRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); } -void OnsMessagePageQueryByTopicRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsMessagePageQueryByTopicRequest::getInstanceId() const { + return instanceId_; } -int OnsMessagePageQueryByTopicRequest::getPageSize()const -{ - return pageSize_; +void OnsMessagePageQueryByTopicRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsMessagePageQueryByTopicRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int OnsMessagePageQueryByTopicRequest::getPageSize() const { + return pageSize_; } -std::string OnsMessagePageQueryByTopicRequest::getTopic()const -{ - return topic_; +void OnsMessagePageQueryByTopicRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void OnsMessagePageQueryByTopicRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsMessagePageQueryByTopicRequest::getTopic() const { + return topic_; } -std::string OnsMessagePageQueryByTopicRequest::getTaskId()const -{ - return taskId_; +void OnsMessagePageQueryByTopicRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } -void OnsMessagePageQueryByTopicRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string OnsMessagePageQueryByTopicRequest::getTaskId() const { + return taskId_; +} + +void OnsMessagePageQueryByTopicRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/ons/src/model/OnsMessagePushRequest.cc b/ons/src/model/OnsMessagePushRequest.cc index de424110c..c3662c36f 100644 --- a/ons/src/model/OnsMessagePushRequest.cc +++ b/ons/src/model/OnsMessagePushRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMessagePushRequest; - -OnsMessagePushRequest::OnsMessagePushRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMessagePush") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMessagePushRequest::~OnsMessagePushRequest() -{} - -std::string OnsMessagePushRequest::getClientId()const -{ - return clientId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMessagePushRequest; + +OnsMessagePushRequest::OnsMessagePushRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsMessagePush") { + setMethod(HttpRequest::Method::Post); } -void OnsMessagePushRequest::setClientId(const std::string& clientId) -{ - clientId_ = clientId; - setParameter("ClientId", clientId); +OnsMessagePushRequest::~OnsMessagePushRequest() {} + +std::string OnsMessagePushRequest::getClientId() const { + return clientId_; } -std::string OnsMessagePushRequest::getGroupId()const -{ - return groupId_; +void OnsMessagePushRequest::setClientId(const std::string &clientId) { + clientId_ = clientId; + setParameter(std::string("ClientId"), clientId); } -void OnsMessagePushRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string OnsMessagePushRequest::getGroupId() const { + return groupId_; } -std::string OnsMessagePushRequest::getMsgId()const -{ - return msgId_; +void OnsMessagePushRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsMessagePushRequest::setMsgId(const std::string& msgId) -{ - msgId_ = msgId; - setParameter("MsgId", msgId); +std::string OnsMessagePushRequest::getMsgId() const { + return msgId_; } -std::string OnsMessagePushRequest::getInstanceId()const -{ - return instanceId_; +void OnsMessagePushRequest::setMsgId(const std::string &msgId) { + msgId_ = msgId; + setParameter(std::string("MsgId"), msgId); } -void OnsMessagePushRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsMessagePushRequest::getInstanceId() const { + return instanceId_; } -std::string OnsMessagePushRequest::getTopic()const -{ - return topic_; +void OnsMessagePushRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsMessagePushRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsMessagePushRequest::getTopic() const { + return topic_; +} + +void OnsMessagePushRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsMessageTraceRequest.cc b/ons/src/model/OnsMessageTraceRequest.cc index c853fe0a9..fdf2156ef 100644 --- a/ons/src/model/OnsMessageTraceRequest.cc +++ b/ons/src/model/OnsMessageTraceRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsMessageTraceRequest; - -OnsMessageTraceRequest::OnsMessageTraceRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsMessageTrace") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsMessageTraceRequest::~OnsMessageTraceRequest() -{} - -std::string OnsMessageTraceRequest::getMsgId()const -{ - return msgId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsMessageTraceRequest; + +OnsMessageTraceRequest::OnsMessageTraceRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsMessageTrace") { + setMethod(HttpRequest::Method::Post); } -void OnsMessageTraceRequest::setMsgId(const std::string& msgId) -{ - msgId_ = msgId; - setParameter("MsgId", msgId); +OnsMessageTraceRequest::~OnsMessageTraceRequest() {} + +std::string OnsMessageTraceRequest::getMsgId() const { + return msgId_; } -std::string OnsMessageTraceRequest::getInstanceId()const -{ - return instanceId_; +void OnsMessageTraceRequest::setMsgId(const std::string &msgId) { + msgId_ = msgId; + setParameter(std::string("MsgId"), msgId); } -void OnsMessageTraceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsMessageTraceRequest::getInstanceId() const { + return instanceId_; } -std::string OnsMessageTraceRequest::getTopic()const -{ - return topic_; +void OnsMessageTraceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsMessageTraceRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsMessageTraceRequest::getTopic() const { + return topic_; +} + +void OnsMessageTraceRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsRegionListRequest.cc b/ons/src/model/OnsRegionListRequest.cc index e80f8365d..b35df3a4a 100644 --- a/ons/src/model/OnsRegionListRequest.cc +++ b/ons/src/model/OnsRegionListRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsRegionListRequest; - -OnsRegionListRequest::OnsRegionListRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsRegionList") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsRegionListRequest::~OnsRegionListRequest() -{} - + */ + +#include + +using AlibabaCloud::Ons::Model::OnsRegionListRequest; + +OnsRegionListRequest::OnsRegionListRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsRegionList") { + setMethod(HttpRequest::Method::Post); +} + +OnsRegionListRequest::~OnsRegionListRequest() {} + diff --git a/ons/src/model/OnsRegionListResult.cc b/ons/src/model/OnsRegionListResult.cc index 5ebdc4bc7..e4b185c49 100644 --- a/ons/src/model/OnsRegionListResult.cc +++ b/ons/src/model/OnsRegionListResult.cc @@ -43,20 +43,20 @@ void OnsRegionListResult::parse(const std::string &payload) for (auto valueDataRegionDo : allDataNode) { RegionDo dataObject; - if(!valueDataRegionDo["Id"].isNull()) - dataObject.id = std::stol(valueDataRegionDo["Id"].asString()); - if(!valueDataRegionDo["OnsRegionId"].isNull()) - dataObject.onsRegionId = valueDataRegionDo["OnsRegionId"].asString(); + if(!valueDataRegionDo["UpdateTime"].isNull()) + dataObject.updateTime = std::stol(valueDataRegionDo["UpdateTime"].asString()); if(!valueDataRegionDo["RegionName"].isNull()) dataObject.regionName = valueDataRegionDo["RegionName"].asString(); - if(!valueDataRegionDo["ChannelId"].isNull()) - dataObject.channelId = std::stoi(valueDataRegionDo["ChannelId"].asString()); if(!valueDataRegionDo["ChannelName"].isNull()) dataObject.channelName = valueDataRegionDo["ChannelName"].asString(); if(!valueDataRegionDo["CreateTime"].isNull()) dataObject.createTime = std::stol(valueDataRegionDo["CreateTime"].asString()); - if(!valueDataRegionDo["UpdateTime"].isNull()) - dataObject.updateTime = std::stol(valueDataRegionDo["UpdateTime"].asString()); + if(!valueDataRegionDo["ChannelId"].isNull()) + dataObject.channelId = std::stoi(valueDataRegionDo["ChannelId"].asString()); + if(!valueDataRegionDo["Id"].isNull()) + dataObject.id = std::stol(valueDataRegionDo["Id"].asString()); + if(!valueDataRegionDo["OnsRegionId"].isNull()) + dataObject.onsRegionId = valueDataRegionDo["OnsRegionId"].asString(); data_.push_back(dataObject); } if(!value["HelpUrl"].isNull()) diff --git a/ons/src/model/OnsTopicCreateRequest.cc b/ons/src/model/OnsTopicCreateRequest.cc index affca487b..e69b27c49 100644 --- a/ons/src/model/OnsTopicCreateRequest.cc +++ b/ons/src/model/OnsTopicCreateRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsTopicCreateRequest; - -OnsTopicCreateRequest::OnsTopicCreateRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsTopicCreate") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsTopicCreateRequest::~OnsTopicCreateRequest() -{} - -int OnsTopicCreateRequest::getMessageType()const -{ - return messageType_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTopicCreateRequest; + +OnsTopicCreateRequest::OnsTopicCreateRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsTopicCreate") { + setMethod(HttpRequest::Method::Post); } -void OnsTopicCreateRequest::setMessageType(int messageType) -{ - messageType_ = messageType; - setParameter("MessageType", std::to_string(messageType)); +OnsTopicCreateRequest::~OnsTopicCreateRequest() {} + +int OnsTopicCreateRequest::getMessageType() const { + return messageType_; } -std::string OnsTopicCreateRequest::getRemark()const -{ - return remark_; +void OnsTopicCreateRequest::setMessageType(int messageType) { + messageType_ = messageType; + setParameter(std::string("MessageType"), std::to_string(messageType)); } -void OnsTopicCreateRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setParameter("Remark", remark); +std::string OnsTopicCreateRequest::getRemark() const { + return remark_; } -std::string OnsTopicCreateRequest::getInstanceId()const -{ - return instanceId_; +void OnsTopicCreateRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); } -void OnsTopicCreateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsTopicCreateRequest::getInstanceId() const { + return instanceId_; } -std::string OnsTopicCreateRequest::getTopic()const -{ - return topic_; +void OnsTopicCreateRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsTopicCreateRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsTopicCreateRequest::getTopic() const { + return topic_; +} + +void OnsTopicCreateRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsTopicDeleteRequest.cc b/ons/src/model/OnsTopicDeleteRequest.cc index 46be1698a..b3cfc5eba 100644 --- a/ons/src/model/OnsTopicDeleteRequest.cc +++ b/ons/src/model/OnsTopicDeleteRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsTopicDeleteRequest; - -OnsTopicDeleteRequest::OnsTopicDeleteRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsTopicDelete") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsTopicDeleteRequest::~OnsTopicDeleteRequest() -{} - -std::string OnsTopicDeleteRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTopicDeleteRequest; + +OnsTopicDeleteRequest::OnsTopicDeleteRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsTopicDelete") { + setMethod(HttpRequest::Method::Post); } -void OnsTopicDeleteRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +OnsTopicDeleteRequest::~OnsTopicDeleteRequest() {} + +std::string OnsTopicDeleteRequest::getInstanceId() const { + return instanceId_; } -std::string OnsTopicDeleteRequest::getTopic()const -{ - return topic_; +void OnsTopicDeleteRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsTopicDeleteRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsTopicDeleteRequest::getTopic() const { + return topic_; +} + +void OnsTopicDeleteRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsTopicListRequest.cc b/ons/src/model/OnsTopicListRequest.cc index 6a0fbf487..448593ab6 100644 --- a/ons/src/model/OnsTopicListRequest.cc +++ b/ons/src/model/OnsTopicListRequest.cc @@ -1,67 +1,68 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsTopicListRequest; - -OnsTopicListRequest::OnsTopicListRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsTopicList") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsTopicListRequest::~OnsTopicListRequest() -{} - -std::string OnsTopicListRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTopicListRequest; + +OnsTopicListRequest::OnsTopicListRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsTopicList") { + setMethod(HttpRequest::Method::Post); } -void OnsTopicListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +OnsTopicListRequest::~OnsTopicListRequest() {} + +std::string OnsTopicListRequest::getUserId() const { + return userId_; } -std::string OnsTopicListRequest::getTopic()const -{ - return topic_; +void OnsTopicListRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void OnsTopicListRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsTopicListRequest::getInstanceId() const { + return instanceId_; } -std::vector OnsTopicListRequest::getTag()const -{ - return tag_; +void OnsTopicListRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsTopicListRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::string OnsTopicListRequest::getTopic() const { + return topic_; +} + +void OnsTopicListRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); +} + +std::vector OnsTopicListRequest::getTag() const { + return tag_; +} + +void OnsTopicListRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } diff --git a/ons/src/model/OnsTopicStatusRequest.cc b/ons/src/model/OnsTopicStatusRequest.cc index 7112e305d..15836f1f8 100644 --- a/ons/src/model/OnsTopicStatusRequest.cc +++ b/ons/src/model/OnsTopicStatusRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsTopicStatusRequest; - -OnsTopicStatusRequest::OnsTopicStatusRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsTopicStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsTopicStatusRequest::~OnsTopicStatusRequest() -{} - -std::string OnsTopicStatusRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTopicStatusRequest; + +OnsTopicStatusRequest::OnsTopicStatusRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsTopicStatus") { + setMethod(HttpRequest::Method::Post); } -void OnsTopicStatusRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +OnsTopicStatusRequest::~OnsTopicStatusRequest() {} + +std::string OnsTopicStatusRequest::getInstanceId() const { + return instanceId_; } -std::string OnsTopicStatusRequest::getTopic()const -{ - return topic_; +void OnsTopicStatusRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsTopicStatusRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsTopicStatusRequest::getTopic() const { + return topic_; +} + +void OnsTopicStatusRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsTopicSubDetailRequest.cc b/ons/src/model/OnsTopicSubDetailRequest.cc index 045ebf247..d477257c5 100644 --- a/ons/src/model/OnsTopicSubDetailRequest.cc +++ b/ons/src/model/OnsTopicSubDetailRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsTopicSubDetailRequest; - -OnsTopicSubDetailRequest::OnsTopicSubDetailRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsTopicSubDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsTopicSubDetailRequest::~OnsTopicSubDetailRequest() -{} - -std::string OnsTopicSubDetailRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTopicSubDetailRequest; + +OnsTopicSubDetailRequest::OnsTopicSubDetailRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsTopicSubDetail") { + setMethod(HttpRequest::Method::Post); } -void OnsTopicSubDetailRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +OnsTopicSubDetailRequest::~OnsTopicSubDetailRequest() {} + +std::string OnsTopicSubDetailRequest::getInstanceId() const { + return instanceId_; } -std::string OnsTopicSubDetailRequest::getTopic()const -{ - return topic_; +void OnsTopicSubDetailRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsTopicSubDetailRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsTopicSubDetailRequest::getTopic() const { + return topic_; +} + +void OnsTopicSubDetailRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsTopicUpdateRequest.cc b/ons/src/model/OnsTopicUpdateRequest.cc index 193685462..b67649d5b 100644 --- a/ons/src/model/OnsTopicUpdateRequest.cc +++ b/ons/src/model/OnsTopicUpdateRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsTopicUpdateRequest; - -OnsTopicUpdateRequest::OnsTopicUpdateRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsTopicUpdate") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsTopicUpdateRequest::~OnsTopicUpdateRequest() -{} - -int OnsTopicUpdateRequest::getPerm()const -{ - return perm_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTopicUpdateRequest; + +OnsTopicUpdateRequest::OnsTopicUpdateRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsTopicUpdate") { + setMethod(HttpRequest::Method::Post); } -void OnsTopicUpdateRequest::setPerm(int perm) -{ - perm_ = perm; - setParameter("Perm", std::to_string(perm)); +OnsTopicUpdateRequest::~OnsTopicUpdateRequest() {} + +int OnsTopicUpdateRequest::getPerm() const { + return perm_; } -std::string OnsTopicUpdateRequest::getInstanceId()const -{ - return instanceId_; +void OnsTopicUpdateRequest::setPerm(int perm) { + perm_ = perm; + setParameter(std::string("Perm"), std::to_string(perm)); } -void OnsTopicUpdateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsTopicUpdateRequest::getInstanceId() const { + return instanceId_; } -std::string OnsTopicUpdateRequest::getTopic()const -{ - return topic_; +void OnsTopicUpdateRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsTopicUpdateRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsTopicUpdateRequest::getTopic() const { + return topic_; +} + +void OnsTopicUpdateRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsTraceGetResultRequest.cc b/ons/src/model/OnsTraceGetResultRequest.cc index 157589c22..00aceb4ae 100644 --- a/ons/src/model/OnsTraceGetResultRequest.cc +++ b/ons/src/model/OnsTraceGetResultRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsTraceGetResultRequest; - -OnsTraceGetResultRequest::OnsTraceGetResultRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsTraceGetResult") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsTraceGetResultRequest::~OnsTraceGetResultRequest() -{} - -std::string OnsTraceGetResultRequest::getQueryId()const -{ - return queryId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTraceGetResultRequest; + +OnsTraceGetResultRequest::OnsTraceGetResultRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsTraceGetResult") { + setMethod(HttpRequest::Method::Post); } -void OnsTraceGetResultRequest::setQueryId(const std::string& queryId) -{ - queryId_ = queryId; - setParameter("QueryId", queryId); +OnsTraceGetResultRequest::~OnsTraceGetResultRequest() {} + +std::string OnsTraceGetResultRequest::getQueryId() const { + return queryId_; +} + +void OnsTraceGetResultRequest::setQueryId(const std::string &queryId) { + queryId_ = queryId; + setParameter(std::string("QueryId"), queryId); } diff --git a/ons/src/model/OnsTraceQueryByMsgIdRequest.cc b/ons/src/model/OnsTraceQueryByMsgIdRequest.cc index c6d925e22..8e1003964 100644 --- a/ons/src/model/OnsTraceQueryByMsgIdRequest.cc +++ b/ons/src/model/OnsTraceQueryByMsgIdRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgIdRequest; - -OnsTraceQueryByMsgIdRequest::OnsTraceQueryByMsgIdRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgId") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsTraceQueryByMsgIdRequest::~OnsTraceQueryByMsgIdRequest() -{} - -std::string OnsTraceQueryByMsgIdRequest::getMsgId()const -{ - return msgId_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgIdRequest; + +OnsTraceQueryByMsgIdRequest::OnsTraceQueryByMsgIdRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgId") { + setMethod(HttpRequest::Method::Post); } -void OnsTraceQueryByMsgIdRequest::setMsgId(const std::string& msgId) -{ - msgId_ = msgId; - setParameter("MsgId", msgId); +OnsTraceQueryByMsgIdRequest::~OnsTraceQueryByMsgIdRequest() {} + +std::string OnsTraceQueryByMsgIdRequest::getMsgId() const { + return msgId_; } -long OnsTraceQueryByMsgIdRequest::getEndTime()const -{ - return endTime_; +void OnsTraceQueryByMsgIdRequest::setMsgId(const std::string &msgId) { + msgId_ = msgId; + setParameter(std::string("MsgId"), msgId); } -void OnsTraceQueryByMsgIdRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long OnsTraceQueryByMsgIdRequest::getEndTime() const { + return endTime_; } -long OnsTraceQueryByMsgIdRequest::getBeginTime()const -{ - return beginTime_; +void OnsTraceQueryByMsgIdRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void OnsTraceQueryByMsgIdRequest::setBeginTime(long beginTime) -{ - beginTime_ = beginTime; - setParameter("BeginTime", std::to_string(beginTime)); +long OnsTraceQueryByMsgIdRequest::getBeginTime() const { + return beginTime_; } -std::string OnsTraceQueryByMsgIdRequest::getInstanceId()const -{ - return instanceId_; +void OnsTraceQueryByMsgIdRequest::setBeginTime(long beginTime) { + beginTime_ = beginTime; + setParameter(std::string("BeginTime"), std::to_string(beginTime)); } -void OnsTraceQueryByMsgIdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsTraceQueryByMsgIdRequest::getInstanceId() const { + return instanceId_; } -std::string OnsTraceQueryByMsgIdRequest::getTopic()const -{ - return topic_; +void OnsTraceQueryByMsgIdRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsTraceQueryByMsgIdRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsTraceQueryByMsgIdRequest::getTopic() const { + return topic_; +} + +void OnsTraceQueryByMsgIdRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsTraceQueryByMsgKeyRequest.cc b/ons/src/model/OnsTraceQueryByMsgKeyRequest.cc index 6e797860b..89b96be21 100644 --- a/ons/src/model/OnsTraceQueryByMsgKeyRequest.cc +++ b/ons/src/model/OnsTraceQueryByMsgKeyRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgKeyRequest; - -OnsTraceQueryByMsgKeyRequest::OnsTraceQueryByMsgKeyRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgKey") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsTraceQueryByMsgKeyRequest::~OnsTraceQueryByMsgKeyRequest() -{} - -long OnsTraceQueryByMsgKeyRequest::getEndTime()const -{ - return endTime_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTraceQueryByMsgKeyRequest; + +OnsTraceQueryByMsgKeyRequest::OnsTraceQueryByMsgKeyRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsTraceQueryByMsgKey") { + setMethod(HttpRequest::Method::Post); } -void OnsTraceQueryByMsgKeyRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +OnsTraceQueryByMsgKeyRequest::~OnsTraceQueryByMsgKeyRequest() {} + +long OnsTraceQueryByMsgKeyRequest::getEndTime() const { + return endTime_; } -long OnsTraceQueryByMsgKeyRequest::getBeginTime()const -{ - return beginTime_; +void OnsTraceQueryByMsgKeyRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void OnsTraceQueryByMsgKeyRequest::setBeginTime(long beginTime) -{ - beginTime_ = beginTime; - setParameter("BeginTime", std::to_string(beginTime)); +long OnsTraceQueryByMsgKeyRequest::getBeginTime() const { + return beginTime_; } -std::string OnsTraceQueryByMsgKeyRequest::getInstanceId()const -{ - return instanceId_; +void OnsTraceQueryByMsgKeyRequest::setBeginTime(long beginTime) { + beginTime_ = beginTime; + setParameter(std::string("BeginTime"), std::to_string(beginTime)); } -void OnsTraceQueryByMsgKeyRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsTraceQueryByMsgKeyRequest::getInstanceId() const { + return instanceId_; } -std::string OnsTraceQueryByMsgKeyRequest::getTopic()const -{ - return topic_; +void OnsTraceQueryByMsgKeyRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsTraceQueryByMsgKeyRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsTraceQueryByMsgKeyRequest::getTopic() const { + return topic_; } -std::string OnsTraceQueryByMsgKeyRequest::getMsgKey()const -{ - return msgKey_; +void OnsTraceQueryByMsgKeyRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } -void OnsTraceQueryByMsgKeyRequest::setMsgKey(const std::string& msgKey) -{ - msgKey_ = msgKey; - setParameter("MsgKey", msgKey); +std::string OnsTraceQueryByMsgKeyRequest::getMsgKey() const { + return msgKey_; +} + +void OnsTraceQueryByMsgKeyRequest::setMsgKey(const std::string &msgKey) { + msgKey_ = msgKey; + setParameter(std::string("MsgKey"), msgKey); } diff --git a/ons/src/model/OnsTrendGroupOutputTpsRequest.cc b/ons/src/model/OnsTrendGroupOutputTpsRequest.cc index 1ed6b0c20..244ec1374 100644 --- a/ons/src/model/OnsTrendGroupOutputTpsRequest.cc +++ b/ons/src/model/OnsTrendGroupOutputTpsRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsTrendGroupOutputTpsRequest; - -OnsTrendGroupOutputTpsRequest::OnsTrendGroupOutputTpsRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsTrendGroupOutputTps") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsTrendGroupOutputTpsRequest::~OnsTrendGroupOutputTpsRequest() -{} - -long OnsTrendGroupOutputTpsRequest::getPeriod()const -{ - return period_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTrendGroupOutputTpsRequest; + +OnsTrendGroupOutputTpsRequest::OnsTrendGroupOutputTpsRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsTrendGroupOutputTps") { + setMethod(HttpRequest::Method::Post); } -void OnsTrendGroupOutputTpsRequest::setPeriod(long period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +OnsTrendGroupOutputTpsRequest::~OnsTrendGroupOutputTpsRequest() {} + +long OnsTrendGroupOutputTpsRequest::getPeriod() const { + return period_; } -std::string OnsTrendGroupOutputTpsRequest::getGroupId()const -{ - return groupId_; +void OnsTrendGroupOutputTpsRequest::setPeriod(long period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void OnsTrendGroupOutputTpsRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string OnsTrendGroupOutputTpsRequest::getGroupId() const { + return groupId_; } -long OnsTrendGroupOutputTpsRequest::getEndTime()const -{ - return endTime_; +void OnsTrendGroupOutputTpsRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void OnsTrendGroupOutputTpsRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long OnsTrendGroupOutputTpsRequest::getEndTime() const { + return endTime_; } -long OnsTrendGroupOutputTpsRequest::getBeginTime()const -{ - return beginTime_; +void OnsTrendGroupOutputTpsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void OnsTrendGroupOutputTpsRequest::setBeginTime(long beginTime) -{ - beginTime_ = beginTime; - setParameter("BeginTime", std::to_string(beginTime)); +long OnsTrendGroupOutputTpsRequest::getBeginTime() const { + return beginTime_; } -int OnsTrendGroupOutputTpsRequest::getType()const -{ - return type_; +void OnsTrendGroupOutputTpsRequest::setBeginTime(long beginTime) { + beginTime_ = beginTime; + setParameter(std::string("BeginTime"), std::to_string(beginTime)); } -void OnsTrendGroupOutputTpsRequest::setType(int type) -{ - type_ = type; - setParameter("Type", std::to_string(type)); +int OnsTrendGroupOutputTpsRequest::getType() const { + return type_; } -std::string OnsTrendGroupOutputTpsRequest::getInstanceId()const -{ - return instanceId_; +void OnsTrendGroupOutputTpsRequest::setType(int type) { + type_ = type; + setParameter(std::string("Type"), std::to_string(type)); } -void OnsTrendGroupOutputTpsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsTrendGroupOutputTpsRequest::getInstanceId() const { + return instanceId_; } -std::string OnsTrendGroupOutputTpsRequest::getTopic()const -{ - return topic_; +void OnsTrendGroupOutputTpsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsTrendGroupOutputTpsRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsTrendGroupOutputTpsRequest::getTopic() const { + return topic_; +} + +void OnsTrendGroupOutputTpsRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsTrendTopicInputTpsRequest.cc b/ons/src/model/OnsTrendTopicInputTpsRequest.cc index 9d4f47573..7f49c3fc9 100644 --- a/ons/src/model/OnsTrendTopicInputTpsRequest.cc +++ b/ons/src/model/OnsTrendTopicInputTpsRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsTrendTopicInputTpsRequest; - -OnsTrendTopicInputTpsRequest::OnsTrendTopicInputTpsRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsTrendTopicInputTps") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsTrendTopicInputTpsRequest::~OnsTrendTopicInputTpsRequest() -{} - -long OnsTrendTopicInputTpsRequest::getPeriod()const -{ - return period_; + */ + +#include + +using AlibabaCloud::Ons::Model::OnsTrendTopicInputTpsRequest; + +OnsTrendTopicInputTpsRequest::OnsTrendTopicInputTpsRequest() + : RpcServiceRequest("ons", "2019-02-14", "OnsTrendTopicInputTps") { + setMethod(HttpRequest::Method::Post); } -void OnsTrendTopicInputTpsRequest::setPeriod(long period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +OnsTrendTopicInputTpsRequest::~OnsTrendTopicInputTpsRequest() {} + +long OnsTrendTopicInputTpsRequest::getPeriod() const { + return period_; } -long OnsTrendTopicInputTpsRequest::getEndTime()const -{ - return endTime_; +void OnsTrendTopicInputTpsRequest::setPeriod(long period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void OnsTrendTopicInputTpsRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long OnsTrendTopicInputTpsRequest::getEndTime() const { + return endTime_; } -long OnsTrendTopicInputTpsRequest::getBeginTime()const -{ - return beginTime_; +void OnsTrendTopicInputTpsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void OnsTrendTopicInputTpsRequest::setBeginTime(long beginTime) -{ - beginTime_ = beginTime; - setParameter("BeginTime", std::to_string(beginTime)); +long OnsTrendTopicInputTpsRequest::getBeginTime() const { + return beginTime_; } -int OnsTrendTopicInputTpsRequest::getType()const -{ - return type_; +void OnsTrendTopicInputTpsRequest::setBeginTime(long beginTime) { + beginTime_ = beginTime; + setParameter(std::string("BeginTime"), std::to_string(beginTime)); } -void OnsTrendTopicInputTpsRequest::setType(int type) -{ - type_ = type; - setParameter("Type", std::to_string(type)); +int OnsTrendTopicInputTpsRequest::getType() const { + return type_; } -std::string OnsTrendTopicInputTpsRequest::getInstanceId()const -{ - return instanceId_; +void OnsTrendTopicInputTpsRequest::setType(int type) { + type_ = type; + setParameter(std::string("Type"), std::to_string(type)); } -void OnsTrendTopicInputTpsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string OnsTrendTopicInputTpsRequest::getInstanceId() const { + return instanceId_; } -std::string OnsTrendTopicInputTpsRequest::getTopic()const -{ - return topic_; +void OnsTrendTopicInputTpsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void OnsTrendTopicInputTpsRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); +std::string OnsTrendTopicInputTpsRequest::getTopic() const { + return topic_; +} + +void OnsTrendTopicInputTpsRequest::setTopic(const std::string &topic) { + topic_ = topic; + setParameter(std::string("Topic"), topic); } diff --git a/ons/src/model/OnsWarnCreateRequest.cc b/ons/src/model/OnsWarnCreateRequest.cc deleted file mode 100644 index 1ec9689d5..000000000 --- a/ons/src/model/OnsWarnCreateRequest.cc +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsWarnCreateRequest; - -OnsWarnCreateRequest::OnsWarnCreateRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsWarnCreate") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsWarnCreateRequest::~OnsWarnCreateRequest() -{} - -std::string OnsWarnCreateRequest::getLevel()const -{ - return level_; -} - -void OnsWarnCreateRequest::setLevel(const std::string& level) -{ - level_ = level; - setParameter("Level", level); -} - -std::string OnsWarnCreateRequest::getGroupId()const -{ - return groupId_; -} - -void OnsWarnCreateRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); -} - -std::string OnsWarnCreateRequest::getDelayTime()const -{ - return delayTime_; -} - -void OnsWarnCreateRequest::setDelayTime(const std::string& delayTime) -{ - delayTime_ = delayTime; - setParameter("DelayTime", delayTime); -} - -std::string OnsWarnCreateRequest::getThreshold()const -{ - return threshold_; -} - -void OnsWarnCreateRequest::setThreshold(const std::string& threshold) -{ - threshold_ = threshold; - setParameter("Threshold", threshold); -} - -std::string OnsWarnCreateRequest::getAlertTime()const -{ - return alertTime_; -} - -void OnsWarnCreateRequest::setAlertTime(const std::string& alertTime) -{ - alertTime_ = alertTime; - setParameter("AlertTime", alertTime); -} - -std::string OnsWarnCreateRequest::getInstanceId()const -{ - return instanceId_; -} - -void OnsWarnCreateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string OnsWarnCreateRequest::getBlockTime()const -{ - return blockTime_; -} - -void OnsWarnCreateRequest::setBlockTime(const std::string& blockTime) -{ - blockTime_ = blockTime; - setParameter("BlockTime", blockTime); -} - -std::string OnsWarnCreateRequest::getTopic()const -{ - return topic_; -} - -void OnsWarnCreateRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); -} - -std::string OnsWarnCreateRequest::getContacts()const -{ - return contacts_; -} - -void OnsWarnCreateRequest::setContacts(const std::string& contacts) -{ - contacts_ = contacts; - setParameter("Contacts", contacts); -} - diff --git a/ons/src/model/OnsWarnCreateResult.cc b/ons/src/model/OnsWarnCreateResult.cc deleted file mode 100644 index f01f8793f..000000000 --- a/ons/src/model/OnsWarnCreateResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ons; -using namespace AlibabaCloud::Ons::Model; - -OnsWarnCreateResult::OnsWarnCreateResult() : - ServiceResult() -{} - -OnsWarnCreateResult::OnsWarnCreateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -OnsWarnCreateResult::~OnsWarnCreateResult() -{} - -void OnsWarnCreateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HelpUrl"].isNull()) - helpUrl_ = value["HelpUrl"].asString(); - -} - -std::string OnsWarnCreateResult::getHelpUrl()const -{ - return helpUrl_; -} - diff --git a/ons/src/model/OnsWarnDeleteRequest.cc b/ons/src/model/OnsWarnDeleteRequest.cc deleted file mode 100644 index 040612d07..000000000 --- a/ons/src/model/OnsWarnDeleteRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OnsWarnDeleteRequest; - -OnsWarnDeleteRequest::OnsWarnDeleteRequest() : - RpcServiceRequest("ons", "2019-02-14", "OnsWarnDelete") -{ - setMethod(HttpRequest::Method::Post); -} - -OnsWarnDeleteRequest::~OnsWarnDeleteRequest() -{} - -std::string OnsWarnDeleteRequest::getGroupId()const -{ - return groupId_; -} - -void OnsWarnDeleteRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); -} - -std::string OnsWarnDeleteRequest::getInstanceId()const -{ - return instanceId_; -} - -void OnsWarnDeleteRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string OnsWarnDeleteRequest::getTopic()const -{ - return topic_; -} - -void OnsWarnDeleteRequest::setTopic(const std::string& topic) -{ - topic_ = topic; - setParameter("Topic", topic); -} - diff --git a/ons/src/model/OnsWarnDeleteResult.cc b/ons/src/model/OnsWarnDeleteResult.cc deleted file mode 100644 index b7619df8f..000000000 --- a/ons/src/model/OnsWarnDeleteResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Ons; -using namespace AlibabaCloud::Ons::Model; - -OnsWarnDeleteResult::OnsWarnDeleteResult() : - ServiceResult() -{} - -OnsWarnDeleteResult::OnsWarnDeleteResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -OnsWarnDeleteResult::~OnsWarnDeleteResult() -{} - -void OnsWarnDeleteResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HelpUrl"].isNull()) - helpUrl_ = value["HelpUrl"].asString(); - -} - -std::string OnsWarnDeleteResult::getHelpUrl()const -{ - return helpUrl_; -} - diff --git a/ons/src/model/OpenOnsServiceRequest.cc b/ons/src/model/OpenOnsServiceRequest.cc index e28f82e7a..d34ec5484 100644 --- a/ons/src/model/OpenOnsServiceRequest.cc +++ b/ons/src/model/OpenOnsServiceRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::OpenOnsServiceRequest; - -OpenOnsServiceRequest::OpenOnsServiceRequest() : - RpcServiceRequest("ons", "2019-02-14", "OpenOnsService") -{ - setMethod(HttpRequest::Method::Post); -} - -OpenOnsServiceRequest::~OpenOnsServiceRequest() -{} - + */ + +#include + +using AlibabaCloud::Ons::Model::OpenOnsServiceRequest; + +OpenOnsServiceRequest::OpenOnsServiceRequest() + : RpcServiceRequest("ons", "2019-02-14", "OpenOnsService") { + setMethod(HttpRequest::Method::Post); +} + +OpenOnsServiceRequest::~OpenOnsServiceRequest() {} + diff --git a/ons/src/model/TagResourcesRequest.cc b/ons/src/model/TagResourcesRequest.cc index 0db114d0e..ec3bc5c16 100644 --- a/ons/src/model/TagResourcesRequest.cc +++ b/ons/src/model/TagResourcesRequest.cc @@ -1,80 +1,67 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() : - RpcServiceRequest("ons", "2019-02-14", "TagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -TagResourcesRequest::~TagResourcesRequest() -{} - -std::vector TagResourcesRequest::getResourceId()const -{ - return resourceId_; + */ + +#include + +using AlibabaCloud::Ons::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("ons", "2019-02-14", "TagResources") { + setMethod(HttpRequest::Method::Post); } -void TagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string TagResourcesRequest::getResourceType()const -{ - return resourceType_; +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void TagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; } -std::string TagResourcesRequest::getInstanceId()const -{ - return instanceId_; +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void TagResourcesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string TagResourcesRequest::getInstanceId() const { + return instanceId_; } -std::vector TagResourcesRequest::getTag()const -{ - return tag_; +void TagResourcesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void TagResourcesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } diff --git a/ons/src/model/UntagResourcesRequest.cc b/ons/src/model/UntagResourcesRequest.cc index c84404423..cb78c3230 100644 --- a/ons/src/model/UntagResourcesRequest.cc +++ b/ons/src/model/UntagResourcesRequest.cc @@ -1,88 +1,70 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ons::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() : - RpcServiceRequest("ons", "2019-02-14", "UntagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -UntagResourcesRequest::~UntagResourcesRequest() -{} - -bool UntagResourcesRequest::getAll()const -{ - return all_; + */ + +#include + +using AlibabaCloud::Ons::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("ons", "2019-02-14", "UntagResources") { + setMethod(HttpRequest::Method::Post); } -void UntagResourcesRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +UntagResourcesRequest::~UntagResourcesRequest() {} + +bool UntagResourcesRequest::getAll() const { + return all_; } -std::vector UntagResourcesRequest::getResourceId()const -{ - return resourceId_; +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); } -void UntagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string UntagResourcesRequest::getResourceType()const -{ - return resourceType_; +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void UntagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; } -std::string UntagResourcesRequest::getInstanceId()const -{ - return instanceId_; +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void UntagResourcesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string UntagResourcesRequest::getInstanceId() const { + return instanceId_; } -std::vector UntagResourcesRequest::getTagKey()const -{ - return tagKey_; +void UntagResourcesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void UntagResourcesRequest::setTagKey(const std::vector& tagKey) -{ - tagKey_ = tagKey; - for(int dep1 = 0; dep1!= tagKey.size(); dep1++) { - setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1)); - } +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; }