diff --git a/CHANGELOG b/CHANGELOG index 8215d09da..6b044560e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-01-21 Version: 1.36.1034 +- Add Event Rule sql filter. + 2022-01-21 Version: 1.36.1033 - Supported RestartDataCorrectSQLJob,PauseDataCorrectSQLJob API. - Supported ListDataCorrectPreCheckSQL to return tableNames information. diff --git a/VERSION b/VERSION index c03de6506..bca30ea4c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1033 \ No newline at end of file +1.36.1034 \ No newline at end of file diff --git a/cms/CMakeLists.txt b/cms/CMakeLists.txt index bb4cc17e3..45663bf0c 100644 --- a/cms/CMakeLists.txt +++ b/cms/CMakeLists.txt @@ -287,6 +287,8 @@ set(cms_public_header_model include/alibabacloud/cms/model/PutExporterRuleResult.h include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h include/alibabacloud/cms/model/PutGroupMetricRuleResult.h + include/alibabacloud/cms/model/PutHybridMonitorMetricDataRequest.h + include/alibabacloud/cms/model/PutHybridMonitorMetricDataResult.h include/alibabacloud/cms/model/PutLogMonitorRequest.h include/alibabacloud/cms/model/PutLogMonitorResult.h include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h @@ -574,6 +576,8 @@ set(cms_src src/model/PutExporterRuleResult.cc src/model/PutGroupMetricRuleRequest.cc src/model/PutGroupMetricRuleResult.cc + src/model/PutHybridMonitorMetricDataRequest.cc + src/model/PutHybridMonitorMetricDataResult.cc src/model/PutLogMonitorRequest.cc src/model/PutLogMonitorResult.cc src/model/PutMetricRuleTargetsRequest.cc diff --git a/cms/include/alibabacloud/cms/CmsClient.h b/cms/include/alibabacloud/cms/CmsClient.h index e4b188fb4..54267df64 100644 --- a/cms/include/alibabacloud/cms/CmsClient.h +++ b/cms/include/alibabacloud/cms/CmsClient.h @@ -288,6 +288,8 @@ #include "model/PutExporterRuleResult.h" #include "model/PutGroupMetricRuleRequest.h" #include "model/PutGroupMetricRuleResult.h" +#include "model/PutHybridMonitorMetricDataRequest.h" +#include "model/PutHybridMonitorMetricDataResult.h" #include "model/PutLogMonitorRequest.h" #include "model/PutLogMonitorResult.h" #include "model/PutMetricRuleTargetsRequest.h" @@ -714,6 +716,9 @@ namespace AlibabaCloud typedef Outcome PutGroupMetricRuleOutcome; typedef std::future PutGroupMetricRuleOutcomeCallable; typedef std::function&)> PutGroupMetricRuleAsyncHandler; + typedef Outcome PutHybridMonitorMetricDataOutcome; + typedef std::future PutHybridMonitorMetricDataOutcomeCallable; + typedef std::function&)> PutHybridMonitorMetricDataAsyncHandler; typedef Outcome PutLogMonitorOutcome; typedef std::future PutLogMonitorOutcomeCallable; typedef std::function&)> PutLogMonitorAsyncHandler; @@ -1145,6 +1150,9 @@ namespace AlibabaCloud PutGroupMetricRuleOutcome putGroupMetricRule(const Model::PutGroupMetricRuleRequest &request)const; void putGroupMetricRuleAsync(const Model::PutGroupMetricRuleRequest& request, const PutGroupMetricRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PutGroupMetricRuleOutcomeCallable putGroupMetricRuleCallable(const Model::PutGroupMetricRuleRequest& request) const; + PutHybridMonitorMetricDataOutcome putHybridMonitorMetricData(const Model::PutHybridMonitorMetricDataRequest &request)const; + void putHybridMonitorMetricDataAsync(const Model::PutHybridMonitorMetricDataRequest& request, const PutHybridMonitorMetricDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutHybridMonitorMetricDataOutcomeCallable putHybridMonitorMetricDataCallable(const Model::PutHybridMonitorMetricDataRequest& request) const; PutLogMonitorOutcome putLogMonitor(const Model::PutLogMonitorRequest &request)const; void putLogMonitorAsync(const Model::PutLogMonitorRequest& request, const PutLogMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PutLogMonitorOutcomeCallable putLogMonitorCallable(const Model::PutLogMonitorRequest& request) const; diff --git a/cms/include/alibabacloud/cms/model/AddTagsRequest.h b/cms/include/alibabacloud/cms/model/AddTagsRequest.h index 2bce8b60f..c41ab3a0d 100644 --- a/cms/include/alibabacloud/cms/model/AddTagsRequest.h +++ b/cms/include/alibabacloud/cms/model/AddTagsRequest.h @@ -1,57 +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_CMS_MODEL_ADDTAGSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ADDTAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT AddTagsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - AddTagsRequest(); - ~AddTagsRequest(); - - std::vector getGroupIds()const; - void setGroupIds(const std::vector& groupIds); - std::vector getTag()const; - void setTag(const std::vector& tag); - - private: - std::vector groupIds_; - std::vector tag_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_ADDTAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_ADDTAGSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ADDTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT AddTagsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + AddTagsRequest(); + ~AddTagsRequest(); + std::vector getGroupIds() const; + void setGroupIds(const std::vector &groupIds); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector groupIds_; + std::vector tag_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_ADDTAGSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateRequest.h b/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateRequest.h index 7f6f3c81f..30955724c 100644 --- a/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateRequest.h +++ b/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateRequest.h @@ -1,69 +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. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ApplyMetricRuleTemplateRequest : public RpcServiceRequest - { - - public: - ApplyMetricRuleTemplateRequest(); - ~ApplyMetricRuleTemplateRequest(); - - std::string getApplyMode()const; - void setApplyMode(const std::string& applyMode); - std::string getWebhook()const; - void setWebhook(const std::string& webhook); - std::string getTemplateIds()const; - void setTemplateIds(const std::string& templateIds); - long getEnableEndTime()const; - void setEnableEndTime(long enableEndTime); - long getGroupId()const; - void setGroupId(long groupId); - long getNotifyLevel()const; - void setNotifyLevel(long notifyLevel); - long getEnableStartTime()const; - void setEnableStartTime(long enableStartTime); - long getSilenceTime()const; - void setSilenceTime(long silenceTime); - - private: - std::string applyMode_; - std::string webhook_; - std::string templateIds_; - long enableEndTime_; - long groupId_; - long notifyLevel_; - long enableStartTime_; - long silenceTime_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT ApplyMetricRuleTemplateRequest : public RpcServiceRequest { +public: + ApplyMetricRuleTemplateRequest(); + ~ApplyMetricRuleTemplateRequest(); + std::string getApplyMode() const; + void setApplyMode(const std::string &applyMode); + std::string getWebhook() const; + void setWebhook(const std::string &webhook); + std::string getTemplateIds() const; + void setTemplateIds(const std::string &templateIds); + long getEnableEndTime() const; + void setEnableEndTime(long enableEndTime); + long getGroupId() const; + void setGroupId(long groupId); + long getNotifyLevel() const; + void setNotifyLevel(long notifyLevel); + long getEnableStartTime() const; + void setEnableStartTime(long enableStartTime); + long getSilenceTime() const; + void setSilenceTime(long silenceTime); + +private: + std::string applyMode_; + std::string webhook_; + std::string templateIds_; + long enableEndTime_; + long groupId_; + long notifyLevel_; + long enableStartTime_; + long silenceTime_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h b/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h index 59e427667..1d9a77c05 100644 --- a/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h +++ b/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string message; std::string ruleId; std::string code; - std::string ruleName; bool success; + std::string ruleName; }; std::vector alertResults; long groupId; diff --git a/cms/include/alibabacloud/cms/model/CreateCmsCallNumOrderRequest.h b/cms/include/alibabacloud/cms/model/CreateCmsCallNumOrderRequest.h index 1f337da78..39f2941a4 100644 --- a/cms/include/alibabacloud/cms/model/CreateCmsCallNumOrderRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateCmsCallNumOrderRequest.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_CMS_MODEL_CREATECMSCALLNUMORDERREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATECMSCALLNUMORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateCmsCallNumOrderRequest : public RpcServiceRequest - { - - public: - CreateCmsCallNumOrderRequest(); - ~CreateCmsCallNumOrderRequest(); - - int getAutoRenewPeriod()const; - void setAutoRenewPeriod(int autoRenewPeriod); - int getPeriod()const; - void setPeriod(int period); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - bool getAutoUseCoupon()const; - void setAutoUseCoupon(bool autoUseCoupon); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getPhoneCount()const; - void setPhoneCount(const std::string& phoneCount); - - private: - int autoRenewPeriod_; - int period_; - bool autoPay_; - bool autoUseCoupon_; - std::string periodUnit_; - std::string phoneCount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSCALLNUMORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATECMSCALLNUMORDERREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATECMSCALLNUMORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateCmsCallNumOrderRequest : public RpcServiceRequest { +public: + CreateCmsCallNumOrderRequest(); + ~CreateCmsCallNumOrderRequest(); + int getAutoRenewPeriod() const; + void setAutoRenewPeriod(int autoRenewPeriod); + int getPeriod() const; + void setPeriod(int period); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + bool getAutoUseCoupon() const; + void setAutoUseCoupon(bool autoUseCoupon); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getPhoneCount() const; + void setPhoneCount(const std::string &phoneCount); + +private: + int autoRenewPeriod_; + int period_; + bool autoPay_; + bool autoUseCoupon_; + std::string periodUnit_; + std::string phoneCount_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSCALLNUMORDERREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateCmsOrderRequest.h b/cms/include/alibabacloud/cms/model/CreateCmsOrderRequest.h index 97089aa44..1b68652c9 100644 --- a/cms/include/alibabacloud/cms/model/CreateCmsOrderRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateCmsOrderRequest.h @@ -1,96 +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. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_CREATECMSORDERREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATECMSORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateCmsOrderRequest : public RpcServiceRequest - { - - public: - CreateCmsOrderRequest(); - ~CreateCmsOrderRequest(); - - std::string getSmsCount()const; - void setSmsCount(const std::string& smsCount); - bool getAutoUseCoupon()const; - void setAutoUseCoupon(bool autoUseCoupon); - std::string getLogMonitorStream()const; - void setLogMonitorStream(const std::string& logMonitorStream); - std::string getCustomTimeSeries()const; - void setCustomTimeSeries(const std::string& customTimeSeries); - std::string getApiCount()const; - void setApiCount(const std::string& apiCount); - std::string getPhoneCount()const; - void setPhoneCount(const std::string& phoneCount); - int getAutoRenewPeriod()const; - void setAutoRenewPeriod(int autoRenewPeriod); - int getPeriod()const; - void setPeriod(int period); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getSuggestType()const; - void setSuggestType(const std::string& suggestType); - std::string getEventStoreNum()const; - void setEventStoreNum(const std::string& eventStoreNum); - std::string getSiteTaskNum()const; - void setSiteTaskNum(const std::string& siteTaskNum); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getSiteOperatorNum()const; - void setSiteOperatorNum(const std::string& siteOperatorNum); - std::string getSiteEcsNum()const; - void setSiteEcsNum(const std::string& siteEcsNum); - std::string getEventStoreTime()const; - void setEventStoreTime(const std::string& eventStoreTime); - std::string getPayType()const; - void setPayType(const std::string& payType); - - private: - std::string smsCount_; - bool autoUseCoupon_; - std::string logMonitorStream_; - std::string customTimeSeries_; - std::string apiCount_; - std::string phoneCount_; - int autoRenewPeriod_; - int period_; - bool autoPay_; - std::string suggestType_; - std::string eventStoreNum_; - std::string siteTaskNum_; - std::string periodUnit_; - std::string siteOperatorNum_; - std::string siteEcsNum_; - std::string eventStoreTime_; - std::string payType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATECMSORDERREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATECMSORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateCmsOrderRequest : public RpcServiceRequest { +public: + CreateCmsOrderRequest(); + ~CreateCmsOrderRequest(); + std::string getSmsCount() const; + void setSmsCount(const std::string &smsCount); + bool getAutoUseCoupon() const; + void setAutoUseCoupon(bool autoUseCoupon); + std::string getLogMonitorStream() const; + void setLogMonitorStream(const std::string &logMonitorStream); + std::string getCustomTimeSeries() const; + void setCustomTimeSeries(const std::string &customTimeSeries); + std::string getApiCount() const; + void setApiCount(const std::string &apiCount); + std::string getPhoneCount() const; + void setPhoneCount(const std::string &phoneCount); + int getAutoRenewPeriod() const; + void setAutoRenewPeriod(int autoRenewPeriod); + int getPeriod() const; + void setPeriod(int period); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getSuggestType() const; + void setSuggestType(const std::string &suggestType); + std::string getEventStoreNum() const; + void setEventStoreNum(const std::string &eventStoreNum); + std::string getSiteTaskNum() const; + void setSiteTaskNum(const std::string &siteTaskNum); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getSiteOperatorNum() const; + void setSiteOperatorNum(const std::string &siteOperatorNum); + std::string getSiteEcsNum() const; + void setSiteEcsNum(const std::string &siteEcsNum); + std::string getEventStoreTime() const; + void setEventStoreTime(const std::string &eventStoreTime); + std::string getPayType() const; + void setPayType(const std::string &payType); + +private: + std::string smsCount_; + bool autoUseCoupon_; + std::string logMonitorStream_; + std::string customTimeSeries_; + std::string apiCount_; + std::string phoneCount_; + int autoRenewPeriod_; + int period_; + bool autoPay_; + std::string suggestType_; + std::string eventStoreNum_; + std::string siteTaskNum_; + std::string periodUnit_; + std::string siteOperatorNum_; + std::string siteEcsNum_; + std::string eventStoreTime_; + std::string payType_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSORDERREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateCmsSmspackageOrderRequest.h b/cms/include/alibabacloud/cms/model/CreateCmsSmspackageOrderRequest.h index df4e63022..4263afa1b 100644 --- a/cms/include/alibabacloud/cms/model/CreateCmsSmspackageOrderRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateCmsSmspackageOrderRequest.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_CMS_MODEL_CREATECMSSMSPACKAGEORDERREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATECMSSMSPACKAGEORDERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateCmsSmspackageOrderRequest : public RpcServiceRequest - { - - public: - CreateCmsSmspackageOrderRequest(); - ~CreateCmsSmspackageOrderRequest(); - - int getAutoRenewPeriod()const; - void setAutoRenewPeriod(int autoRenewPeriod); - int getPeriod()const; - void setPeriod(int period); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getSmsCount()const; - void setSmsCount(const std::string& smsCount); - bool getAutoUseCoupon()const; - void setAutoUseCoupon(bool autoUseCoupon); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - - private: - int autoRenewPeriod_; - int period_; - bool autoPay_; - std::string smsCount_; - bool autoUseCoupon_; - std::string periodUnit_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSSMSPACKAGEORDERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATECMSSMSPACKAGEORDERREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATECMSSMSPACKAGEORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateCmsSmspackageOrderRequest : public RpcServiceRequest { +public: + CreateCmsSmspackageOrderRequest(); + ~CreateCmsSmspackageOrderRequest(); + int getAutoRenewPeriod() const; + void setAutoRenewPeriod(int autoRenewPeriod); + int getPeriod() const; + void setPeriod(int period); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getSmsCount() const; + void setSmsCount(const std::string &smsCount); + bool getAutoUseCoupon() const; + void setAutoUseCoupon(bool autoUseCoupon); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + +private: + int autoRenewPeriod_; + int period_; + bool autoPay_; + std::string smsCount_; + bool autoUseCoupon_; + std::string periodUnit_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSSMSPACKAGEORDERREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateDynamicTagGroupRequest.h b/cms/include/alibabacloud/cms/model/CreateDynamicTagGroupRequest.h index 28c70ff8e..b316a0381 100644 --- a/cms/include/alibabacloud/cms/model/CreateDynamicTagGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateDynamicTagGroupRequest.h @@ -1,75 +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. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_CREATEDYNAMICTAGGROUPREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEDYNAMICTAGGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateDynamicTagGroupRequest : public RpcServiceRequest - { - public: - struct MatchExpress - { - std::string tagValue; - std::string tagValueMatchFunction; - }; - - public: - CreateDynamicTagGroupRequest(); - ~CreateDynamicTagGroupRequest(); - - bool getEnableSubscribeEvent()const; - void setEnableSubscribeEvent(bool enableSubscribeEvent); - std::string getMatchExpressFilterRelation()const; - void setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation); - bool getEnableInstallAgent()const; - void setEnableInstallAgent(bool enableInstallAgent); - std::vector getMatchExpress()const; - void setMatchExpress(const std::vector& matchExpress); - std::vector getContactGroupList()const; - void setContactGroupList(const std::vector& contactGroupList); - std::vector getTemplateIdList()const; - void setTemplateIdList(const std::vector& templateIdList); - std::string getTagKey()const; - void setTagKey(const std::string& tagKey); - std::string getTagRegionId()const; - void setTagRegionId(const std::string& tagRegionId); - - private: - bool enableSubscribeEvent_; - std::string matchExpressFilterRelation_; - bool enableInstallAgent_; - std::vector matchExpress_; - std::vector contactGroupList_; - std::vector templateIdList_; - std::string tagKey_; - std::string tagRegionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEDYNAMICTAGGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEDYNAMICTAGGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEDYNAMICTAGGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateDynamicTagGroupRequest : public RpcServiceRequest { +public: + struct MatchExpress { + std::string tagValue; + std::string tagValueMatchFunction; + }; + CreateDynamicTagGroupRequest(); + ~CreateDynamicTagGroupRequest(); + bool getEnableSubscribeEvent() const; + void setEnableSubscribeEvent(bool enableSubscribeEvent); + std::string getMatchExpressFilterRelation() const; + void setMatchExpressFilterRelation(const std::string &matchExpressFilterRelation); + bool getEnableInstallAgent() const; + void setEnableInstallAgent(bool enableInstallAgent); + std::vector getMatchExpress() const; + void setMatchExpress(const std::vector &matchExpress); + std::vector getContactGroupList() const; + void setContactGroupList(const std::vector &contactGroupList); + std::vector getTemplateIdList() const; + void setTemplateIdList(const std::vector &templateIdList); + std::string getTagKey() const; + void setTagKey(const std::string &tagKey); + std::string getTagRegionId() const; + void setTagRegionId(const std::string &tagRegionId); + +private: + bool enableSubscribeEvent_; + std::string matchExpressFilterRelation_; + bool enableInstallAgent_; + std::vector matchExpress_; + std::vector contactGroupList_; + std::vector templateIdList_; + std::string tagKey_; + std::string tagRegionId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEDYNAMICTAGGROUPREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateGroupMetricRulesRequest.h b/cms/include/alibabacloud/cms/model/CreateGroupMetricRulesRequest.h index 98f7db255..f5a70eb35 100644 --- a/cms/include/alibabacloud/cms/model/CreateGroupMetricRulesRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateGroupMetricRulesRequest.h @@ -1,82 +1,74 @@ /* * 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_CMS_MODEL_CREATEGROUPMETRICRULESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateGroupMetricRulesRequest : public RpcServiceRequest - { - public: - struct GroupMetricRules - { - std::string webhook; - std::string escalationsWarnComparisonOperator; - std::string ruleName; - std::string escalationsInfoStatistics; - std::string effectiveInterval; - std::string escalationsInfoComparisonOperator; - std::string noDataPolicy; - std::string noEffectiveInterval; - std::string emailSubject; - int silenceTime; - std::string metricName; - int escalationsWarnTimes; - std::string compositeExpression; - std::string escalationsWarnThreshold; - std::string period; - std::string escalationsCriticalStatistics; - int escalationsInfoTimes; - int escalationsCriticalTimes; - std::string escalationsInfoThreshold; - std::string escalationsWarnStatistics; - std::string _namespace; - std::string interval; - std::string ruleId; - std::string category; - std::string escalationsCriticalComparisonOperator; - std::string escalationsCriticalThreshold; - std::string dimensions; - }; - - public: - CreateGroupMetricRulesRequest(); - ~CreateGroupMetricRulesRequest(); - - long getGroupId()const; - void setGroupId(long groupId); - std::vector getGroupMetricRules()const; - void setGroupMetricRules(const std::vector& groupMetricRules); - - private: - long groupId_; - std::vector groupMetricRules_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateGroupMetricRulesRequest : public RpcServiceRequest { +public: + struct GroupMetricRules { + std::string webhook; + std::string escalationsWarnComparisonOperator; + std::string ruleName; + std::string escalationsInfoStatistics; + std::string effectiveInterval; + std::string escalationsInfoComparisonOperator; + std::string noDataPolicy; + std::string noEffectiveInterval; + std::string emailSubject; + int silenceTime; + std::string metricName; + int escalationsWarnTimes; + std::string compositeExpression; + std::string escalationsWarnThreshold; + std::string period; + std::string escalationsCriticalStatistics; + int escalationsInfoTimes; + int escalationsCriticalTimes; + std::string escalationsInfoThreshold; + std::string escalationsWarnStatistics; + std::string _namespace; + std::string interval; + std::string ruleId; + std::string category; + std::string escalationsCriticalComparisonOperator; + std::string escalationsCriticalThreshold; + std::string dimensions; + }; + CreateGroupMetricRulesRequest(); + ~CreateGroupMetricRulesRequest(); + long getGroupId() const; + void setGroupId(long groupId); + std::vector getGroupMetricRules() const; + void setGroupMetricRules(const std::vector &groupMetricRules); + +private: + long groupId_; + std::vector groupMetricRules_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessRequest.h b/cms/include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessRequest.h index 763813f82..3716e9ded 100644 --- a/cms/include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessRequest.h @@ -1,79 +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. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateGroupMonitoringAgentProcessRequest : public RpcServiceRequest - { - public: - struct AlertConfig - { - std::string times; - std::string noEffectiveInterval; - std::string webhook; - std::string silenceTime; - std::string threshold; - std::string effectiveInterval; - std::string comparisonOperator; - std::string escalationsLevel; - std::string statistics; - }; - struct MatchExpress - { - std::string function; - std::string name; - std::string value; - }; - - public: - CreateGroupMonitoringAgentProcessRequest(); - ~CreateGroupMonitoringAgentProcessRequest(); - - std::vector getAlertConfig()const; - void setAlertConfig(const std::vector& alertConfig); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getProcessName()const; - void setProcessName(const std::string& processName); - std::string getMatchExpressFilterRelation()const; - void setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation); - std::vector getMatchExpress()const; - void setMatchExpress(const std::vector& matchExpress); - - private: - std::vector alertConfig_; - std::string groupId_; - std::string processName_; - std::string matchExpressFilterRelation_; - std::vector matchExpress_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateGroupMonitoringAgentProcessRequest : public RpcServiceRequest { +public: + struct AlertConfig { + std::string times; + std::string webhook; + std::string noEffectiveInterval; + std::string silenceTime; + std::string threshold; + std::string comparisonOperator; + std::string effectiveInterval; + std::string escalationsLevel; + std::string statistics; + }; + struct MatchExpress { + std::string function; + std::string name; + std::string value; + }; + CreateGroupMonitoringAgentProcessRequest(); + ~CreateGroupMonitoringAgentProcessRequest(); + std::vector getAlertConfig() const; + void setAlertConfig(const std::vector &alertConfig); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getProcessName() const; + void setProcessName(const std::string &processName); + std::string getMatchExpressFilterRelation() const; + void setMatchExpressFilterRelation(const std::string &matchExpressFilterRelation); + std::vector getMatchExpress() const; + void setMatchExpress(const std::vector &matchExpress); + +private: + std::vector alertConfig_; + std::string groupId_; + std::string processName_; + std::string matchExpressFilterRelation_; + std::vector matchExpress_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h index b490a0168..93199c2b3 100644 --- a/cms/include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h @@ -1,114 +1,106 @@ /* * 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_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateHostAvailabilityRequest : public RpcServiceRequest - { - public: - struct AlertConfigEscalationList - { - int times; - std::string metricName; - std::string value; - std::string _operator; - std::string aggregate; - }; - - public: - CreateHostAvailabilityRequest(); - ~CreateHostAvailabilityRequest(); - - std::string getTaskOptionHttpMethod()const; - void setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod); - std::string getTaskOptionHttpHeader()const; - void setTaskOptionHttpHeader(const std::string& taskOptionHttpHeader); - std::vector getAlertConfigEscalationList()const; - void setAlertConfigEscalationList(const std::vector& alertConfigEscalationList); - std::string getTaskName()const; - void setTaskName(const std::string& taskName); - int getAlertConfigSilenceTime()const; - void setAlertConfigSilenceTime(int alertConfigSilenceTime); - std::string getTaskOptionHttpResponseCharset()const; - void setTaskOptionHttpResponseCharset(const std::string& taskOptionHttpResponseCharset); - bool getTaskOptionHttpNegative()const; - void setTaskOptionHttpNegative(bool taskOptionHttpNegative); - int getTaskOptionInterval()const; - void setTaskOptionInterval(int taskOptionInterval); - int getAlertConfigNotifyType()const; - void setAlertConfigNotifyType(int alertConfigNotifyType); - std::string getTaskOptionTelnetOrPingHost()const; - void setTaskOptionTelnetOrPingHost(const std::string& taskOptionTelnetOrPingHost); - std::string getTaskOptionHttpResponseMatchContent()const; - void setTaskOptionHttpResponseMatchContent(const std::string& taskOptionHttpResponseMatchContent); - std::vector getInstanceList()const; - void setInstanceList(const std::vector& instanceList); - std::string getTaskType()const; - void setTaskType(const std::string& taskType); - long getGroupId()const; - void setGroupId(long groupId); - int getAlertConfigEndTime()const; - void setAlertConfigEndTime(int alertConfigEndTime); - std::string getTaskOptionHttpURI()const; - void setTaskOptionHttpURI(const std::string& taskOptionHttpURI); - std::string getTaskScope()const; - void setTaskScope(const std::string& taskScope); - std::string getTaskOptionHttpPostContent()const; - void setTaskOptionHttpPostContent(const std::string& taskOptionHttpPostContent); - int getAlertConfigStartTime()const; - void setAlertConfigStartTime(int alertConfigStartTime); - std::string getAlertConfigWebHook()const; - void setAlertConfigWebHook(const std::string& alertConfigWebHook); - - private: - std::string taskOptionHttpMethod_; - std::string taskOptionHttpHeader_; - std::vector alertConfigEscalationList_; - std::string taskName_; - int alertConfigSilenceTime_; - std::string taskOptionHttpResponseCharset_; - bool taskOptionHttpNegative_; - int taskOptionInterval_; - int alertConfigNotifyType_; - std::string taskOptionTelnetOrPingHost_; - std::string taskOptionHttpResponseMatchContent_; - std::vector instanceList_; - std::string taskType_; - long groupId_; - int alertConfigEndTime_; - std::string taskOptionHttpURI_; - std::string taskScope_; - std::string taskOptionHttpPostContent_; - int alertConfigStartTime_; - std::string alertConfigWebHook_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateHostAvailabilityRequest : public RpcServiceRequest { +public: + struct AlertConfigEscalationList { + int times; + std::string metricName; + std::string value; + std::string _operator; + std::string aggregate; + }; + CreateHostAvailabilityRequest(); + ~CreateHostAvailabilityRequest(); + std::string getTaskOptionHttpMethod() const; + void setTaskOptionHttpMethod(const std::string &taskOptionHttpMethod); + std::string getTaskOptionHttpHeader() const; + void setTaskOptionHttpHeader(const std::string &taskOptionHttpHeader); + std::vector getAlertConfigEscalationList() const; + void setAlertConfigEscalationList(const std::vector &alertConfigEscalationList); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + int getAlertConfigSilenceTime() const; + void setAlertConfigSilenceTime(int alertConfigSilenceTime); + std::string getTaskOptionHttpResponseCharset() const; + void setTaskOptionHttpResponseCharset(const std::string &taskOptionHttpResponseCharset); + bool getTaskOptionHttpNegative() const; + void setTaskOptionHttpNegative(bool taskOptionHttpNegative); + int getTaskOptionInterval() const; + void setTaskOptionInterval(int taskOptionInterval); + int getAlertConfigNotifyType() const; + void setAlertConfigNotifyType(int alertConfigNotifyType); + std::string getTaskOptionTelnetOrPingHost() const; + void setTaskOptionTelnetOrPingHost(const std::string &taskOptionTelnetOrPingHost); + std::string getTaskOptionHttpResponseMatchContent() const; + void setTaskOptionHttpResponseMatchContent(const std::string &taskOptionHttpResponseMatchContent); + std::vector getInstanceList() const; + void setInstanceList(const std::vector &instanceList); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + long getGroupId() const; + void setGroupId(long groupId); + int getAlertConfigEndTime() const; + void setAlertConfigEndTime(int alertConfigEndTime); + std::string getTaskOptionHttpURI() const; + void setTaskOptionHttpURI(const std::string &taskOptionHttpURI); + std::string getTaskScope() const; + void setTaskScope(const std::string &taskScope); + std::string getTaskOptionHttpPostContent() const; + void setTaskOptionHttpPostContent(const std::string &taskOptionHttpPostContent); + int getAlertConfigStartTime() const; + void setAlertConfigStartTime(int alertConfigStartTime); + std::string getAlertConfigWebHook() const; + void setAlertConfigWebHook(const std::string &alertConfigWebHook); + +private: + std::string taskOptionHttpMethod_; + std::string taskOptionHttpHeader_; + std::vector alertConfigEscalationList_; + std::string taskName_; + int alertConfigSilenceTime_; + std::string taskOptionHttpResponseCharset_; + bool taskOptionHttpNegative_; + int taskOptionInterval_; + int alertConfigNotifyType_; + std::string taskOptionTelnetOrPingHost_; + std::string taskOptionHttpResponseMatchContent_; + std::vector instanceList_; + std::string taskType_; + long groupId_; + int alertConfigEndTime_; + std::string taskOptionHttpURI_; + std::string taskScope_; + std::string taskOptionHttpPostContent_; + int alertConfigStartTime_; + std::string alertConfigWebHook_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateInstantSiteMonitorRequest.h b/cms/include/alibabacloud/cms/model/CreateInstantSiteMonitorRequest.h index b241b2fd9..e6e456068 100644 --- a/cms/include/alibabacloud/cms/model/CreateInstantSiteMonitorRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateInstantSiteMonitorRequest.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_CMS_MODEL_CREATEINSTANTSITEMONITORREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEINSTANTSITEMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateInstantSiteMonitorRequest : public RpcServiceRequest - { - - public: - CreateInstantSiteMonitorRequest(); - ~CreateInstantSiteMonitorRequest(); - - int getRandomIspCity()const; - void setRandomIspCity(int randomIspCity); - std::string getAddress()const; - void setAddress(const std::string& address); - std::string getTaskType()const; - void setTaskType(const std::string& taskType); - std::string getTaskName()const; - void setTaskName(const std::string& taskName); - std::string getIspCities()const; - void setIspCities(const std::string& ispCities); - std::string getOptionsJson()const; - void setOptionsJson(const std::string& optionsJson); - - private: - int randomIspCity_; - std::string address_; - std::string taskType_; - std::string taskName_; - std::string ispCities_; - std::string optionsJson_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEINSTANTSITEMONITORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEINSTANTSITEMONITORREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEINSTANTSITEMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateInstantSiteMonitorRequest : public RpcServiceRequest { +public: + CreateInstantSiteMonitorRequest(); + ~CreateInstantSiteMonitorRequest(); + int getRandomIspCity() const; + void setRandomIspCity(int randomIspCity); + std::string getAddress() const; + void setAddress(const std::string &address); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + std::string getIspCities() const; + void setIspCities(const std::string &ispCities); + std::string getOptionsJson() const; + void setOptionsJson(const std::string &optionsJson); + +private: + int randomIspCity_; + std::string address_; + std::string taskType_; + std::string taskName_; + std::string ispCities_; + std::string optionsJson_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEINSTANTSITEMONITORREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateMetricRuleResourcesRequest.h b/cms/include/alibabacloud/cms/model/CreateMetricRuleResourcesRequest.h index 1cdf47d53..acf5715bf 100644 --- a/cms/include/alibabacloud/cms/model/CreateMetricRuleResourcesRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMetricRuleResourcesRequest.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_CMS_MODEL_CREATEMETRICRULERESOURCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULERESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateMetricRuleResourcesRequest : public RpcServiceRequest - { - - public: - CreateMetricRuleResourcesRequest(); - ~CreateMetricRuleResourcesRequest(); - - std::string getResources()const; - void setResources(const std::string& resources); - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); - std::string getOverwrite()const; - void setOverwrite(const std::string& overwrite); - - private: - std::string resources_; - std::string ruleId_; - std::string overwrite_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULERESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULERESOURCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULERESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateMetricRuleResourcesRequest : public RpcServiceRequest { +public: + CreateMetricRuleResourcesRequest(); + ~CreateMetricRuleResourcesRequest(); + std::string getResources() const; + void setResources(const std::string &resources); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + std::string getOverwrite() const; + void setOverwrite(const std::string &overwrite); + +private: + std::string resources_; + std::string ruleId_; + std::string overwrite_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULERESOURCESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateMetricRuleTemplateRequest.h b/cms/include/alibabacloud/cms/model/CreateMetricRuleTemplateRequest.h index 2916e47ac..ecad86cb7 100644 --- a/cms/include/alibabacloud/cms/model/CreateMetricRuleTemplateRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMetricRuleTemplateRequest.h @@ -1,77 +1,69 @@ /* * 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_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateMetricRuleTemplateRequest : public RpcServiceRequest - { - public: - struct AlertTemplates - { - int period; - std::string escalationsWarnThreshold; - std::string webhook; - std::string escalationsWarnComparisonOperator; - std::string escalationsCriticalStatistics; - int escalationsInfoTimes; - std::string ruleName; - std::string escalationsInfoStatistics; - int escalationsCriticalTimes; - std::string escalationsInfoComparisonOperator; - std::string escalationsWarnStatistics; - std::string escalationsInfoThreshold; - std::string _namespace; - std::string selector; - std::string metricName; - std::string category; - std::string escalationsCriticalComparisonOperator; - int escalationsWarnTimes; - std::string escalationsCriticalThreshold; - }; - - public: - CreateMetricRuleTemplateRequest(); - ~CreateMetricRuleTemplateRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getName()const; - void setName(const std::string& name); - std::vector getAlertTemplates()const; - void setAlertTemplates(const std::vector& alertTemplates); - - private: - std::string description_; - std::string name_; - std::vector alertTemplates_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateMetricRuleTemplateRequest : public RpcServiceRequest { +public: + struct AlertTemplates { + std::string escalationsWarnThreshold; + int period; + std::string webhook; + std::string escalationsWarnComparisonOperator; + std::string escalationsCriticalStatistics; + int escalationsInfoTimes; + std::string ruleName; + std::string escalationsInfoStatistics; + int escalationsCriticalTimes; + std::string escalationsInfoComparisonOperator; + std::string escalationsInfoThreshold; + std::string escalationsWarnStatistics; + std::string _namespace; + std::string selector; + std::string metricName; + int escalationsWarnTimes; + std::string category; + std::string escalationsCriticalComparisonOperator; + std::string escalationsCriticalThreshold; + }; + CreateMetricRuleTemplateRequest(); + ~CreateMetricRuleTemplateRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getName() const; + void setName(const std::string &name); + std::vector getAlertTemplates() const; + void setAlertTemplates(const std::vector &alertTemplates); + +private: + std::string description_; + std::string name_; + std::vector alertTemplates_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateMonitorAgentProcessRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitorAgentProcessRequest.h index baa423d68..ebba73e0f 100644 --- a/cms/include/alibabacloud/cms/model/CreateMonitorAgentProcessRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitorAgentProcessRequest.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_CMS_MODEL_CREATEMONITORAGENTPROCESSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORAGENTPROCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateMonitorAgentProcessRequest : public RpcServiceRequest - { - - public: - CreateMonitorAgentProcessRequest(); - ~CreateMonitorAgentProcessRequest(); - - std::string getProcessName()const; - void setProcessName(const std::string& processName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getProcessUser()const; - void setProcessUser(const std::string& processUser); - - private: - std::string processName_; - std::string instanceId_; - std::string processUser_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORAGENTPROCESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORAGENTPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateMonitorAgentProcessRequest : public RpcServiceRequest { +public: + CreateMonitorAgentProcessRequest(); + ~CreateMonitorAgentProcessRequest(); + std::string getProcessName() const; + void setProcessName(const std::string &processName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getProcessUser() const; + void setProcessUser(const std::string &processUser); + +private: + std::string processName_; + std::string instanceId_; + std::string processUser_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORAGENTPROCESSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdRequest.h index 7e3afa67f..48276b5e0 100644 --- a/cms/include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdRequest.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_CMS_MODEL_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupByResourceGroupIdRequest : public RpcServiceRequest - { - - public: - CreateMonitorGroupByResourceGroupIdRequest(); - ~CreateMonitorGroupByResourceGroupIdRequest(); - - std::string getResourceGroupName()const; - void setResourceGroupName(const std::string& resourceGroupName); - bool getEnableSubscribeEvent()const; - void setEnableSubscribeEvent(bool enableSubscribeEvent); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - bool getEnableInstallAgent()const; - void setEnableInstallAgent(bool enableInstallAgent); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getContactGroupList()const; - void setContactGroupList(const std::vector& contactGroupList); - - private: - std::string resourceGroupName_; - bool enableSubscribeEvent_; - std::string resourceGroupId_; - bool enableInstallAgent_; - std::string regionId_; - std::vector contactGroupList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupByResourceGroupIdRequest : public RpcServiceRequest { +public: + CreateMonitorGroupByResourceGroupIdRequest(); + ~CreateMonitorGroupByResourceGroupIdRequest(); + std::string getResourceGroupName() const; + void setResourceGroupName(const std::string &resourceGroupName); + bool getEnableSubscribeEvent() const; + void setEnableSubscribeEvent(bool enableSubscribeEvent); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + bool getEnableInstallAgent() const; + void setEnableInstallAgent(bool enableInstallAgent); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getContactGroupList() const; + void setContactGroupList(const std::vector &contactGroupList); + +private: + std::string resourceGroupName_; + bool enableSubscribeEvent_; + std::string resourceGroupId_; + bool enableInstallAgent_; + std::string regionId_; + std::vector contactGroupList_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesRequest.h index e4cb5202d..99a36971f 100644 --- a/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesRequest.h @@ -1,59 +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_CMS_MODEL_CREATEMONITORGROUPINSTANCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupInstancesRequest : public RpcServiceRequest - { - public: - struct Instances - { - std::string instanceId; - std::string instanceName; - std::string regionId; - std::string category; - }; - - public: - CreateMonitorGroupInstancesRequest(); - ~CreateMonitorGroupInstancesRequest(); - - std::vector getInstances()const; - void setInstances(const std::vector& instances); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - - private: - std::vector instances_; - std::string groupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPINSTANCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupInstancesRequest : public RpcServiceRequest { +public: + struct Instances { + std::string instanceName; + std::string instanceId; + std::string regionId; + std::string category; + }; + CreateMonitorGroupInstancesRequest(); + ~CreateMonitorGroupInstancesRequest(); + std::vector getInstances() const; + void setInstances(const std::vector &instances); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + +private: + std::vector instances_; + std::string groupId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPINSTANCESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyRequest.h index 5e8a5f4ad..2aa93b367 100644 --- a/cms/include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyRequest.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_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupNotifyPolicyRequest : public RpcServiceRequest - { - - public: - CreateMonitorGroupNotifyPolicyRequest(); - ~CreateMonitorGroupNotifyPolicyRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - long getEndTime()const; - void setEndTime(long endTime); - long getStartTime()const; - void setStartTime(long startTime); - - private: - std::string policyType_; - std::string groupId_; - long endTime_; - long startTime_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupNotifyPolicyRequest : public RpcServiceRequest { +public: + CreateMonitorGroupNotifyPolicyRequest(); + ~CreateMonitorGroupNotifyPolicyRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + long getEndTime() const; + void setEndTime(long endTime); + long getStartTime() const; + void setStartTime(long startTime); + +private: + std::string policyType_; + std::string groupId_; + long endTime_; + long startTime_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateMonitorGroupRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupRequest.h index 2b3ce8f6d..0e846ccba 100644 --- a/cms/include/alibabacloud/cms/model/CreateMonitorGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupRequest.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_CMS_MODEL_CREATEMONITORGROUPREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupRequest : public RpcServiceRequest - { - - public: - CreateMonitorGroupRequest(); - ~CreateMonitorGroupRequest(); - - std::string getContactGroups()const; - void setContactGroups(const std::string& contactGroups); - std::string getType()const; - void setType(const std::string& type); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getOptions()const; - void setOptions(const std::string& options); - long getServiceId()const; - void setServiceId(long serviceId); - std::string getBindUrl()const; - void setBindUrl(const std::string& bindUrl); - - private: - std::string contactGroups_; - std::string type_; - std::string groupName_; - std::string options_; - long serviceId_; - std::string bindUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupRequest : public RpcServiceRequest { +public: + CreateMonitorGroupRequest(); + ~CreateMonitorGroupRequest(); + std::string getContactGroups() const; + void setContactGroups(const std::string &contactGroups); + std::string getType() const; + void setType(const std::string &type); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getOptions() const; + void setOptions(const std::string &options); + long getServiceId() const; + void setServiceId(long serviceId); + std::string getBindUrl() const; + void setBindUrl(const std::string &bindUrl); + +private: + std::string contactGroups_; + std::string type_; + std::string groupName_; + std::string options_; + long serviceId_; + std::string bindUrl_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateMonitoringAgentProcessRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitoringAgentProcessRequest.h index 461bba631..72889ae43 100644 --- a/cms/include/alibabacloud/cms/model/CreateMonitoringAgentProcessRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitoringAgentProcessRequest.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_CMS_MODEL_CREATEMONITORINGAGENTPROCESSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGAGENTPROCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateMonitoringAgentProcessRequest : public RpcServiceRequest - { - - public: - CreateMonitoringAgentProcessRequest(); - ~CreateMonitoringAgentProcessRequest(); - - std::string getProcessName()const; - void setProcessName(const std::string& processName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getProcessUser()const; - void setProcessUser(const std::string& processUser); - - private: - std::string processName_; - std::string instanceId_; - std::string processUser_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGAGENTPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateMonitoringAgentProcessRequest : public RpcServiceRequest { +public: + CreateMonitoringAgentProcessRequest(); + ~CreateMonitoringAgentProcessRequest(); + std::string getProcessName() const; + void setProcessName(const std::string &processName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getProcessUser() const; + void setProcessUser(const std::string &processUser); + +private: + std::string processName_; + std::string instanceId_; + std::string processUser_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGAGENTPROCESSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/CreateSiteMonitorRequest.h b/cms/include/alibabacloud/cms/model/CreateSiteMonitorRequest.h index 4a432f977..ab3f4239c 100644 --- a/cms/include/alibabacloud/cms/model/CreateSiteMonitorRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateSiteMonitorRequest.h @@ -1,75 +1,69 @@ /* * 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_CMS_MODEL_CREATESITEMONITORREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATESITEMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateSiteMonitorRequest : public RpcServiceRequest - { - - public: - CreateSiteMonitorRequest(); - ~CreateSiteMonitorRequest(); - - std::string getReportProject()const; - void setReportProject(const std::string& reportProject); - std::string getTaskName()const; - void setTaskName(const std::string& taskName); - std::string getAlertIds()const; - void setAlertIds(const std::string& alertIds); - std::string getAddress()const; - void setAddress(const std::string& address); - std::string getTaskType()const; - void setTaskType(const std::string& taskType); - long getEndTime()const; - void setEndTime(long endTime); - std::string getIspCities()const; - void setIspCities(const std::string& ispCities); - std::string getOptionsJson()const; - void setOptionsJson(const std::string& optionsJson); - std::string getIntervalUnit()const; - void setIntervalUnit(const std::string& intervalUnit); - std::string getInterval()const; - void setInterval(const std::string& interval); - - private: - std::string reportProject_; - std::string taskName_; - std::string alertIds_; - std::string address_; - std::string taskType_; - long endTime_; - std::string ispCities_; - std::string optionsJson_; - std::string intervalUnit_; - std::string interval_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATESITEMONITORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATESITEMONITORREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATESITEMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT CreateSiteMonitorRequest : public RpcServiceRequest { +public: + CreateSiteMonitorRequest(); + ~CreateSiteMonitorRequest(); + std::string getReportProject() const; + void setReportProject(const std::string &reportProject); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + std::string getAlertIds() const; + void setAlertIds(const std::string &alertIds); + std::string getAddress() const; + void setAddress(const std::string &address); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + long getEndTime() const; + void setEndTime(long endTime); + std::string getIspCities() const; + void setIspCities(const std::string &ispCities); + std::string getOptionsJson() const; + void setOptionsJson(const std::string &optionsJson); + std::string getIntervalUnit() const; + void setIntervalUnit(const std::string &intervalUnit); + std::string getInterval() const; + void setInterval(const std::string &interval); + +private: + std::string reportProject_; + std::string taskName_; + std::string alertIds_; + std::string address_; + std::string taskType_; + long endTime_; + std::string ispCities_; + std::string optionsJson_; + std::string intervalUnit_; + std::string interval_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_CREATESITEMONITORREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteContactGroupRequest.h b/cms/include/alibabacloud/cms/model/DeleteContactGroupRequest.h index 0be5945b6..436120b25 100644 --- a/cms/include/alibabacloud/cms/model/DeleteContactGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteContactGroupRequest.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_CMS_MODEL_DELETECONTACTGROUPREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETECONTACTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteContactGroupRequest : public RpcServiceRequest - { - - public: - DeleteContactGroupRequest(); - ~DeleteContactGroupRequest(); - - std::string getContactGroupName()const; - void setContactGroupName(const std::string& contactGroupName); - - private: - std::string contactGroupName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETECONTACTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETECONTACTGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETECONTACTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteContactGroupRequest : public RpcServiceRequest { +public: + DeleteContactGroupRequest(); + ~DeleteContactGroupRequest(); + std::string getContactGroupName() const; + void setContactGroupName(const std::string &contactGroupName); + +private: + std::string contactGroupName_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETECONTACTGROUPREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteContactRequest.h b/cms/include/alibabacloud/cms/model/DeleteContactRequest.h index fc17de74b..acca4c903 100644 --- a/cms/include/alibabacloud/cms/model/DeleteContactRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteContactRequest.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_CMS_MODEL_DELETECONTACTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETECONTACTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteContactRequest : public RpcServiceRequest - { - - public: - DeleteContactRequest(); - ~DeleteContactRequest(); - - std::string getContactName()const; - void setContactName(const std::string& contactName); - - private: - std::string contactName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETECONTACTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETECONTACTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETECONTACTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteContactRequest : public RpcServiceRequest { +public: + DeleteContactRequest(); + ~DeleteContactRequest(); + std::string getContactName() const; + void setContactName(const std::string &contactName); + +private: + std::string contactName_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETECONTACTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteCustomMetricRequest.h b/cms/include/alibabacloud/cms/model/DeleteCustomMetricRequest.h index a95204969..ae00f0964 100644 --- a/cms/include/alibabacloud/cms/model/DeleteCustomMetricRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteCustomMetricRequest.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_CMS_MODEL_DELETECUSTOMMETRICREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETECUSTOMMETRICREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteCustomMetricRequest : public RpcServiceRequest - { - - public: - DeleteCustomMetricRequest(); - ~DeleteCustomMetricRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getUUID()const; - void setUUID(const std::string& uUID); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getMd5()const; - void setMd5(const std::string& md5); - - private: - std::string groupId_; - std::string uUID_; - std::string metricName_; - std::string md5_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETECUSTOMMETRICREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETECUSTOMMETRICREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETECUSTOMMETRICREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteCustomMetricRequest : public RpcServiceRequest { +public: + DeleteCustomMetricRequest(); + ~DeleteCustomMetricRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getUUID() const; + void setUUID(const std::string &uUID); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getMd5() const; + void setMd5(const std::string &md5); + +private: + std::string groupId_; + std::string uUID_; + std::string metricName_; + std::string md5_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETECUSTOMMETRICREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteDynamicTagGroupRequest.h b/cms/include/alibabacloud/cms/model/DeleteDynamicTagGroupRequest.h index 0b6b172a6..343cc9219 100644 --- a/cms/include/alibabacloud/cms/model/DeleteDynamicTagGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteDynamicTagGroupRequest.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_CMS_MODEL_DELETEDYNAMICTAGGROUPREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEDYNAMICTAGGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteDynamicTagGroupRequest : public RpcServiceRequest - { - - public: - DeleteDynamicTagGroupRequest(); - ~DeleteDynamicTagGroupRequest(); - - std::string getDynamicTagRuleId()const; - void setDynamicTagRuleId(const std::string& dynamicTagRuleId); - - private: - std::string dynamicTagRuleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEDYNAMICTAGGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEDYNAMICTAGGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEDYNAMICTAGGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteDynamicTagGroupRequest : public RpcServiceRequest { +public: + DeleteDynamicTagGroupRequest(); + ~DeleteDynamicTagGroupRequest(); + std::string getDynamicTagRuleId() const; + void setDynamicTagRuleId(const std::string &dynamicTagRuleId); + +private: + std::string dynamicTagRuleId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEDYNAMICTAGGROUPREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteEventRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/DeleteEventRuleTargetsRequest.h index 22a82c8cb..cbcc5ab76 100644 --- a/cms/include/alibabacloud/cms/model/DeleteEventRuleTargetsRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteEventRuleTargetsRequest.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_CMS_MODEL_DELETEEVENTRULETARGETSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULETARGETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteEventRuleTargetsRequest : public RpcServiceRequest - { - - public: - DeleteEventRuleTargetsRequest(); - ~DeleteEventRuleTargetsRequest(); - - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::vector getIds()const; - void setIds(const std::vector& ids); - - private: - std::string ruleName_; - std::vector ids_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULETARGETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULETARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULETARGETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteEventRuleTargetsRequest : public RpcServiceRequest { +public: + DeleteEventRuleTargetsRequest(); + ~DeleteEventRuleTargetsRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::vector getIds() const; + void setIds(const std::vector &ids); + +private: + std::string ruleName_; + std::vector ids_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULETARGETSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteEventRulesRequest.h b/cms/include/alibabacloud/cms/model/DeleteEventRulesRequest.h index 555248aa4..8cbce8ca2 100644 --- a/cms/include/alibabacloud/cms/model/DeleteEventRulesRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteEventRulesRequest.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_CMS_MODEL_DELETEEVENTRULESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteEventRulesRequest : public RpcServiceRequest - { - - public: - DeleteEventRulesRequest(); - ~DeleteEventRulesRequest(); - - std::vector getRuleNames()const; - void setRuleNames(const std::vector& ruleNames); - - private: - std::vector ruleNames_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteEventRulesRequest : public RpcServiceRequest { +public: + DeleteEventRulesRequest(); + ~DeleteEventRulesRequest(); + std::vector getRuleNames() const; + void setRuleNames(const std::vector &ruleNames); + +private: + std::vector ruleNames_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteExporterOutputRequest.h b/cms/include/alibabacloud/cms/model/DeleteExporterOutputRequest.h index 49ad9993a..286e86fea 100644 --- a/cms/include/alibabacloud/cms/model/DeleteExporterOutputRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteExporterOutputRequest.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_CMS_MODEL_DELETEEXPORTEROUTPUTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEEXPORTEROUTPUTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteExporterOutputRequest : public RpcServiceRequest - { - - public: - DeleteExporterOutputRequest(); - ~DeleteExporterOutputRequest(); - - std::string getDestName()const; - void setDestName(const std::string& destName); - - private: - std::string destName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEXPORTEROUTPUTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEXPORTEROUTPUTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEXPORTEROUTPUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteExporterOutputRequest : public RpcServiceRequest { +public: + DeleteExporterOutputRequest(); + ~DeleteExporterOutputRequest(); + std::string getDestName() const; + void setDestName(const std::string &destName); + +private: + std::string destName_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEXPORTEROUTPUTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteExporterRuleRequest.h b/cms/include/alibabacloud/cms/model/DeleteExporterRuleRequest.h index bf08fb249..6e86057dd 100644 --- a/cms/include/alibabacloud/cms/model/DeleteExporterRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteExporterRuleRequest.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_CMS_MODEL_DELETEEXPORTERRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEEXPORTERRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteExporterRuleRequest : public RpcServiceRequest - { - - public: - DeleteExporterRuleRequest(); - ~DeleteExporterRuleRequest(); - - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - - private: - std::string ruleName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEXPORTERRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEXPORTERRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEXPORTERRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteExporterRuleRequest : public RpcServiceRequest { +public: + DeleteExporterRuleRequest(); + ~DeleteExporterRuleRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + +private: + std::string ruleName_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEXPORTERRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessRequest.h b/cms/include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessRequest.h index 41c25d047..0bf74444d 100644 --- a/cms/include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessRequest.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_CMS_MODEL_DELETEGROUPMONITORINGAGENTPROCESSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEGROUPMONITORINGAGENTPROCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteGroupMonitoringAgentProcessRequest : public RpcServiceRequest - { - - public: - DeleteGroupMonitoringAgentProcessRequest(); - ~DeleteGroupMonitoringAgentProcessRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getId()const; - void setId(const std::string& id); - - private: - std::string groupId_; - std::string id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEGROUPMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEGROUPMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEGROUPMONITORINGAGENTPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteGroupMonitoringAgentProcessRequest : public RpcServiceRequest { +public: + DeleteGroupMonitoringAgentProcessRequest(); + ~DeleteGroupMonitoringAgentProcessRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getId() const; + void setId(const std::string &id); + +private: + std::string groupId_; + std::string id_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEGROUPMONITORINGAGENTPROCESSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteHostAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/DeleteHostAvailabilityRequest.h index b7e4c14ad..c60f6fb83 100644 --- a/cms/include/alibabacloud/cms/model/DeleteHostAvailabilityRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteHostAvailabilityRequest.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_CMS_MODEL_DELETEHOSTAVAILABILITYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEHOSTAVAILABILITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteHostAvailabilityRequest : public RpcServiceRequest - { - - public: - DeleteHostAvailabilityRequest(); - ~DeleteHostAvailabilityRequest(); - - std::vector getId()const; - void setId(const std::vector& id); - - private: - std::vector id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEHOSTAVAILABILITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteHostAvailabilityRequest : public RpcServiceRequest { +public: + DeleteHostAvailabilityRequest(); + ~DeleteHostAvailabilityRequest(); + std::vector getId() const; + void setId(const std::vector &id); + +private: + std::vector id_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEHOSTAVAILABILITYREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteLogMonitorRequest.h b/cms/include/alibabacloud/cms/model/DeleteLogMonitorRequest.h index 6e78f576a..8b5948ed7 100644 --- a/cms/include/alibabacloud/cms/model/DeleteLogMonitorRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteLogMonitorRequest.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_CMS_MODEL_DELETELOGMONITORREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETELOGMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteLogMonitorRequest : public RpcServiceRequest - { - - public: - DeleteLogMonitorRequest(); - ~DeleteLogMonitorRequest(); - - long getLogId()const; - void setLogId(long logId); - - private: - long logId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETELOGMONITORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETELOGMONITORREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETELOGMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteLogMonitorRequest : public RpcServiceRequest { +public: + DeleteLogMonitorRequest(); + ~DeleteLogMonitorRequest(); + long getLogId() const; + void setLogId(long logId); + +private: + long logId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETELOGMONITORREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteMetricRuleResourcesRequest.h b/cms/include/alibabacloud/cms/model/DeleteMetricRuleResourcesRequest.h index b61212559..7b1e705ac 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMetricRuleResourcesRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRuleResourcesRequest.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_CMS_MODEL_DELETEMETRICRULERESOURCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULERESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleResourcesRequest : public RpcServiceRequest - { - - public: - DeleteMetricRuleResourcesRequest(); - ~DeleteMetricRuleResourcesRequest(); - - std::string getResources()const; - void setResources(const std::string& resources); - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); - - private: - std::string resources_; - std::string ruleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULERESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULERESOURCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULERESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleResourcesRequest : public RpcServiceRequest { +public: + DeleteMetricRuleResourcesRequest(); + ~DeleteMetricRuleResourcesRequest(); + std::string getResources() const; + void setResources(const std::string &resources); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string resources_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULERESOURCESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteMetricRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTargetsRequest.h index 695d4eb7c..a863265f0 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMetricRuleTargetsRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTargetsRequest.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_CMS_MODEL_DELETEMETRICRULETARGETSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETARGETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleTargetsRequest : public RpcServiceRequest - { - - public: - DeleteMetricRuleTargetsRequest(); - ~DeleteMetricRuleTargetsRequest(); - - std::vector getTargetIds()const; - void setTargetIds(const std::vector& targetIds); - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); - - private: - std::vector targetIds_; - std::string ruleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETARGETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETARGETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleTargetsRequest : public RpcServiceRequest { +public: + DeleteMetricRuleTargetsRequest(); + ~DeleteMetricRuleTargetsRequest(); + std::vector getTargetIds() const; + void setTargetIds(const std::vector &targetIds); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::vector targetIds_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETARGETSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteMetricRuleTemplateRequest.h b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTemplateRequest.h index 0cddc80d6..3017a7d2f 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMetricRuleTemplateRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTemplateRequest.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_CMS_MODEL_DELETEMETRICRULETEMPLATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleTemplateRequest : public RpcServiceRequest - { - - public: - DeleteMetricRuleTemplateRequest(); - ~DeleteMetricRuleTemplateRequest(); - - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - - private: - std::string templateId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleTemplateRequest : public RpcServiceRequest { +public: + DeleteMetricRuleTemplateRequest(); + ~DeleteMetricRuleTemplateRequest(); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + +private: + std::string templateId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETEMPLATEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteMetricRulesRequest.h b/cms/include/alibabacloud/cms/model/DeleteMetricRulesRequest.h index c1d72063f..8b6116527 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMetricRulesRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRulesRequest.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_CMS_MODEL_DELETEMETRICRULESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMetricRulesRequest : public RpcServiceRequest - { - - public: - DeleteMetricRulesRequest(); - ~DeleteMetricRulesRequest(); - - std::vector getId()const; - void setId(const std::vector& id); - - private: - std::vector id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteMetricRulesRequest : public RpcServiceRequest { +public: + DeleteMetricRulesRequest(); + ~DeleteMetricRulesRequest(); + std::vector getId() const; + void setId(const std::vector &id); + +private: + std::vector id_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleRequest.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleRequest.h index 28c45fdfc..18a12f5c9 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleRequest.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_CMS_MODEL_DELETEMONITORGROUPDYNAMICRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPDYNAMICRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupDynamicRuleRequest : public RpcServiceRequest - { - - public: - DeleteMonitorGroupDynamicRuleRequest(); - ~DeleteMonitorGroupDynamicRuleRequest(); - - long getGroupId()const; - void setGroupId(long groupId); - std::string getCategory()const; - void setCategory(const std::string& category); - - private: - long groupId_; - std::string category_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPDYNAMICRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPDYNAMICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPDYNAMICRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupDynamicRuleRequest : public RpcServiceRequest { +public: + DeleteMonitorGroupDynamicRuleRequest(); + ~DeleteMonitorGroupDynamicRuleRequest(); + long getGroupId() const; + void setGroupId(long groupId); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + long groupId_; + std::string category_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPDYNAMICRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteMonitorGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupInstancesRequest.h index a716bc27c..96ed1b72d 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMonitorGroupInstancesRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupInstancesRequest.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_CMS_MODEL_DELETEMONITORGROUPINSTANCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupInstancesRequest : public RpcServiceRequest - { - - public: - DeleteMonitorGroupInstancesRequest(); - ~DeleteMonitorGroupInstancesRequest(); - - long getGroupId()const; - void setGroupId(long groupId); - std::string getInstanceIdList()const; - void setInstanceIdList(const std::string& instanceIdList); - std::string getCategory()const; - void setCategory(const std::string& category); - - private: - long groupId_; - std::string instanceIdList_; - std::string category_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPINSTANCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupInstancesRequest : public RpcServiceRequest { +public: + DeleteMonitorGroupInstancesRequest(); + ~DeleteMonitorGroupInstancesRequest(); + long getGroupId() const; + void setGroupId(long groupId); + std::string getInstanceIdList() const; + void setInstanceIdList(const std::string &instanceIdList); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + long groupId_; + std::string instanceIdList_; + std::string category_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPINSTANCESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyRequest.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyRequest.h index 2530912ff..14b9f756f 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyRequest.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_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupNotifyPolicyRequest : public RpcServiceRequest - { - - public: - DeleteMonitorGroupNotifyPolicyRequest(); - ~DeleteMonitorGroupNotifyPolicyRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - - private: - std::string policyType_; - std::string groupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupNotifyPolicyRequest : public RpcServiceRequest { +public: + DeleteMonitorGroupNotifyPolicyRequest(); + ~DeleteMonitorGroupNotifyPolicyRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + +private: + std::string policyType_; + std::string groupId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteMonitorGroupRequest.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupRequest.h index acdcd7cc0..7973e824a 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMonitorGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupRequest.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_CMS_MODEL_DELETEMONITORGROUPREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupRequest : public RpcServiceRequest - { - - public: - DeleteMonitorGroupRequest(); - ~DeleteMonitorGroupRequest(); - - long getGroupId()const; - void setGroupId(long groupId); - - private: - long groupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupRequest : public RpcServiceRequest { +public: + DeleteMonitorGroupRequest(); + ~DeleteMonitorGroupRequest(); + long getGroupId() const; + void setGroupId(long groupId); + +private: + long groupId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteMonitoringAgentProcessRequest.h b/cms/include/alibabacloud/cms/model/DeleteMonitoringAgentProcessRequest.h index f5759e07c..5d9642f38 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMonitoringAgentProcessRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitoringAgentProcessRequest.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_CMS_MODEL_DELETEMONITORINGAGENTPROCESSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGAGENTPROCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMonitoringAgentProcessRequest : public RpcServiceRequest - { - - public: - DeleteMonitoringAgentProcessRequest(); - ~DeleteMonitoringAgentProcessRequest(); - - std::string getProcessName()const; - void setProcessName(const std::string& processName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getProcessId()const; - void setProcessId(const std::string& processId); - - private: - std::string processName_; - std::string instanceId_; - std::string processId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGAGENTPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteMonitoringAgentProcessRequest : public RpcServiceRequest { +public: + DeleteMonitoringAgentProcessRequest(); + ~DeleteMonitoringAgentProcessRequest(); + std::string getProcessName() const; + void setProcessName(const std::string &processName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getProcessId() const; + void setProcessId(const std::string &processId); + +private: + std::string processName_; + std::string instanceId_; + std::string processId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGAGENTPROCESSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DeleteSiteMonitorsRequest.h b/cms/include/alibabacloud/cms/model/DeleteSiteMonitorsRequest.h index f2ac8bb80..ec3b468d1 100644 --- a/cms/include/alibabacloud/cms/model/DeleteSiteMonitorsRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteSiteMonitorsRequest.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_CMS_MODEL_DELETESITEMONITORSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETESITEMONITORSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteSiteMonitorsRequest : public RpcServiceRequest - { - - public: - DeleteSiteMonitorsRequest(); - ~DeleteSiteMonitorsRequest(); - - bool getIsDeleteAlarms()const; - void setIsDeleteAlarms(bool isDeleteAlarms); - std::string getTaskIds()const; - void setTaskIds(const std::string& taskIds); - - private: - bool isDeleteAlarms_; - std::string taskIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETESITEMONITORSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DELETESITEMONITORSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETESITEMONITORSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DeleteSiteMonitorsRequest : public RpcServiceRequest { +public: + DeleteSiteMonitorsRequest(); + ~DeleteSiteMonitorsRequest(); + bool getIsDeleteAlarms() const; + void setIsDeleteAlarms(bool isDeleteAlarms); + std::string getTaskIds() const; + void setTaskIds(const std::string &taskIds); + +private: + bool isDeleteAlarms_; + std::string taskIds_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DELETESITEMONITORSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListRequest.h b/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListRequest.h index a40f0f588..b3367f4d0 100644 --- a/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListRequest.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_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeActiveMetricRuleListRequest : public RpcServiceRequest - { - - public: - DescribeActiveMetricRuleListRequest(); - ~DescribeActiveMetricRuleListRequest(); - - std::string getProduct()const; - void setProduct(const std::string& product); - - private: - std::string product_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeActiveMetricRuleListRequest : public RpcServiceRequest { +public: + DescribeActiveMetricRuleListRequest(); + ~DescribeActiveMetricRuleListRequest(); + std::string getProduct() const; + void setProduct(const std::string &product); + +private: + std::string product_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h index eb08cd10c..5f465a724 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h @@ -1,81 +1,75 @@ /* * 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_CMS_MODEL_DESCRIBEALERTHISTORYLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTHISTORYLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeAlertHistoryListRequest : public RpcServiceRequest - { - - public: - DescribeAlertHistoryListRequest(); - ~DescribeAlertHistoryListRequest(); - - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - bool getAscending()const; - void setAscending(bool ascending); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - int getPage()const; - void setPage(int page); - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string ruleName_; - std::string startTime_; - int pageSize_; - std::string state_; - std::string metricName_; - std::string groupId_; - std::string endTime_; - bool ascending_; - std::string _namespace_; - int page_; - std::string ruleId_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTHISTORYLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTHISTORYLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTHISTORYLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeAlertHistoryListRequest : public RpcServiceRequest { +public: + DescribeAlertHistoryListRequest(); + ~DescribeAlertHistoryListRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + bool getAscending() const; + void setAscending(bool ascending); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + int getPage() const; + void setPage(int page); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string ruleName_; + std::string startTime_; + int pageSize_; + std::string state_; + std::string metricName_; + std::string groupId_; + std::string endTime_; + bool ascending_; + std::string _namespace_; + int page_; + std::string ruleId_; + std::string status_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTHISTORYLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h index fbf6aa760..7e16a4192 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud int status; std::vector contactGroups; std::string ruleId; - std::string dimensions; int evaluationCount; + std::string dimensions; std::string _namespace; std::vector contactMails; std::vector contactSmses; @@ -49,12 +49,12 @@ namespace AlibabaCloud std::vector contacts; std::string expression; std::string state; - std::string value; std::string webhooks; + std::string value; std::string level; std::string preLevel; - long lastTime; std::string ruleName; + long lastTime; std::vector contactALIIMs; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertLogCountRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertLogCountRequest.h index 18ff3dd4e..4c5ff1b51 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertLogCountRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertLogCountRequest.h @@ -1,90 +1,84 @@ /* * 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_CMS_MODEL_DESCRIBEALERTLOGCOUNTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeAlertLogCountRequest : public RpcServiceRequest - { - - public: - DescribeAlertLogCountRequest(); - ~DescribeAlertLogCountRequest(); - - std::string getSendStatus()const; - void setSendStatus(const std::string& sendStatus); - std::string getContactGroup()const; - void setContactGroup(const std::string& contactGroup); - std::string getSearchKey()const; - void setSearchKey(const std::string& searchKey); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - long getStartTime()const; - void setStartTime(long startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getLastMin()const; - void setLastMin(const std::string& lastMin); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getProduct()const; - void setProduct(const std::string& product); - std::string getLevel()const; - void setLevel(const std::string& level); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - long getEndTime()const; - void setEndTime(long endTime); - std::string getGroupBy()const; - void setGroupBy(const std::string& groupBy); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - - private: - std::string sendStatus_; - std::string contactGroup_; - std::string searchKey_; - std::string ruleName_; - long startTime_; - int pageNumber_; - std::string lastMin_; - int pageSize_; - std::string metricName_; - std::string product_; - std::string level_; - std::string groupId_; - long endTime_; - std::string groupBy_; - std::string _namespace_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGCOUNTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGCOUNTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeAlertLogCountRequest : public RpcServiceRequest { +public: + DescribeAlertLogCountRequest(); + ~DescribeAlertLogCountRequest(); + std::string getSendStatus() const; + void setSendStatus(const std::string &sendStatus); + std::string getContactGroup() const; + void setContactGroup(const std::string &contactGroup); + std::string getSearchKey() const; + void setSearchKey(const std::string &searchKey); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + long getStartTime() const; + void setStartTime(long startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getLastMin() const; + void setLastMin(const std::string &lastMin); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getProduct() const; + void setProduct(const std::string &product); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + long getEndTime() const; + void setEndTime(long endTime); + std::string getGroupBy() const; + void setGroupBy(const std::string &groupBy); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string sendStatus_; + std::string contactGroup_; + std::string searchKey_; + std::string ruleName_; + long startTime_; + int pageNumber_; + std::string lastMin_; + int pageSize_; + std::string metricName_; + std::string product_; + std::string level_; + std::string groupId_; + long endTime_; + std::string groupBy_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGCOUNTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramRequest.h index 6f3743892..0b0b3eacc 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramRequest.h @@ -1,90 +1,84 @@ /* * 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_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeAlertLogHistogramRequest : public RpcServiceRequest - { - - public: - DescribeAlertLogHistogramRequest(); - ~DescribeAlertLogHistogramRequest(); - - std::string getSendStatus()const; - void setSendStatus(const std::string& sendStatus); - std::string getContactGroup()const; - void setContactGroup(const std::string& contactGroup); - std::string getSearchKey()const; - void setSearchKey(const std::string& searchKey); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - long getStartTime()const; - void setStartTime(long startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getLastMin()const; - void setLastMin(const std::string& lastMin); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getProduct()const; - void setProduct(const std::string& product); - std::string getLevel()const; - void setLevel(const std::string& level); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - long getEndTime()const; - void setEndTime(long endTime); - std::string getGroupBy()const; - void setGroupBy(const std::string& groupBy); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - - private: - std::string sendStatus_; - std::string contactGroup_; - std::string searchKey_; - std::string ruleName_; - long startTime_; - int pageNumber_; - std::string lastMin_; - int pageSize_; - std::string metricName_; - std::string product_; - std::string level_; - std::string groupId_; - long endTime_; - std::string groupBy_; - std::string _namespace_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeAlertLogHistogramRequest : public RpcServiceRequest { +public: + DescribeAlertLogHistogramRequest(); + ~DescribeAlertLogHistogramRequest(); + std::string getSendStatus() const; + void setSendStatus(const std::string &sendStatus); + std::string getContactGroup() const; + void setContactGroup(const std::string &contactGroup); + std::string getSearchKey() const; + void setSearchKey(const std::string &searchKey); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + long getStartTime() const; + void setStartTime(long startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getLastMin() const; + void setLastMin(const std::string &lastMin); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getProduct() const; + void setProduct(const std::string &product); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + long getEndTime() const; + void setEndTime(long endTime); + std::string getGroupBy() const; + void setGroupBy(const std::string &groupBy); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string sendStatus_; + std::string contactGroup_; + std::string searchKey_; + std::string ruleName_; + long startTime_; + int pageNumber_; + std::string lastMin_; + int pageSize_; + std::string metricName_; + std::string product_; + std::string level_; + std::string groupId_; + long endTime_; + std::string groupBy_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramResult.h b/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramResult.h index db30066b1..d0d5b026b 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramResult.h @@ -34,9 +34,9 @@ namespace AlibabaCloud public: struct AlertLogHistogramListItem { - int count; long from; long to; + int count; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertLogListRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertLogListRequest.h index ef35a180f..3549f4abb 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertLogListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertLogListRequest.h @@ -1,90 +1,87 @@ /* * 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_CMS_MODEL_DESCRIBEALERTLOGLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeAlertLogListRequest : public RpcServiceRequest - { - - public: - DescribeAlertLogListRequest(); - ~DescribeAlertLogListRequest(); - - std::string getSendStatus()const; - void setSendStatus(const std::string& sendStatus); - std::string getContactGroup()const; - void setContactGroup(const std::string& contactGroup); - std::string getSearchKey()const; - void setSearchKey(const std::string& searchKey); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - long getStartTime()const; - void setStartTime(long startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getLastMin()const; - void setLastMin(const std::string& lastMin); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getProduct()const; - void setProduct(const std::string& product); - std::string getLevel()const; - void setLevel(const std::string& level); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - long getEndTime()const; - void setEndTime(long endTime); - std::string getGroupBy()const; - void setGroupBy(const std::string& groupBy); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - - private: - std::string sendStatus_; - std::string contactGroup_; - std::string searchKey_; - std::string ruleName_; - long startTime_; - int pageNumber_; - std::string lastMin_; - int pageSize_; - std::string metricName_; - std::string product_; - std::string level_; - std::string groupId_; - long endTime_; - std::string groupBy_; - std::string _namespace_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeAlertLogListRequest : public RpcServiceRequest { +public: + DescribeAlertLogListRequest(); + ~DescribeAlertLogListRequest(); + std::string getSendStatus() const; + void setSendStatus(const std::string &sendStatus); + std::string getContactGroup() const; + void setContactGroup(const std::string &contactGroup); + std::string getSearchKey() const; + void setSearchKey(const std::string &searchKey); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + long getStartTime() const; + void setStartTime(long startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getLastMin() const; + void setLastMin(const std::string &lastMin); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getProduct() const; + void setProduct(const std::string &product); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + long getEndTime() const; + void setEndTime(long endTime); + std::string getGroupBy() const; + void setGroupBy(const std::string &groupBy); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string sendStatus_; + std::string contactGroup_; + std::string searchKey_; + std::string ruleName_; + long startTime_; + int pageNumber_; + std::string lastMin_; + int pageSize_; + std::string metricName_; + std::string product_; + std::string level_; + std::string groupId_; + long endTime_; + std::string groupBy_; + std::string _namespace_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.h index dd4768780..f206fa614 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.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_CMS_MODEL_DESCRIBEALERTINGMETRICRULERESOURCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTINGMETRICRULERESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeAlertingMetricRuleResourcesRequest : public RpcServiceRequest - { - - public: - DescribeAlertingMetricRuleResourcesRequest(); - ~DescribeAlertingMetricRuleResourcesRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - int getPage()const; - void setPage(int page); - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - - private: - std::string groupId_; - int pageSize_; - std::string _namespace_; - int page_; - std::string ruleId_; - std::string dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTINGMETRICRULERESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTINGMETRICRULERESOURCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTINGMETRICRULERESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeAlertingMetricRuleResourcesRequest : public RpcServiceRequest { +public: + DescribeAlertingMetricRuleResourcesRequest(); + ~DescribeAlertingMetricRuleResourcesRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + int getPage() const; + void setPage(int page); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + std::string getDimensions() const; + void setDimensions(const std::string &dimensions); + +private: + std::string groupId_; + int pageSize_; + std::string _namespace_; + int page_; + std::string ruleId_; + std::string dimensions_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTINGMETRICRULERESOURCESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h index c6b5942ca..290cf7450 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h @@ -46,11 +46,11 @@ namespace AlibabaCloud }; std::vector escalation; std::string ruleId; - std::string resource; std::string startTime; + std::string resource; std::string dimensions; - std::string _namespace; std::string metricValues; + std::string _namespace; std::string lastModifyTime; std::string statistics; std::string groupId; @@ -59,8 +59,8 @@ namespace AlibabaCloud std::string productCategory; std::string enable; int level; - std::string ruleName; std::string retryTimes; + std::string ruleName; std::string threshold; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeContactGroupListRequest.h b/cms/include/alibabacloud/cms/model/DescribeContactGroupListRequest.h index 3a40041b8..fc41bf076 100644 --- a/cms/include/alibabacloud/cms/model/DescribeContactGroupListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeContactGroupListRequest.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_CMS_MODEL_DESCRIBECONTACTGROUPLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTGROUPLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeContactGroupListRequest : public RpcServiceRequest - { - - public: - DescribeContactGroupListRequest(); - ~DescribeContactGroupListRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTGROUPLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTGROUPLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTGROUPLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeContactGroupListRequest : public RpcServiceRequest { +public: + DescribeContactGroupListRequest(); + ~DescribeContactGroupListRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTGROUPLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeContactListByContactGroupRequest.h b/cms/include/alibabacloud/cms/model/DescribeContactListByContactGroupRequest.h index 4dca1a8a8..ba7fe8caf 100644 --- a/cms/include/alibabacloud/cms/model/DescribeContactListByContactGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeContactListByContactGroupRequest.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_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeContactListByContactGroupRequest : public RpcServiceRequest - { - - public: - DescribeContactListByContactGroupRequest(); - ~DescribeContactListByContactGroupRequest(); - - std::string getContactGroupName()const; - void setContactGroupName(const std::string& contactGroupName); - - private: - std::string contactGroupName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeContactListByContactGroupRequest : public RpcServiceRequest { +public: + DescribeContactListByContactGroupRequest(); + ~DescribeContactListByContactGroupRequest(); + std::string getContactGroupName() const; + void setContactGroupName(const std::string &contactGroupName); + +private: + std::string contactGroupName_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeContactListRequest.h b/cms/include/alibabacloud/cms/model/DescribeContactListRequest.h index 4439a8653..daf09ecc3 100644 --- a/cms/include/alibabacloud/cms/model/DescribeContactListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeContactListRequest.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_CMS_MODEL_DESCRIBECONTACTLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeContactListRequest : public RpcServiceRequest - { - - public: - DescribeContactListRequest(); - ~DescribeContactListRequest(); - - std::string getChanelType()const; - void setChanelType(const std::string& chanelType); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getContactName()const; - void setContactName(const std::string& contactName); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getChanelValue()const; - void setChanelValue(const std::string& chanelValue); - - private: - std::string chanelType_; - int pageNumber_; - std::string contactName_; - int pageSize_; - std::string chanelValue_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeContactListRequest : public RpcServiceRequest { +public: + DescribeContactListRequest(); + ~DescribeContactListRequest(); + std::string getChanelType() const; + void setChanelType(const std::string &chanelType); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getContactName() const; + void setContactName(const std::string &contactName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getChanelValue() const; + void setChanelValue(const std::string &chanelValue); + +private: + std::string chanelType_; + int pageNumber_; + std::string contactName_; + int pageSize_; + std::string chanelValue_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h index 06a4aaf0e..5e6dc3b34 100644 --- a/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h @@ -1,69 +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. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventAttributeRequest : public RpcServiceRequest - { - - public: - DescribeCustomEventAttributeRequest(); - ~DescribeCustomEventAttributeRequest(); - - std::string getEventId()const; - void setEventId(const std::string& eventId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getSearchKeywords()const; - void setSearchKeywords(const std::string& searchKeywords); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string eventId_; - std::string startTime_; - std::string searchKeywords_; - int pageNumber_; - int pageSize_; - std::string groupId_; - std::string endTime_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventAttributeRequest : public RpcServiceRequest { +public: + DescribeCustomEventAttributeRequest(); + ~DescribeCustomEventAttributeRequest(); + std::string getEventId() const; + void setEventId(const std::string &eventId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getSearchKeywords() const; + void setSearchKeywords(const std::string &searchKeywords); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string eventId_; + std::string startTime_; + std::string searchKeywords_; + int pageNumber_; + int pageSize_; + std::string groupId_; + std::string endTime_; + std::string name_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeResult.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeResult.h index 613aea971..4ec9d5bf0 100644 --- a/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string content; std::string time; std::string id; - std::string groupId; std::string name; + std::string groupId; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeCustomEventCountRequest.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventCountRequest.h index 5d9f94466..514f06b8a 100644 --- a/cms/include/alibabacloud/cms/model/DescribeCustomEventCountRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventCountRequest.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_CMS_MODEL_DESCRIBECUSTOMEVENTCOUNTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventCountRequest : public RpcServiceRequest - { - - public: - DescribeCustomEventCountRequest(); - ~DescribeCustomEventCountRequest(); - - std::string getEventId()const; - void setEventId(const std::string& eventId); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getSearchKeywords()const; - void setSearchKeywords(const std::string& searchKeywords); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string eventId_; - std::string groupId_; - std::string endTime_; - std::string startTime_; - std::string searchKeywords_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTCOUNTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTCOUNTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventCountRequest : public RpcServiceRequest { +public: + DescribeCustomEventCountRequest(); + ~DescribeCustomEventCountRequest(); + std::string getEventId() const; + void setEventId(const std::string &eventId); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getSearchKeywords() const; + void setSearchKeywords(const std::string &searchKeywords); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string eventId_; + std::string groupId_; + std::string endTime_; + std::string startTime_; + std::string searchKeywords_; + std::string name_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTCOUNTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeCustomEventHistogramRequest.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventHistogramRequest.h index a0ae5a694..80dd14e00 100644 --- a/cms/include/alibabacloud/cms/model/DescribeCustomEventHistogramRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventHistogramRequest.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_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventHistogramRequest : public RpcServiceRequest - { - - public: - DescribeCustomEventHistogramRequest(); - ~DescribeCustomEventHistogramRequest(); - - std::string getEventId()const; - void setEventId(const std::string& eventId); - std::string getLevel()const; - void setLevel(const std::string& level); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getSearchKeywords()const; - void setSearchKeywords(const std::string& searchKeywords); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string eventId_; - std::string level_; - std::string groupId_; - std::string endTime_; - std::string startTime_; - std::string searchKeywords_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventHistogramRequest : public RpcServiceRequest { +public: + DescribeCustomEventHistogramRequest(); + ~DescribeCustomEventHistogramRequest(); + std::string getEventId() const; + void setEventId(const std::string &eventId); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getSearchKeywords() const; + void setSearchKeywords(const std::string &searchKeywords); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string eventId_; + std::string level_; + std::string groupId_; + std::string endTime_; + std::string startTime_; + std::string searchKeywords_; + std::string name_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeCustomMetricListRequest.h b/cms/include/alibabacloud/cms/model/DescribeCustomMetricListRequest.h index d5b11aec6..805b05b31 100644 --- a/cms/include/alibabacloud/cms/model/DescribeCustomMetricListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomMetricListRequest.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_CMS_MODEL_DESCRIBECUSTOMMETRICLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMMETRICLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeCustomMetricListRequest : public RpcServiceRequest - { - - public: - DescribeCustomMetricListRequest(); - ~DescribeCustomMetricListRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getPageNumber()const; - void setPageNumber(const std::string& pageNumber); - std::string getPageSize()const; - void setPageSize(const std::string& pageSize); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getDimension()const; - void setDimension(const std::string& dimension); - std::string getMd5()const; - void setMd5(const std::string& md5); - - private: - std::string groupId_; - std::string pageNumber_; - std::string pageSize_; - std::string metricName_; - std::string dimension_; - std::string md5_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMMETRICLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMMETRICLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMMETRICLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeCustomMetricListRequest : public RpcServiceRequest { +public: + DescribeCustomMetricListRequest(); + ~DescribeCustomMetricListRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getDimension() const; + void setDimension(const std::string &dimension); + std::string getMd5() const; + void setMd5(const std::string &md5); + +private: + std::string groupId_; + std::string pageNumber_; + std::string pageSize_; + std::string metricName_; + std::string dimension_; + std::string md5_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMMETRICLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeDynamicTagRuleListRequest.h b/cms/include/alibabacloud/cms/model/DescribeDynamicTagRuleListRequest.h index 1f1ba49fb..2136b5458 100644 --- a/cms/include/alibabacloud/cms/model/DescribeDynamicTagRuleListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeDynamicTagRuleListRequest.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_CMS_MODEL_DESCRIBEDYNAMICTAGRULELISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEDYNAMICTAGRULELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeDynamicTagRuleListRequest : public RpcServiceRequest - { - - public: - DescribeDynamicTagRuleListRequest(); - ~DescribeDynamicTagRuleListRequest(); - - std::string getTagValue()const; - void setTagValue(const std::string& tagValue); - std::string getPageNumber()const; - void setPageNumber(const std::string& pageNumber); - std::string getPageSize()const; - void setPageSize(const std::string& pageSize); - std::string getTagKey()const; - void setTagKey(const std::string& tagKey); - std::string getTagRegionId()const; - void setTagRegionId(const std::string& tagRegionId); - - private: - std::string tagValue_; - std::string pageNumber_; - std::string pageSize_; - std::string tagKey_; - std::string tagRegionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEDYNAMICTAGRULELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEDYNAMICTAGRULELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEDYNAMICTAGRULELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeDynamicTagRuleListRequest : public RpcServiceRequest { +public: + DescribeDynamicTagRuleListRequest(); + ~DescribeDynamicTagRuleListRequest(); + std::string getTagValue() const; + void setTagValue(const std::string &tagValue); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getTagKey() const; + void setTagKey(const std::string &tagKey); + std::string getTagRegionId() const; + void setTagRegionId(const std::string &tagRegionId); + +private: + std::string tagValue_; + std::string pageNumber_; + std::string pageSize_; + std::string tagKey_; + std::string tagRegionId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEDYNAMICTAGRULELISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeRequest.h index bfb0568ee..2a375163d 100644 --- a/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeRequest.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_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleAttributeRequest : public RpcServiceRequest - { - - public: - DescribeEventRuleAttributeRequest(); - ~DescribeEventRuleAttributeRequest(); - - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - - private: - std::string ruleName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleAttributeRequest : public RpcServiceRequest { +public: + DescribeEventRuleAttributeRequest(); + ~DescribeEventRuleAttributeRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + +private: + std::string ruleName_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeResult.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeResult.h index adcfb9f95..085062f88 100644 --- a/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeResult.h @@ -45,8 +45,8 @@ namespace AlibabaCloud std::string description; std::string eventType; std::string state; - std::string name; std::string groupId; + std::string name; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeEventRuleListRequest.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleListRequest.h index a7adbdead..769bc532d 100644 --- a/cms/include/alibabacloud/cms/model/DescribeEventRuleListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleListRequest.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_CMS_MODEL_DESCRIBEEVENTRULELISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleListRequest : public RpcServiceRequest - { - - public: - DescribeEventRuleListRequest(); - ~DescribeEventRuleListRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getPageNumber()const; - void setPageNumber(const std::string& pageNumber); - std::string getPageSize()const; - void setPageSize(const std::string& pageSize); - std::string getNamePrefix()const; - void setNamePrefix(const std::string& namePrefix); - - private: - std::string groupId_; - std::string pageNumber_; - std::string pageSize_; - std::string namePrefix_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleListRequest : public RpcServiceRequest { +public: + DescribeEventRuleListRequest(); + ~DescribeEventRuleListRequest(); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getNamePrefix() const; + void setNamePrefix(const std::string &namePrefix); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + +private: + std::string pageNumber_; + std::string pageSize_; + std::string namePrefix_; + std::string groupId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULELISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeEventRuleListResult.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleListResult.h index f09d2e2af..30fe244a8 100644 --- a/cms/include/alibabacloud/cms/model/DescribeEventRuleListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleListResult.h @@ -36,17 +36,26 @@ namespace AlibabaCloud { struct EventPatternItem { + struct KeywordFilter + { + std::string relation; + std::vector keywords; + }; + std::string sQLFilter; std::vector nameList; std::vector levelList; + KeywordFilter keywordFilter; std::vector eventTypeList; std::string product; + std::string customFilters; }; std::vector eventPattern; + long silenceTime; std::string description; std::string eventType; std::string state; - std::string name; std::string groupId; + std::string name; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListRequest.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListRequest.h index f779af939..f772a22f5 100644 --- a/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListRequest.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_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleTargetListRequest : public RpcServiceRequest - { - - public: - DescribeEventRuleTargetListRequest(); - ~DescribeEventRuleTargetListRequest(); - - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - - private: - std::string ruleName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleTargetListRequest : public RpcServiceRequest { +public: + DescribeEventRuleTargetListRequest(); + ~DescribeEventRuleTargetListRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + +private: + std::string ruleName_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListResult.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListResult.h index 5463d6ce5..032613d4f 100644 --- a/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListResult.h @@ -55,8 +55,8 @@ namespace AlibabaCloud }; struct WebhookParameter { - std::string id; std::string method; + std::string id; std::string protocol; std::string url; }; @@ -68,12 +68,23 @@ namespace AlibabaCloud std::string id; std::string arn; }; + struct OpenApiParametersItem + { + std::string role; + std::string action; + std::string version; + std::string product; + std::string region; + std::string id; + std::string arn; + }; DescribeEventRuleTargetListResult(); explicit DescribeEventRuleTargetListResult(const std::string &payload); ~DescribeEventRuleTargetListResult(); std::vector getContactParameters()const; + std::vector getOpenApiParameters()const; std::string getMessage()const; std::vector getSlsParameters()const; std::vector getWebhookParameters()const; @@ -85,6 +96,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::vector contactParameters_; + std::vector openApiParameters_; std::string message_; std::vector slsParameters_; std::vector webhookParameters_; diff --git a/cms/include/alibabacloud/cms/model/DescribeExporterOutputListRequest.h b/cms/include/alibabacloud/cms/model/DescribeExporterOutputListRequest.h index 8bb3dcfd3..9f4ad5581 100644 --- a/cms/include/alibabacloud/cms/model/DescribeExporterOutputListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeExporterOutputListRequest.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_CMS_MODEL_DESCRIBEEXPORTEROUTPUTLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTEROUTPUTLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeExporterOutputListRequest : public RpcServiceRequest - { - - public: - DescribeExporterOutputListRequest(); - ~DescribeExporterOutputListRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTEROUTPUTLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTEROUTPUTLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTEROUTPUTLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeExporterOutputListRequest : public RpcServiceRequest { +public: + DescribeExporterOutputListRequest(); + ~DescribeExporterOutputListRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTEROUTPUTLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeExporterOutputListResult.h b/cms/include/alibabacloud/cms/model/DescribeExporterOutputListResult.h index e002a6e39..c580efc5a 100644 --- a/cms/include/alibabacloud/cms/model/DescribeExporterOutputListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeExporterOutputListResult.h @@ -43,8 +43,8 @@ namespace AlibabaCloud }; std::string destType; ConfigJson configJson; - std::string destName; long createTime; + std::string destName; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeExporterRuleListRequest.h b/cms/include/alibabacloud/cms/model/DescribeExporterRuleListRequest.h index 6192790b0..a29298302 100644 --- a/cms/include/alibabacloud/cms/model/DescribeExporterRuleListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeExporterRuleListRequest.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_CMS_MODEL_DESCRIBEEXPORTERRULELISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTERRULELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeExporterRuleListRequest : public RpcServiceRequest - { - - public: - DescribeExporterRuleListRequest(); - ~DescribeExporterRuleListRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTERRULELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTERRULELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTERRULELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeExporterRuleListRequest : public RpcServiceRequest { +public: + DescribeExporterRuleListRequest(); + ~DescribeExporterRuleListRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTERRULELISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeExporterRuleListResult.h b/cms/include/alibabacloud/cms/model/DescribeExporterRuleListResult.h index 00480e2b4..0983dbcb5 100644 --- a/cms/include/alibabacloud/cms/model/DescribeExporterRuleListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeExporterRuleListResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Datapoint { - std::string targetWindows; std::string describe; + std::string targetWindows; std::string metricName; long createTime; bool enabled; diff --git a/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessRequest.h b/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessRequest.h index f3d1ed8e5..042258277 100644 --- a/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessRequest.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_CMS_MODEL_DESCRIBEGROUPMONITORINGAGENTPROCESSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEGROUPMONITORINGAGENTPROCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeGroupMonitoringAgentProcessRequest : public RpcServiceRequest - { - - public: - DescribeGroupMonitoringAgentProcessRequest(); - ~DescribeGroupMonitoringAgentProcessRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getProcessName()const; - void setProcessName(const std::string& processName); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string groupId_; - std::string processName_; - int pageNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEGROUPMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEGROUPMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEGROUPMONITORINGAGENTPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeGroupMonitoringAgentProcessRequest : public RpcServiceRequest { +public: + DescribeGroupMonitoringAgentProcessRequest(); + ~DescribeGroupMonitoringAgentProcessRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getProcessName() const; + void setProcessName(const std::string &processName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string groupId_; + std::string processName_; + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEGROUPMONITORINGAGENTPROCESSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h b/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h index 3bb828cbd..0d1a4d112 100644 --- a/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h @@ -42,13 +42,13 @@ namespace AlibabaCloud }; struct AlertConfigItem { - std::string noEffectiveInterval; std::string silenceTime; + std::string noEffectiveInterval; std::string comparisonOperator; std::string times; std::string webhook; - std::string effectiveInterval; std::string escalationsLevel; + std::string effectiveInterval; std::string statistics; std::string threshold; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListRequest.h b/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListRequest.h index afd1efbb5..191322741 100644 --- a/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListRequest.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_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeHostAvailabilityListRequest : public RpcServiceRequest - { - - public: - DescribeHostAvailabilityListRequest(); - ~DescribeHostAvailabilityListRequest(); - - long getGroupId()const; - void setGroupId(long groupId); - std::string getTaskName()const; - void setTaskName(const std::string& taskName); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getIds()const; - void setIds(const std::string& ids); - long getId()const; - void setId(long id); - - private: - long groupId_; - std::string taskName_; - int pageNumber_; - int pageSize_; - std::string ids_; - long id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeHostAvailabilityListRequest : public RpcServiceRequest { +public: + DescribeHostAvailabilityListRequest(); + ~DescribeHostAvailabilityListRequest(); + long getGroupId() const; + void setGroupId(long groupId); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getIds() const; + void setIds(const std::string &ids); + long getId() const; + void setId(long id); + +private: + long groupId_; + std::string taskName_; + int pageNumber_; + int pageSize_; + std::string ids_; + long id_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeLogMonitorAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeLogMonitorAttributeRequest.h index 875149f00..b11eabc84 100644 --- a/cms/include/alibabacloud/cms/model/DescribeLogMonitorAttributeRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeLogMonitorAttributeRequest.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_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeLogMonitorAttributeRequest : public RpcServiceRequest - { - - public: - DescribeLogMonitorAttributeRequest(); - ~DescribeLogMonitorAttributeRequest(); - - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - - private: - std::string metricName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeLogMonitorAttributeRequest : public RpcServiceRequest { +public: + DescribeLogMonitorAttributeRequest(); + ~DescribeLogMonitorAttributeRequest(); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + +private: + std::string metricName_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeLogMonitorListRequest.h b/cms/include/alibabacloud/cms/model/DescribeLogMonitorListRequest.h index 1f8a57f96..9836868c6 100644 --- a/cms/include/alibabacloud/cms/model/DescribeLogMonitorListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeLogMonitorListRequest.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_CMS_MODEL_DESCRIBELOGMONITORLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeLogMonitorListRequest : public RpcServiceRequest - { - - public: - DescribeLogMonitorListRequest(); - ~DescribeLogMonitorListRequest(); - - long getGroupId()const; - void setGroupId(long groupId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getSearchValue()const; - void setSearchValue(const std::string& searchValue); - - private: - long groupId_; - int pageNumber_; - int pageSize_; - std::string searchValue_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeLogMonitorListRequest : public RpcServiceRequest { +public: + DescribeLogMonitorListRequest(); + ~DescribeLogMonitorListRequest(); + long getGroupId() const; + void setGroupId(long groupId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSearchValue() const; + void setSearchValue(const std::string &searchValue); + +private: + long groupId_; + int pageNumber_; + int pageSize_; + std::string searchValue_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeLogMonitorListResult.h b/cms/include/alibabacloud/cms/model/DescribeLogMonitorListResult.h index 20cc31ce4..e0555757f 100644 --- a/cms/include/alibabacloud/cms/model/DescribeLogMonitorListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeLogMonitorListResult.h @@ -40,14 +40,14 @@ namespace AlibabaCloud std::string _operator; std::string key; }; - std::string slsProject; std::string metricName; + std::string slsProject; long gmtCreate; std::vector valueFilter; std::string valueFilterRelation; + std::string slsLogstore; long logId; std::string slsRegionId; - std::string slsLogstore; long groupId; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricDataRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricDataRequest.h index c3bb0321b..ea092e039 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricDataRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricDataRequest.h @@ -1,69 +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. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATAREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMetricDataRequest : public RpcServiceRequest - { - - public: - DescribeMetricDataRequest(); - ~DescribeMetricDataRequest(); - - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getLength()const; - void setLength(const std::string& length); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getExpress()const; - void setExpress(const std::string& express); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - - private: - std::string period_; - std::string length_; - std::string endTime_; - std::string express_; - std::string startTime_; - std::string _namespace_; - std::string metricName_; - std::string dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMetricDataRequest : public RpcServiceRequest { +public: + DescribeMetricDataRequest(); + ~DescribeMetricDataRequest(); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getLength() const; + void setLength(const std::string &length); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getExpress() const; + void setExpress(const std::string &express); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getDimensions() const; + void setDimensions(const std::string &dimensions); + +private: + std::string period_; + std::string length_; + std::string endTime_; + std::string express_; + std::string startTime_; + std::string _namespace_; + std::string metricName_; + std::string dimensions_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATAREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricLastRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricLastRequest.h index 359326e7a..907121b3e 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricLastRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricLastRequest.h @@ -1,72 +1,66 @@ /* * 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_CMS_MODEL_DESCRIBEMETRICLASTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLASTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMetricLastRequest : public RpcServiceRequest - { - - public: - DescribeMetricLastRequest(); - ~DescribeMetricLastRequest(); - - std::string getExpress()const; - void setExpress(const std::string& express); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getLength()const; - void setLength(const std::string& length); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - - private: - std::string express_; - std::string startTime_; - std::string nextToken_; - std::string metricName_; - std::string period_; - std::string length_; - std::string endTime_; - std::string _namespace_; - std::string dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLASTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLASTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLASTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMetricLastRequest : public RpcServiceRequest { +public: + DescribeMetricLastRequest(); + ~DescribeMetricLastRequest(); + std::string getExpress() const; + void setExpress(const std::string &express); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getLength() const; + void setLength(const std::string &length); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getDimensions() const; + void setDimensions(const std::string &dimensions); + +private: + std::string express_; + std::string startTime_; + std::string nextToken_; + std::string metricName_; + std::string period_; + std::string length_; + std::string endTime_; + std::string _namespace_; + std::string dimensions_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLASTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricLastResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricLastResult.h index d7cd2c075..877aa29e5 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricLastResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricLastResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud DescribeMetricLastResult(); explicit DescribeMetricLastResult(const std::string &payload); ~DescribeMetricLastResult(); - std::string getMessage()const; std::string getNextToken()const; + std::string getMessage()const; std::string getPeriod()const; std::string getDatapoints()const; std::string getCode()const; @@ -47,8 +47,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string message_; std::string nextToken_; + std::string message_; std::string period_; std::string datapoints_; std::string code_; diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricListRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricListRequest.h index 9955b63aa..1360b35f7 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricListRequest.h @@ -1,72 +1,66 @@ /* * 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_CMS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMetricListRequest : public RpcServiceRequest - { - - public: - DescribeMetricListRequest(); - ~DescribeMetricListRequest(); - - std::string getExpress()const; - void setExpress(const std::string& express); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getLength()const; - void setLength(const std::string& length); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - - private: - std::string express_; - std::string startTime_; - std::string nextToken_; - std::string metricName_; - std::string period_; - std::string length_; - std::string endTime_; - std::string _namespace_; - std::string dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMetricListRequest : public RpcServiceRequest { +public: + DescribeMetricListRequest(); + ~DescribeMetricListRequest(); + std::string getExpress() const; + void setExpress(const std::string &express); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getLength() const; + void setLength(const std::string &length); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getDimensions() const; + void setDimensions(const std::string &dimensions); + +private: + std::string express_; + std::string startTime_; + std::string nextToken_; + std::string metricName_; + std::string period_; + std::string length_; + std::string endTime_; + std::string _namespace_; + std::string dimensions_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricListResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricListResult.h index c50bc5f83..6d99841e2 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricListResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud DescribeMetricListResult(); explicit DescribeMetricListResult(const std::string &payload); ~DescribeMetricListResult(); - std::string getMessage()const; std::string getNextToken()const; + std::string getMessage()const; std::string getPeriod()const; std::string getDatapoints()const; std::string getCode()const; @@ -47,8 +47,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string message_; std::string nextToken_; + std::string message_; std::string period_; std::string datapoints_; std::string code_; diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricMetaListRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricMetaListRequest.h index 783b16898..f53184329 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricMetaListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricMetaListRequest.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_CMS_MODEL_DESCRIBEMETRICMETALISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICMETALISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMetricMetaListRequest : public RpcServiceRequest - { - - public: - DescribeMetricMetaListRequest(); - ~DescribeMetricMetaListRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getLabels()const; - void setLabels(const std::string& labels); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - - private: - int pageNumber_; - std::string labels_; - std::string _namespace_; - int pageSize_; - std::string metricName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICMETALISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICMETALISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICMETALISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMetricMetaListRequest : public RpcServiceRequest { +public: + DescribeMetricMetaListRequest(); + ~DescribeMetricMetaListRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getLabels() const; + void setLabels(const std::string &labels); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + +private: + int pageNumber_; + std::string labels_; + std::string _namespace_; + int pageSize_; + std::string metricName_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICMETALISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountRequest.h index 4db366d90..c46d85380 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountRequest.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_CMS_MODEL_DESCRIBEMETRICRULECOUNTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULECOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleCountRequest : public RpcServiceRequest - { - - public: - DescribeMetricRuleCountRequest(); - ~DescribeMetricRuleCountRequest(); - - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - - private: - std::string _namespace_; - std::string metricName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULECOUNTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULECOUNTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULECOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleCountRequest : public RpcServiceRequest { +public: + DescribeMetricRuleCountRequest(); + ~DescribeMetricRuleCountRequest(); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + +private: + std::string _namespace_; + std::string metricName_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULECOUNTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountResult.h index 2281de35f..c4f0d8957 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountResult.h @@ -34,11 +34,11 @@ namespace AlibabaCloud public: struct MetricRuleCount { - int alarm; int total; + int alarm; int ok; - int disable; int nodata; + int disable; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleListRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleListRequest.h index fc718f33b..e0357200e 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricRuleListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleListRequest.h @@ -1,75 +1,69 @@ /* * 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_CMS_MODEL_DESCRIBEMETRICRULELISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleListRequest : public RpcServiceRequest - { - - public: - DescribeMetricRuleListRequest(); - ~DescribeMetricRuleListRequest(); - - bool getEnableState()const; - void setEnableState(bool enableState); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getRuleIds()const; - void setRuleIds(const std::string& ruleIds); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getAlertState()const; - void setAlertState(const std::string& alertState); - int getPage()const; - void setPage(int page); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - - private: - bool enableState_; - std::string ruleName_; - int pageSize_; - std::string metricName_; - std::string groupId_; - std::string ruleIds_; - std::string _namespace_; - std::string alertState_; - int page_; - std::string dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleListRequest : public RpcServiceRequest { +public: + DescribeMetricRuleListRequest(); + ~DescribeMetricRuleListRequest(); + bool getEnableState() const; + void setEnableState(bool enableState); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getRuleIds() const; + void setRuleIds(const std::string &ruleIds); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getAlertState() const; + void setAlertState(const std::string &alertState); + int getPage() const; + void setPage(int page); + std::string getDimensions() const; + void setDimensions(const std::string &dimensions); + +private: + bool enableState_; + std::string ruleName_; + int pageSize_; + std::string metricName_; + std::string groupId_; + std::string ruleIds_; + std::string _namespace_; + std::string alertState_; + int page_; + std::string dimensions_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULELISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h index a2618eb4a..ba54cdfd1 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.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_CMS_MODEL_DESCRIBEMETRICRULETARGETSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETARGETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTargetsRequest : public RpcServiceRequest - { - - public: - DescribeMetricRuleTargetsRequest(); - ~DescribeMetricRuleTargetsRequest(); - - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); - - private: - std::string ruleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETARGETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETARGETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTargetsRequest : public RpcServiceRequest { +public: + DescribeMetricRuleTargetsRequest(); + ~DescribeMetricRuleTargetsRequest(); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string ruleId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETARGETSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.h index ddefcd0c0..b3628abc2 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.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_CMS_MODEL_DESCRIBEMETRICRULETEMPLATEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTemplateAttributeRequest : public RpcServiceRequest - { - - public: - DescribeMetricRuleTemplateAttributeRequest(); - ~DescribeMetricRuleTemplateAttributeRequest(); - - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string templateId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTemplateAttributeRequest : public RpcServiceRequest { +public: + DescribeMetricRuleTemplateAttributeRequest(); + ~DescribeMetricRuleTemplateAttributeRequest(); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string templateId_; + std::string name_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATEATTRIBUTEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateListRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateListRequest.h index 3b07e6704..8ed91c5b2 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateListRequest.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_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTemplateListRequest : public RpcServiceRequest - { - - public: - DescribeMetricRuleTemplateListRequest(); - ~DescribeMetricRuleTemplateListRequest(); - - bool getHistory()const; - void setHistory(bool history); - long getTemplateId()const; - void setTemplateId(long templateId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getName()const; - void setName(const std::string& name); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - - private: - bool history_; - long templateId_; - long pageNumber_; - std::string name_; - long pageSize_; - std::string keyword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTemplateListRequest : public RpcServiceRequest { +public: + DescribeMetricRuleTemplateListRequest(); + ~DescribeMetricRuleTemplateListRequest(); + bool getHistory() const; + void setHistory(bool history); + long getTemplateId() const; + void setTemplateId(long templateId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getName() const; + void setName(const std::string &name); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + +private: + bool history_; + long templateId_; + long pageNumber_; + std::string name_; + long pageSize_; + std::string keyword_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricTopRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricTopRequest.h index 33a76a3bb..b979d2047 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricTopRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricTopRequest.h @@ -1,75 +1,69 @@ /* * 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_CMS_MODEL_DESCRIBEMETRICTOPREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICTOPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMetricTopRequest : public RpcServiceRequest - { - - public: - DescribeMetricTopRequest(); - ~DescribeMetricTopRequest(); - - std::string getExpress()const; - void setExpress(const std::string& express); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getLength()const; - void setLength(const std::string& length); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getOrderby()const; - void setOrderby(const std::string& orderby); - std::string getOrderDesc()const; - void setOrderDesc(const std::string& orderDesc); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - - private: - std::string express_; - std::string startTime_; - std::string metricName_; - std::string period_; - std::string length_; - std::string endTime_; - std::string orderby_; - std::string orderDesc_; - std::string _namespace_; - std::string dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICTOPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICTOPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICTOPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMetricTopRequest : public RpcServiceRequest { +public: + DescribeMetricTopRequest(); + ~DescribeMetricTopRequest(); + std::string getExpress() const; + void setExpress(const std::string &express); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getLength() const; + void setLength(const std::string &length); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getOrderby() const; + void setOrderby(const std::string &orderby); + std::string getOrderDesc() const; + void setOrderDesc(const std::string &orderDesc); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getDimensions() const; + void setDimensions(const std::string &dimensions); + +private: + std::string express_; + std::string startTime_; + std::string metricName_; + std::string period_; + std::string length_; + std::string endTime_; + std::string orderby_; + std::string orderDesc_; + std::string _namespace_; + std::string dimensions_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICTOPREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesRequest.h index c1425dd5b..3474f6559 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesRequest.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_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupCategoriesRequest : public RpcServiceRequest - { - - public: - DescribeMonitorGroupCategoriesRequest(); - ~DescribeMonitorGroupCategoriesRequest(); - - long getGroupId()const; - void setGroupId(long groupId); - - private: - long groupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupCategoriesRequest : public RpcServiceRequest { +public: + DescribeMonitorGroupCategoriesRequest(); + ~DescribeMonitorGroupCategoriesRequest(); + long getGroupId() const; + void setGroupId(long groupId); + +private: + long groupId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesRequest.h index 14e714e07..f280ea3c1 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesRequest.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_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupDynamicRulesRequest : public RpcServiceRequest - { - - public: - DescribeMonitorGroupDynamicRulesRequest(); - ~DescribeMonitorGroupDynamicRulesRequest(); - - long getGroupId()const; - void setGroupId(long groupId); - - private: - long groupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupDynamicRulesRequest : public RpcServiceRequest { +public: + DescribeMonitorGroupDynamicRulesRequest(); + ~DescribeMonitorGroupDynamicRulesRequest(); + long getGroupId() const; + void setGroupId(long groupId); + +private: + long groupId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeRequest.h index 655ed8a36..ae4e63e99 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeRequest.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_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupInstanceAttributeRequest : public RpcServiceRequest - { - - public: - DescribeMonitorGroupInstanceAttributeRequest(); - ~DescribeMonitorGroupInstanceAttributeRequest(); - - long getGroupId()const; - void setGroupId(long groupId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - bool getTotal()const; - void setTotal(bool total); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getCategory()const; - void setCategory(const std::string& category); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - - private: - long groupId_; - int pageNumber_; - bool total_; - std::string instanceIds_; - int pageSize_; - std::string category_; - std::string keyword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupInstanceAttributeRequest : public RpcServiceRequest { +public: + DescribeMonitorGroupInstanceAttributeRequest(); + ~DescribeMonitorGroupInstanceAttributeRequest(); + long getGroupId() const; + void setGroupId(long groupId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + bool getTotal() const; + void setTotal(bool total); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getCategory() const; + void setCategory(const std::string &category); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + +private: + long groupId_; + int pageNumber_; + bool total_; + std::string instanceIds_; + int pageSize_; + std::string category_; + std::string keyword_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstancesRequest.h index 7a0d6a83c..4775f4338 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstancesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstancesRequest.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_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupInstancesRequest : public RpcServiceRequest - { - - public: - DescribeMonitorGroupInstancesRequest(); - ~DescribeMonitorGroupInstancesRequest(); - - long getGroupId()const; - void setGroupId(long groupId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getCategory()const; - void setCategory(const std::string& category); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - - private: - long groupId_; - int pageNumber_; - std::string instanceIds_; - int pageSize_; - std::string category_; - std::string keyword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupInstancesRequest : public RpcServiceRequest { +public: + DescribeMonitorGroupInstancesRequest(); + ~DescribeMonitorGroupInstancesRequest(); + long getGroupId() const; + void setGroupId(long groupId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getCategory() const; + void setCategory(const std::string &category); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + +private: + long groupId_; + int pageNumber_; + std::string instanceIds_; + int pageSize_; + std::string category_; + std::string keyword_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListRequest.h index e4c02d35e..41cd947c6 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListRequest.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_CMS_MODEL_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupNotifyPolicyListRequest : public RpcServiceRequest - { - - public: - DescribeMonitorGroupNotifyPolicyListRequest(); - ~DescribeMonitorGroupNotifyPolicyListRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string policyType_; - std::string groupId_; - int pageNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupNotifyPolicyListRequest : public RpcServiceRequest { +public: + DescribeMonitorGroupNotifyPolicyListRequest(); + ~DescribeMonitorGroupNotifyPolicyListRequest(); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string policyType_; + std::string groupId_; + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h index f56dbdf99..b07562723 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h @@ -1,96 +1,88 @@ /* * 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_CMS_MODEL_DESCRIBEMONITORGROUPSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeMonitorGroupsRequest(); - ~DescribeMonitorGroupsRequest(); - - bool getSelectContactGroups()const; - void setSelectContactGroups(bool selectContactGroups); - bool getIncludeTemplateHistory()const; - void setIncludeTemplateHistory(bool includeTemplateHistory); - std::string getDynamicTagRuleId()const; - void setDynamicTagRuleId(const std::string& dynamicTagRuleId); - std::string getType()const; - void setType(const std::string& type); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getGroupFounderTagKey()const; - void setGroupFounderTagKey(const std::string& groupFounderTagKey); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getGroupFounderTagValue()const; - void setGroupFounderTagValue(const std::string& groupFounderTagValue); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getServiceId()const; - void setServiceId(const std::string& serviceId); - - private: - bool selectContactGroups_; - bool includeTemplateHistory_; - std::string dynamicTagRuleId_; - std::string type_; - int pageNumber_; - std::string resourceGroupId_; - std::string groupFounderTagKey_; - int pageSize_; - std::vector tag_; - std::string groupFounderTagValue_; - std::string keyword_; - std::string groupId_; - std::string groupName_; - std::string instanceId_; - std::string serviceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeMonitorGroupsRequest(); + ~DescribeMonitorGroupsRequest(); + bool getSelectContactGroups() const; + void setSelectContactGroups(bool selectContactGroups); + bool getIncludeTemplateHistory() const; + void setIncludeTemplateHistory(bool includeTemplateHistory); + std::string getDynamicTagRuleId() const; + void setDynamicTagRuleId(const std::string &dynamicTagRuleId); + std::string getType() const; + void setType(const std::string &type); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getGroupFounderTagKey() const; + void setGroupFounderTagKey(const std::string &groupFounderTagKey); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getGroupFounderTagValue() const; + void setGroupFounderTagValue(const std::string &groupFounderTagValue); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getServiceId() const; + void setServiceId(const std::string &serviceId); + +private: + bool selectContactGroups_; + bool includeTemplateHistory_; + std::string dynamicTagRuleId_; + std::string type_; + int pageNumber_; + std::string resourceGroupId_; + std::string groupFounderTagKey_; + int pageSize_; + std::string groupFounderTagValue_; + std::vector tag_; + std::string keyword_; + std::string groupId_; + std::string groupName_; + std::string instanceId_; + std::string serviceId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeRequest.h index 0c8ba4a14..7cd14aaed 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeRequest.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_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitorResourceQuotaAttributeRequest : public RpcServiceRequest - { - - public: - DescribeMonitorResourceQuotaAttributeRequest(); - ~DescribeMonitorResourceQuotaAttributeRequest(); - - bool getShowUsed()const; - void setShowUsed(bool showUsed); - - private: - bool showUsed_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitorResourceQuotaAttributeRequest : public RpcServiceRequest { +public: + DescribeMonitorResourceQuotaAttributeRequest(); + ~DescribeMonitorResourceQuotaAttributeRequest(); + bool getShowUsed() const; + void setShowUsed(bool showUsed); + +private: + bool showUsed_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyRequest.h index ac0c78a18..f38fcff11 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyRequest.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_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentAccessKeyRequest : public RpcServiceRequest - { - - public: - DescribeMonitoringAgentAccessKeyRequest(); - ~DescribeMonitoringAgentAccessKeyRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentAccessKeyRequest : public RpcServiceRequest { +public: + DescribeMonitoringAgentAccessKeyRequest(); + ~DescribeMonitoringAgentAccessKeyRequest(); + +private: +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigRequest.h index b86e35d2a..68e49c728 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigRequest.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_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentConfigRequest : public RpcServiceRequest - { - - public: - DescribeMonitoringAgentConfigRequest(); - ~DescribeMonitoringAgentConfigRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentConfigRequest : public RpcServiceRequest { +public: + DescribeMonitoringAgentConfigRequest(); + ~DescribeMonitoringAgentConfigRequest(); + +private: +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigResult.h index f834ae4f5..fbcadce7a 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud DescribeMonitoringAgentConfigResult(); explicit DescribeMonitoringAgentConfigResult(const std::string &payload); ~DescribeMonitoringAgentConfigResult(); - bool getAutoInstall()const; std::string getEnableActiveAlert()const; + bool getAutoInstall()const; bool getEnableInstallAgentNewECS()const; std::string getMessage()const; std::string getCode()const; @@ -47,8 +47,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - bool autoInstall_; std::string enableActiveAlert_; + bool autoInstall_; bool enableInstallAgentNewECS_; std::string message_; std::string code_; diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.h index 8ee59afe7..2589fffc2 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.h @@ -1,72 +1,66 @@ /* * 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_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentHostsRequest : public RpcServiceRequest - { - - public: - DescribeMonitoringAgentHostsRequest(); - ~DescribeMonitoringAgentHostsRequest(); - - std::string getSerialNumbers()const; - void setSerialNumbers(const std::string& serialNumbers); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getHostName()const; - void setHostName(const std::string& hostName); - std::string getInstanceRegionId()const; - void setInstanceRegionId(const std::string& instanceRegionId); - int getPageSize()const; - void setPageSize(int pageSize); - bool getAliyunHost()const; - void setAliyunHost(bool aliyunHost); - std::string getKeyWord()const; - void setKeyWord(const std::string& keyWord); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string serialNumbers_; - int pageNumber_; - std::string hostName_; - std::string instanceRegionId_; - int pageSize_; - bool aliyunHost_; - std::string keyWord_; - std::string instanceIds_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentHostsRequest : public RpcServiceRequest { +public: + DescribeMonitoringAgentHostsRequest(); + ~DescribeMonitoringAgentHostsRequest(); + std::string getSerialNumbers() const; + void setSerialNumbers(const std::string &serialNumbers); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getHostName() const; + void setHostName(const std::string &hostName); + std::string getInstanceRegionId() const; + void setInstanceRegionId(const std::string &instanceRegionId); + int getPageSize() const; + void setPageSize(int pageSize); + bool getAliyunHost() const; + void setAliyunHost(bool aliyunHost); + std::string getKeyWord() const; + void setKeyWord(const std::string &keyWord); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string serialNumbers_; + int pageNumber_; + std::string hostName_; + std::string instanceRegionId_; + int pageSize_; + bool aliyunHost_; + std::string keyWord_; + std::string instanceIds_; + std::string status_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesRequest.h index b24469e4e..2cc9f3590 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesRequest.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_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentProcessesRequest : public RpcServiceRequest - { - - public: - DescribeMonitoringAgentProcessesRequest(); - ~DescribeMonitoringAgentProcessesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentProcessesRequest : public RpcServiceRequest { +public: + DescribeMonitoringAgentProcessesRequest(); + ~DescribeMonitoringAgentProcessesRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesResult.h index b6b66c940..9c1c05aff 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct NodeProcess { std::string processName; - std::string instanceId; std::string command; + std::string instanceId; std::string processUser; long processId; std::string groupId; diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesRequest.h index 1b5c2dae1..ae833b89f 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesRequest.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_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentStatusesRequest : public RpcServiceRequest - { - - public: - DescribeMonitoringAgentStatusesRequest(); - ~DescribeMonitoringAgentStatusesRequest(); - - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - - private: - std::string instanceIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentStatusesRequest : public RpcServiceRequest { +public: + DescribeMonitoringAgentStatusesRequest(); + ~DescribeMonitoringAgentStatusesRequest(); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + std::string instanceIds_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitoringConfigRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringConfigRequest.h index dc10177b0..b6f491ef0 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitoringConfigRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringConfigRequest.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_CMS_MODEL_DESCRIBEMONITORINGCONFIGREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringConfigRequest : public RpcServiceRequest - { - - public: - DescribeMonitoringConfigRequest(); - ~DescribeMonitoringConfigRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGCONFIGREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringConfigRequest : public RpcServiceRequest { +public: + DescribeMonitoringConfigRequest(); + ~DescribeMonitoringConfigRequest(); + +private: +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGCONFIGREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeProductResourceTagKeyListRequest.h b/cms/include/alibabacloud/cms/model/DescribeProductResourceTagKeyListRequest.h index 00f503773..432224506 100644 --- a/cms/include/alibabacloud/cms/model/DescribeProductResourceTagKeyListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeProductResourceTagKeyListRequest.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_CMS_MODEL_DESCRIBEPRODUCTRESOURCETAGKEYLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTRESOURCETAGKEYLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeProductResourceTagKeyListRequest : public RpcServiceRequest - { - - public: - DescribeProductResourceTagKeyListRequest(); - ~DescribeProductResourceTagKeyListRequest(); - - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - - private: - std::string nextToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTRESOURCETAGKEYLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTRESOURCETAGKEYLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTRESOURCETAGKEYLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeProductResourceTagKeyListRequest : public RpcServiceRequest { +public: + DescribeProductResourceTagKeyListRequest(); + ~DescribeProductResourceTagKeyListRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + +private: + std::string nextToken_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTRESOURCETAGKEYLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleRequest.h b/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleRequest.h index f44fe0180..6d2923841 100644 --- a/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleRequest.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_CMS_MODEL_DESCRIBEPRODUCTSOFACTIVEMETRICRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTSOFACTIVEMETRICRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeProductsOfActiveMetricRuleRequest : public RpcServiceRequest - { - - public: - DescribeProductsOfActiveMetricRuleRequest(); - ~DescribeProductsOfActiveMetricRuleRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTSOFACTIVEMETRICRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTSOFACTIVEMETRICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTSOFACTIVEMETRICRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeProductsOfActiveMetricRuleRequest : public RpcServiceRequest { +public: + DescribeProductsOfActiveMetricRuleRequest(); + ~DescribeProductsOfActiveMetricRuleRequest(); + +private: +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTSOFACTIVEMETRICRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeProjectMetaRequest.h b/cms/include/alibabacloud/cms/model/DescribeProjectMetaRequest.h index 14612c91b..ddfa88f9e 100644 --- a/cms/include/alibabacloud/cms/model/DescribeProjectMetaRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeProjectMetaRequest.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_CMS_MODEL_DESCRIBEPROJECTMETAREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEPROJECTMETAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeProjectMetaRequest : public RpcServiceRequest - { - - public: - DescribeProjectMetaRequest(); - ~DescribeProjectMetaRequest(); - - int getPageSize()const; - void setPageSize(int pageSize); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getLabels()const; - void setLabels(const std::string& labels); - - private: - int pageSize_; - int pageNumber_; - std::string labels_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEPROJECTMETAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEPROJECTMETAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEPROJECTMETAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeProjectMetaRequest : public RpcServiceRequest { +public: + DescribeProjectMetaRequest(); + ~DescribeProjectMetaRequest(); + int getPageSize() const; + void setPageSize(int pageSize); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getLabels() const; + void setLabels(const std::string &labels); + +private: + int pageSize_; + int pageNumber_; + std::string labels_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEPROJECTMETAREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorAttributeRequest.h index 6af069017..01676eafd 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorAttributeRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorAttributeRequest.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_CMS_MODEL_DESCRIBESITEMONITORATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorAttributeRequest : public RpcServiceRequest - { - - public: - DescribeSiteMonitorAttributeRequest(); - ~DescribeSiteMonitorAttributeRequest(); - - bool getIncludeAlert()const; - void setIncludeAlert(bool includeAlert); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - bool includeAlert_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorAttributeRequest : public RpcServiceRequest { +public: + DescribeSiteMonitorAttributeRequest(); + ~DescribeSiteMonitorAttributeRequest(); + bool getIncludeAlert() const; + void setIncludeAlert(bool includeAlert); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + bool includeAlert_; + std::string taskId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORATTRIBUTEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataRequest.h index 46bf567d9..5dac9d77c 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataRequest.h @@ -1,69 +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. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeSiteMonitorDataRequest(); - ~DescribeSiteMonitorDataRequest(); - - std::string getPeriod()const; - void setPeriod(const std::string& period); - int getLength()const; - void setLength(int length); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getType()const; - void setType(const std::string& type); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string period_; - int length_; - std::string endTime_; - std::string startTime_; - std::string type_; - std::string nextToken_; - std::string metricName_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorDataRequest : public RpcServiceRequest { +public: + DescribeSiteMonitorDataRequest(); + ~DescribeSiteMonitorDataRequest(); + std::string getPeriod() const; + void setPeriod(const std::string &period); + int getLength() const; + void setLength(int length); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getType() const; + void setType(const std::string &type); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string period_; + int length_; + std::string endTime_; + std::string startTime_; + std::string type_; + std::string nextToken_; + std::string metricName_; + std::string taskId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATAREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataResult.h index 528ae2b12..23b2588b6 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud DescribeSiteMonitorDataResult(); explicit DescribeSiteMonitorDataResult(const std::string &payload); ~DescribeSiteMonitorDataResult(); - std::string getMessage()const; std::string getNextToken()const; + std::string getMessage()const; std::string getData()const; std::string getCode()const; std::string getSuccess()const; @@ -46,8 +46,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string message_; std::string nextToken_; + std::string message_; std::string data_; std::string code_; std::string success_; diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h index 482e19c44..3c75de993 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.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_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorISPCityListRequest : public RpcServiceRequest - { - - public: - DescribeSiteMonitorISPCityListRequest(); - ~DescribeSiteMonitorISPCityListRequest(); - - std::string getCity()const; - void setCity(const std::string& city); - std::string getIsp()const; - void setIsp(const std::string& isp); - bool getAPIProbe()const; - void setAPIProbe(bool aPIProbe); - bool getIPV4()const; - void setIPV4(bool iPV4); - bool getIPV6()const; - void setIPV6(bool iPV6); - - private: - std::string city_; - std::string isp_; - bool aPIProbe_; - bool iPV4_; - bool iPV6_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorISPCityListRequest : public RpcServiceRequest { +public: + DescribeSiteMonitorISPCityListRequest(); + ~DescribeSiteMonitorISPCityListRequest(); + std::string getCity() const; + void setCity(const std::string &city); + std::string getIsp() const; + void setIsp(const std::string &isp); + bool getAPIProbe() const; + void setAPIProbe(bool aPIProbe); + bool getIPV4() const; + void setIPV4(bool iPV4); + bool getIPV6() const; + void setIPV6(bool iPV6); + +private: + std::string city_; + std::string isp_; + bool aPIProbe_; + bool iPV4_; + bool iPV6_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPCITYLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorListRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorListRequest.h index 2f2e6086f..6c773c6cb 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorListRequest.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_CMS_MODEL_DESCRIBESITEMONITORLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorListRequest : public RpcServiceRequest - { - - public: - DescribeSiteMonitorListRequest(); - ~DescribeSiteMonitorListRequest(); - - std::string getTaskType()const; - void setTaskType(const std::string& taskType); - int getPageSize()const; - void setPageSize(int pageSize); - int getPage()const; - void setPage(int page); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string taskType_; - int pageSize_; - int page_; - std::string keyword_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorListRequest : public RpcServiceRequest { +public: + DescribeSiteMonitorListRequest(); + ~DescribeSiteMonitorListRequest(); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + int getPageSize() const; + void setPageSize(int pageSize); + int getPage() const; + void setPage(int page); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string taskType_; + int pageSize_; + int page_; + std::string keyword_; + std::string taskId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorLogRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorLogRequest.h index bda683943..9499c7299 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorLogRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorLogRequest.h @@ -1,75 +1,69 @@ /* * 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_CMS_MODEL_DESCRIBESITEMONITORLOGREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorLogRequest : public RpcServiceRequest - { - - public: - DescribeSiteMonitorLogRequest(); - ~DescribeSiteMonitorLogRequest(); - - std::string getCity()const; - void setCity(const std::string& city); - std::string getIsp()const; - void setIsp(const std::string& isp); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getTaskIds()const; - void setTaskIds(const std::string& taskIds); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - int getLength()const; - void setLength(int length); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getFilter()const; - void setFilter(const std::string& filter); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - - private: - std::string city_; - std::string isp_; - std::string startTime_; - std::string taskIds_; - std::string nextToken_; - std::string metricName_; - int length_; - std::string endTime_; - std::string filter_; - std::string dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLOGREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorLogRequest : public RpcServiceRequest { +public: + DescribeSiteMonitorLogRequest(); + ~DescribeSiteMonitorLogRequest(); + std::string getCity() const; + void setCity(const std::string &city); + std::string getIsp() const; + void setIsp(const std::string &isp); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getTaskIds() const; + void setTaskIds(const std::string &taskIds); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + int getLength() const; + void setLength(int length); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getFilter() const; + void setFilter(const std::string &filter); + std::string getDimensions() const; + void setDimensions(const std::string &dimensions); + +private: + std::string city_; + std::string isp_; + std::string startTime_; + std::string taskIds_; + std::string nextToken_; + std::string metricName_; + int length_; + std::string endTime_; + std::string filter_; + std::string dimensions_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLOGREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaRequest.h index d76306630..f7592d0b5 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaRequest.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_CMS_MODEL_DESCRIBESITEMONITORQUOTAREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORQUOTAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorQuotaRequest : public RpcServiceRequest - { - - public: - DescribeSiteMonitorQuotaRequest(); - ~DescribeSiteMonitorQuotaRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORQUOTAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORQUOTAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORQUOTAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorQuotaRequest : public RpcServiceRequest { +public: + DescribeSiteMonitorQuotaRequest(); + ~DescribeSiteMonitorQuotaRequest(); + +private: +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORQUOTAREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h index 446a49165..54d4284f4 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct Data { std::string siteMonitorVersion; - int siteMonitorQuotaTaskUsed; bool secondMonitor; + int siteMonitorQuotaTaskUsed; int siteMonitorOperatorQuotaQuota; int siteMonitorTaskQuota; int siteMonitorIdcQuota; diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsRequest.h index 9f3a31361..e81648943 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsRequest.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_CMS_MODEL_DESCRIBESITEMONITORSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeSiteMonitorStatisticsRequest(); - ~DescribeSiteMonitorStatisticsRequest(); - - std::string getTimeRange()const; - void setTimeRange(const std::string& timeRange); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string timeRange_; - std::string startTime_; - std::string metricName_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORSTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorStatisticsRequest : public RpcServiceRequest { +public: + DescribeSiteMonitorStatisticsRequest(); + ~DescribeSiteMonitorStatisticsRequest(); + std::string getTimeRange() const; + void setTimeRange(const std::string &timeRange); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string timeRange_; + std::string startTime_; + std::string metricName_; + std::string taskId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORSTATISTICSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeRequest.h index a12246cdc..a5c255c5d 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeRequest.h @@ -1,78 +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. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventAttributeRequest : public RpcServiceRequest - { - - public: - DescribeSystemEventAttributeRequest(); - ~DescribeSystemEventAttributeRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getSearchKeywords()const; - void setSearchKeywords(const std::string& searchKeywords); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getProduct()const; - void setProduct(const std::string& product); - std::string getLevel()const; - void setLevel(const std::string& level); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getName()const; - void setName(const std::string& name); - std::string getEventType()const; - void setEventType(const std::string& eventType); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string startTime_; - std::string searchKeywords_; - int pageNumber_; - int pageSize_; - std::string product_; - std::string level_; - std::string groupId_; - std::string endTime_; - std::string name_; - std::string eventType_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventAttributeRequest : public RpcServiceRequest { +public: + DescribeSystemEventAttributeRequest(); + ~DescribeSystemEventAttributeRequest(); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getSearchKeywords() const; + void setSearchKeywords(const std::string &searchKeywords); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getProduct() const; + void setProduct(const std::string &product); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getName() const; + void setName(const std::string &name); + std::string getEventType() const; + void setEventType(const std::string &eventType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string startTime_; + std::string searchKeywords_; + int pageNumber_; + int pageSize_; + std::string product_; + std::string level_; + std::string groupId_; + std::string endTime_; + std::string name_; + std::string eventType_; + std::string status_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h index 4bf4e1f95..538f24e59 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h @@ -39,11 +39,11 @@ namespace AlibabaCloud std::string resourceId; std::string content; std::string product; - std::string level; long time; + std::string level; std::string regionId; - std::string name; std::string groupId; + std::string name; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventCountRequest.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventCountRequest.h index 7243ac051..1c993d2c6 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSystemEventCountRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventCountRequest.h @@ -1,72 +1,66 @@ /* * 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_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventCountRequest : public RpcServiceRequest - { - - public: - DescribeSystemEventCountRequest(); - ~DescribeSystemEventCountRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getSearchKeywords()const; - void setSearchKeywords(const std::string& searchKeywords); - std::string getProduct()const; - void setProduct(const std::string& product); - std::string getLevel()const; - void setLevel(const std::string& level); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getName()const; - void setName(const std::string& name); - std::string getEventType()const; - void setEventType(const std::string& eventType); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string startTime_; - std::string searchKeywords_; - std::string product_; - std::string level_; - std::string groupId_; - std::string endTime_; - std::string name_; - std::string eventType_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventCountRequest : public RpcServiceRequest { +public: + DescribeSystemEventCountRequest(); + ~DescribeSystemEventCountRequest(); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getSearchKeywords() const; + void setSearchKeywords(const std::string &searchKeywords); + std::string getProduct() const; + void setProduct(const std::string &product); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getName() const; + void setName(const std::string &name); + std::string getEventType() const; + void setEventType(const std::string &eventType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string startTime_; + std::string searchKeywords_; + std::string product_; + std::string level_; + std::string groupId_; + std::string endTime_; + std::string name_; + std::string eventType_; + std::string status_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventCountResult.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventCountResult.h index 6539464fd..21f3d581e 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSystemEventCountResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventCountResult.h @@ -40,11 +40,11 @@ namespace AlibabaCloud std::string content; long num; std::string product; - std::string level; long time; + std::string level; std::string regionId; - std::string name; std::string groupId; + std::string name; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.h index 88493db7b..f07602e9f 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.h @@ -1,72 +1,66 @@ /* * 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_CMS_MODEL_DESCRIBESYSTEMEVENTHISTOGRAMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTHISTOGRAMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventHistogramRequest : public RpcServiceRequest - { - - public: - DescribeSystemEventHistogramRequest(); - ~DescribeSystemEventHistogramRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getSearchKeywords()const; - void setSearchKeywords(const std::string& searchKeywords); - std::string getProduct()const; - void setProduct(const std::string& product); - std::string getLevel()const; - void setLevel(const std::string& level); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getName()const; - void setName(const std::string& name); - std::string getEventType()const; - void setEventType(const std::string& eventType); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string startTime_; - std::string searchKeywords_; - std::string product_; - std::string level_; - std::string groupId_; - std::string endTime_; - std::string name_; - std::string eventType_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTHISTOGRAMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTHISTOGRAMREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTHISTOGRAMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventHistogramRequest : public RpcServiceRequest { +public: + DescribeSystemEventHistogramRequest(); + ~DescribeSystemEventHistogramRequest(); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getSearchKeywords() const; + void setSearchKeywords(const std::string &searchKeywords); + std::string getProduct() const; + void setProduct(const std::string &product); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getName() const; + void setName(const std::string &name); + std::string getEventType() const; + void setEventType(const std::string &eventType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string startTime_; + std::string searchKeywords_; + std::string product_; + std::string level_; + std::string groupId_; + std::string endTime_; + std::string name_; + std::string eventType_; + std::string status_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTHISTOGRAMREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListRequest.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListRequest.h index 71c3b9e67..77b1ea600 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListRequest.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_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventMetaListRequest : public RpcServiceRequest - { - - public: - DescribeSystemEventMetaListRequest(); - ~DescribeSystemEventMetaListRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventMetaListRequest : public RpcServiceRequest { +public: + DescribeSystemEventMetaListRequest(); + ~DescribeSystemEventMetaListRequest(); + +private: +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeTagKeyListRequest.h b/cms/include/alibabacloud/cms/model/DescribeTagKeyListRequest.h index 079290a16..ef174e27c 100644 --- a/cms/include/alibabacloud/cms/model/DescribeTagKeyListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeTagKeyListRequest.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_CMS_MODEL_DESCRIBETAGKEYLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBETAGKEYLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeTagKeyListRequest : public RpcServiceRequest - { - - public: - DescribeTagKeyListRequest(); - ~DescribeTagKeyListRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETAGKEYLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBETAGKEYLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBETAGKEYLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeTagKeyListRequest : public RpcServiceRequest { +public: + DescribeTagKeyListRequest(); + ~DescribeTagKeyListRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETAGKEYLISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeTagValueListRequest.h b/cms/include/alibabacloud/cms/model/DescribeTagValueListRequest.h index 8dfddf97f..bedea55ec 100644 --- a/cms/include/alibabacloud/cms/model/DescribeTagValueListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeTagValueListRequest.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_CMS_MODEL_DESCRIBETAGVALUELISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBETAGVALUELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeTagValueListRequest : public RpcServiceRequest - { - - public: - DescribeTagValueListRequest(); - ~DescribeTagValueListRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getTagKey()const; - void setTagKey(const std::string& tagKey); - - private: - int pageNumber_; - int pageSize_; - std::string tagKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETAGVALUELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBETAGVALUELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBETAGVALUELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeTagValueListRequest : public RpcServiceRequest { +public: + DescribeTagValueListRequest(); + ~DescribeTagValueListRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getTagKey() const; + void setTagKey(const std::string &tagKey); + +private: + int pageNumber_; + int pageSize_; + std::string tagKey_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETAGVALUELISTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityRequest.h index 97fb67849..d14cfa741 100644 --- a/cms/include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityRequest.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_CMS_MODEL_DESCRIBEUNHEALTHYHOSTAVAILABILITYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEUNHEALTHYHOSTAVAILABILITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeUnhealthyHostAvailabilityRequest : public RpcServiceRequest - { - - public: - DescribeUnhealthyHostAvailabilityRequest(); - ~DescribeUnhealthyHostAvailabilityRequest(); - - std::vector getId()const; - void setId(const std::vector& id); - - private: - std::vector id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEUNHEALTHYHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEUNHEALTHYHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEUNHEALTHYHOSTAVAILABILITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DescribeUnhealthyHostAvailabilityRequest : public RpcServiceRequest { +public: + DescribeUnhealthyHostAvailabilityRequest(); + ~DescribeUnhealthyHostAvailabilityRequest(); + std::vector getId() const; + void setId(const std::vector &id); + +private: + std::vector id_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEUNHEALTHYHOSTAVAILABILITYREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DisableActiveMetricRuleRequest.h b/cms/include/alibabacloud/cms/model/DisableActiveMetricRuleRequest.h index d8b1662b5..c66e8008e 100644 --- a/cms/include/alibabacloud/cms/model/DisableActiveMetricRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/DisableActiveMetricRuleRequest.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_CMS_MODEL_DISABLEACTIVEMETRICRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEMETRICRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DisableActiveMetricRuleRequest : public RpcServiceRequest - { - - public: - DisableActiveMetricRuleRequest(); - ~DisableActiveMetricRuleRequest(); - - std::string getProduct()const; - void setProduct(const std::string& product); - - private: - std::string product_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEMETRICRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEMETRICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEMETRICRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DisableActiveMetricRuleRequest : public RpcServiceRequest { +public: + DisableActiveMetricRuleRequest(); + ~DisableActiveMetricRuleRequest(); + std::string getProduct() const; + void setProduct(const std::string &product); + +private: + std::string product_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEMETRICRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DisableEventRulesRequest.h b/cms/include/alibabacloud/cms/model/DisableEventRulesRequest.h index 3c6f4cabc..d28a31d7e 100644 --- a/cms/include/alibabacloud/cms/model/DisableEventRulesRequest.h +++ b/cms/include/alibabacloud/cms/model/DisableEventRulesRequest.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_CMS_MODEL_DISABLEEVENTRULESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DisableEventRulesRequest : public RpcServiceRequest - { - - public: - DisableEventRulesRequest(); - ~DisableEventRulesRequest(); - - std::vector getRuleNames()const; - void setRuleNames(const std::vector& ruleNames); - - private: - std::vector ruleNames_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DisableEventRulesRequest : public RpcServiceRequest { +public: + DisableEventRulesRequest(); + ~DisableEventRulesRequest(); + std::vector getRuleNames() const; + void setRuleNames(const std::vector &ruleNames); + +private: + std::vector ruleNames_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DisableHostAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/DisableHostAvailabilityRequest.h index b717fb75d..bfe874232 100644 --- a/cms/include/alibabacloud/cms/model/DisableHostAvailabilityRequest.h +++ b/cms/include/alibabacloud/cms/model/DisableHostAvailabilityRequest.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_CMS_MODEL_DISABLEHOSTAVAILABILITYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEHOSTAVAILABILITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DisableHostAvailabilityRequest : public RpcServiceRequest - { - - public: - DisableHostAvailabilityRequest(); - ~DisableHostAvailabilityRequest(); - - std::vector getId()const; - void setId(const std::vector& id); - - private: - std::vector id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEHOSTAVAILABILITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DisableHostAvailabilityRequest : public RpcServiceRequest { +public: + DisableHostAvailabilityRequest(); + ~DisableHostAvailabilityRequest(); + std::vector getId() const; + void setId(const std::vector &id); + +private: + std::vector id_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEHOSTAVAILABILITYREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DisableMetricRulesRequest.h b/cms/include/alibabacloud/cms/model/DisableMetricRulesRequest.h index c093a3ad6..45688a240 100644 --- a/cms/include/alibabacloud/cms/model/DisableMetricRulesRequest.h +++ b/cms/include/alibabacloud/cms/model/DisableMetricRulesRequest.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_CMS_MODEL_DISABLEMETRICRULESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEMETRICRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DisableMetricRulesRequest : public RpcServiceRequest - { - - public: - DisableMetricRulesRequest(); - ~DisableMetricRulesRequest(); - - std::vector getRuleId()const; - void setRuleId(const std::vector& ruleId); - - private: - std::vector ruleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEMETRICRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEMETRICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEMETRICRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DisableMetricRulesRequest : public RpcServiceRequest { +public: + DisableMetricRulesRequest(); + ~DisableMetricRulesRequest(); + std::vector getRuleId() const; + void setRuleId(const std::vector &ruleId); + +private: + std::vector ruleId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEMETRICRULESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/DisableSiteMonitorsRequest.h b/cms/include/alibabacloud/cms/model/DisableSiteMonitorsRequest.h index f0d529fbe..864cb51b0 100644 --- a/cms/include/alibabacloud/cms/model/DisableSiteMonitorsRequest.h +++ b/cms/include/alibabacloud/cms/model/DisableSiteMonitorsRequest.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_CMS_MODEL_DISABLESITEMONITORSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLESITEMONITORSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DisableSiteMonitorsRequest : public RpcServiceRequest - { - - public: - DisableSiteMonitorsRequest(); - ~DisableSiteMonitorsRequest(); - - std::string getTaskIds()const; - void setTaskIds(const std::string& taskIds); - - private: - std::string taskIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLESITEMONITORSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLESITEMONITORSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLESITEMONITORSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT DisableSiteMonitorsRequest : public RpcServiceRequest { +public: + DisableSiteMonitorsRequest(); + ~DisableSiteMonitorsRequest(); + std::string getTaskIds() const; + void setTaskIds(const std::string &taskIds); + +private: + std::string taskIds_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLESITEMONITORSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/EnableActiveMetricRuleRequest.h b/cms/include/alibabacloud/cms/model/EnableActiveMetricRuleRequest.h index d34c5bb70..653c6a91b 100644 --- a/cms/include/alibabacloud/cms/model/EnableActiveMetricRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/EnableActiveMetricRuleRequest.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_CMS_MODEL_ENABLEACTIVEMETRICRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEMETRICRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT EnableActiveMetricRuleRequest : public RpcServiceRequest - { - - public: - EnableActiveMetricRuleRequest(); - ~EnableActiveMetricRuleRequest(); - - std::string getProduct()const; - void setProduct(const std::string& product); - - private: - std::string product_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEMETRICRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEMETRICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEMETRICRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT EnableActiveMetricRuleRequest : public RpcServiceRequest { +public: + EnableActiveMetricRuleRequest(); + ~EnableActiveMetricRuleRequest(); + std::string getProduct() const; + void setProduct(const std::string &product); + +private: + std::string product_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEMETRICRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/EnableEventRulesRequest.h b/cms/include/alibabacloud/cms/model/EnableEventRulesRequest.h index 37422b8d8..0bbae7aa1 100644 --- a/cms/include/alibabacloud/cms/model/EnableEventRulesRequest.h +++ b/cms/include/alibabacloud/cms/model/EnableEventRulesRequest.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_CMS_MODEL_ENABLEEVENTRULESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT EnableEventRulesRequest : public RpcServiceRequest - { - - public: - EnableEventRulesRequest(); - ~EnableEventRulesRequest(); - - std::vector getRuleNames()const; - void setRuleNames(const std::vector& ruleNames); - - private: - std::vector ruleNames_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT EnableEventRulesRequest : public RpcServiceRequest { +public: + EnableEventRulesRequest(); + ~EnableEventRulesRequest(); + std::vector getRuleNames() const; + void setRuleNames(const std::vector &ruleNames); + +private: + std::vector ruleNames_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/EnableHostAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/EnableHostAvailabilityRequest.h index e39b2f412..971cb2a23 100644 --- a/cms/include/alibabacloud/cms/model/EnableHostAvailabilityRequest.h +++ b/cms/include/alibabacloud/cms/model/EnableHostAvailabilityRequest.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_CMS_MODEL_ENABLEHOSTAVAILABILITYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEHOSTAVAILABILITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT EnableHostAvailabilityRequest : public RpcServiceRequest - { - - public: - EnableHostAvailabilityRequest(); - ~EnableHostAvailabilityRequest(); - - std::vector getId()const; - void setId(const std::vector& id); - - private: - std::vector id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEHOSTAVAILABILITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT EnableHostAvailabilityRequest : public RpcServiceRequest { +public: + EnableHostAvailabilityRequest(); + ~EnableHostAvailabilityRequest(); + std::vector getId() const; + void setId(const std::vector &id); + +private: + std::vector id_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEHOSTAVAILABILITYREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/EnableMetricRulesRequest.h b/cms/include/alibabacloud/cms/model/EnableMetricRulesRequest.h index 7399141ed..29ac7e413 100644 --- a/cms/include/alibabacloud/cms/model/EnableMetricRulesRequest.h +++ b/cms/include/alibabacloud/cms/model/EnableMetricRulesRequest.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_CMS_MODEL_ENABLEMETRICRULESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEMETRICRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT EnableMetricRulesRequest : public RpcServiceRequest - { - - public: - EnableMetricRulesRequest(); - ~EnableMetricRulesRequest(); - - std::vector getRuleId()const; - void setRuleId(const std::vector& ruleId); - - private: - std::vector ruleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEMETRICRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEMETRICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEMETRICRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT EnableMetricRulesRequest : public RpcServiceRequest { +public: + EnableMetricRulesRequest(); + ~EnableMetricRulesRequest(); + std::vector getRuleId() const; + void setRuleId(const std::vector &ruleId); + +private: + std::vector ruleId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEMETRICRULESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/EnableSiteMonitorsRequest.h b/cms/include/alibabacloud/cms/model/EnableSiteMonitorsRequest.h index 460c5f08f..d2c297a43 100644 --- a/cms/include/alibabacloud/cms/model/EnableSiteMonitorsRequest.h +++ b/cms/include/alibabacloud/cms/model/EnableSiteMonitorsRequest.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_CMS_MODEL_ENABLESITEMONITORSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLESITEMONITORSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT EnableSiteMonitorsRequest : public RpcServiceRequest - { - - public: - EnableSiteMonitorsRequest(); - ~EnableSiteMonitorsRequest(); - - std::string getTaskIds()const; - void setTaskIds(const std::string& taskIds); - - private: - std::string taskIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLESITEMONITORSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_ENABLESITEMONITORSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLESITEMONITORSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT EnableSiteMonitorsRequest : public RpcServiceRequest { +public: + EnableSiteMonitorsRequest(); + ~EnableSiteMonitorsRequest(); + std::string getTaskIds() const; + void setTaskIds(const std::string &taskIds); + +private: + std::string taskIds_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLESITEMONITORSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/InstallMonitoringAgentRequest.h b/cms/include/alibabacloud/cms/model/InstallMonitoringAgentRequest.h index b2c30df0e..e228d2f1d 100644 --- a/cms/include/alibabacloud/cms/model/InstallMonitoringAgentRequest.h +++ b/cms/include/alibabacloud/cms/model/InstallMonitoringAgentRequest.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_CMS_MODEL_INSTALLMONITORINGAGENTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_INSTALLMONITORINGAGENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT InstallMonitoringAgentRequest : public RpcServiceRequest - { - - public: - InstallMonitoringAgentRequest(); - ~InstallMonitoringAgentRequest(); - - std::vector getInstanceIds()const; - void setInstanceIds(const std::vector& instanceIds); - bool getForce()const; - void setForce(bool force); - std::string getInstallCommand()const; - void setInstallCommand(const std::string& installCommand); - - private: - std::vector instanceIds_; - bool force_; - std::string installCommand_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_INSTALLMONITORINGAGENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_INSTALLMONITORINGAGENTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_INSTALLMONITORINGAGENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT InstallMonitoringAgentRequest : public RpcServiceRequest { +public: + InstallMonitoringAgentRequest(); + ~InstallMonitoringAgentRequest(); + std::vector getInstanceIds() const; + void setInstanceIds(const std::vector &instanceIds); + bool getForce() const; + void setForce(bool force); + std::string getInstallCommand() const; + void setInstallCommand(const std::string &installCommand); + +private: + std::vector instanceIds_; + bool force_; + std::string installCommand_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_INSTALLMONITORINGAGENTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h b/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h index 1426d841c..1853305d1 100644 --- a/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h +++ b/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h @@ -1,70 +1,62 @@ /* * 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_CMS_MODEL_MODIFYGROUPMONITORINGAGENTPROCESSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_MODIFYGROUPMONITORINGAGENTPROCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ModifyGroupMonitoringAgentProcessRequest : public RpcServiceRequest - { - public: - struct AlertConfig - { - std::string times; - std::string noEffectiveInterval; - std::string webhook; - std::string silenceTime; - std::string threshold; - std::string effectiveInterval; - std::string comparisonOperator; - std::string escalationsLevel; - std::string statistics; - }; - - public: - ModifyGroupMonitoringAgentProcessRequest(); - ~ModifyGroupMonitoringAgentProcessRequest(); - - std::vector getAlertConfig()const; - void setAlertConfig(const std::vector& alertConfig); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getMatchExpressFilterRelation()const; - void setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation); - std::string getId()const; - void setId(const std::string& id); - - private: - std::vector alertConfig_; - std::string groupId_; - std::string matchExpressFilterRelation_; - std::string id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYGROUPMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYGROUPMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYGROUPMONITORINGAGENTPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT ModifyGroupMonitoringAgentProcessRequest : public RpcServiceRequest { +public: + struct AlertConfig { + std::string times; + std::string webhook; + std::string noEffectiveInterval; + std::string silenceTime; + std::string threshold; + std::string comparisonOperator; + std::string effectiveInterval; + std::string escalationsLevel; + std::string statistics; + }; + ModifyGroupMonitoringAgentProcessRequest(); + ~ModifyGroupMonitoringAgentProcessRequest(); + std::vector getAlertConfig() const; + void setAlertConfig(const std::vector &alertConfig); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getMatchExpressFilterRelation() const; + void setMatchExpressFilterRelation(const std::string &matchExpressFilterRelation); + std::string getId() const; + void setId(const std::string &id); + +private: + std::vector alertConfig_; + std::string groupId_; + std::string matchExpressFilterRelation_; + std::string id_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYGROUPMONITORINGAGENTPROCESSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h index 640168102..c102ea6cd 100644 --- a/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h +++ b/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h @@ -1,114 +1,106 @@ /* * 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_CMS_MODEL_MODIFYHOSTAVAILABILITYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_MODIFYHOSTAVAILABILITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ModifyHostAvailabilityRequest : public RpcServiceRequest - { - public: - struct AlertConfigEscalationList - { - int times; - std::string metricName; - std::string value; - std::string _operator; - std::string aggregate; - }; - - public: - ModifyHostAvailabilityRequest(); - ~ModifyHostAvailabilityRequest(); - - std::string getTaskOptionHttpMethod()const; - void setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod); - std::string getTaskOptionHttpHeader()const; - void setTaskOptionHttpHeader(const std::string& taskOptionHttpHeader); - std::vector getAlertConfigEscalationList()const; - void setAlertConfigEscalationList(const std::vector& alertConfigEscalationList); - std::string getTaskName()const; - void setTaskName(const std::string& taskName); - int getAlertConfigSilenceTime()const; - void setAlertConfigSilenceTime(int alertConfigSilenceTime); - std::string getTaskOptionHttpResponseCharset()const; - void setTaskOptionHttpResponseCharset(const std::string& taskOptionHttpResponseCharset); - bool getTaskOptionHttpNegative()const; - void setTaskOptionHttpNegative(bool taskOptionHttpNegative); - int getTaskOptionInterval()const; - void setTaskOptionInterval(int taskOptionInterval); - int getAlertConfigNotifyType()const; - void setAlertConfigNotifyType(int alertConfigNotifyType); - std::string getTaskOptionTelnetOrPingHost()const; - void setTaskOptionTelnetOrPingHost(const std::string& taskOptionTelnetOrPingHost); - std::string getTaskOptionHttpResponseMatchContent()const; - void setTaskOptionHttpResponseMatchContent(const std::string& taskOptionHttpResponseMatchContent); - long getId()const; - void setId(long id); - std::vector getInstanceList()const; - void setInstanceList(const std::vector& instanceList); - long getGroupId()const; - void setGroupId(long groupId); - int getAlertConfigEndTime()const; - void setAlertConfigEndTime(int alertConfigEndTime); - std::string getTaskOptionHttpURI()const; - void setTaskOptionHttpURI(const std::string& taskOptionHttpURI); - std::string getTaskScope()const; - void setTaskScope(const std::string& taskScope); - std::string getTaskOptionHttpPostContent()const; - void setTaskOptionHttpPostContent(const std::string& taskOptionHttpPostContent); - int getAlertConfigStartTime()const; - void setAlertConfigStartTime(int alertConfigStartTime); - std::string getAlertConfigWebHook()const; - void setAlertConfigWebHook(const std::string& alertConfigWebHook); - - private: - std::string taskOptionHttpMethod_; - std::string taskOptionHttpHeader_; - std::vector alertConfigEscalationList_; - std::string taskName_; - int alertConfigSilenceTime_; - std::string taskOptionHttpResponseCharset_; - bool taskOptionHttpNegative_; - int taskOptionInterval_; - int alertConfigNotifyType_; - std::string taskOptionTelnetOrPingHost_; - std::string taskOptionHttpResponseMatchContent_; - long id_; - std::vector instanceList_; - long groupId_; - int alertConfigEndTime_; - std::string taskOptionHttpURI_; - std::string taskScope_; - std::string taskOptionHttpPostContent_; - int alertConfigStartTime_; - std::string alertConfigWebHook_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYHOSTAVAILABILITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT ModifyHostAvailabilityRequest : public RpcServiceRequest { +public: + struct AlertConfigEscalationList { + int times; + std::string metricName; + std::string value; + std::string _operator; + std::string aggregate; + }; + ModifyHostAvailabilityRequest(); + ~ModifyHostAvailabilityRequest(); + std::string getTaskOptionHttpMethod() const; + void setTaskOptionHttpMethod(const std::string &taskOptionHttpMethod); + std::string getTaskOptionHttpHeader() const; + void setTaskOptionHttpHeader(const std::string &taskOptionHttpHeader); + std::vector getAlertConfigEscalationList() const; + void setAlertConfigEscalationList(const std::vector &alertConfigEscalationList); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + int getAlertConfigSilenceTime() const; + void setAlertConfigSilenceTime(int alertConfigSilenceTime); + std::string getTaskOptionHttpResponseCharset() const; + void setTaskOptionHttpResponseCharset(const std::string &taskOptionHttpResponseCharset); + bool getTaskOptionHttpNegative() const; + void setTaskOptionHttpNegative(bool taskOptionHttpNegative); + int getTaskOptionInterval() const; + void setTaskOptionInterval(int taskOptionInterval); + int getAlertConfigNotifyType() const; + void setAlertConfigNotifyType(int alertConfigNotifyType); + std::string getTaskOptionTelnetOrPingHost() const; + void setTaskOptionTelnetOrPingHost(const std::string &taskOptionTelnetOrPingHost); + std::string getTaskOptionHttpResponseMatchContent() const; + void setTaskOptionHttpResponseMatchContent(const std::string &taskOptionHttpResponseMatchContent); + long getId() const; + void setId(long id); + std::vector getInstanceList() const; + void setInstanceList(const std::vector &instanceList); + long getGroupId() const; + void setGroupId(long groupId); + int getAlertConfigEndTime() const; + void setAlertConfigEndTime(int alertConfigEndTime); + std::string getTaskOptionHttpURI() const; + void setTaskOptionHttpURI(const std::string &taskOptionHttpURI); + std::string getTaskScope() const; + void setTaskScope(const std::string &taskScope); + std::string getTaskOptionHttpPostContent() const; + void setTaskOptionHttpPostContent(const std::string &taskOptionHttpPostContent); + int getAlertConfigStartTime() const; + void setAlertConfigStartTime(int alertConfigStartTime); + std::string getAlertConfigWebHook() const; + void setAlertConfigWebHook(const std::string &alertConfigWebHook); + +private: + std::string taskOptionHttpMethod_; + std::string taskOptionHttpHeader_; + std::vector alertConfigEscalationList_; + std::string taskName_; + int alertConfigSilenceTime_; + std::string taskOptionHttpResponseCharset_; + bool taskOptionHttpNegative_; + int taskOptionInterval_; + int alertConfigNotifyType_; + std::string taskOptionTelnetOrPingHost_; + std::string taskOptionHttpResponseMatchContent_; + long id_; + std::vector instanceList_; + long groupId_; + int alertConfigEndTime_; + std::string taskOptionHttpURI_; + std::string taskScope_; + std::string taskOptionHttpPostContent_; + int alertConfigStartTime_; + std::string alertConfigWebHook_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYHOSTAVAILABILITYREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/ModifyHostInfoRequest.h b/cms/include/alibabacloud/cms/model/ModifyHostInfoRequest.h index 9e0426663..a081f7d95 100644 --- a/cms/include/alibabacloud/cms/model/ModifyHostInfoRequest.h +++ b/cms/include/alibabacloud/cms/model/ModifyHostInfoRequest.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_CMS_MODEL_MODIFYHOSTINFOREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_MODIFYHOSTINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ModifyHostInfoRequest : public RpcServiceRequest - { - - public: - ModifyHostInfoRequest(); - ~ModifyHostInfoRequest(); - - std::string getHostName()const; - void setHostName(const std::string& hostName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string hostName_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYHOSTINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYHOSTINFOREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYHOSTINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT ModifyHostInfoRequest : public RpcServiceRequest { +public: + ModifyHostInfoRequest(); + ~ModifyHostInfoRequest(); + std::string getHostName() const; + void setHostName(const std::string &hostName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string hostName_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYHOSTINFOREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/ModifyMetricRuleTemplateRequest.h b/cms/include/alibabacloud/cms/model/ModifyMetricRuleTemplateRequest.h index 5ba64011f..d80add23f 100644 --- a/cms/include/alibabacloud/cms/model/ModifyMetricRuleTemplateRequest.h +++ b/cms/include/alibabacloud/cms/model/ModifyMetricRuleTemplateRequest.h @@ -1,83 +1,75 @@ /* * 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_CMS_MODEL_MODIFYMETRICRULETEMPLATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_MODIFYMETRICRULETEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ModifyMetricRuleTemplateRequest : public RpcServiceRequest - { - public: - struct AlertTemplates - { - int period; - std::string escalationsWarnThreshold; - std::string webhook; - std::string escalationsWarnComparisonOperator; - std::string escalationsCriticalStatistics; - int escalationsInfoTimes; - std::string ruleName; - std::string escalationsInfoStatistics; - int escalationsCriticalTimes; - std::string escalationsInfoComparisonOperator; - std::string escalationsWarnStatistics; - std::string escalationsInfoThreshold; - std::string _namespace; - std::string selector; - std::string metricName; - std::string category; - std::string escalationsCriticalComparisonOperator; - int escalationsWarnTimes; - std::string escalationsCriticalThreshold; - }; - - public: - ModifyMetricRuleTemplateRequest(); - ~ModifyMetricRuleTemplateRequest(); - - long getRestVersion()const; - void setRestVersion(long restVersion); - std::string getDescription()const; - void setDescription(const std::string& description); - long getTemplateId()const; - void setTemplateId(long templateId); - std::string getName()const; - void setName(const std::string& name); - std::vector getAlertTemplates()const; - void setAlertTemplates(const std::vector& alertTemplates); - - private: - long restVersion_; - std::string description_; - long templateId_; - std::string name_; - std::vector alertTemplates_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMETRICRULETEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYMETRICRULETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYMETRICRULETEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT ModifyMetricRuleTemplateRequest : public RpcServiceRequest { +public: + struct AlertTemplates { + std::string escalationsWarnThreshold; + int period; + std::string webhook; + std::string escalationsWarnComparisonOperator; + std::string escalationsCriticalStatistics; + int escalationsInfoTimes; + std::string ruleName; + std::string escalationsInfoStatistics; + int escalationsCriticalTimes; + std::string escalationsInfoComparisonOperator; + std::string escalationsInfoThreshold; + std::string escalationsWarnStatistics; + std::string _namespace; + std::string selector; + std::string metricName; + int escalationsWarnTimes; + std::string category; + std::string escalationsCriticalComparisonOperator; + std::string escalationsCriticalThreshold; + }; + ModifyMetricRuleTemplateRequest(); + ~ModifyMetricRuleTemplateRequest(); + long getRestVersion() const; + void setRestVersion(long restVersion); + std::string getDescription() const; + void setDescription(const std::string &description); + long getTemplateId() const; + void setTemplateId(long templateId); + std::string getName() const; + void setName(const std::string &name); + std::vector getAlertTemplates() const; + void setAlertTemplates(const std::vector &alertTemplates); + +private: + long restVersion_; + std::string description_; + long templateId_; + std::string name_; + std::vector alertTemplates_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMETRICRULETEMPLATEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/ModifyMonitorGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupInstancesRequest.h index fc31cadcb..b677315a4 100644 --- a/cms/include/alibabacloud/cms/model/ModifyMonitorGroupInstancesRequest.h +++ b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupInstancesRequest.h @@ -1,59 +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_CMS_MODEL_MODIFYMONITORGROUPINSTANCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ModifyMonitorGroupInstancesRequest : public RpcServiceRequest - { - public: - struct Instances - { - std::string instanceId; - std::string instanceName; - std::string regionId; - std::string category; - }; - - public: - ModifyMonitorGroupInstancesRequest(); - ~ModifyMonitorGroupInstancesRequest(); - - std::vector getInstances()const; - void setInstances(const std::vector& instances); - long getGroupId()const; - void setGroupId(long groupId); - - private: - std::vector instances_; - long groupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPINSTANCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT ModifyMonitorGroupInstancesRequest : public RpcServiceRequest { +public: + struct Instances { + std::string instanceName; + std::string instanceId; + std::string regionId; + std::string category; + }; + ModifyMonitorGroupInstancesRequest(); + ~ModifyMonitorGroupInstancesRequest(); + std::vector getInstances() const; + void setInstances(const std::vector &instances); + long getGroupId() const; + void setGroupId(long groupId); + +private: + std::vector instances_; + long groupId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPINSTANCESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/ModifyMonitorGroupRequest.h b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupRequest.h index 0189f4ff0..fabc7fe85 100644 --- a/cms/include/alibabacloud/cms/model/ModifyMonitorGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupRequest.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_CMS_MODEL_MODIFYMONITORGROUPREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ModifyMonitorGroupRequest : public RpcServiceRequest - { - - public: - ModifyMonitorGroupRequest(); - ~ModifyMonitorGroupRequest(); - - std::string getContactGroups()const; - void setContactGroups(const std::string& contactGroups); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getBindUrls()const; - void setBindUrls(const std::string& bindUrls); - long getServiceId()const; - void setServiceId(long serviceId); - - private: - std::string contactGroups_; - std::string groupId_; - std::string groupName_; - std::string bindUrls_; - long serviceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT ModifyMonitorGroupRequest : public RpcServiceRequest { +public: + ModifyMonitorGroupRequest(); + ~ModifyMonitorGroupRequest(); + std::string getContactGroups() const; + void setContactGroups(const std::string &contactGroups); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getBindUrls() const; + void setBindUrls(const std::string &bindUrls); + long getServiceId() const; + void setServiceId(long serviceId); + +private: + std::string contactGroups_; + std::string groupId_; + std::string groupName_; + std::string bindUrls_; + long serviceId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/ModifySiteMonitorRequest.h b/cms/include/alibabacloud/cms/model/ModifySiteMonitorRequest.h index 73cb9b09c..15ed4cf12 100644 --- a/cms/include/alibabacloud/cms/model/ModifySiteMonitorRequest.h +++ b/cms/include/alibabacloud/cms/model/ModifySiteMonitorRequest.h @@ -1,69 +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. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ModifySiteMonitorRequest : public RpcServiceRequest - { - - public: - ModifySiteMonitorRequest(); - ~ModifySiteMonitorRequest(); - - std::string getAddress()const; - void setAddress(const std::string& address); - std::string getTaskName()const; - void setTaskName(const std::string& taskName); - std::string getIspCities()const; - void setIspCities(const std::string& ispCities); - std::string getOptionsJson()const; - void setOptionsJson(const std::string& optionsJson); - std::string getAlertIds()const; - void setAlertIds(const std::string& alertIds); - std::string getIntervalUnit()const; - void setIntervalUnit(const std::string& intervalUnit); - std::string getInterval()const; - void setInterval(const std::string& interval); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string address_; - std::string taskName_; - std::string ispCities_; - std::string optionsJson_; - std::string alertIds_; - std::string intervalUnit_; - std::string interval_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT ModifySiteMonitorRequest : public RpcServiceRequest { +public: + ModifySiteMonitorRequest(); + ~ModifySiteMonitorRequest(); + std::string getAddress() const; + void setAddress(const std::string &address); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + std::string getIspCities() const; + void setIspCities(const std::string &ispCities); + std::string getOptionsJson() const; + void setOptionsJson(const std::string &optionsJson); + std::string getAlertIds() const; + void setAlertIds(const std::string &alertIds); + std::string getIntervalUnit() const; + void setIntervalUnit(const std::string &intervalUnit); + std::string getInterval() const; + void setInterval(const std::string &interval); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string address_; + std::string taskName_; + std::string ispCities_; + std::string optionsJson_; + std::string alertIds_; + std::string intervalUnit_; + std::string interval_; + std::string taskId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/OpenCmsServiceRequest.h b/cms/include/alibabacloud/cms/model/OpenCmsServiceRequest.h index a7956d2c0..a662f7731 100644 --- a/cms/include/alibabacloud/cms/model/OpenCmsServiceRequest.h +++ b/cms/include/alibabacloud/cms/model/OpenCmsServiceRequest.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_CMS_MODEL_OPENCMSSERVICEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT OpenCmsServiceRequest : public RpcServiceRequest - { - - public: - OpenCmsServiceRequest(); - ~OpenCmsServiceRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT OpenCmsServiceRequest : public RpcServiceRequest { +public: + OpenCmsServiceRequest(); + ~OpenCmsServiceRequest(); + +private: +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutContactGroupRequest.h b/cms/include/alibabacloud/cms/model/PutContactGroupRequest.h index c36173456..8b5d6b627 100644 --- a/cms/include/alibabacloud/cms/model/PutContactGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/PutContactGroupRequest.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_CMS_MODEL_PUTCONTACTGROUPREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTCONTACTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutContactGroupRequest : public RpcServiceRequest - { - - public: - PutContactGroupRequest(); - ~PutContactGroupRequest(); - - bool getEnableSubscribed()const; - void setEnableSubscribed(bool enableSubscribed); - std::string getContactGroupName()const; - void setContactGroupName(const std::string& contactGroupName); - std::string getDescribe()const; - void setDescribe(const std::string& describe); - std::vector getContactNames()const; - void setContactNames(const std::vector& contactNames); - - private: - bool enableSubscribed_; - std::string contactGroupName_; - std::string describe_; - std::vector contactNames_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTCONTACTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTCONTACTGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCONTACTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutContactGroupRequest : public RpcServiceRequest { +public: + PutContactGroupRequest(); + ~PutContactGroupRequest(); + bool getEnableSubscribed() const; + void setEnableSubscribed(bool enableSubscribed); + std::string getContactGroupName() const; + void setContactGroupName(const std::string &contactGroupName); + std::string getDescribe() const; + void setDescribe(const std::string &describe); + std::vector getContactNames() const; + void setContactNames(const std::vector &contactNames); + +private: + bool enableSubscribed_; + std::string contactGroupName_; + std::string describe_; + std::vector contactNames_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCONTACTGROUPREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutContactRequest.h b/cms/include/alibabacloud/cms/model/PutContactRequest.h index eeca79052..7e7b14469 100644 --- a/cms/include/alibabacloud/cms/model/PutContactRequest.h +++ b/cms/include/alibabacloud/cms/model/PutContactRequest.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_CMS_MODEL_PUTCONTACTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTCONTACTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutContactRequest : public RpcServiceRequest - { - - public: - PutContactRequest(); - ~PutContactRequest(); - - std::string getChannelsDingWebHook()const; - void setChannelsDingWebHook(const std::string& channelsDingWebHook); - std::string getContactName()const; - void setContactName(const std::string& contactName); - std::string getChannelsMail()const; - void setChannelsMail(const std::string& channelsMail); - std::string getChannelsAliIM()const; - void setChannelsAliIM(const std::string& channelsAliIM); - std::string getDescribe()const; - void setDescribe(const std::string& describe); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getChannelsSMS()const; - void setChannelsSMS(const std::string& channelsSMS); - - private: - std::string channelsDingWebHook_; - std::string contactName_; - std::string channelsMail_; - std::string channelsAliIM_; - std::string describe_; - std::string lang_; - std::string channelsSMS_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTCONTACTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTCONTACTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCONTACTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutContactRequest : public RpcServiceRequest { +public: + PutContactRequest(); + ~PutContactRequest(); + std::string getChannelsDingWebHook() const; + void setChannelsDingWebHook(const std::string &channelsDingWebHook); + std::string getContactName() const; + void setContactName(const std::string &contactName); + std::string getChannelsMail() const; + void setChannelsMail(const std::string &channelsMail); + std::string getChannelsAliIM() const; + void setChannelsAliIM(const std::string &channelsAliIM); + std::string getDescribe() const; + void setDescribe(const std::string &describe); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getChannelsSMS() const; + void setChannelsSMS(const std::string &channelsSMS); + +private: + std::string channelsDingWebHook_; + std::string contactName_; + std::string channelsMail_; + std::string channelsAliIM_; + std::string describe_; + std::string lang_; + std::string channelsSMS_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCONTACTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutCustomEventRequest.h b/cms/include/alibabacloud/cms/model/PutCustomEventRequest.h index 1d15d30a2..11f3b6400 100644 --- a/cms/include/alibabacloud/cms/model/PutCustomEventRequest.h +++ b/cms/include/alibabacloud/cms/model/PutCustomEventRequest.h @@ -1,56 +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_CMS_MODEL_PUTCUSTOMEVENTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutCustomEventRequest : public RpcServiceRequest - { - public: - struct EventInfo - { - std::string groupId; - std::string time; - std::string eventName; - std::string content; - }; - - public: - PutCustomEventRequest(); - ~PutCustomEventRequest(); - - std::vector getEventInfo()const; - void setEventInfo(const std::vector& eventInfo); - - private: - std::vector eventInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutCustomEventRequest : public RpcServiceRequest { +public: + struct EventInfo { + std::string groupId; + std::string time; + std::string eventName; + std::string content; + }; + PutCustomEventRequest(); + ~PutCustomEventRequest(); + std::vector getEventInfo() const; + void setEventInfo(const std::vector &eventInfo); + +private: + std::vector eventInfo_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutCustomEventRuleRequest.h b/cms/include/alibabacloud/cms/model/PutCustomEventRuleRequest.h index 3e072232b..b65fb7719 100644 --- a/cms/include/alibabacloud/cms/model/PutCustomEventRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/PutCustomEventRuleRequest.h @@ -1,81 +1,75 @@ /* * 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_CMS_MODEL_PUTCUSTOMEVENTRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutCustomEventRuleRequest : public RpcServiceRequest - { - - public: - PutCustomEventRuleRequest(); - ~PutCustomEventRuleRequest(); - - std::string getWebhook()const; - void setWebhook(const std::string& webhook); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::string getThreshold()const; - void setThreshold(const std::string& threshold); - std::string getEffectiveInterval()const; - void setEffectiveInterval(const std::string& effectiveInterval); - std::string getEventName()const; - void setEventName(const std::string& eventName); - std::string getEmailSubject()const; - void setEmailSubject(const std::string& emailSubject); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getContactGroups()const; - void setContactGroups(const std::string& contactGroups); - std::string getLevel()const; - void setLevel(const std::string& level); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); - - private: - std::string webhook_; - std::string ruleName_; - std::string threshold_; - std::string effectiveInterval_; - std::string eventName_; - std::string emailSubject_; - std::string metricName_; - std::string period_; - std::string contactGroups_; - std::string level_; - std::string groupId_; - std::string ruleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutCustomEventRuleRequest : public RpcServiceRequest { +public: + PutCustomEventRuleRequest(); + ~PutCustomEventRuleRequest(); + std::string getWebhook() const; + void setWebhook(const std::string &webhook); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getThreshold() const; + void setThreshold(const std::string &threshold); + std::string getEffectiveInterval() const; + void setEffectiveInterval(const std::string &effectiveInterval); + std::string getEventName() const; + void setEventName(const std::string &eventName); + std::string getEmailSubject() const; + void setEmailSubject(const std::string &emailSubject); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getContactGroups() const; + void setContactGroups(const std::string &contactGroups); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string webhook_; + std::string ruleName_; + std::string threshold_; + std::string effectiveInterval_; + std::string eventName_; + std::string emailSubject_; + std::string metricName_; + std::string period_; + std::string contactGroups_; + std::string level_; + std::string groupId_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutCustomMetricRequest.h b/cms/include/alibabacloud/cms/model/PutCustomMetricRequest.h index 73635d1d6..b215531f3 100644 --- a/cms/include/alibabacloud/cms/model/PutCustomMetricRequest.h +++ b/cms/include/alibabacloud/cms/model/PutCustomMetricRequest.h @@ -1,59 +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_CMS_MODEL_PUTCUSTOMMETRICREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutCustomMetricRequest : public RpcServiceRequest - { - public: - struct MetricList - { - std::string period; - std::string groupId; - std::string values; - std::string time; - std::string metricName; - std::string type; - std::string dimensions; - }; - - public: - PutCustomMetricRequest(); - ~PutCustomMetricRequest(); - - std::vector getMetricList()const; - void setMetricList(const std::vector& metricList); - - private: - std::vector metricList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutCustomMetricRequest : public RpcServiceRequest { +public: + struct MetricList { + std::string period; + std::string groupId; + std::string values; + std::string time; + std::string type; + std::string metricName; + std::string dimensions; + }; + PutCustomMetricRequest(); + ~PutCustomMetricRequest(); + std::vector getMetricList() const; + void setMetricList(const std::vector &metricList); + +private: + std::vector metricList_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutCustomMetricRuleRequest.h b/cms/include/alibabacloud/cms/model/PutCustomMetricRuleRequest.h index 0977ea04c..16a3ac19a 100644 --- a/cms/include/alibabacloud/cms/model/PutCustomMetricRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/PutCustomMetricRuleRequest.h @@ -1,93 +1,87 @@ /* * 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_CMS_MODEL_PUTCUSTOMMETRICRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutCustomMetricRuleRequest : public RpcServiceRequest - { - - public: - PutCustomMetricRuleRequest(); - ~PutCustomMetricRuleRequest(); - - std::string getWebhook()const; - void setWebhook(const std::string& webhook); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::string getThreshold()const; - void setThreshold(const std::string& threshold); - std::string getEffectiveInterval()const; - void setEffectiveInterval(const std::string& effectiveInterval); - std::string getEmailSubject()const; - void setEmailSubject(const std::string& emailSubject); - int getEvaluationCount()const; - void setEvaluationCount(int evaluationCount); - int getSilenceTime()const; - void setSilenceTime(int silenceTime); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getContactGroups()const; - void setContactGroups(const std::string& contactGroups); - std::string getLevel()const; - void setLevel(const std::string& level); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getResources()const; - void setResources(const std::string& resources); - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); - std::string getComparisonOperator()const; - void setComparisonOperator(const std::string& comparisonOperator); - std::string getStatistics()const; - void setStatistics(const std::string& statistics); - - private: - std::string webhook_; - std::string ruleName_; - std::string threshold_; - std::string effectiveInterval_; - std::string emailSubject_; - int evaluationCount_; - int silenceTime_; - std::string metricName_; - std::string period_; - std::string contactGroups_; - std::string level_; - std::string groupId_; - std::string resources_; - std::string ruleId_; - std::string comparisonOperator_; - std::string statistics_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutCustomMetricRuleRequest : public RpcServiceRequest { +public: + PutCustomMetricRuleRequest(); + ~PutCustomMetricRuleRequest(); + std::string getWebhook() const; + void setWebhook(const std::string &webhook); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getThreshold() const; + void setThreshold(const std::string &threshold); + std::string getEffectiveInterval() const; + void setEffectiveInterval(const std::string &effectiveInterval); + std::string getEmailSubject() const; + void setEmailSubject(const std::string &emailSubject); + int getEvaluationCount() const; + void setEvaluationCount(int evaluationCount); + int getSilenceTime() const; + void setSilenceTime(int silenceTime); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getContactGroups() const; + void setContactGroups(const std::string &contactGroups); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getResources() const; + void setResources(const std::string &resources); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + std::string getComparisonOperator() const; + void setComparisonOperator(const std::string &comparisonOperator); + std::string getStatistics() const; + void setStatistics(const std::string &statistics); + +private: + std::string webhook_; + std::string ruleName_; + std::string threshold_; + std::string effectiveInterval_; + std::string emailSubject_; + int evaluationCount_; + int silenceTime_; + std::string metricName_; + std::string period_; + std::string contactGroups_; + std::string level_; + std::string groupId_; + std::string resources_; + std::string ruleId_; + std::string comparisonOperator_; + std::string statistics_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutEventRuleRequest.h b/cms/include/alibabacloud/cms/model/PutEventRuleRequest.h index ad397af09..7b1f2e47b 100644 --- a/cms/include/alibabacloud/cms/model/PutEventRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/PutEventRuleRequest.h @@ -1,73 +1,69 @@ /* * 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_CMS_MODEL_PUTEVENTRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTEVENTRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutEventRuleRequest : public RpcServiceRequest - { - public: - struct EventPattern - { - std::vector levelList; - Struct keywordFilter; - std::string product; - std::vector statusList; - std::vector nameList; - std::vector eventTypeList; - }; - - public: - PutEventRuleRequest(); - ~PutEventRuleRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::vector getEventPattern()const; - void setEventPattern(const std::vector& eventPattern); - std::string getEventType()const; - void setEventType(const std::string& eventType); - std::string getState()const; - void setState(const std::string& state); - - private: - std::string groupId_; - std::string description_; - std::string ruleName_; - std::vector eventPattern_; - std::string eventType_; - std::string state_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTEVENTRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTEVENTRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutEventRuleRequest : public RpcServiceRequest { +public: + struct EventPattern { + struct KeywordFilter { + std::string relation; + }; + KeywordFilter keywordFilter; + std::string product; + std::string customFilters; + std::string sQLFilter; + }; + PutEventRuleRequest(); + ~PutEventRuleRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + long getSilenceTime() const; + void setSilenceTime(long silenceTime); + std::string getState() const; + void setState(const std::string &state); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::vector getEventPattern() const; + void setEventPattern(const std::vector &eventPattern); + std::string getEventType() const; + void setEventType(const std::string &eventType); + +private: + std::string description_; + std::string ruleName_; + long silenceTime_; + std::string state_; + std::string groupId_; + std::vector eventPattern_; + std::string eventType_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutEventRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/PutEventRuleTargetsRequest.h index 5be0a120c..2c2a9edfd 100644 --- a/cms/include/alibabacloud/cms/model/PutEventRuleTargetsRequest.h +++ b/cms/include/alibabacloud/cms/model/PutEventRuleTargetsRequest.h @@ -1,97 +1,97 @@ /* * 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_CMS_MODEL_PUTEVENTRULETARGETSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTEVENTRULETARGETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutEventRuleTargetsRequest : public RpcServiceRequest - { - public: - struct WebhookParameters - { - std::string protocol; - std::string method; - std::string id; - std::string url; - }; - struct ContactParameters - { - std::string level; - std::string id; - std::string contactGroupName; - }; - struct SlsParameters - { - std::string project; - std::string id; - std::string region; - std::string logStore; - }; - struct MnsParameters - { - std::string id; - std::string region; - std::string queue; - }; - struct FcParameters - { - std::string functionName; - std::string serviceName; - std::string id; - std::string region; - }; - - public: - PutEventRuleTargetsRequest(); - ~PutEventRuleTargetsRequest(); - - std::vector getWebhookParameters()const; - void setWebhookParameters(const std::vector& webhookParameters); - std::vector getContactParameters()const; - void setContactParameters(const std::vector& contactParameters); - std::vector getSlsParameters()const; - void setSlsParameters(const std::vector& slsParameters); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::vector getMnsParameters()const; - void setMnsParameters(const std::vector& mnsParameters); - std::vector getFcParameters()const; - void setFcParameters(const std::vector& fcParameters); - - private: - std::vector webhookParameters_; - std::vector contactParameters_; - std::vector slsParameters_; - std::string ruleName_; - std::vector mnsParameters_; - std::vector fcParameters_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTRULETARGETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTEVENTRULETARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTEVENTRULETARGETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutEventRuleTargetsRequest : public RpcServiceRequest { +public: + struct WebhookParameters { + std::string protocol; + std::string method; + std::string id; + std::string url; + }; + struct ContactParameters { + std::string level; + std::string id; + std::string contactGroupName; + }; + struct SlsParameters { + std::string project; + std::string id; + std::string region; + std::string logStore; + }; + struct OpenApiParameters { + std::string product; + std::string role; + std::string action; + std::string id; + std::string arn; + std::string region; + std::string version; + }; + struct MnsParameters { + std::string id; + std::string region; + std::string queue; + }; + struct FcParameters { + std::string functionName; + std::string serviceName; + std::string id; + std::string region; + }; + PutEventRuleTargetsRequest(); + ~PutEventRuleTargetsRequest(); + std::vector getWebhookParameters() const; + void setWebhookParameters(const std::vector &webhookParameters); + std::vector getContactParameters() const; + void setContactParameters(const std::vector &contactParameters); + std::vector getSlsParameters() const; + void setSlsParameters(const std::vector &slsParameters); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::vector getOpenApiParameters() const; + void setOpenApiParameters(const std::vector &openApiParameters); + std::vector getMnsParameters() const; + void setMnsParameters(const std::vector &mnsParameters); + std::vector getFcParameters() const; + void setFcParameters(const std::vector &fcParameters); + +private: + std::vector webhookParameters_; + std::vector contactParameters_; + std::vector slsParameters_; + std::string ruleName_; + std::vector openApiParameters_; + std::vector mnsParameters_; + std::vector fcParameters_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTRULETARGETSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutExporterOutputRequest.h b/cms/include/alibabacloud/cms/model/PutExporterOutputRequest.h index 227b077e5..21f8f4fe9 100644 --- a/cms/include/alibabacloud/cms/model/PutExporterOutputRequest.h +++ b/cms/include/alibabacloud/cms/model/PutExporterOutputRequest.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_CMS_MODEL_PUTEXPORTEROUTPUTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTEXPORTEROUTPUTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutExporterOutputRequest : public RpcServiceRequest - { - - public: - PutExporterOutputRequest(); - ~PutExporterOutputRequest(); - - std::string getDestName()const; - void setDestName(const std::string& destName); - std::string getConfigJson()const; - void setConfigJson(const std::string& configJson); - std::string getDestType()const; - void setDestType(const std::string& destType); - std::string getDesc()const; - void setDesc(const std::string& desc); - - private: - std::string destName_; - std::string configJson_; - std::string destType_; - std::string desc_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTEXPORTEROUTPUTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTEXPORTEROUTPUTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTEXPORTEROUTPUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutExporterOutputRequest : public RpcServiceRequest { +public: + PutExporterOutputRequest(); + ~PutExporterOutputRequest(); + std::string getDestName() const; + void setDestName(const std::string &destName); + std::string getConfigJson() const; + void setConfigJson(const std::string &configJson); + std::string getDestType() const; + void setDestType(const std::string &destType); + std::string getDesc() const; + void setDesc(const std::string &desc); + +private: + std::string destName_; + std::string configJson_; + std::string destType_; + std::string desc_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTEXPORTEROUTPUTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutExporterRuleRequest.h b/cms/include/alibabacloud/cms/model/PutExporterRuleRequest.h index 7c7375ca7..780885595 100644 --- a/cms/include/alibabacloud/cms/model/PutExporterRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/PutExporterRuleRequest.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_CMS_MODEL_PUTEXPORTERRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTEXPORTERRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutExporterRuleRequest : public RpcServiceRequest - { - - public: - PutExporterRuleRequest(); - ~PutExporterRuleRequest(); - - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::vector getDstNames()const; - void setDstNames(const std::vector& dstNames); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getTargetWindows()const; - void setTargetWindows(const std::string& targetWindows); - std::string getDescribe()const; - void setDescribe(const std::string& describe); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - - private: - std::string ruleName_; - std::vector dstNames_; - std::string _namespace_; - std::string targetWindows_; - std::string describe_; - std::string metricName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTEXPORTERRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTEXPORTERRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTEXPORTERRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutExporterRuleRequest : public RpcServiceRequest { +public: + PutExporterRuleRequest(); + ~PutExporterRuleRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::vector getDstNames() const; + void setDstNames(const std::vector &dstNames); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getTargetWindows() const; + void setTargetWindows(const std::string &targetWindows); + std::string getDescribe() const; + void setDescribe(const std::string &describe); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + +private: + std::string ruleName_; + std::vector dstNames_; + std::string _namespace_; + std::string targetWindows_; + std::string describe_; + std::string metricName_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTEXPORTERRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h b/cms/include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h index 6194fa156..085124a23 100644 --- a/cms/include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h @@ -1,135 +1,145 @@ /* * 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_CMS_MODEL_PUTGROUPMETRICRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTGROUPMETRICRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutGroupMetricRuleRequest : public RpcServiceRequest - { - - public: - PutGroupMetricRuleRequest(); - ~PutGroupMetricRuleRequest(); - - std::string getWebhook()const; - void setWebhook(const std::string& webhook); - std::string getEscalationsWarnComparisonOperator()const; - void setEscalationsWarnComparisonOperator(const std::string& escalationsWarnComparisonOperator); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::string getEscalationsInfoStatistics()const; - void setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics); - std::string getEffectiveInterval()const; - void setEffectiveInterval(const std::string& effectiveInterval); - std::string getEscalationsInfoComparisonOperator()const; - void setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator); - std::string getNoDataPolicy()const; - void setNoDataPolicy(const std::string& noDataPolicy); - std::string getNoEffectiveInterval()const; - void setNoEffectiveInterval(const std::string& noEffectiveInterval); - std::string getEmailSubject()const; - void setEmailSubject(const std::string& emailSubject); - int getSilenceTime()const; - void setSilenceTime(int silenceTime); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - int getEscalationsWarnTimes()const; - void setEscalationsWarnTimes(int escalationsWarnTimes); - Struct getCompositeExpression()const; - void setCompositeExpression(const Struct& compositeExpression); - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getEscalationsWarnThreshold()const; - void setEscalationsWarnThreshold(const std::string& escalationsWarnThreshold); - std::string getContactGroups()const; - void setContactGroups(const std::string& contactGroups); - std::string getEscalationsCriticalStatistics()const; - void setEscalationsCriticalStatistics(const std::string& escalationsCriticalStatistics); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - int getEscalationsInfoTimes()const; - void setEscalationsInfoTimes(int escalationsInfoTimes); - std::string getExtraDimensionJson()const; - void setExtraDimensionJson(const std::string& extraDimensionJson); - int getEscalationsCriticalTimes()const; - void setEscalationsCriticalTimes(int escalationsCriticalTimes); - std::string getEscalationsWarnStatistics()const; - void setEscalationsWarnStatistics(const std::string& escalationsWarnStatistics); - std::string getEscalationsInfoThreshold()const; - void setEscalationsInfoThreshold(const std::string& escalationsInfoThreshold); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getInterval()const; - void setInterval(const std::string& interval); - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); - std::string getCategory()const; - void setCategory(const std::string& category); - std::string getEscalationsCriticalComparisonOperator()const; - void setEscalationsCriticalComparisonOperator(const std::string& escalationsCriticalComparisonOperator); - std::string getEscalationsCriticalThreshold()const; - void setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - - private: - std::string webhook_; - std::string escalationsWarnComparisonOperator_; - std::string ruleName_; - std::string escalationsInfoStatistics_; - std::string effectiveInterval_; - std::string escalationsInfoComparisonOperator_; - std::string noDataPolicy_; - std::string noEffectiveInterval_; - std::string emailSubject_; - int silenceTime_; - std::string metricName_; - int escalationsWarnTimes_; - Struct compositeExpression_; - std::string period_; - std::string escalationsWarnThreshold_; - std::string contactGroups_; - std::string escalationsCriticalStatistics_; - std::string groupId_; - int escalationsInfoTimes_; - std::string extraDimensionJson_; - int escalationsCriticalTimes_; - std::string escalationsWarnStatistics_; - std::string escalationsInfoThreshold_; - std::string _namespace_; - std::string interval_; - std::string ruleId_; - std::string category_; - std::string escalationsCriticalComparisonOperator_; - std::string escalationsCriticalThreshold_; - std::string dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTGROUPMETRICRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTGROUPMETRICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTGROUPMETRICRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutGroupMetricRuleRequest : public RpcServiceRequest { +public: + struct CompositeExpression { + int times; + struct ExpressionListItem { + std::string period; + std::string threshold; + std::string id; + std::string metricName; + std::string comparisonOperator; + std::string statistics; + }; + ExpressionListItem expressionListItem; + std::vector expressionList; + std::string level; + std::string expressionRaw; + std::string expressionListJoin; + }; + PutGroupMetricRuleRequest(); + ~PutGroupMetricRuleRequest(); + std::string getWebhook() const; + void setWebhook(const std::string &webhook); + std::string getEscalationsWarnComparisonOperator() const; + void setEscalationsWarnComparisonOperator(const std::string &escalationsWarnComparisonOperator); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getEscalationsInfoStatistics() const; + void setEscalationsInfoStatistics(const std::string &escalationsInfoStatistics); + std::string getEffectiveInterval() const; + void setEffectiveInterval(const std::string &effectiveInterval); + std::string getEscalationsInfoComparisonOperator() const; + void setEscalationsInfoComparisonOperator(const std::string &escalationsInfoComparisonOperator); + std::string getNoDataPolicy() const; + void setNoDataPolicy(const std::string &noDataPolicy); + std::string getNoEffectiveInterval() const; + void setNoEffectiveInterval(const std::string &noEffectiveInterval); + std::string getEmailSubject() const; + void setEmailSubject(const std::string &emailSubject); + int getSilenceTime() const; + void setSilenceTime(int silenceTime); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + int getEscalationsWarnTimes() const; + void setEscalationsWarnTimes(int escalationsWarnTimes); + CompositeExpression getCompositeExpression() const; + void setCompositeExpression(const CompositeExpression &compositeExpression); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getEscalationsWarnThreshold() const; + void setEscalationsWarnThreshold(const std::string &escalationsWarnThreshold); + std::string getContactGroups() const; + void setContactGroups(const std::string &contactGroups); + std::string getEscalationsCriticalStatistics() const; + void setEscalationsCriticalStatistics(const std::string &escalationsCriticalStatistics); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + int getEscalationsInfoTimes() const; + void setEscalationsInfoTimes(int escalationsInfoTimes); + std::string getExtraDimensionJson() const; + void setExtraDimensionJson(const std::string &extraDimensionJson); + int getEscalationsCriticalTimes() const; + void setEscalationsCriticalTimes(int escalationsCriticalTimes); + std::string getEscalationsWarnStatistics() const; + void setEscalationsWarnStatistics(const std::string &escalationsWarnStatistics); + std::string getEscalationsInfoThreshold() const; + void setEscalationsInfoThreshold(const std::string &escalationsInfoThreshold); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getInterval() const; + void setInterval(const std::string &interval); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + std::string getCategory() const; + void setCategory(const std::string &category); + std::string getEscalationsCriticalComparisonOperator() const; + void setEscalationsCriticalComparisonOperator(const std::string &escalationsCriticalComparisonOperator); + std::string getEscalationsCriticalThreshold() const; + void setEscalationsCriticalThreshold(const std::string &escalationsCriticalThreshold); + std::string getDimensions() const; + void setDimensions(const std::string &dimensions); + +private: + std::string webhook_; + std::string escalationsWarnComparisonOperator_; + std::string ruleName_; + std::string escalationsInfoStatistics_; + std::string effectiveInterval_; + std::string escalationsInfoComparisonOperator_; + std::string noDataPolicy_; + std::string noEffectiveInterval_; + std::string emailSubject_; + int silenceTime_; + std::string metricName_; + int escalationsWarnTimes_; + CompositeExpression compositeExpression_; + std::string period_; + std::string escalationsWarnThreshold_; + std::string contactGroups_; + std::string escalationsCriticalStatistics_; + std::string groupId_; + int escalationsInfoTimes_; + std::string extraDimensionJson_; + int escalationsCriticalTimes_; + std::string escalationsWarnStatistics_; + std::string escalationsInfoThreshold_; + std::string _namespace_; + std::string interval_; + std::string ruleId_; + std::string category_; + std::string escalationsCriticalComparisonOperator_; + std::string escalationsCriticalThreshold_; + std::string dimensions_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTGROUPMETRICRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutHybridMonitorMetricDataRequest.h b/cms/include/alibabacloud/cms/model/PutHybridMonitorMetricDataRequest.h new file mode 100644 index 000000000..dc48d1209 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutHybridMonitorMetricDataRequest.h @@ -0,0 +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_CMS_MODEL_PUTHYBRIDMONITORMETRICDATAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTHYBRIDMONITORMETRICDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutHybridMonitorMetricDataRequest : public RpcServiceRequest { +public: + struct MetricList { + std::string name; + std::string value; + struct Labels { + std::string value; + std::string key; + }; + std::vector labels; + long tS; + }; + PutHybridMonitorMetricDataRequest(); + ~PutHybridMonitorMetricDataRequest(); + std::vector getMetricList() const; + void setMetricList(const std::vector &metricList); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::vector metricList_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTHYBRIDMONITORMETRICDATAREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutHybridMonitorMetricDataResult.h b/cms/include/alibabacloud/cms/model/PutHybridMonitorMetricDataResult.h new file mode 100644 index 000000000..d66fc54b6 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutHybridMonitorMetricDataResult.h @@ -0,0 +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_CMS_MODEL_PUTHYBRIDMONITORMETRICDATARESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTHYBRIDMONITORMETRICDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutHybridMonitorMetricDataResult : public ServiceResult + { + public: + struct Detail + { + long index; + std::string errorMessage; + }; + + + PutHybridMonitorMetricDataResult(); + explicit PutHybridMonitorMetricDataResult(const std::string &payload); + ~PutHybridMonitorMetricDataResult(); + std::vector getErrorDetail()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector errorDetail_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTHYBRIDMONITORMETRICDATARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutLogMonitorRequest.h b/cms/include/alibabacloud/cms/model/PutLogMonitorRequest.h index a5748db31..4645941f4 100644 --- a/cms/include/alibabacloud/cms/model/PutLogMonitorRequest.h +++ b/cms/include/alibabacloud/cms/model/PutLogMonitorRequest.h @@ -1,105 +1,95 @@ /* * 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_CMS_MODEL_PUTLOGMONITORREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutLogMonitorRequest : public RpcServiceRequest - { - public: - struct ValueFilter - { - std::string value; - std::string key; - std::string _operator; - }; - struct Groupbys - { - std::string fieldName; - std::string alias; - }; - struct Aggregates - { - std::string fieldName; - std::string function; - std::string alias; - }; - - public: - PutLogMonitorRequest(); - ~PutLogMonitorRequest(); - - std::string getSlsLogstore()const; - void setSlsLogstore(const std::string& slsLogstore); - std::string getSlsProject()const; - void setSlsProject(const std::string& slsProject); - std::vector getValueFilter()const; - void setValueFilter(const std::vector& valueFilter); - std::string getMetricExpress()const; - void setMetricExpress(const std::string& metricExpress); - std::string getSlsRegionId()const; - void setSlsRegionId(const std::string& slsRegionId); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getTumblingwindows()const; - void setTumblingwindows(const std::string& tumblingwindows); - std::string getGroupBy()const; - void setGroupBy(const std::string& groupBy); - std::string getValueFilterRelation()const; - void setValueFilterRelation(const std::string& valueFilterRelation); - std::string getUnit()const; - void setUnit(const std::string& unit); - std::vector getGroupbys()const; - void setGroupbys(const std::vector& groupbys); - std::string getLogId()const; - void setLogId(const std::string& logId); - std::vector getAggregates()const; - void setAggregates(const std::vector& aggregates); - - private: - std::string slsLogstore_; - std::string slsProject_; - std::vector valueFilter_; - std::string metricExpress_; - std::string slsRegionId_; - std::string metricName_; - std::string groupId_; - std::string tumblingwindows_; - std::string groupBy_; - std::string valueFilterRelation_; - std::string unit_; - std::vector groupbys_; - std::string logId_; - std::vector aggregates_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutLogMonitorRequest : public RpcServiceRequest { +public: + struct ValueFilter { + std::string value; + std::string key; + std::string _operator; + }; + struct Groupbys { + std::string fieldName; + std::string alias; + }; + struct Aggregates { + std::string fieldName; + std::string function; + std::string alias; + }; + PutLogMonitorRequest(); + ~PutLogMonitorRequest(); + std::string getSlsLogstore() const; + void setSlsLogstore(const std::string &slsLogstore); + std::string getSlsProject() const; + void setSlsProject(const std::string &slsProject); + std::vector getValueFilter() const; + void setValueFilter(const std::vector &valueFilter); + std::string getMetricExpress() const; + void setMetricExpress(const std::string &metricExpress); + std::string getSlsRegionId() const; + void setSlsRegionId(const std::string &slsRegionId); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getTumblingwindows() const; + void setTumblingwindows(const std::string &tumblingwindows); + std::string getGroupBy() const; + void setGroupBy(const std::string &groupBy); + std::string getValueFilterRelation() const; + void setValueFilterRelation(const std::string &valueFilterRelation); + std::string getUnit() const; + void setUnit(const std::string &unit); + std::vector getGroupbys() const; + void setGroupbys(const std::vector &groupbys); + std::string getLogId() const; + void setLogId(const std::string &logId); + std::vector getAggregates() const; + void setAggregates(const std::vector &aggregates); + +private: + std::string slsLogstore_; + std::string slsProject_; + std::vector valueFilter_; + std::string metricExpress_; + std::string slsRegionId_; + std::string metricName_; + std::string groupId_; + std::string tumblingwindows_; + std::string groupBy_; + std::string valueFilterRelation_; + std::string unit_; + std::vector groupbys_; + std::string logId_; + std::vector aggregates_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h index 30374f328..35b4047b1 100644 --- a/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h +++ b/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h @@ -1,58 +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. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_PUTMETRICRULETARGETSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTMETRICRULETARGETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutMetricRuleTargetsRequest : public RpcServiceRequest - { - public: - struct Targets - { - std::string level; - std::string id; - std::string arn; - }; - - public: - PutMetricRuleTargetsRequest(); - ~PutMetricRuleTargetsRequest(); - - std::vector getTargets()const; - void setTargets(const std::vector& targets); - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); - - private: - std::vector targets_; - std::string ruleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTMETRICRULETARGETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTMETRICRULETARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTMETRICRULETARGETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutMetricRuleTargetsRequest : public RpcServiceRequest { +public: + struct Targets { + std::string level; + std::string id; + std::string arn; + }; + PutMetricRuleTargetsRequest(); + ~PutMetricRuleTargetsRequest(); + std::vector getTargets() const; + void setTargets(const std::vector &targets); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::vector targets_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTMETRICRULETARGETSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleRequest.h b/cms/include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleRequest.h index 26a5c19e5..d1a11f852 100644 --- a/cms/include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleRequest.h @@ -1,64 +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_CMS_MODEL_PUTMONITORGROUPDYNAMICRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTMONITORGROUPDYNAMICRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutMonitorGroupDynamicRuleRequest : public RpcServiceRequest - { - public: - struct GroupRules - { - std::string filterRelation; - struct Filters - { - std::string function; - std::string name; - std::string value; - }; - std::vector filters; - std::string category; - }; - - public: - PutMonitorGroupDynamicRuleRequest(); - ~PutMonitorGroupDynamicRuleRequest(); - - std::vector getGroupRules()const; - void setGroupRules(const std::vector& groupRules); - long getGroupId()const; - void setGroupId(long groupId); - - private: - std::vector groupRules_; - long groupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTMONITORGROUPDYNAMICRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTMONITORGROUPDYNAMICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTMONITORGROUPDYNAMICRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutMonitorGroupDynamicRuleRequest : public RpcServiceRequest { +public: + struct GroupRules { + std::string filterRelation; + struct Filters { + std::string function; + std::string name; + std::string value; + }; + std::vector filters; + std::string category; + }; + PutMonitorGroupDynamicRuleRequest(); + ~PutMonitorGroupDynamicRuleRequest(); + std::vector getGroupRules() const; + void setGroupRules(const std::vector &groupRules); + long getGroupId() const; + void setGroupId(long groupId); + +private: + std::vector groupRules_; + long groupId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTMONITORGROUPDYNAMICRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutMonitoringConfigRequest.h b/cms/include/alibabacloud/cms/model/PutMonitoringConfigRequest.h index 3200b686d..db482d8b5 100644 --- a/cms/include/alibabacloud/cms/model/PutMonitoringConfigRequest.h +++ b/cms/include/alibabacloud/cms/model/PutMonitoringConfigRequest.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_CMS_MODEL_PUTMONITORINGCONFIGREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTMONITORINGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutMonitoringConfigRequest : public RpcServiceRequest - { - - public: - PutMonitoringConfigRequest(); - ~PutMonitoringConfigRequest(); - - bool getAutoInstall()const; - void setAutoInstall(bool autoInstall); - bool getEnableInstallAgentNewECS()const; - void setEnableInstallAgentNewECS(bool enableInstallAgentNewECS); - - private: - bool autoInstall_; - bool enableInstallAgentNewECS_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTMONITORINGCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTMONITORINGCONFIGREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTMONITORINGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutMonitoringConfigRequest : public RpcServiceRequest { +public: + PutMonitoringConfigRequest(); + ~PutMonitoringConfigRequest(); + bool getAutoInstall() const; + void setAutoInstall(bool autoInstall); + bool getEnableInstallAgentNewECS() const; + void setEnableInstallAgentNewECS(bool enableInstallAgentNewECS); + +private: + bool autoInstall_; + bool enableInstallAgentNewECS_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTMONITORINGCONFIGREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutResourceMetricRuleRequest.h b/cms/include/alibabacloud/cms/model/PutResourceMetricRuleRequest.h index 63d53f4ef..53d5ed309 100644 --- a/cms/include/alibabacloud/cms/model/PutResourceMetricRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/PutResourceMetricRuleRequest.h @@ -1,144 +1,169 @@ /* * 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_CMS_MODEL_PUTRESOURCEMETRICRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutResourceMetricRuleRequest : public RpcServiceRequest - { - - public: - PutResourceMetricRuleRequest(); - ~PutResourceMetricRuleRequest(); - - std::string getWebhook()const; - void setWebhook(const std::string& webhook); - std::string getEscalationsWarnComparisonOperator()const; - void setEscalationsWarnComparisonOperator(const std::string& escalationsWarnComparisonOperator); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::string getEffectiveInterval()const; - void setEffectiveInterval(const std::string& effectiveInterval); - std::string getNoDataPolicy()const; - void setNoDataPolicy(const std::string& noDataPolicy); - std::string getNoEffectiveInterval()const; - void setNoEffectiveInterval(const std::string& noEffectiveInterval); - std::string getEmailSubject()const; - void setEmailSubject(const std::string& emailSubject); - std::string getOptions()const; - void setOptions(const std::string& options); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - int getEscalationsWarnTimes()const; - void setEscalationsWarnTimes(int escalationsWarnTimes); - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getEscalationsWarnThreshold()const; - void setEscalationsWarnThreshold(const std::string& escalationsWarnThreshold); - std::string getContactGroups()const; - void setContactGroups(const std::string& contactGroups); - std::string getEscalationsCriticalStatistics()const; - void setEscalationsCriticalStatistics(const std::string& escalationsCriticalStatistics); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - Array getLabels()const; - void setLabels(const Array& labels); - std::string getInterval()const; - void setInterval(const std::string& interval); - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); - std::string getEscalationsCriticalThreshold()const; - void setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold); - std::string getEscalationsInfoStatistics()const; - void setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics); - std::string getEscalationsInfoComparisonOperator()const; - void setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator); - int getSilenceTime()const; - void setSilenceTime(int silenceTime); - Struct getPrometheus()const; - void setPrometheus(const Struct& prometheus); - Struct getCompositeExpression()const; - void setCompositeExpression(const Struct& compositeExpression); - std::string getResources()const; - void setResources(const std::string& resources); - int getEscalationsInfoTimes()const; - void setEscalationsInfoTimes(int escalationsInfoTimes); - std::string getGroupBy()const; - void setGroupBy(const std::string& groupBy); - int getEscalationsCriticalTimes()const; - void setEscalationsCriticalTimes(int escalationsCriticalTimes); - std::string getEscalationsWarnStatistics()const; - void setEscalationsWarnStatistics(const std::string& escalationsWarnStatistics); - std::string getEscalationsInfoThreshold()const; - void setEscalationsInfoThreshold(const std::string& escalationsInfoThreshold); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getEscalationsCriticalComparisonOperator()const; - void setEscalationsCriticalComparisonOperator(const std::string& escalationsCriticalComparisonOperator); - - private: - std::string webhook_; - std::string escalationsWarnComparisonOperator_; - std::string ruleName_; - std::string effectiveInterval_; - std::string noDataPolicy_; - std::string noEffectiveInterval_; - std::string emailSubject_; - std::string options_; - std::string metricName_; - int escalationsWarnTimes_; - std::string period_; - std::string escalationsWarnThreshold_; - std::string contactGroups_; - std::string escalationsCriticalStatistics_; - std::string groupId_; - std::string groupName_; - Array labels_; - std::string interval_; - std::string ruleId_; - std::string escalationsCriticalThreshold_; - std::string escalationsInfoStatistics_; - std::string escalationsInfoComparisonOperator_; - int silenceTime_; - Struct prometheus_; - Struct compositeExpression_; - std::string resources_; - int escalationsInfoTimes_; - std::string groupBy_; - int escalationsCriticalTimes_; - std::string escalationsWarnStatistics_; - std::string escalationsInfoThreshold_; - std::string _namespace_; - std::string escalationsCriticalComparisonOperator_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutResourceMetricRuleRequest : public RpcServiceRequest { +public: + struct Labels { + std::string value; + std::string key; + }; + struct Prometheus { + std::string promQL; + int times; + std::string level; + struct AnnotationsItem { + std::string value; + std::string key; + }; + AnnotationsItem annotationsItem; + std::vector annotations; + }; + struct CompositeExpression { + int times; + struct ExpressionListItem { + long period; + std::string threshold; + std::string id; + std::string metricName; + std::string comparisonOperator; + std::string statistics; + }; + ExpressionListItem expressionListItem; + std::vector expressionList; + std::string level; + std::string expressionRaw; + std::string expressionListJoin; + }; + PutResourceMetricRuleRequest(); + ~PutResourceMetricRuleRequest(); + std::string getWebhook() const; + void setWebhook(const std::string &webhook); + std::string getEscalationsWarnComparisonOperator() const; + void setEscalationsWarnComparisonOperator(const std::string &escalationsWarnComparisonOperator); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getEffectiveInterval() const; + void setEffectiveInterval(const std::string &effectiveInterval); + std::string getNoDataPolicy() const; + void setNoDataPolicy(const std::string &noDataPolicy); + std::string getNoEffectiveInterval() const; + void setNoEffectiveInterval(const std::string &noEffectiveInterval); + std::string getEmailSubject() const; + void setEmailSubject(const std::string &emailSubject); + std::string getOptions() const; + void setOptions(const std::string &options); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + int getEscalationsWarnTimes() const; + void setEscalationsWarnTimes(int escalationsWarnTimes); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getEscalationsWarnThreshold() const; + void setEscalationsWarnThreshold(const std::string &escalationsWarnThreshold); + std::string getContactGroups() const; + void setContactGroups(const std::string &contactGroups); + std::string getEscalationsCriticalStatistics() const; + void setEscalationsCriticalStatistics(const std::string &escalationsCriticalStatistics); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::vector getLabels() const; + void setLabels(const std::vector &labels); + std::string getInterval() const; + void setInterval(const std::string &interval); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + std::string getEscalationsCriticalThreshold() const; + void setEscalationsCriticalThreshold(const std::string &escalationsCriticalThreshold); + std::string getEscalationsInfoStatistics() const; + void setEscalationsInfoStatistics(const std::string &escalationsInfoStatistics); + std::string getEscalationsInfoComparisonOperator() const; + void setEscalationsInfoComparisonOperator(const std::string &escalationsInfoComparisonOperator); + int getSilenceTime() const; + void setSilenceTime(int silenceTime); + Prometheus getPrometheus() const; + void setPrometheus(const Prometheus &prometheus); + CompositeExpression getCompositeExpression() const; + void setCompositeExpression(const CompositeExpression &compositeExpression); + std::string getResources() const; + void setResources(const std::string &resources); + int getEscalationsInfoTimes() const; + void setEscalationsInfoTimes(int escalationsInfoTimes); + std::string getGroupBy() const; + void setGroupBy(const std::string &groupBy); + int getEscalationsCriticalTimes() const; + void setEscalationsCriticalTimes(int escalationsCriticalTimes); + std::string getEscalationsWarnStatistics() const; + void setEscalationsWarnStatistics(const std::string &escalationsWarnStatistics); + std::string getEscalationsInfoThreshold() const; + void setEscalationsInfoThreshold(const std::string &escalationsInfoThreshold); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getEscalationsCriticalComparisonOperator() const; + void setEscalationsCriticalComparisonOperator(const std::string &escalationsCriticalComparisonOperator); + +private: + std::string webhook_; + std::string escalationsWarnComparisonOperator_; + std::string ruleName_; + std::string effectiveInterval_; + std::string noDataPolicy_; + std::string noEffectiveInterval_; + std::string emailSubject_; + std::string options_; + std::string metricName_; + int escalationsWarnTimes_; + std::string period_; + std::string escalationsWarnThreshold_; + std::string contactGroups_; + std::string escalationsCriticalStatistics_; + std::string groupId_; + std::string groupName_; + std::vector labels_; + std::string interval_; + std::string ruleId_; + std::string escalationsCriticalThreshold_; + std::string escalationsInfoStatistics_; + std::string escalationsInfoComparisonOperator_; + int silenceTime_; + Prometheus prometheus_; + CompositeExpression compositeExpression_; + std::string resources_; + int escalationsInfoTimes_; + std::string groupBy_; + int escalationsCriticalTimes_; + std::string escalationsWarnStatistics_; + std::string escalationsInfoThreshold_; + std::string _namespace_; + std::string escalationsCriticalComparisonOperator_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULEREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/PutResourceMetricRulesRequest.h b/cms/include/alibabacloud/cms/model/PutResourceMetricRulesRequest.h index 71f9dc546..af3c45d1b 100644 --- a/cms/include/alibabacloud/cms/model/PutResourceMetricRulesRequest.h +++ b/cms/include/alibabacloud/cms/model/PutResourceMetricRulesRequest.h @@ -1,80 +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. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutResourceMetricRulesRequest : public RpcServiceRequest - { - public: - struct Rules - { - std::string webhook; - std::string escalationsWarnComparisonOperator; - std::string ruleName; - std::string escalationsInfoStatistics; - std::string effectiveInterval; - std::string escalationsInfoComparisonOperator; - std::string noDataPolicy; - std::string noEffectiveInterval; - std::string emailSubject; - int silenceTime; - std::string metricName; - int escalationsWarnTimes; - std::string compositeExpression; - std::string escalationsWarnThreshold; - std::string period; - std::string contactGroups; - std::string escalationsCriticalStatistics; - std::string groupId; - int escalationsInfoTimes; - std::string resources; - int escalationsCriticalTimes; - std::string escalationsInfoThreshold; - std::string escalationsWarnStatistics; - std::string _namespace; - std::string interval; - std::string ruleId; - std::string escalationsCriticalComparisonOperator; - std::string escalationsCriticalThreshold; - }; - - public: - PutResourceMetricRulesRequest(); - ~PutResourceMetricRulesRequest(); - - std::vector getRules()const; - void setRules(const std::vector& rules); - - private: - std::vector rules_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT PutResourceMetricRulesRequest : public RpcServiceRequest { +public: + struct Rules { + std::string webhook; + std::string escalationsWarnComparisonOperator; + std::string ruleName; + std::string escalationsInfoStatistics; + std::string effectiveInterval; + std::string escalationsInfoComparisonOperator; + std::string noDataPolicy; + std::string noEffectiveInterval; + std::string emailSubject; + int silenceTime; + std::string metricName; + int escalationsWarnTimes; + std::string compositeExpression; + std::string escalationsWarnThreshold; + std::string period; + std::string contactGroups; + std::string escalationsCriticalStatistics; + std::string groupId; + int escalationsInfoTimes; + std::string resources; + int escalationsCriticalTimes; + std::string escalationsInfoThreshold; + std::string escalationsWarnStatistics; + std::string _namespace; + std::string interval; + std::string ruleId; + std::string escalationsCriticalComparisonOperator; + std::string escalationsCriticalThreshold; + }; + PutResourceMetricRulesRequest(); + ~PutResourceMetricRulesRequest(); + std::vector getRules() const; + void setRules(const std::vector &rules); + +private: + std::vector rules_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/RemoveTagsRequest.h b/cms/include/alibabacloud/cms/model/RemoveTagsRequest.h index 45806190f..6146b31b8 100644 --- a/cms/include/alibabacloud/cms/model/RemoveTagsRequest.h +++ b/cms/include/alibabacloud/cms/model/RemoveTagsRequest.h @@ -1,57 +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_CMS_MODEL_REMOVETAGSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_REMOVETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT RemoveTagsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - RemoveTagsRequest(); - ~RemoveTagsRequest(); - - std::vector getGroupIds()const; - void setGroupIds(const std::vector& groupIds); - std::vector getTag()const; - void setTag(const std::vector& tag); - - private: - std::vector groupIds_; - std::vector tag_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_REMOVETAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_REMOVETAGSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_REMOVETAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT RemoveTagsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + RemoveTagsRequest(); + ~RemoveTagsRequest(); + std::vector getGroupIds() const; + void setGroupIds(const std::vector &groupIds); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector groupIds_; + std::vector tag_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_REMOVETAGSREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/SendDryRunSystemEventRequest.h b/cms/include/alibabacloud/cms/model/SendDryRunSystemEventRequest.h index db5a49298..036ec1bb4 100644 --- a/cms/include/alibabacloud/cms/model/SendDryRunSystemEventRequest.h +++ b/cms/include/alibabacloud/cms/model/SendDryRunSystemEventRequest.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_CMS_MODEL_SENDDRYRUNSYSTEMEVENTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_SENDDRYRUNSYSTEMEVENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT SendDryRunSystemEventRequest : public RpcServiceRequest - { - - public: - SendDryRunSystemEventRequest(); - ~SendDryRunSystemEventRequest(); - - std::string getProduct()const; - void setProduct(const std::string& product); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getEventName()const; - void setEventName(const std::string& eventName); - std::string getEventContent()const; - void setEventContent(const std::string& eventContent); - - private: - std::string product_; - std::string groupId_; - std::string eventName_; - std::string eventContent_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_SENDDRYRUNSYSTEMEVENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_SENDDRYRUNSYSTEMEVENTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_SENDDRYRUNSYSTEMEVENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT SendDryRunSystemEventRequest : public RpcServiceRequest { +public: + SendDryRunSystemEventRequest(); + ~SendDryRunSystemEventRequest(); + std::string getProduct() const; + void setProduct(const std::string &product); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getEventName() const; + void setEventName(const std::string &eventName); + std::string getEventContent() const; + void setEventContent(const std::string &eventContent); + +private: + std::string product_; + std::string groupId_; + std::string eventName_; + std::string eventContent_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_SENDDRYRUNSYSTEMEVENTREQUEST_H_ diff --git a/cms/include/alibabacloud/cms/model/UninstallMonitoringAgentRequest.h b/cms/include/alibabacloud/cms/model/UninstallMonitoringAgentRequest.h index 850e764a3..019597fd4 100644 --- a/cms/include/alibabacloud/cms/model/UninstallMonitoringAgentRequest.h +++ b/cms/include/alibabacloud/cms/model/UninstallMonitoringAgentRequest.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_CMS_MODEL_UNINSTALLMONITORINGAGENTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_UNINSTALLMONITORINGAGENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT UninstallMonitoringAgentRequest : public RpcServiceRequest - { - - public: - UninstallMonitoringAgentRequest(); - ~UninstallMonitoringAgentRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_UNINSTALLMONITORINGAGENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_UNINSTALLMONITORINGAGENTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_UNINSTALLMONITORINGAGENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cms { +namespace Model { +class ALIBABACLOUD_CMS_EXPORT UninstallMonitoringAgentRequest : public RpcServiceRequest { +public: + UninstallMonitoringAgentRequest(); + ~UninstallMonitoringAgentRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Cms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CMS_MODEL_UNINSTALLMONITORINGAGENTREQUEST_H_ diff --git a/cms/src/CmsClient.cc b/cms/src/CmsClient.cc index 89f9e1764..ef57d8940 100644 --- a/cms/src/CmsClient.cc +++ b/cms/src/CmsClient.cc @@ -31,21 +31,21 @@ CmsClient::CmsClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cms"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "Cms"); } CmsClient::CmsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cms"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "Cms"); } CmsClient::CmsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cms"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "Cms"); } CmsClient::~CmsClient() @@ -4839,6 +4839,42 @@ CmsClient::PutGroupMetricRuleOutcomeCallable CmsClient::putGroupMetricRuleCallab return task->get_future(); } +CmsClient::PutHybridMonitorMetricDataOutcome CmsClient::putHybridMonitorMetricData(const PutHybridMonitorMetricDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PutHybridMonitorMetricDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PutHybridMonitorMetricDataOutcome(PutHybridMonitorMetricDataResult(outcome.result())); + else + return PutHybridMonitorMetricDataOutcome(outcome.error()); +} + +void CmsClient::putHybridMonitorMetricDataAsync(const PutHybridMonitorMetricDataRequest& request, const PutHybridMonitorMetricDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, putHybridMonitorMetricData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::PutHybridMonitorMetricDataOutcomeCallable CmsClient::putHybridMonitorMetricDataCallable(const PutHybridMonitorMetricDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->putHybridMonitorMetricData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CmsClient::PutLogMonitorOutcome CmsClient::putLogMonitor(const PutLogMonitorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cms/src/model/AddTagsRequest.cc b/cms/src/model/AddTagsRequest.cc index 797548916..2f3cdbea0 100644 --- a/cms/src/model/AddTagsRequest.cc +++ b/cms/src/model/AddTagsRequest.cc @@ -1,58 +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. - */ - -#include - -using AlibabaCloud::Cms::Model::AddTagsRequest; - -AddTagsRequest::AddTagsRequest() : - RpcServiceRequest("cms", "2019-01-01", "AddTags") -{ - setMethod(HttpRequest::Method::Post); -} - -AddTagsRequest::~AddTagsRequest() -{} - -std::vector AddTagsRequest::getGroupIds()const -{ - return groupIds_; + */ + +#include + +using AlibabaCloud::Cms::Model::AddTagsRequest; + +AddTagsRequest::AddTagsRequest() + : RpcServiceRequest("cms", "2019-01-01", "AddTags") { + setMethod(HttpRequest::Method::Post); } -void AddTagsRequest::setGroupIds(const std::vector& groupIds) -{ - groupIds_ = groupIds; - for(int dep1 = 0; dep1!= groupIds.size(); dep1++) { - setParameter("GroupIds."+ std::to_string(dep1), groupIds.at(dep1)); - } +AddTagsRequest::~AddTagsRequest() {} + +std::vector AddTagsRequest::getGroupIds() const { + return groupIds_; } -std::vector AddTagsRequest::getTag()const -{ - return tag_; +void AddTagsRequest::setGroupIds(const std::vector &groupIds) { + groupIds_ = groupIds; } -void AddTagsRequest::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 AddTagsRequest::getTag() const { + return tag_; +} + +void AddTagsRequest::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/cms/src/model/ApplyMetricRuleTemplateRequest.cc b/cms/src/model/ApplyMetricRuleTemplateRequest.cc index cb9afc8ad..71eb393a2 100644 --- a/cms/src/model/ApplyMetricRuleTemplateRequest.cc +++ b/cms/src/model/ApplyMetricRuleTemplateRequest.cc @@ -1,117 +1,99 @@ /* * 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::Cms::Model::ApplyMetricRuleTemplateRequest; - -ApplyMetricRuleTemplateRequest::ApplyMetricRuleTemplateRequest() : - RpcServiceRequest("cms", "2019-01-01", "ApplyMetricRuleTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -ApplyMetricRuleTemplateRequest::~ApplyMetricRuleTemplateRequest() -{} - -std::string ApplyMetricRuleTemplateRequest::getApplyMode()const -{ - return applyMode_; + */ + +#include + +using AlibabaCloud::Cms::Model::ApplyMetricRuleTemplateRequest; + +ApplyMetricRuleTemplateRequest::ApplyMetricRuleTemplateRequest() + : RpcServiceRequest("cms", "2019-01-01", "ApplyMetricRuleTemplate") { + setMethod(HttpRequest::Method::Post); } -void ApplyMetricRuleTemplateRequest::setApplyMode(const std::string& applyMode) -{ - applyMode_ = applyMode; - setParameter("ApplyMode", applyMode); +ApplyMetricRuleTemplateRequest::~ApplyMetricRuleTemplateRequest() {} + +std::string ApplyMetricRuleTemplateRequest::getApplyMode() const { + return applyMode_; } -std::string ApplyMetricRuleTemplateRequest::getWebhook()const -{ - return webhook_; +void ApplyMetricRuleTemplateRequest::setApplyMode(const std::string &applyMode) { + applyMode_ = applyMode; + setParameter(std::string("ApplyMode"), applyMode); } -void ApplyMetricRuleTemplateRequest::setWebhook(const std::string& webhook) -{ - webhook_ = webhook; - setParameter("Webhook", webhook); +std::string ApplyMetricRuleTemplateRequest::getWebhook() const { + return webhook_; } -std::string ApplyMetricRuleTemplateRequest::getTemplateIds()const -{ - return templateIds_; +void ApplyMetricRuleTemplateRequest::setWebhook(const std::string &webhook) { + webhook_ = webhook; + setParameter(std::string("Webhook"), webhook); } -void ApplyMetricRuleTemplateRequest::setTemplateIds(const std::string& templateIds) -{ - templateIds_ = templateIds; - setParameter("TemplateIds", templateIds); +std::string ApplyMetricRuleTemplateRequest::getTemplateIds() const { + return templateIds_; } -long ApplyMetricRuleTemplateRequest::getEnableEndTime()const -{ - return enableEndTime_; +void ApplyMetricRuleTemplateRequest::setTemplateIds(const std::string &templateIds) { + templateIds_ = templateIds; + setParameter(std::string("TemplateIds"), templateIds); } -void ApplyMetricRuleTemplateRequest::setEnableEndTime(long enableEndTime) -{ - enableEndTime_ = enableEndTime; - setParameter("EnableEndTime", std::to_string(enableEndTime)); +long ApplyMetricRuleTemplateRequest::getEnableEndTime() const { + return enableEndTime_; } -long ApplyMetricRuleTemplateRequest::getGroupId()const -{ - return groupId_; +void ApplyMetricRuleTemplateRequest::setEnableEndTime(long enableEndTime) { + enableEndTime_ = enableEndTime; + setParameter(std::string("EnableEndTime"), std::to_string(enableEndTime)); } -void ApplyMetricRuleTemplateRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +long ApplyMetricRuleTemplateRequest::getGroupId() const { + return groupId_; } -long ApplyMetricRuleTemplateRequest::getNotifyLevel()const -{ - return notifyLevel_; +void ApplyMetricRuleTemplateRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } -void ApplyMetricRuleTemplateRequest::setNotifyLevel(long notifyLevel) -{ - notifyLevel_ = notifyLevel; - setParameter("NotifyLevel", std::to_string(notifyLevel)); +long ApplyMetricRuleTemplateRequest::getNotifyLevel() const { + return notifyLevel_; } -long ApplyMetricRuleTemplateRequest::getEnableStartTime()const -{ - return enableStartTime_; +void ApplyMetricRuleTemplateRequest::setNotifyLevel(long notifyLevel) { + notifyLevel_ = notifyLevel; + setParameter(std::string("NotifyLevel"), std::to_string(notifyLevel)); } -void ApplyMetricRuleTemplateRequest::setEnableStartTime(long enableStartTime) -{ - enableStartTime_ = enableStartTime; - setParameter("EnableStartTime", std::to_string(enableStartTime)); +long ApplyMetricRuleTemplateRequest::getEnableStartTime() const { + return enableStartTime_; } -long ApplyMetricRuleTemplateRequest::getSilenceTime()const -{ - return silenceTime_; +void ApplyMetricRuleTemplateRequest::setEnableStartTime(long enableStartTime) { + enableStartTime_ = enableStartTime; + setParameter(std::string("EnableStartTime"), std::to_string(enableStartTime)); } -void ApplyMetricRuleTemplateRequest::setSilenceTime(long silenceTime) -{ - silenceTime_ = silenceTime; - setParameter("SilenceTime", std::to_string(silenceTime)); +long ApplyMetricRuleTemplateRequest::getSilenceTime() const { + return silenceTime_; +} + +void ApplyMetricRuleTemplateRequest::setSilenceTime(long silenceTime) { + silenceTime_ = silenceTime; + setParameter(std::string("SilenceTime"), std::to_string(silenceTime)); } diff --git a/cms/src/model/ApplyMetricRuleTemplateResult.cc b/cms/src/model/ApplyMetricRuleTemplateResult.cc index b6b49ab7a..ce4dc863f 100644 --- a/cms/src/model/ApplyMetricRuleTemplateResult.cc +++ b/cms/src/model/ApplyMetricRuleTemplateResult.cc @@ -46,24 +46,24 @@ void ApplyMetricRuleTemplateResult::parse(const std::string &payload) for (auto resourceNodeAlertResultsResult : allAlertResultsNode) { Resource::Result resultObject; - if(!resourceNodeAlertResultsResult["RuleId"].isNull()) - resultObject.ruleId = resourceNodeAlertResultsResult["RuleId"].asString(); - if(!resourceNodeAlertResultsResult["Message"].isNull()) - resultObject.message = resourceNodeAlertResultsResult["Message"].asString(); - if(!resourceNodeAlertResultsResult["RuleName"].isNull()) - resultObject.ruleName = resourceNodeAlertResultsResult["RuleName"].asString(); if(!resourceNodeAlertResultsResult["Code"].isNull()) resultObject.code = resourceNodeAlertResultsResult["Code"].asString(); + if(!resourceNodeAlertResultsResult["Message"].isNull()) + resultObject.message = resourceNodeAlertResultsResult["Message"].asString(); if(!resourceNodeAlertResultsResult["Success"].isNull()) resultObject.success = resourceNodeAlertResultsResult["Success"].asString() == "true"; + if(!resourceNodeAlertResultsResult["RuleName"].isNull()) + resultObject.ruleName = resourceNodeAlertResultsResult["RuleName"].asString(); + if(!resourceNodeAlertResultsResult["RuleId"].isNull()) + resultObject.ruleId = resourceNodeAlertResultsResult["RuleId"].asString(); resource_.alertResults.push_back(resultObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/CreateCmsCallNumOrderRequest.cc b/cms/src/model/CreateCmsCallNumOrderRequest.cc index 587ae8d8b..63d72acba 100644 --- a/cms/src/model/CreateCmsCallNumOrderRequest.cc +++ b/cms/src/model/CreateCmsCallNumOrderRequest.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::Cms::Model::CreateCmsCallNumOrderRequest; - -CreateCmsCallNumOrderRequest::CreateCmsCallNumOrderRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateCmsCallNumOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCmsCallNumOrderRequest::~CreateCmsCallNumOrderRequest() -{} - -int CreateCmsCallNumOrderRequest::getAutoRenewPeriod()const -{ - return autoRenewPeriod_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateCmsCallNumOrderRequest; + +CreateCmsCallNumOrderRequest::CreateCmsCallNumOrderRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateCmsCallNumOrder") { + setMethod(HttpRequest::Method::Post); } -void CreateCmsCallNumOrderRequest::setAutoRenewPeriod(int autoRenewPeriod) -{ - autoRenewPeriod_ = autoRenewPeriod; - setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod)); +CreateCmsCallNumOrderRequest::~CreateCmsCallNumOrderRequest() {} + +int CreateCmsCallNumOrderRequest::getAutoRenewPeriod() const { + return autoRenewPeriod_; } -int CreateCmsCallNumOrderRequest::getPeriod()const -{ - return period_; +void CreateCmsCallNumOrderRequest::setAutoRenewPeriod(int autoRenewPeriod) { + autoRenewPeriod_ = autoRenewPeriod; + setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod)); } -void CreateCmsCallNumOrderRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int CreateCmsCallNumOrderRequest::getPeriod() const { + return period_; } -bool CreateCmsCallNumOrderRequest::getAutoPay()const -{ - return autoPay_; +void CreateCmsCallNumOrderRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateCmsCallNumOrderRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool CreateCmsCallNumOrderRequest::getAutoPay() const { + return autoPay_; } -bool CreateCmsCallNumOrderRequest::getAutoUseCoupon()const -{ - return autoUseCoupon_; +void CreateCmsCallNumOrderRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreateCmsCallNumOrderRequest::setAutoUseCoupon(bool autoUseCoupon) -{ - autoUseCoupon_ = autoUseCoupon; - setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false"); +bool CreateCmsCallNumOrderRequest::getAutoUseCoupon() const { + return autoUseCoupon_; } -std::string CreateCmsCallNumOrderRequest::getPeriodUnit()const -{ - return periodUnit_; +void CreateCmsCallNumOrderRequest::setAutoUseCoupon(bool autoUseCoupon) { + autoUseCoupon_ = autoUseCoupon; + setParameter(std::string("AutoUseCoupon"), autoUseCoupon ? "true" : "false"); } -void CreateCmsCallNumOrderRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string CreateCmsCallNumOrderRequest::getPeriodUnit() const { + return periodUnit_; } -std::string CreateCmsCallNumOrderRequest::getPhoneCount()const -{ - return phoneCount_; +void CreateCmsCallNumOrderRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void CreateCmsCallNumOrderRequest::setPhoneCount(const std::string& phoneCount) -{ - phoneCount_ = phoneCount; - setParameter("PhoneCount", phoneCount); +std::string CreateCmsCallNumOrderRequest::getPhoneCount() const { + return phoneCount_; +} + +void CreateCmsCallNumOrderRequest::setPhoneCount(const std::string &phoneCount) { + phoneCount_ = phoneCount; + setParameter(std::string("PhoneCount"), phoneCount); } diff --git a/cms/src/model/CreateCmsOrderRequest.cc b/cms/src/model/CreateCmsOrderRequest.cc index 8bceffd05..a52bfea17 100644 --- a/cms/src/model/CreateCmsOrderRequest.cc +++ b/cms/src/model/CreateCmsOrderRequest.cc @@ -1,216 +1,180 @@ /* * 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::Cms::Model::CreateCmsOrderRequest; - -CreateCmsOrderRequest::CreateCmsOrderRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateCmsOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCmsOrderRequest::~CreateCmsOrderRequest() -{} - -std::string CreateCmsOrderRequest::getSmsCount()const -{ - return smsCount_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateCmsOrderRequest; + +CreateCmsOrderRequest::CreateCmsOrderRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateCmsOrder") { + setMethod(HttpRequest::Method::Post); } -void CreateCmsOrderRequest::setSmsCount(const std::string& smsCount) -{ - smsCount_ = smsCount; - setParameter("SmsCount", smsCount); +CreateCmsOrderRequest::~CreateCmsOrderRequest() {} + +std::string CreateCmsOrderRequest::getSmsCount() const { + return smsCount_; } -bool CreateCmsOrderRequest::getAutoUseCoupon()const -{ - return autoUseCoupon_; +void CreateCmsOrderRequest::setSmsCount(const std::string &smsCount) { + smsCount_ = smsCount; + setParameter(std::string("SmsCount"), smsCount); } -void CreateCmsOrderRequest::setAutoUseCoupon(bool autoUseCoupon) -{ - autoUseCoupon_ = autoUseCoupon; - setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false"); +bool CreateCmsOrderRequest::getAutoUseCoupon() const { + return autoUseCoupon_; } -std::string CreateCmsOrderRequest::getLogMonitorStream()const -{ - return logMonitorStream_; +void CreateCmsOrderRequest::setAutoUseCoupon(bool autoUseCoupon) { + autoUseCoupon_ = autoUseCoupon; + setParameter(std::string("AutoUseCoupon"), autoUseCoupon ? "true" : "false"); } -void CreateCmsOrderRequest::setLogMonitorStream(const std::string& logMonitorStream) -{ - logMonitorStream_ = logMonitorStream; - setParameter("LogMonitorStream", logMonitorStream); +std::string CreateCmsOrderRequest::getLogMonitorStream() const { + return logMonitorStream_; } -std::string CreateCmsOrderRequest::getCustomTimeSeries()const -{ - return customTimeSeries_; +void CreateCmsOrderRequest::setLogMonitorStream(const std::string &logMonitorStream) { + logMonitorStream_ = logMonitorStream; + setParameter(std::string("LogMonitorStream"), logMonitorStream); } -void CreateCmsOrderRequest::setCustomTimeSeries(const std::string& customTimeSeries) -{ - customTimeSeries_ = customTimeSeries; - setParameter("CustomTimeSeries", customTimeSeries); +std::string CreateCmsOrderRequest::getCustomTimeSeries() const { + return customTimeSeries_; } -std::string CreateCmsOrderRequest::getApiCount()const -{ - return apiCount_; +void CreateCmsOrderRequest::setCustomTimeSeries(const std::string &customTimeSeries) { + customTimeSeries_ = customTimeSeries; + setParameter(std::string("CustomTimeSeries"), customTimeSeries); } -void CreateCmsOrderRequest::setApiCount(const std::string& apiCount) -{ - apiCount_ = apiCount; - setParameter("ApiCount", apiCount); +std::string CreateCmsOrderRequest::getApiCount() const { + return apiCount_; } -std::string CreateCmsOrderRequest::getPhoneCount()const -{ - return phoneCount_; +void CreateCmsOrderRequest::setApiCount(const std::string &apiCount) { + apiCount_ = apiCount; + setParameter(std::string("ApiCount"), apiCount); } -void CreateCmsOrderRequest::setPhoneCount(const std::string& phoneCount) -{ - phoneCount_ = phoneCount; - setParameter("PhoneCount", phoneCount); +std::string CreateCmsOrderRequest::getPhoneCount() const { + return phoneCount_; } -int CreateCmsOrderRequest::getAutoRenewPeriod()const -{ - return autoRenewPeriod_; +void CreateCmsOrderRequest::setPhoneCount(const std::string &phoneCount) { + phoneCount_ = phoneCount; + setParameter(std::string("PhoneCount"), phoneCount); } -void CreateCmsOrderRequest::setAutoRenewPeriod(int autoRenewPeriod) -{ - autoRenewPeriod_ = autoRenewPeriod; - setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod)); +int CreateCmsOrderRequest::getAutoRenewPeriod() const { + return autoRenewPeriod_; } -int CreateCmsOrderRequest::getPeriod()const -{ - return period_; +void CreateCmsOrderRequest::setAutoRenewPeriod(int autoRenewPeriod) { + autoRenewPeriod_ = autoRenewPeriod; + setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod)); } -void CreateCmsOrderRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int CreateCmsOrderRequest::getPeriod() const { + return period_; } -bool CreateCmsOrderRequest::getAutoPay()const -{ - return autoPay_; +void CreateCmsOrderRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateCmsOrderRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool CreateCmsOrderRequest::getAutoPay() const { + return autoPay_; } -std::string CreateCmsOrderRequest::getSuggestType()const -{ - return suggestType_; +void CreateCmsOrderRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreateCmsOrderRequest::setSuggestType(const std::string& suggestType) -{ - suggestType_ = suggestType; - setParameter("SuggestType", suggestType); +std::string CreateCmsOrderRequest::getSuggestType() const { + return suggestType_; } -std::string CreateCmsOrderRequest::getEventStoreNum()const -{ - return eventStoreNum_; +void CreateCmsOrderRequest::setSuggestType(const std::string &suggestType) { + suggestType_ = suggestType; + setParameter(std::string("SuggestType"), suggestType); } -void CreateCmsOrderRequest::setEventStoreNum(const std::string& eventStoreNum) -{ - eventStoreNum_ = eventStoreNum; - setParameter("EventStoreNum", eventStoreNum); +std::string CreateCmsOrderRequest::getEventStoreNum() const { + return eventStoreNum_; } -std::string CreateCmsOrderRequest::getSiteTaskNum()const -{ - return siteTaskNum_; +void CreateCmsOrderRequest::setEventStoreNum(const std::string &eventStoreNum) { + eventStoreNum_ = eventStoreNum; + setParameter(std::string("EventStoreNum"), eventStoreNum); } -void CreateCmsOrderRequest::setSiteTaskNum(const std::string& siteTaskNum) -{ - siteTaskNum_ = siteTaskNum; - setParameter("SiteTaskNum", siteTaskNum); +std::string CreateCmsOrderRequest::getSiteTaskNum() const { + return siteTaskNum_; } -std::string CreateCmsOrderRequest::getPeriodUnit()const -{ - return periodUnit_; +void CreateCmsOrderRequest::setSiteTaskNum(const std::string &siteTaskNum) { + siteTaskNum_ = siteTaskNum; + setParameter(std::string("SiteTaskNum"), siteTaskNum); } -void CreateCmsOrderRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string CreateCmsOrderRequest::getPeriodUnit() const { + return periodUnit_; } -std::string CreateCmsOrderRequest::getSiteOperatorNum()const -{ - return siteOperatorNum_; +void CreateCmsOrderRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void CreateCmsOrderRequest::setSiteOperatorNum(const std::string& siteOperatorNum) -{ - siteOperatorNum_ = siteOperatorNum; - setParameter("SiteOperatorNum", siteOperatorNum); +std::string CreateCmsOrderRequest::getSiteOperatorNum() const { + return siteOperatorNum_; } -std::string CreateCmsOrderRequest::getSiteEcsNum()const -{ - return siteEcsNum_; +void CreateCmsOrderRequest::setSiteOperatorNum(const std::string &siteOperatorNum) { + siteOperatorNum_ = siteOperatorNum; + setParameter(std::string("SiteOperatorNum"), siteOperatorNum); } -void CreateCmsOrderRequest::setSiteEcsNum(const std::string& siteEcsNum) -{ - siteEcsNum_ = siteEcsNum; - setParameter("SiteEcsNum", siteEcsNum); +std::string CreateCmsOrderRequest::getSiteEcsNum() const { + return siteEcsNum_; } -std::string CreateCmsOrderRequest::getEventStoreTime()const -{ - return eventStoreTime_; +void CreateCmsOrderRequest::setSiteEcsNum(const std::string &siteEcsNum) { + siteEcsNum_ = siteEcsNum; + setParameter(std::string("SiteEcsNum"), siteEcsNum); } -void CreateCmsOrderRequest::setEventStoreTime(const std::string& eventStoreTime) -{ - eventStoreTime_ = eventStoreTime; - setParameter("EventStoreTime", eventStoreTime); +std::string CreateCmsOrderRequest::getEventStoreTime() const { + return eventStoreTime_; } -std::string CreateCmsOrderRequest::getPayType()const -{ - return payType_; +void CreateCmsOrderRequest::setEventStoreTime(const std::string &eventStoreTime) { + eventStoreTime_ = eventStoreTime; + setParameter(std::string("EventStoreTime"), eventStoreTime); } -void CreateCmsOrderRequest::setPayType(const std::string& payType) -{ - payType_ = payType; - setParameter("PayType", payType); +std::string CreateCmsOrderRequest::getPayType() const { + return payType_; +} + +void CreateCmsOrderRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); } diff --git a/cms/src/model/CreateCmsSmspackageOrderRequest.cc b/cms/src/model/CreateCmsSmspackageOrderRequest.cc index 66f979fd7..19ce3b153 100644 --- a/cms/src/model/CreateCmsSmspackageOrderRequest.cc +++ b/cms/src/model/CreateCmsSmspackageOrderRequest.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::Cms::Model::CreateCmsSmspackageOrderRequest; - -CreateCmsSmspackageOrderRequest::CreateCmsSmspackageOrderRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateCmsSmspackageOrder") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCmsSmspackageOrderRequest::~CreateCmsSmspackageOrderRequest() -{} - -int CreateCmsSmspackageOrderRequest::getAutoRenewPeriod()const -{ - return autoRenewPeriod_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateCmsSmspackageOrderRequest; + +CreateCmsSmspackageOrderRequest::CreateCmsSmspackageOrderRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateCmsSmspackageOrder") { + setMethod(HttpRequest::Method::Post); } -void CreateCmsSmspackageOrderRequest::setAutoRenewPeriod(int autoRenewPeriod) -{ - autoRenewPeriod_ = autoRenewPeriod; - setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod)); +CreateCmsSmspackageOrderRequest::~CreateCmsSmspackageOrderRequest() {} + +int CreateCmsSmspackageOrderRequest::getAutoRenewPeriod() const { + return autoRenewPeriod_; } -int CreateCmsSmspackageOrderRequest::getPeriod()const -{ - return period_; +void CreateCmsSmspackageOrderRequest::setAutoRenewPeriod(int autoRenewPeriod) { + autoRenewPeriod_ = autoRenewPeriod; + setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod)); } -void CreateCmsSmspackageOrderRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int CreateCmsSmspackageOrderRequest::getPeriod() const { + return period_; } -bool CreateCmsSmspackageOrderRequest::getAutoPay()const -{ - return autoPay_; +void CreateCmsSmspackageOrderRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateCmsSmspackageOrderRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool CreateCmsSmspackageOrderRequest::getAutoPay() const { + return autoPay_; } -std::string CreateCmsSmspackageOrderRequest::getSmsCount()const -{ - return smsCount_; +void CreateCmsSmspackageOrderRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreateCmsSmspackageOrderRequest::setSmsCount(const std::string& smsCount) -{ - smsCount_ = smsCount; - setParameter("SmsCount", smsCount); +std::string CreateCmsSmspackageOrderRequest::getSmsCount() const { + return smsCount_; } -bool CreateCmsSmspackageOrderRequest::getAutoUseCoupon()const -{ - return autoUseCoupon_; +void CreateCmsSmspackageOrderRequest::setSmsCount(const std::string &smsCount) { + smsCount_ = smsCount; + setParameter(std::string("SmsCount"), smsCount); } -void CreateCmsSmspackageOrderRequest::setAutoUseCoupon(bool autoUseCoupon) -{ - autoUseCoupon_ = autoUseCoupon; - setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false"); +bool CreateCmsSmspackageOrderRequest::getAutoUseCoupon() const { + return autoUseCoupon_; } -std::string CreateCmsSmspackageOrderRequest::getPeriodUnit()const -{ - return periodUnit_; +void CreateCmsSmspackageOrderRequest::setAutoUseCoupon(bool autoUseCoupon) { + autoUseCoupon_ = autoUseCoupon; + setParameter(std::string("AutoUseCoupon"), autoUseCoupon ? "true" : "false"); } -void CreateCmsSmspackageOrderRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string CreateCmsSmspackageOrderRequest::getPeriodUnit() const { + return periodUnit_; +} + +void CreateCmsSmspackageOrderRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } diff --git a/cms/src/model/CreateDynamicTagGroupRequest.cc b/cms/src/model/CreateDynamicTagGroupRequest.cc index ad6bf1ff8..9d8afe3ff 100644 --- a/cms/src/model/CreateDynamicTagGroupRequest.cc +++ b/cms/src/model/CreateDynamicTagGroupRequest.cc @@ -1,126 +1,102 @@ /* * 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::Cms::Model::CreateDynamicTagGroupRequest; - -CreateDynamicTagGroupRequest::CreateDynamicTagGroupRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateDynamicTagGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDynamicTagGroupRequest::~CreateDynamicTagGroupRequest() -{} - -bool CreateDynamicTagGroupRequest::getEnableSubscribeEvent()const -{ - return enableSubscribeEvent_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateDynamicTagGroupRequest; + +CreateDynamicTagGroupRequest::CreateDynamicTagGroupRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateDynamicTagGroup") { + setMethod(HttpRequest::Method::Post); } -void CreateDynamicTagGroupRequest::setEnableSubscribeEvent(bool enableSubscribeEvent) -{ - enableSubscribeEvent_ = enableSubscribeEvent; - setParameter("EnableSubscribeEvent", enableSubscribeEvent ? "true" : "false"); +CreateDynamicTagGroupRequest::~CreateDynamicTagGroupRequest() {} + +bool CreateDynamicTagGroupRequest::getEnableSubscribeEvent() const { + return enableSubscribeEvent_; } -std::string CreateDynamicTagGroupRequest::getMatchExpressFilterRelation()const -{ - return matchExpressFilterRelation_; +void CreateDynamicTagGroupRequest::setEnableSubscribeEvent(bool enableSubscribeEvent) { + enableSubscribeEvent_ = enableSubscribeEvent; + setParameter(std::string("EnableSubscribeEvent"), enableSubscribeEvent ? "true" : "false"); } -void CreateDynamicTagGroupRequest::setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation) -{ - matchExpressFilterRelation_ = matchExpressFilterRelation; - setParameter("MatchExpressFilterRelation", matchExpressFilterRelation); +std::string CreateDynamicTagGroupRequest::getMatchExpressFilterRelation() const { + return matchExpressFilterRelation_; } -bool CreateDynamicTagGroupRequest::getEnableInstallAgent()const -{ - return enableInstallAgent_; +void CreateDynamicTagGroupRequest::setMatchExpressFilterRelation(const std::string &matchExpressFilterRelation) { + matchExpressFilterRelation_ = matchExpressFilterRelation; + setParameter(std::string("MatchExpressFilterRelation"), matchExpressFilterRelation); } -void CreateDynamicTagGroupRequest::setEnableInstallAgent(bool enableInstallAgent) -{ - enableInstallAgent_ = enableInstallAgent; - setParameter("EnableInstallAgent", enableInstallAgent ? "true" : "false"); +bool CreateDynamicTagGroupRequest::getEnableInstallAgent() const { + return enableInstallAgent_; } -std::vector CreateDynamicTagGroupRequest::getMatchExpress()const -{ - return matchExpress_; +void CreateDynamicTagGroupRequest::setEnableInstallAgent(bool enableInstallAgent) { + enableInstallAgent_ = enableInstallAgent; + setParameter(std::string("EnableInstallAgent"), enableInstallAgent ? "true" : "false"); } -void CreateDynamicTagGroupRequest::setMatchExpress(const std::vector& matchExpress) -{ - matchExpress_ = matchExpress; - for(int dep1 = 0; dep1!= matchExpress.size(); dep1++) { - auto matchExpressObj = matchExpress.at(dep1); - std::string matchExpressObjStr = "MatchExpress." + std::to_string(dep1 + 1); - setParameter(matchExpressObjStr + ".TagValue", matchExpressObj.tagValue); - setParameter(matchExpressObjStr + ".TagValueMatchFunction", matchExpressObj.tagValueMatchFunction); - } +std::vector CreateDynamicTagGroupRequest::getMatchExpress() const { + return matchExpress_; } -std::vector CreateDynamicTagGroupRequest::getContactGroupList()const -{ - return contactGroupList_; +void CreateDynamicTagGroupRequest::setMatchExpress(const std::vector &matchExpress) { + matchExpress_ = matchExpress; + for(int dep1 = 0; dep1 != matchExpress.size(); dep1++) { + auto matchExpressObj = matchExpress.at(dep1); + std::string matchExpressObjStr = std::string("MatchExpress") + "." + std::to_string(dep1 + 1); + setParameter(matchExpressObjStr + ".TagValue", matchExpressObj.tagValue); + setParameter(matchExpressObjStr + ".TagValueMatchFunction", matchExpressObj.tagValueMatchFunction); + } } -void CreateDynamicTagGroupRequest::setContactGroupList(const std::vector& contactGroupList) -{ - contactGroupList_ = contactGroupList; - for(int dep1 = 0; dep1!= contactGroupList.size(); dep1++) { - setParameter("ContactGroupList."+ std::to_string(dep1), contactGroupList.at(dep1)); - } +std::vector CreateDynamicTagGroupRequest::getContactGroupList() const { + return contactGroupList_; } -std::vector CreateDynamicTagGroupRequest::getTemplateIdList()const -{ - return templateIdList_; +void CreateDynamicTagGroupRequest::setContactGroupList(const std::vector &contactGroupList) { + contactGroupList_ = contactGroupList; } -void CreateDynamicTagGroupRequest::setTemplateIdList(const std::vector& templateIdList) -{ - templateIdList_ = templateIdList; - for(int dep1 = 0; dep1!= templateIdList.size(); dep1++) { - setParameter("TemplateIdList."+ std::to_string(dep1), templateIdList.at(dep1)); - } +std::vector CreateDynamicTagGroupRequest::getTemplateIdList() const { + return templateIdList_; } -std::string CreateDynamicTagGroupRequest::getTagKey()const -{ - return tagKey_; +void CreateDynamicTagGroupRequest::setTemplateIdList(const std::vector &templateIdList) { + templateIdList_ = templateIdList; } -void CreateDynamicTagGroupRequest::setTagKey(const std::string& tagKey) -{ - tagKey_ = tagKey; - setParameter("TagKey", tagKey); +std::string CreateDynamicTagGroupRequest::getTagKey() const { + return tagKey_; } -std::string CreateDynamicTagGroupRequest::getTagRegionId()const -{ - return tagRegionId_; +void CreateDynamicTagGroupRequest::setTagKey(const std::string &tagKey) { + tagKey_ = tagKey; + setParameter(std::string("TagKey"), tagKey); } -void CreateDynamicTagGroupRequest::setTagRegionId(const std::string& tagRegionId) -{ - tagRegionId_ = tagRegionId; - setParameter("TagRegionId", tagRegionId); +std::string CreateDynamicTagGroupRequest::getTagRegionId() const { + return tagRegionId_; +} + +void CreateDynamicTagGroupRequest::setTagRegionId(const std::string &tagRegionId) { + tagRegionId_ = tagRegionId; + setParameter(std::string("TagRegionId"), tagRegionId); } diff --git a/cms/src/model/CreateGroupMetricRulesRequest.cc b/cms/src/model/CreateGroupMetricRulesRequest.cc index 9110fbf35..390d87f3f 100644 --- a/cms/src/model/CreateGroupMetricRulesRequest.cc +++ b/cms/src/model/CreateGroupMetricRulesRequest.cc @@ -1,81 +1,75 @@ /* * 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::Cms::Model::CreateGroupMetricRulesRequest; - -CreateGroupMetricRulesRequest::CreateGroupMetricRulesRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateGroupMetricRules") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateGroupMetricRulesRequest::~CreateGroupMetricRulesRequest() -{} - -long CreateGroupMetricRulesRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateGroupMetricRulesRequest; + +CreateGroupMetricRulesRequest::CreateGroupMetricRulesRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateGroupMetricRules") { + setMethod(HttpRequest::Method::Post); } -void CreateGroupMetricRulesRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +CreateGroupMetricRulesRequest::~CreateGroupMetricRulesRequest() {} + +long CreateGroupMetricRulesRequest::getGroupId() const { + return groupId_; } -std::vector CreateGroupMetricRulesRequest::getGroupMetricRules()const -{ - return groupMetricRules_; +void CreateGroupMetricRulesRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } -void CreateGroupMetricRulesRequest::setGroupMetricRules(const std::vector& groupMetricRules) -{ - groupMetricRules_ = groupMetricRules; - for(int dep1 = 0; dep1!= groupMetricRules.size(); dep1++) { - auto groupMetricRulesObj = groupMetricRules.at(dep1); - std::string groupMetricRulesObjStr = "GroupMetricRules." + std::to_string(dep1 + 1); - setParameter(groupMetricRulesObjStr + ".Webhook", groupMetricRulesObj.webhook); - setParameter(groupMetricRulesObjStr + ".EscalationsWarnComparisonOperator", groupMetricRulesObj.escalationsWarnComparisonOperator); - setParameter(groupMetricRulesObjStr + ".RuleName", groupMetricRulesObj.ruleName); - setParameter(groupMetricRulesObjStr + ".EscalationsInfoStatistics", groupMetricRulesObj.escalationsInfoStatistics); - setParameter(groupMetricRulesObjStr + ".EffectiveInterval", groupMetricRulesObj.effectiveInterval); - setParameter(groupMetricRulesObjStr + ".EscalationsInfoComparisonOperator", groupMetricRulesObj.escalationsInfoComparisonOperator); - setParameter(groupMetricRulesObjStr + ".NoDataPolicy", groupMetricRulesObj.noDataPolicy); - setParameter(groupMetricRulesObjStr + ".NoEffectiveInterval", groupMetricRulesObj.noEffectiveInterval); - setParameter(groupMetricRulesObjStr + ".EmailSubject", groupMetricRulesObj.emailSubject); - setParameter(groupMetricRulesObjStr + ".SilenceTime", std::to_string(groupMetricRulesObj.silenceTime)); - setParameter(groupMetricRulesObjStr + ".MetricName", groupMetricRulesObj.metricName); - setParameter(groupMetricRulesObjStr + ".EscalationsWarnTimes", std::to_string(groupMetricRulesObj.escalationsWarnTimes)); - setParameter(groupMetricRulesObjStr + ".CompositeExpression", groupMetricRulesObj.compositeExpression); - setParameter(groupMetricRulesObjStr + ".EscalationsWarnThreshold", groupMetricRulesObj.escalationsWarnThreshold); - setParameter(groupMetricRulesObjStr + ".Period", groupMetricRulesObj.period); - setParameter(groupMetricRulesObjStr + ".EscalationsCriticalStatistics", groupMetricRulesObj.escalationsCriticalStatistics); - setParameter(groupMetricRulesObjStr + ".EscalationsInfoTimes", std::to_string(groupMetricRulesObj.escalationsInfoTimes)); - setParameter(groupMetricRulesObjStr + ".EscalationsCriticalTimes", std::to_string(groupMetricRulesObj.escalationsCriticalTimes)); - setParameter(groupMetricRulesObjStr + ".EscalationsInfoThreshold", groupMetricRulesObj.escalationsInfoThreshold); - setParameter(groupMetricRulesObjStr + ".EscalationsWarnStatistics", groupMetricRulesObj.escalationsWarnStatistics); - setParameter(groupMetricRulesObjStr + "._Namespace", groupMetricRulesObj._namespace); - setParameter(groupMetricRulesObjStr + ".Interval", groupMetricRulesObj.interval); - setParameter(groupMetricRulesObjStr + ".RuleId", groupMetricRulesObj.ruleId); - setParameter(groupMetricRulesObjStr + ".Category", groupMetricRulesObj.category); - setParameter(groupMetricRulesObjStr + ".EscalationsCriticalComparisonOperator", groupMetricRulesObj.escalationsCriticalComparisonOperator); - setParameter(groupMetricRulesObjStr + ".EscalationsCriticalThreshold", groupMetricRulesObj.escalationsCriticalThreshold); - setParameter(groupMetricRulesObjStr + ".Dimensions", groupMetricRulesObj.dimensions); - } +std::vector CreateGroupMetricRulesRequest::getGroupMetricRules() const { + return groupMetricRules_; +} + +void CreateGroupMetricRulesRequest::setGroupMetricRules(const std::vector &groupMetricRules) { + groupMetricRules_ = groupMetricRules; + for(int dep1 = 0; dep1 != groupMetricRules.size(); dep1++) { + auto groupMetricRulesObj = groupMetricRules.at(dep1); + std::string groupMetricRulesObjStr = std::string("GroupMetricRules") + "." + std::to_string(dep1 + 1); + setParameter(groupMetricRulesObjStr + ".Webhook", groupMetricRulesObj.webhook); + setParameter(groupMetricRulesObjStr + ".Escalations.Warn.ComparisonOperator", groupMetricRulesObj.escalationsWarnComparisonOperator); + setParameter(groupMetricRulesObjStr + ".RuleName", groupMetricRulesObj.ruleName); + setParameter(groupMetricRulesObjStr + ".Escalations.Info.Statistics", groupMetricRulesObj.escalationsInfoStatistics); + setParameter(groupMetricRulesObjStr + ".EffectiveInterval", groupMetricRulesObj.effectiveInterval); + setParameter(groupMetricRulesObjStr + ".Escalations.Info.ComparisonOperator", groupMetricRulesObj.escalationsInfoComparisonOperator); + setParameter(groupMetricRulesObjStr + ".NoDataPolicy", groupMetricRulesObj.noDataPolicy); + setParameter(groupMetricRulesObjStr + ".NoEffectiveInterval", groupMetricRulesObj.noEffectiveInterval); + setParameter(groupMetricRulesObjStr + ".EmailSubject", groupMetricRulesObj.emailSubject); + setParameter(groupMetricRulesObjStr + ".SilenceTime", std::to_string(groupMetricRulesObj.silenceTime)); + setParameter(groupMetricRulesObjStr + ".MetricName", groupMetricRulesObj.metricName); + setParameter(groupMetricRulesObjStr + ".Escalations.Warn.Times", std::to_string(groupMetricRulesObj.escalationsWarnTimes)); + setParameter(groupMetricRulesObjStr + ".CompositeExpression", groupMetricRulesObj.compositeExpression); + setParameter(groupMetricRulesObjStr + ".Escalations.Warn.Threshold", groupMetricRulesObj.escalationsWarnThreshold); + setParameter(groupMetricRulesObjStr + ".Period", groupMetricRulesObj.period); + setParameter(groupMetricRulesObjStr + ".Escalations.Critical.Statistics", groupMetricRulesObj.escalationsCriticalStatistics); + setParameter(groupMetricRulesObjStr + ".Escalations.Info.Times", std::to_string(groupMetricRulesObj.escalationsInfoTimes)); + setParameter(groupMetricRulesObjStr + ".Escalations.Critical.Times", std::to_string(groupMetricRulesObj.escalationsCriticalTimes)); + setParameter(groupMetricRulesObjStr + ".Escalations.Info.Threshold", groupMetricRulesObj.escalationsInfoThreshold); + setParameter(groupMetricRulesObjStr + ".Escalations.Warn.Statistics", groupMetricRulesObj.escalationsWarnStatistics); + setParameter(groupMetricRulesObjStr + ".Namespace", groupMetricRulesObj._namespace); + setParameter(groupMetricRulesObjStr + ".Interval", groupMetricRulesObj.interval); + setParameter(groupMetricRulesObjStr + ".RuleId", groupMetricRulesObj.ruleId); + setParameter(groupMetricRulesObjStr + ".Category", groupMetricRulesObj.category); + setParameter(groupMetricRulesObjStr + ".Escalations.Critical.ComparisonOperator", groupMetricRulesObj.escalationsCriticalComparisonOperator); + setParameter(groupMetricRulesObjStr + ".Escalations.Critical.Threshold", groupMetricRulesObj.escalationsCriticalThreshold); + setParameter(groupMetricRulesObjStr + ".Dimensions", groupMetricRulesObj.dimensions); + } } diff --git a/cms/src/model/CreateGroupMonitoringAgentProcessRequest.cc b/cms/src/model/CreateGroupMonitoringAgentProcessRequest.cc index dcdeafedf..c2425c223 100644 --- a/cms/src/model/CreateGroupMonitoringAgentProcessRequest.cc +++ b/cms/src/model/CreateGroupMonitoringAgentProcessRequest.cc @@ -1,102 +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::Cms::Model::CreateGroupMonitoringAgentProcessRequest; - -CreateGroupMonitoringAgentProcessRequest::CreateGroupMonitoringAgentProcessRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateGroupMonitoringAgentProcess") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateGroupMonitoringAgentProcessRequest::~CreateGroupMonitoringAgentProcessRequest() -{} - -std::vector CreateGroupMonitoringAgentProcessRequest::getAlertConfig()const -{ - return alertConfig_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateGroupMonitoringAgentProcessRequest; + +CreateGroupMonitoringAgentProcessRequest::CreateGroupMonitoringAgentProcessRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateGroupMonitoringAgentProcess") { + setMethod(HttpRequest::Method::Post); } -void CreateGroupMonitoringAgentProcessRequest::setAlertConfig(const std::vector& alertConfig) -{ - alertConfig_ = alertConfig; - for(int dep1 = 0; dep1!= alertConfig.size(); dep1++) { - auto alertConfigObj = alertConfig.at(dep1); - std::string alertConfigObjStr = "AlertConfig." + std::to_string(dep1 + 1); - setParameter(alertConfigObjStr + ".Times", alertConfigObj.times); - setParameter(alertConfigObjStr + ".NoEffectiveInterval", alertConfigObj.noEffectiveInterval); - setParameter(alertConfigObjStr + ".Webhook", alertConfigObj.webhook); - setParameter(alertConfigObjStr + ".SilenceTime", alertConfigObj.silenceTime); - setParameter(alertConfigObjStr + ".Threshold", alertConfigObj.threshold); - setParameter(alertConfigObjStr + ".EffectiveInterval", alertConfigObj.effectiveInterval); - setParameter(alertConfigObjStr + ".ComparisonOperator", alertConfigObj.comparisonOperator); - setParameter(alertConfigObjStr + ".EscalationsLevel", alertConfigObj.escalationsLevel); - setParameter(alertConfigObjStr + ".Statistics", alertConfigObj.statistics); - } +CreateGroupMonitoringAgentProcessRequest::~CreateGroupMonitoringAgentProcessRequest() {} + +std::vector CreateGroupMonitoringAgentProcessRequest::getAlertConfig() const { + return alertConfig_; } -std::string CreateGroupMonitoringAgentProcessRequest::getGroupId()const -{ - return groupId_; +void CreateGroupMonitoringAgentProcessRequest::setAlertConfig(const std::vector &alertConfig) { + alertConfig_ = alertConfig; + for(int dep1 = 0; dep1 != alertConfig.size(); dep1++) { + auto alertConfigObj = alertConfig.at(dep1); + std::string alertConfigObjStr = std::string("AlertConfig") + "." + std::to_string(dep1 + 1); + setParameter(alertConfigObjStr + ".Times", alertConfigObj.times); + setParameter(alertConfigObjStr + ".Webhook", alertConfigObj.webhook); + setParameter(alertConfigObjStr + ".NoEffectiveInterval", alertConfigObj.noEffectiveInterval); + setParameter(alertConfigObjStr + ".SilenceTime", alertConfigObj.silenceTime); + setParameter(alertConfigObjStr + ".Threshold", alertConfigObj.threshold); + setParameter(alertConfigObjStr + ".ComparisonOperator", alertConfigObj.comparisonOperator); + setParameter(alertConfigObjStr + ".EffectiveInterval", alertConfigObj.effectiveInterval); + setParameter(alertConfigObjStr + ".EscalationsLevel", alertConfigObj.escalationsLevel); + setParameter(alertConfigObjStr + ".Statistics", alertConfigObj.statistics); + } } -void CreateGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string CreateGroupMonitoringAgentProcessRequest::getGroupId() const { + return groupId_; } -std::string CreateGroupMonitoringAgentProcessRequest::getProcessName()const -{ - return processName_; +void CreateGroupMonitoringAgentProcessRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void CreateGroupMonitoringAgentProcessRequest::setProcessName(const std::string& processName) -{ - processName_ = processName; - setParameter("ProcessName", processName); +std::string CreateGroupMonitoringAgentProcessRequest::getProcessName() const { + return processName_; } -std::string CreateGroupMonitoringAgentProcessRequest::getMatchExpressFilterRelation()const -{ - return matchExpressFilterRelation_; +void CreateGroupMonitoringAgentProcessRequest::setProcessName(const std::string &processName) { + processName_ = processName; + setParameter(std::string("ProcessName"), processName); } -void CreateGroupMonitoringAgentProcessRequest::setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation) -{ - matchExpressFilterRelation_ = matchExpressFilterRelation; - setParameter("MatchExpressFilterRelation", matchExpressFilterRelation); +std::string CreateGroupMonitoringAgentProcessRequest::getMatchExpressFilterRelation() const { + return matchExpressFilterRelation_; } -std::vector CreateGroupMonitoringAgentProcessRequest::getMatchExpress()const -{ - return matchExpress_; +void CreateGroupMonitoringAgentProcessRequest::setMatchExpressFilterRelation(const std::string &matchExpressFilterRelation) { + matchExpressFilterRelation_ = matchExpressFilterRelation; + setParameter(std::string("MatchExpressFilterRelation"), matchExpressFilterRelation); } -void CreateGroupMonitoringAgentProcessRequest::setMatchExpress(const std::vector& matchExpress) -{ - matchExpress_ = matchExpress; - for(int dep1 = 0; dep1!= matchExpress.size(); dep1++) { - auto matchExpressObj = matchExpress.at(dep1); - std::string matchExpressObjStr = "MatchExpress." + std::to_string(dep1 + 1); - setParameter(matchExpressObjStr + ".Function", matchExpressObj.function); - setParameter(matchExpressObjStr + ".Name", matchExpressObj.name); - setParameter(matchExpressObjStr + ".Value", matchExpressObj.value); - } +std::vector CreateGroupMonitoringAgentProcessRequest::getMatchExpress() const { + return matchExpress_; +} + +void CreateGroupMonitoringAgentProcessRequest::setMatchExpress(const std::vector &matchExpress) { + matchExpress_ = matchExpress; + for(int dep1 = 0; dep1 != matchExpress.size(); dep1++) { + auto matchExpressObj = matchExpress.at(dep1); + std::string matchExpressObjStr = std::string("MatchExpress") + "." + std::to_string(dep1 + 1); + setParameter(matchExpressObjStr + ".Function", matchExpressObj.function); + setParameter(matchExpressObjStr + ".Name", matchExpressObj.name); + setParameter(matchExpressObjStr + ".Value", matchExpressObj.value); + } } diff --git a/cms/src/model/CreateHostAvailabilityRequest.cc b/cms/src/model/CreateHostAvailabilityRequest.cc index e6fdc6757..d99e33b35 100644 --- a/cms/src/model/CreateHostAvailabilityRequest.cc +++ b/cms/src/model/CreateHostAvailabilityRequest.cc @@ -1,259 +1,214 @@ /* * 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::Cms::Model::CreateHostAvailabilityRequest; - -CreateHostAvailabilityRequest::CreateHostAvailabilityRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateHostAvailability") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateHostAvailabilityRequest::~CreateHostAvailabilityRequest() -{} - -std::string CreateHostAvailabilityRequest::getTaskOptionHttpMethod()const -{ - return taskOptionHttpMethod_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateHostAvailabilityRequest; + +CreateHostAvailabilityRequest::CreateHostAvailabilityRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateHostAvailability") { + setMethod(HttpRequest::Method::Post); } -void CreateHostAvailabilityRequest::setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod) -{ - taskOptionHttpMethod_ = taskOptionHttpMethod; - setParameter("TaskOptionHttpMethod", taskOptionHttpMethod); +CreateHostAvailabilityRequest::~CreateHostAvailabilityRequest() {} + +std::string CreateHostAvailabilityRequest::getTaskOptionHttpMethod() const { + return taskOptionHttpMethod_; } -std::string CreateHostAvailabilityRequest::getTaskOptionHttpHeader()const -{ - return taskOptionHttpHeader_; +void CreateHostAvailabilityRequest::setTaskOptionHttpMethod(const std::string &taskOptionHttpMethod) { + taskOptionHttpMethod_ = taskOptionHttpMethod; + setParameter(std::string("TaskOption.HttpMethod"), taskOptionHttpMethod); } -void CreateHostAvailabilityRequest::setTaskOptionHttpHeader(const std::string& taskOptionHttpHeader) -{ - taskOptionHttpHeader_ = taskOptionHttpHeader; - setParameter("TaskOptionHttpHeader", taskOptionHttpHeader); +std::string CreateHostAvailabilityRequest::getTaskOptionHttpHeader() const { + return taskOptionHttpHeader_; } -std::vector CreateHostAvailabilityRequest::getAlertConfigEscalationList()const -{ - return alertConfigEscalationList_; +void CreateHostAvailabilityRequest::setTaskOptionHttpHeader(const std::string &taskOptionHttpHeader) { + taskOptionHttpHeader_ = taskOptionHttpHeader; + setParameter(std::string("TaskOption.HttpHeader"), taskOptionHttpHeader); } -void CreateHostAvailabilityRequest::setAlertConfigEscalationList(const std::vector& alertConfigEscalationList) -{ - alertConfigEscalationList_ = alertConfigEscalationList; - for(int dep1 = 0; dep1!= alertConfigEscalationList.size(); dep1++) { - auto alertConfigEscalationListObj = alertConfigEscalationList.at(dep1); - std::string alertConfigEscalationListObjStr = "AlertConfigEscalationList." + std::to_string(dep1 + 1); - setParameter(alertConfigEscalationListObjStr + ".Times", std::to_string(alertConfigEscalationListObj.times)); - setParameter(alertConfigEscalationListObjStr + ".MetricName", alertConfigEscalationListObj.metricName); - setParameter(alertConfigEscalationListObjStr + ".Value", alertConfigEscalationListObj.value); - setParameter(alertConfigEscalationListObjStr + "._Operator", alertConfigEscalationListObj._operator); - setParameter(alertConfigEscalationListObjStr + ".Aggregate", alertConfigEscalationListObj.aggregate); - } +std::vector CreateHostAvailabilityRequest::getAlertConfigEscalationList() const { + return alertConfigEscalationList_; } -std::string CreateHostAvailabilityRequest::getTaskName()const -{ - return taskName_; +void CreateHostAvailabilityRequest::setAlertConfigEscalationList(const std::vector &alertConfigEscalationList) { + alertConfigEscalationList_ = alertConfigEscalationList; + for(int dep1 = 0; dep1 != alertConfigEscalationList.size(); dep1++) { + auto alertConfigEscalationListObj = alertConfigEscalationList.at(dep1); + std::string alertConfigEscalationListObjStr = std::string("AlertConfigEscalationList") + "." + std::to_string(dep1 + 1); + setParameter(alertConfigEscalationListObjStr + ".Times", std::to_string(alertConfigEscalationListObj.times)); + setParameter(alertConfigEscalationListObjStr + ".MetricName", alertConfigEscalationListObj.metricName); + setParameter(alertConfigEscalationListObjStr + ".Value", alertConfigEscalationListObj.value); + setParameter(alertConfigEscalationListObjStr + ".Operator", alertConfigEscalationListObj._operator); + setParameter(alertConfigEscalationListObjStr + ".Aggregate", alertConfigEscalationListObj.aggregate); + } } -void CreateHostAvailabilityRequest::setTaskName(const std::string& taskName) -{ - taskName_ = taskName; - setParameter("TaskName", taskName); +std::string CreateHostAvailabilityRequest::getTaskName() const { + return taskName_; } -int CreateHostAvailabilityRequest::getAlertConfigSilenceTime()const -{ - return alertConfigSilenceTime_; +void CreateHostAvailabilityRequest::setTaskName(const std::string &taskName) { + taskName_ = taskName; + setParameter(std::string("TaskName"), taskName); } -void CreateHostAvailabilityRequest::setAlertConfigSilenceTime(int alertConfigSilenceTime) -{ - alertConfigSilenceTime_ = alertConfigSilenceTime; - setParameter("AlertConfigSilenceTime", std::to_string(alertConfigSilenceTime)); +int CreateHostAvailabilityRequest::getAlertConfigSilenceTime() const { + return alertConfigSilenceTime_; } -std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseCharset()const -{ - return taskOptionHttpResponseCharset_; +void CreateHostAvailabilityRequest::setAlertConfigSilenceTime(int alertConfigSilenceTime) { + alertConfigSilenceTime_ = alertConfigSilenceTime; + setParameter(std::string("AlertConfig.SilenceTime"), std::to_string(alertConfigSilenceTime)); } -void CreateHostAvailabilityRequest::setTaskOptionHttpResponseCharset(const std::string& taskOptionHttpResponseCharset) -{ - taskOptionHttpResponseCharset_ = taskOptionHttpResponseCharset; - setParameter("TaskOptionHttpResponseCharset", taskOptionHttpResponseCharset); +std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseCharset() const { + return taskOptionHttpResponseCharset_; } -bool CreateHostAvailabilityRequest::getTaskOptionHttpNegative()const -{ - return taskOptionHttpNegative_; +void CreateHostAvailabilityRequest::setTaskOptionHttpResponseCharset(const std::string &taskOptionHttpResponseCharset) { + taskOptionHttpResponseCharset_ = taskOptionHttpResponseCharset; + setParameter(std::string("TaskOption.HttpResponseCharset"), taskOptionHttpResponseCharset); } -void CreateHostAvailabilityRequest::setTaskOptionHttpNegative(bool taskOptionHttpNegative) -{ - taskOptionHttpNegative_ = taskOptionHttpNegative; - setParameter("TaskOptionHttpNegative", taskOptionHttpNegative ? "true" : "false"); +bool CreateHostAvailabilityRequest::getTaskOptionHttpNegative() const { + return taskOptionHttpNegative_; } -int CreateHostAvailabilityRequest::getTaskOptionInterval()const -{ - return taskOptionInterval_; +void CreateHostAvailabilityRequest::setTaskOptionHttpNegative(bool taskOptionHttpNegative) { + taskOptionHttpNegative_ = taskOptionHttpNegative; + setParameter(std::string("TaskOption.HttpNegative"), taskOptionHttpNegative ? "true" : "false"); } -void CreateHostAvailabilityRequest::setTaskOptionInterval(int taskOptionInterval) -{ - taskOptionInterval_ = taskOptionInterval; - setParameter("TaskOptionInterval", std::to_string(taskOptionInterval)); +int CreateHostAvailabilityRequest::getTaskOptionInterval() const { + return taskOptionInterval_; } -int CreateHostAvailabilityRequest::getAlertConfigNotifyType()const -{ - return alertConfigNotifyType_; +void CreateHostAvailabilityRequest::setTaskOptionInterval(int taskOptionInterval) { + taskOptionInterval_ = taskOptionInterval; + setParameter(std::string("TaskOption.Interval"), std::to_string(taskOptionInterval)); } -void CreateHostAvailabilityRequest::setAlertConfigNotifyType(int alertConfigNotifyType) -{ - alertConfigNotifyType_ = alertConfigNotifyType; - setParameter("AlertConfigNotifyType", std::to_string(alertConfigNotifyType)); +int CreateHostAvailabilityRequest::getAlertConfigNotifyType() const { + return alertConfigNotifyType_; } -std::string CreateHostAvailabilityRequest::getTaskOptionTelnetOrPingHost()const -{ - return taskOptionTelnetOrPingHost_; +void CreateHostAvailabilityRequest::setAlertConfigNotifyType(int alertConfigNotifyType) { + alertConfigNotifyType_ = alertConfigNotifyType; + setParameter(std::string("AlertConfig.NotifyType"), std::to_string(alertConfigNotifyType)); } -void CreateHostAvailabilityRequest::setTaskOptionTelnetOrPingHost(const std::string& taskOptionTelnetOrPingHost) -{ - taskOptionTelnetOrPingHost_ = taskOptionTelnetOrPingHost; - setParameter("TaskOptionTelnetOrPingHost", taskOptionTelnetOrPingHost); +std::string CreateHostAvailabilityRequest::getTaskOptionTelnetOrPingHost() const { + return taskOptionTelnetOrPingHost_; } -std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseMatchContent()const -{ - return taskOptionHttpResponseMatchContent_; +void CreateHostAvailabilityRequest::setTaskOptionTelnetOrPingHost(const std::string &taskOptionTelnetOrPingHost) { + taskOptionTelnetOrPingHost_ = taskOptionTelnetOrPingHost; + setParameter(std::string("TaskOption.TelnetOrPingHost"), taskOptionTelnetOrPingHost); } -void CreateHostAvailabilityRequest::setTaskOptionHttpResponseMatchContent(const std::string& taskOptionHttpResponseMatchContent) -{ - taskOptionHttpResponseMatchContent_ = taskOptionHttpResponseMatchContent; - setParameter("TaskOptionHttpResponseMatchContent", taskOptionHttpResponseMatchContent); +std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseMatchContent() const { + return taskOptionHttpResponseMatchContent_; } -std::vector CreateHostAvailabilityRequest::getInstanceList()const -{ - return instanceList_; +void CreateHostAvailabilityRequest::setTaskOptionHttpResponseMatchContent(const std::string &taskOptionHttpResponseMatchContent) { + taskOptionHttpResponseMatchContent_ = taskOptionHttpResponseMatchContent; + setParameter(std::string("TaskOption.HttpResponseMatchContent"), taskOptionHttpResponseMatchContent); } -void CreateHostAvailabilityRequest::setInstanceList(const std::vector& instanceList) -{ - instanceList_ = instanceList; - for(int dep1 = 0; dep1!= instanceList.size(); dep1++) { - setParameter("InstanceList."+ std::to_string(dep1), instanceList.at(dep1)); - } +std::vector CreateHostAvailabilityRequest::getInstanceList() const { + return instanceList_; } -std::string CreateHostAvailabilityRequest::getTaskType()const -{ - return taskType_; +void CreateHostAvailabilityRequest::setInstanceList(const std::vector &instanceList) { + instanceList_ = instanceList; } -void CreateHostAvailabilityRequest::setTaskType(const std::string& taskType) -{ - taskType_ = taskType; - setParameter("TaskType", taskType); +std::string CreateHostAvailabilityRequest::getTaskType() const { + return taskType_; } -long CreateHostAvailabilityRequest::getGroupId()const -{ - return groupId_; +void CreateHostAvailabilityRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); } -void CreateHostAvailabilityRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +long CreateHostAvailabilityRequest::getGroupId() const { + return groupId_; } -int CreateHostAvailabilityRequest::getAlertConfigEndTime()const -{ - return alertConfigEndTime_; +void CreateHostAvailabilityRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } -void CreateHostAvailabilityRequest::setAlertConfigEndTime(int alertConfigEndTime) -{ - alertConfigEndTime_ = alertConfigEndTime; - setParameter("AlertConfigEndTime", std::to_string(alertConfigEndTime)); +int CreateHostAvailabilityRequest::getAlertConfigEndTime() const { + return alertConfigEndTime_; } -std::string CreateHostAvailabilityRequest::getTaskOptionHttpURI()const -{ - return taskOptionHttpURI_; +void CreateHostAvailabilityRequest::setAlertConfigEndTime(int alertConfigEndTime) { + alertConfigEndTime_ = alertConfigEndTime; + setParameter(std::string("AlertConfig.EndTime"), std::to_string(alertConfigEndTime)); } -void CreateHostAvailabilityRequest::setTaskOptionHttpURI(const std::string& taskOptionHttpURI) -{ - taskOptionHttpURI_ = taskOptionHttpURI; - setParameter("TaskOptionHttpURI", taskOptionHttpURI); +std::string CreateHostAvailabilityRequest::getTaskOptionHttpURI() const { + return taskOptionHttpURI_; } -std::string CreateHostAvailabilityRequest::getTaskScope()const -{ - return taskScope_; +void CreateHostAvailabilityRequest::setTaskOptionHttpURI(const std::string &taskOptionHttpURI) { + taskOptionHttpURI_ = taskOptionHttpURI; + setParameter(std::string("TaskOption.HttpURI"), taskOptionHttpURI); } -void CreateHostAvailabilityRequest::setTaskScope(const std::string& taskScope) -{ - taskScope_ = taskScope; - setParameter("TaskScope", taskScope); +std::string CreateHostAvailabilityRequest::getTaskScope() const { + return taskScope_; } -std::string CreateHostAvailabilityRequest::getTaskOptionHttpPostContent()const -{ - return taskOptionHttpPostContent_; +void CreateHostAvailabilityRequest::setTaskScope(const std::string &taskScope) { + taskScope_ = taskScope; + setParameter(std::string("TaskScope"), taskScope); } -void CreateHostAvailabilityRequest::setTaskOptionHttpPostContent(const std::string& taskOptionHttpPostContent) -{ - taskOptionHttpPostContent_ = taskOptionHttpPostContent; - setParameter("TaskOptionHttpPostContent", taskOptionHttpPostContent); +std::string CreateHostAvailabilityRequest::getTaskOptionHttpPostContent() const { + return taskOptionHttpPostContent_; } -int CreateHostAvailabilityRequest::getAlertConfigStartTime()const -{ - return alertConfigStartTime_; +void CreateHostAvailabilityRequest::setTaskOptionHttpPostContent(const std::string &taskOptionHttpPostContent) { + taskOptionHttpPostContent_ = taskOptionHttpPostContent; + setParameter(std::string("TaskOption.HttpPostContent"), taskOptionHttpPostContent); } -void CreateHostAvailabilityRequest::setAlertConfigStartTime(int alertConfigStartTime) -{ - alertConfigStartTime_ = alertConfigStartTime; - setParameter("AlertConfigStartTime", std::to_string(alertConfigStartTime)); +int CreateHostAvailabilityRequest::getAlertConfigStartTime() const { + return alertConfigStartTime_; } -std::string CreateHostAvailabilityRequest::getAlertConfigWebHook()const -{ - return alertConfigWebHook_; +void CreateHostAvailabilityRequest::setAlertConfigStartTime(int alertConfigStartTime) { + alertConfigStartTime_ = alertConfigStartTime; + setParameter(std::string("AlertConfig.StartTime"), std::to_string(alertConfigStartTime)); } -void CreateHostAvailabilityRequest::setAlertConfigWebHook(const std::string& alertConfigWebHook) -{ - alertConfigWebHook_ = alertConfigWebHook; - setParameter("AlertConfigWebHook", alertConfigWebHook); +std::string CreateHostAvailabilityRequest::getAlertConfigWebHook() const { + return alertConfigWebHook_; +} + +void CreateHostAvailabilityRequest::setAlertConfigWebHook(const std::string &alertConfigWebHook) { + alertConfigWebHook_ = alertConfigWebHook; + setParameter(std::string("AlertConfig.WebHook"), alertConfigWebHook); } diff --git a/cms/src/model/CreateHostAvailabilityResult.cc b/cms/src/model/CreateHostAvailabilityResult.cc index ad3880d9b..b01969bfd 100644 --- a/cms/src/model/CreateHostAvailabilityResult.cc +++ b/cms/src/model/CreateHostAvailabilityResult.cc @@ -43,10 +43,10 @@ void CreateHostAvailabilityResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["TaskId"].isNull()) taskId_ = std::stol(value["TaskId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/CreateInstantSiteMonitorRequest.cc b/cms/src/model/CreateInstantSiteMonitorRequest.cc index a652438f6..56526c2ca 100644 --- a/cms/src/model/CreateInstantSiteMonitorRequest.cc +++ b/cms/src/model/CreateInstantSiteMonitorRequest.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::Cms::Model::CreateInstantSiteMonitorRequest; - -CreateInstantSiteMonitorRequest::CreateInstantSiteMonitorRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateInstantSiteMonitor") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateInstantSiteMonitorRequest::~CreateInstantSiteMonitorRequest() -{} - -int CreateInstantSiteMonitorRequest::getRandomIspCity()const -{ - return randomIspCity_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateInstantSiteMonitorRequest; + +CreateInstantSiteMonitorRequest::CreateInstantSiteMonitorRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateInstantSiteMonitor") { + setMethod(HttpRequest::Method::Post); } -void CreateInstantSiteMonitorRequest::setRandomIspCity(int randomIspCity) -{ - randomIspCity_ = randomIspCity; - setParameter("RandomIspCity", std::to_string(randomIspCity)); +CreateInstantSiteMonitorRequest::~CreateInstantSiteMonitorRequest() {} + +int CreateInstantSiteMonitorRequest::getRandomIspCity() const { + return randomIspCity_; } -std::string CreateInstantSiteMonitorRequest::getAddress()const -{ - return address_; +void CreateInstantSiteMonitorRequest::setRandomIspCity(int randomIspCity) { + randomIspCity_ = randomIspCity; + setParameter(std::string("RandomIspCity"), std::to_string(randomIspCity)); } -void CreateInstantSiteMonitorRequest::setAddress(const std::string& address) -{ - address_ = address; - setParameter("Address", address); +std::string CreateInstantSiteMonitorRequest::getAddress() const { + return address_; } -std::string CreateInstantSiteMonitorRequest::getTaskType()const -{ - return taskType_; +void CreateInstantSiteMonitorRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); } -void CreateInstantSiteMonitorRequest::setTaskType(const std::string& taskType) -{ - taskType_ = taskType; - setParameter("TaskType", taskType); +std::string CreateInstantSiteMonitorRequest::getTaskType() const { + return taskType_; } -std::string CreateInstantSiteMonitorRequest::getTaskName()const -{ - return taskName_; +void CreateInstantSiteMonitorRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); } -void CreateInstantSiteMonitorRequest::setTaskName(const std::string& taskName) -{ - taskName_ = taskName; - setParameter("TaskName", taskName); +std::string CreateInstantSiteMonitorRequest::getTaskName() const { + return taskName_; } -std::string CreateInstantSiteMonitorRequest::getIspCities()const -{ - return ispCities_; +void CreateInstantSiteMonitorRequest::setTaskName(const std::string &taskName) { + taskName_ = taskName; + setParameter(std::string("TaskName"), taskName); } -void CreateInstantSiteMonitorRequest::setIspCities(const std::string& ispCities) -{ - ispCities_ = ispCities; - setParameter("IspCities", ispCities); +std::string CreateInstantSiteMonitorRequest::getIspCities() const { + return ispCities_; } -std::string CreateInstantSiteMonitorRequest::getOptionsJson()const -{ - return optionsJson_; +void CreateInstantSiteMonitorRequest::setIspCities(const std::string &ispCities) { + ispCities_ = ispCities; + setParameter(std::string("IspCities"), ispCities); } -void CreateInstantSiteMonitorRequest::setOptionsJson(const std::string& optionsJson) -{ - optionsJson_ = optionsJson; - setParameter("OptionsJson", optionsJson); +std::string CreateInstantSiteMonitorRequest::getOptionsJson() const { + return optionsJson_; +} + +void CreateInstantSiteMonitorRequest::setOptionsJson(const std::string &optionsJson) { + optionsJson_ = optionsJson; + setParameter(std::string("OptionsJson"), optionsJson); } diff --git a/cms/src/model/CreateMetricRuleResourcesRequest.cc b/cms/src/model/CreateMetricRuleResourcesRequest.cc index 3573891e6..e099778e5 100644 --- a/cms/src/model/CreateMetricRuleResourcesRequest.cc +++ b/cms/src/model/CreateMetricRuleResourcesRequest.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::Cms::Model::CreateMetricRuleResourcesRequest; - -CreateMetricRuleResourcesRequest::CreateMetricRuleResourcesRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateMetricRuleResources") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMetricRuleResourcesRequest::~CreateMetricRuleResourcesRequest() -{} - -std::string CreateMetricRuleResourcesRequest::getResources()const -{ - return resources_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMetricRuleResourcesRequest; + +CreateMetricRuleResourcesRequest::CreateMetricRuleResourcesRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateMetricRuleResources") { + setMethod(HttpRequest::Method::Post); } -void CreateMetricRuleResourcesRequest::setResources(const std::string& resources) -{ - resources_ = resources; - setParameter("Resources", resources); +CreateMetricRuleResourcesRequest::~CreateMetricRuleResourcesRequest() {} + +std::string CreateMetricRuleResourcesRequest::getResources() const { + return resources_; } -std::string CreateMetricRuleResourcesRequest::getRuleId()const -{ - return ruleId_; +void CreateMetricRuleResourcesRequest::setResources(const std::string &resources) { + resources_ = resources; + setParameter(std::string("Resources"), resources); } -void CreateMetricRuleResourcesRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); +std::string CreateMetricRuleResourcesRequest::getRuleId() const { + return ruleId_; } -std::string CreateMetricRuleResourcesRequest::getOverwrite()const -{ - return overwrite_; +void CreateMetricRuleResourcesRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } -void CreateMetricRuleResourcesRequest::setOverwrite(const std::string& overwrite) -{ - overwrite_ = overwrite; - setParameter("Overwrite", overwrite); +std::string CreateMetricRuleResourcesRequest::getOverwrite() const { + return overwrite_; +} + +void CreateMetricRuleResourcesRequest::setOverwrite(const std::string &overwrite) { + overwrite_ = overwrite; + setParameter(std::string("Overwrite"), overwrite); } diff --git a/cms/src/model/CreateMetricRuleResourcesResult.cc b/cms/src/model/CreateMetricRuleResourcesResult.cc index a76974c3d..ea12bd716 100644 --- a/cms/src/model/CreateMetricRuleResourcesResult.cc +++ b/cms/src/model/CreateMetricRuleResourcesResult.cc @@ -39,12 +39,12 @@ void CreateMetricRuleResourcesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/CreateMetricRuleTemplateRequest.cc b/cms/src/model/CreateMetricRuleTemplateRequest.cc index 7ebb5edb7..d230061e0 100644 --- a/cms/src/model/CreateMetricRuleTemplateRequest.cc +++ b/cms/src/model/CreateMetricRuleTemplateRequest.cc @@ -1,84 +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::Cms::Model::CreateMetricRuleTemplateRequest; - -CreateMetricRuleTemplateRequest::CreateMetricRuleTemplateRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateMetricRuleTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMetricRuleTemplateRequest::~CreateMetricRuleTemplateRequest() -{} - -std::string CreateMetricRuleTemplateRequest::getDescription()const -{ - return description_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMetricRuleTemplateRequest; + +CreateMetricRuleTemplateRequest::CreateMetricRuleTemplateRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateMetricRuleTemplate") { + setMethod(HttpRequest::Method::Post); } -void CreateMetricRuleTemplateRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +CreateMetricRuleTemplateRequest::~CreateMetricRuleTemplateRequest() {} + +std::string CreateMetricRuleTemplateRequest::getDescription() const { + return description_; } -std::string CreateMetricRuleTemplateRequest::getName()const -{ - return name_; +void CreateMetricRuleTemplateRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateMetricRuleTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateMetricRuleTemplateRequest::getName() const { + return name_; } -std::vector CreateMetricRuleTemplateRequest::getAlertTemplates()const -{ - return alertTemplates_; +void CreateMetricRuleTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateMetricRuleTemplateRequest::setAlertTemplates(const std::vector& alertTemplates) -{ - alertTemplates_ = alertTemplates; - for(int dep1 = 0; dep1!= alertTemplates.size(); dep1++) { - auto alertTemplatesObj = alertTemplates.at(dep1); - std::string alertTemplatesObjStr = "AlertTemplates." + std::to_string(dep1 + 1); - setParameter(alertTemplatesObjStr + ".Period", std::to_string(alertTemplatesObj.period)); - setParameter(alertTemplatesObjStr + ".EscalationsWarnThreshold", alertTemplatesObj.escalationsWarnThreshold); - setParameter(alertTemplatesObjStr + ".Webhook", alertTemplatesObj.webhook); - setParameter(alertTemplatesObjStr + ".EscalationsWarnComparisonOperator", alertTemplatesObj.escalationsWarnComparisonOperator); - setParameter(alertTemplatesObjStr + ".EscalationsCriticalStatistics", alertTemplatesObj.escalationsCriticalStatistics); - setParameter(alertTemplatesObjStr + ".EscalationsInfoTimes", std::to_string(alertTemplatesObj.escalationsInfoTimes)); - setParameter(alertTemplatesObjStr + ".RuleName", alertTemplatesObj.ruleName); - setParameter(alertTemplatesObjStr + ".EscalationsInfoStatistics", alertTemplatesObj.escalationsInfoStatistics); - setParameter(alertTemplatesObjStr + ".EscalationsCriticalTimes", std::to_string(alertTemplatesObj.escalationsCriticalTimes)); - setParameter(alertTemplatesObjStr + ".EscalationsInfoComparisonOperator", alertTemplatesObj.escalationsInfoComparisonOperator); - setParameter(alertTemplatesObjStr + ".EscalationsWarnStatistics", alertTemplatesObj.escalationsWarnStatistics); - setParameter(alertTemplatesObjStr + ".EscalationsInfoThreshold", alertTemplatesObj.escalationsInfoThreshold); - setParameter(alertTemplatesObjStr + "._Namespace", alertTemplatesObj._namespace); - setParameter(alertTemplatesObjStr + ".Selector", alertTemplatesObj.selector); - setParameter(alertTemplatesObjStr + ".MetricName", alertTemplatesObj.metricName); - setParameter(alertTemplatesObjStr + ".Category", alertTemplatesObj.category); - setParameter(alertTemplatesObjStr + ".EscalationsCriticalComparisonOperator", alertTemplatesObj.escalationsCriticalComparisonOperator); - setParameter(alertTemplatesObjStr + ".EscalationsWarnTimes", std::to_string(alertTemplatesObj.escalationsWarnTimes)); - setParameter(alertTemplatesObjStr + ".EscalationsCriticalThreshold", alertTemplatesObj.escalationsCriticalThreshold); - } +std::vector CreateMetricRuleTemplateRequest::getAlertTemplates() const { + return alertTemplates_; +} + +void CreateMetricRuleTemplateRequest::setAlertTemplates(const std::vector &alertTemplates) { + alertTemplates_ = alertTemplates; + for(int dep1 = 0; dep1 != alertTemplates.size(); dep1++) { + auto alertTemplatesObj = alertTemplates.at(dep1); + std::string alertTemplatesObjStr = std::string("AlertTemplates") + "." + std::to_string(dep1 + 1); + setParameter(alertTemplatesObjStr + ".Escalations.Warn.Threshold", alertTemplatesObj.escalationsWarnThreshold); + setParameter(alertTemplatesObjStr + ".Period", std::to_string(alertTemplatesObj.period)); + setParameter(alertTemplatesObjStr + ".Webhook", alertTemplatesObj.webhook); + setParameter(alertTemplatesObjStr + ".Escalations.Warn.ComparisonOperator", alertTemplatesObj.escalationsWarnComparisonOperator); + setParameter(alertTemplatesObjStr + ".Escalations.Critical.Statistics", alertTemplatesObj.escalationsCriticalStatistics); + setParameter(alertTemplatesObjStr + ".Escalations.Info.Times", std::to_string(alertTemplatesObj.escalationsInfoTimes)); + setParameter(alertTemplatesObjStr + ".RuleName", alertTemplatesObj.ruleName); + setParameter(alertTemplatesObjStr + ".Escalations.Info.Statistics", alertTemplatesObj.escalationsInfoStatistics); + setParameter(alertTemplatesObjStr + ".Escalations.Critical.Times", std::to_string(alertTemplatesObj.escalationsCriticalTimes)); + setParameter(alertTemplatesObjStr + ".Escalations.Info.ComparisonOperator", alertTemplatesObj.escalationsInfoComparisonOperator); + setParameter(alertTemplatesObjStr + ".Escalations.Info.Threshold", alertTemplatesObj.escalationsInfoThreshold); + setParameter(alertTemplatesObjStr + ".Escalations.Warn.Statistics", alertTemplatesObj.escalationsWarnStatistics); + setParameter(alertTemplatesObjStr + ".Namespace", alertTemplatesObj._namespace); + setParameter(alertTemplatesObjStr + ".Selector", alertTemplatesObj.selector); + setParameter(alertTemplatesObjStr + ".MetricName", alertTemplatesObj.metricName); + setParameter(alertTemplatesObjStr + ".Escalations.Warn.Times", std::to_string(alertTemplatesObj.escalationsWarnTimes)); + setParameter(alertTemplatesObjStr + ".Category", alertTemplatesObj.category); + setParameter(alertTemplatesObjStr + ".Escalations.Critical.ComparisonOperator", alertTemplatesObj.escalationsCriticalComparisonOperator); + setParameter(alertTemplatesObjStr + ".Escalations.Critical.Threshold", alertTemplatesObj.escalationsCriticalThreshold); + } } diff --git a/cms/src/model/CreateMetricRuleTemplateResult.cc b/cms/src/model/CreateMetricRuleTemplateResult.cc index ca0d8da41..1beaa3f8c 100644 --- a/cms/src/model/CreateMetricRuleTemplateResult.cc +++ b/cms/src/model/CreateMetricRuleTemplateResult.cc @@ -39,12 +39,12 @@ void CreateMetricRuleTemplateResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Id"].isNull()) id_ = std::stol(value["Id"].asString()); diff --git a/cms/src/model/CreateMonitorAgentProcessRequest.cc b/cms/src/model/CreateMonitorAgentProcessRequest.cc index 91a083416..570342efc 100644 --- a/cms/src/model/CreateMonitorAgentProcessRequest.cc +++ b/cms/src/model/CreateMonitorAgentProcessRequest.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::Cms::Model::CreateMonitorAgentProcessRequest; - -CreateMonitorAgentProcessRequest::CreateMonitorAgentProcessRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateMonitorAgentProcess") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMonitorAgentProcessRequest::~CreateMonitorAgentProcessRequest() -{} - -std::string CreateMonitorAgentProcessRequest::getProcessName()const -{ - return processName_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMonitorAgentProcessRequest; + +CreateMonitorAgentProcessRequest::CreateMonitorAgentProcessRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateMonitorAgentProcess") { + setMethod(HttpRequest::Method::Post); } -void CreateMonitorAgentProcessRequest::setProcessName(const std::string& processName) -{ - processName_ = processName; - setParameter("ProcessName", processName); +CreateMonitorAgentProcessRequest::~CreateMonitorAgentProcessRequest() {} + +std::string CreateMonitorAgentProcessRequest::getProcessName() const { + return processName_; } -std::string CreateMonitorAgentProcessRequest::getInstanceId()const -{ - return instanceId_; +void CreateMonitorAgentProcessRequest::setProcessName(const std::string &processName) { + processName_ = processName; + setParameter(std::string("ProcessName"), processName); } -void CreateMonitorAgentProcessRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateMonitorAgentProcessRequest::getInstanceId() const { + return instanceId_; } -std::string CreateMonitorAgentProcessRequest::getProcessUser()const -{ - return processUser_; +void CreateMonitorAgentProcessRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateMonitorAgentProcessRequest::setProcessUser(const std::string& processUser) -{ - processUser_ = processUser; - setParameter("ProcessUser", processUser); +std::string CreateMonitorAgentProcessRequest::getProcessUser() const { + return processUser_; +} + +void CreateMonitorAgentProcessRequest::setProcessUser(const std::string &processUser) { + processUser_ = processUser; + setParameter(std::string("ProcessUser"), processUser); } diff --git a/cms/src/model/CreateMonitorGroupByResourceGroupIdRequest.cc b/cms/src/model/CreateMonitorGroupByResourceGroupIdRequest.cc index 52e9ed757..d1589413a 100644 --- a/cms/src/model/CreateMonitorGroupByResourceGroupIdRequest.cc +++ b/cms/src/model/CreateMonitorGroupByResourceGroupIdRequest.cc @@ -1,97 +1,80 @@ /* * 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::Cms::Model::CreateMonitorGroupByResourceGroupIdRequest; - -CreateMonitorGroupByResourceGroupIdRequest::CreateMonitorGroupByResourceGroupIdRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroupByResourceGroupId") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMonitorGroupByResourceGroupIdRequest::~CreateMonitorGroupByResourceGroupIdRequest() -{} - -std::string CreateMonitorGroupByResourceGroupIdRequest::getResourceGroupName()const -{ - return resourceGroupName_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMonitorGroupByResourceGroupIdRequest; + +CreateMonitorGroupByResourceGroupIdRequest::CreateMonitorGroupByResourceGroupIdRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroupByResourceGroupId") { + setMethod(HttpRequest::Method::Post); } -void CreateMonitorGroupByResourceGroupIdRequest::setResourceGroupName(const std::string& resourceGroupName) -{ - resourceGroupName_ = resourceGroupName; - setParameter("ResourceGroupName", resourceGroupName); +CreateMonitorGroupByResourceGroupIdRequest::~CreateMonitorGroupByResourceGroupIdRequest() {} + +std::string CreateMonitorGroupByResourceGroupIdRequest::getResourceGroupName() const { + return resourceGroupName_; } -bool CreateMonitorGroupByResourceGroupIdRequest::getEnableSubscribeEvent()const -{ - return enableSubscribeEvent_; +void CreateMonitorGroupByResourceGroupIdRequest::setResourceGroupName(const std::string &resourceGroupName) { + resourceGroupName_ = resourceGroupName; + setParameter(std::string("ResourceGroupName"), resourceGroupName); } -void CreateMonitorGroupByResourceGroupIdRequest::setEnableSubscribeEvent(bool enableSubscribeEvent) -{ - enableSubscribeEvent_ = enableSubscribeEvent; - setParameter("EnableSubscribeEvent", enableSubscribeEvent ? "true" : "false"); +bool CreateMonitorGroupByResourceGroupIdRequest::getEnableSubscribeEvent() const { + return enableSubscribeEvent_; } -std::string CreateMonitorGroupByResourceGroupIdRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateMonitorGroupByResourceGroupIdRequest::setEnableSubscribeEvent(bool enableSubscribeEvent) { + enableSubscribeEvent_ = enableSubscribeEvent; + setParameter(std::string("EnableSubscribeEvent"), enableSubscribeEvent ? "true" : "false"); } -void CreateMonitorGroupByResourceGroupIdRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateMonitorGroupByResourceGroupIdRequest::getResourceGroupId() const { + return resourceGroupId_; } -bool CreateMonitorGroupByResourceGroupIdRequest::getEnableInstallAgent()const -{ - return enableInstallAgent_; +void CreateMonitorGroupByResourceGroupIdRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateMonitorGroupByResourceGroupIdRequest::setEnableInstallAgent(bool enableInstallAgent) -{ - enableInstallAgent_ = enableInstallAgent; - setParameter("EnableInstallAgent", enableInstallAgent ? "true" : "false"); +bool CreateMonitorGroupByResourceGroupIdRequest::getEnableInstallAgent() const { + return enableInstallAgent_; } -std::string CreateMonitorGroupByResourceGroupIdRequest::getRegionId()const -{ - return regionId_; +void CreateMonitorGroupByResourceGroupIdRequest::setEnableInstallAgent(bool enableInstallAgent) { + enableInstallAgent_ = enableInstallAgent; + setParameter(std::string("EnableInstallAgent"), enableInstallAgent ? "true" : "false"); } -void CreateMonitorGroupByResourceGroupIdRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateMonitorGroupByResourceGroupIdRequest::getRegionId() const { + return regionId_; } -std::vector CreateMonitorGroupByResourceGroupIdRequest::getContactGroupList()const -{ - return contactGroupList_; +void CreateMonitorGroupByResourceGroupIdRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateMonitorGroupByResourceGroupIdRequest::setContactGroupList(const std::vector& contactGroupList) -{ - contactGroupList_ = contactGroupList; - for(int dep1 = 0; dep1!= contactGroupList.size(); dep1++) { - setParameter("ContactGroupList."+ std::to_string(dep1), contactGroupList.at(dep1)); - } +std::vector CreateMonitorGroupByResourceGroupIdRequest::getContactGroupList() const { + return contactGroupList_; +} + +void CreateMonitorGroupByResourceGroupIdRequest::setContactGroupList(const std::vector &contactGroupList) { + contactGroupList_ = contactGroupList; } diff --git a/cms/src/model/CreateMonitorGroupInstancesRequest.cc b/cms/src/model/CreateMonitorGroupInstancesRequest.cc index 3e8fccab4..1dde5bd21 100644 --- a/cms/src/model/CreateMonitorGroupInstancesRequest.cc +++ b/cms/src/model/CreateMonitorGroupInstancesRequest.cc @@ -1,58 +1,52 @@ /* * 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::Cms::Model::CreateMonitorGroupInstancesRequest; - -CreateMonitorGroupInstancesRequest::CreateMonitorGroupInstancesRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroupInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMonitorGroupInstancesRequest::~CreateMonitorGroupInstancesRequest() -{} - -std::vector CreateMonitorGroupInstancesRequest::getInstances()const -{ - return instances_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMonitorGroupInstancesRequest; + +CreateMonitorGroupInstancesRequest::CreateMonitorGroupInstancesRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroupInstances") { + setMethod(HttpRequest::Method::Post); } -void CreateMonitorGroupInstancesRequest::setInstances(const std::vector& instances) -{ - instances_ = instances; - for(int dep1 = 0; dep1!= instances.size(); dep1++) { - auto instancesObj = instances.at(dep1); - std::string instancesObjStr = "Instances." + std::to_string(dep1 + 1); - setParameter(instancesObjStr + ".InstanceId", instancesObj.instanceId); - setParameter(instancesObjStr + ".InstanceName", instancesObj.instanceName); - setParameter(instancesObjStr + ".RegionId", instancesObj.regionId); - setParameter(instancesObjStr + ".Category", instancesObj.category); - } +CreateMonitorGroupInstancesRequest::~CreateMonitorGroupInstancesRequest() {} + +std::vector CreateMonitorGroupInstancesRequest::getInstances() const { + return instances_; } -std::string CreateMonitorGroupInstancesRequest::getGroupId()const -{ - return groupId_; +void CreateMonitorGroupInstancesRequest::setInstances(const std::vector &instances) { + instances_ = instances; + for(int dep1 = 0; dep1 != instances.size(); dep1++) { + auto instancesObj = instances.at(dep1); + std::string instancesObjStr = std::string("Instances") + "." + std::to_string(dep1 + 1); + setParameter(instancesObjStr + ".InstanceName", instancesObj.instanceName); + setParameter(instancesObjStr + ".InstanceId", instancesObj.instanceId); + setParameter(instancesObjStr + ".RegionId", instancesObj.regionId); + setParameter(instancesObjStr + ".Category", instancesObj.category); + } } -void CreateMonitorGroupInstancesRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string CreateMonitorGroupInstancesRequest::getGroupId() const { + return groupId_; +} + +void CreateMonitorGroupInstancesRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } diff --git a/cms/src/model/CreateMonitorGroupInstancesResult.cc b/cms/src/model/CreateMonitorGroupInstancesResult.cc index 3e9385ac5..9885ae410 100644 --- a/cms/src/model/CreateMonitorGroupInstancesResult.cc +++ b/cms/src/model/CreateMonitorGroupInstancesResult.cc @@ -39,12 +39,12 @@ void CreateMonitorGroupInstancesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/CreateMonitorGroupNotifyPolicyRequest.cc b/cms/src/model/CreateMonitorGroupNotifyPolicyRequest.cc index cc0218898..b73920c3a 100644 --- a/cms/src/model/CreateMonitorGroupNotifyPolicyRequest.cc +++ b/cms/src/model/CreateMonitorGroupNotifyPolicyRequest.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::Cms::Model::CreateMonitorGroupNotifyPolicyRequest; - -CreateMonitorGroupNotifyPolicyRequest::CreateMonitorGroupNotifyPolicyRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroupNotifyPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMonitorGroupNotifyPolicyRequest::~CreateMonitorGroupNotifyPolicyRequest() -{} - -std::string CreateMonitorGroupNotifyPolicyRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMonitorGroupNotifyPolicyRequest; + +CreateMonitorGroupNotifyPolicyRequest::CreateMonitorGroupNotifyPolicyRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroupNotifyPolicy") { + setMethod(HttpRequest::Method::Post); } -void CreateMonitorGroupNotifyPolicyRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +CreateMonitorGroupNotifyPolicyRequest::~CreateMonitorGroupNotifyPolicyRequest() {} + +std::string CreateMonitorGroupNotifyPolicyRequest::getPolicyType() const { + return policyType_; } -std::string CreateMonitorGroupNotifyPolicyRequest::getGroupId()const -{ - return groupId_; +void CreateMonitorGroupNotifyPolicyRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void CreateMonitorGroupNotifyPolicyRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string CreateMonitorGroupNotifyPolicyRequest::getGroupId() const { + return groupId_; } -long CreateMonitorGroupNotifyPolicyRequest::getEndTime()const -{ - return endTime_; +void CreateMonitorGroupNotifyPolicyRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void CreateMonitorGroupNotifyPolicyRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long CreateMonitorGroupNotifyPolicyRequest::getEndTime() const { + return endTime_; } -long CreateMonitorGroupNotifyPolicyRequest::getStartTime()const -{ - return startTime_; +void CreateMonitorGroupNotifyPolicyRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void CreateMonitorGroupNotifyPolicyRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +long CreateMonitorGroupNotifyPolicyRequest::getStartTime() const { + return startTime_; +} + +void CreateMonitorGroupNotifyPolicyRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); } diff --git a/cms/src/model/CreateMonitorGroupNotifyPolicyResult.cc b/cms/src/model/CreateMonitorGroupNotifyPolicyResult.cc index 40b28724d..887b44a1a 100644 --- a/cms/src/model/CreateMonitorGroupNotifyPolicyResult.cc +++ b/cms/src/model/CreateMonitorGroupNotifyPolicyResult.cc @@ -43,10 +43,10 @@ void CreateMonitorGroupNotifyPolicyResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); if(!value["Result"].isNull()) result_ = std::stoi(value["Result"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } diff --git a/cms/src/model/CreateMonitorGroupRequest.cc b/cms/src/model/CreateMonitorGroupRequest.cc index 8bf2ac25a..b4dc0564f 100644 --- a/cms/src/model/CreateMonitorGroupRequest.cc +++ b/cms/src/model/CreateMonitorGroupRequest.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::Cms::Model::CreateMonitorGroupRequest; - -CreateMonitorGroupRequest::CreateMonitorGroupRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMonitorGroupRequest::~CreateMonitorGroupRequest() -{} - -std::string CreateMonitorGroupRequest::getContactGroups()const -{ - return contactGroups_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMonitorGroupRequest; + +CreateMonitorGroupRequest::CreateMonitorGroupRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroup") { + setMethod(HttpRequest::Method::Post); } -void CreateMonitorGroupRequest::setContactGroups(const std::string& contactGroups) -{ - contactGroups_ = contactGroups; - setParameter("ContactGroups", contactGroups); +CreateMonitorGroupRequest::~CreateMonitorGroupRequest() {} + +std::string CreateMonitorGroupRequest::getContactGroups() const { + return contactGroups_; } -std::string CreateMonitorGroupRequest::getType()const -{ - return type_; +void CreateMonitorGroupRequest::setContactGroups(const std::string &contactGroups) { + contactGroups_ = contactGroups; + setParameter(std::string("ContactGroups"), contactGroups); } -void CreateMonitorGroupRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string CreateMonitorGroupRequest::getType() const { + return type_; } -std::string CreateMonitorGroupRequest::getGroupName()const -{ - return groupName_; +void CreateMonitorGroupRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void CreateMonitorGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +std::string CreateMonitorGroupRequest::getGroupName() const { + return groupName_; } -std::string CreateMonitorGroupRequest::getOptions()const -{ - return options_; +void CreateMonitorGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -void CreateMonitorGroupRequest::setOptions(const std::string& options) -{ - options_ = options; - setParameter("Options", options); +std::string CreateMonitorGroupRequest::getOptions() const { + return options_; } -long CreateMonitorGroupRequest::getServiceId()const -{ - return serviceId_; +void CreateMonitorGroupRequest::setOptions(const std::string &options) { + options_ = options; + setParameter(std::string("Options"), options); } -void CreateMonitorGroupRequest::setServiceId(long serviceId) -{ - serviceId_ = serviceId; - setParameter("ServiceId", std::to_string(serviceId)); +long CreateMonitorGroupRequest::getServiceId() const { + return serviceId_; } -std::string CreateMonitorGroupRequest::getBindUrl()const -{ - return bindUrl_; +void CreateMonitorGroupRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setParameter(std::string("ServiceId"), std::to_string(serviceId)); } -void CreateMonitorGroupRequest::setBindUrl(const std::string& bindUrl) -{ - bindUrl_ = bindUrl; - setParameter("BindUrl", bindUrl); +std::string CreateMonitorGroupRequest::getBindUrl() const { + return bindUrl_; +} + +void CreateMonitorGroupRequest::setBindUrl(const std::string &bindUrl) { + bindUrl_ = bindUrl; + setParameter(std::string("BindUrl"), bindUrl); } diff --git a/cms/src/model/CreateMonitorGroupResult.cc b/cms/src/model/CreateMonitorGroupResult.cc index a3f062d21..84eb14153 100644 --- a/cms/src/model/CreateMonitorGroupResult.cc +++ b/cms/src/model/CreateMonitorGroupResult.cc @@ -39,14 +39,14 @@ void CreateMonitorGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["GroupId"].isNull()) groupId_ = std::stol(value["GroupId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/CreateMonitoringAgentProcessRequest.cc b/cms/src/model/CreateMonitoringAgentProcessRequest.cc index 9a1070f7f..b29fd5543 100644 --- a/cms/src/model/CreateMonitoringAgentProcessRequest.cc +++ b/cms/src/model/CreateMonitoringAgentProcessRequest.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::Cms::Model::CreateMonitoringAgentProcessRequest; - -CreateMonitoringAgentProcessRequest::CreateMonitoringAgentProcessRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateMonitoringAgentProcess") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMonitoringAgentProcessRequest::~CreateMonitoringAgentProcessRequest() -{} - -std::string CreateMonitoringAgentProcessRequest::getProcessName()const -{ - return processName_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMonitoringAgentProcessRequest; + +CreateMonitoringAgentProcessRequest::CreateMonitoringAgentProcessRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateMonitoringAgentProcess") { + setMethod(HttpRequest::Method::Post); } -void CreateMonitoringAgentProcessRequest::setProcessName(const std::string& processName) -{ - processName_ = processName; - setParameter("ProcessName", processName); +CreateMonitoringAgentProcessRequest::~CreateMonitoringAgentProcessRequest() {} + +std::string CreateMonitoringAgentProcessRequest::getProcessName() const { + return processName_; } -std::string CreateMonitoringAgentProcessRequest::getInstanceId()const -{ - return instanceId_; +void CreateMonitoringAgentProcessRequest::setProcessName(const std::string &processName) { + processName_ = processName; + setParameter(std::string("ProcessName"), processName); } -void CreateMonitoringAgentProcessRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateMonitoringAgentProcessRequest::getInstanceId() const { + return instanceId_; } -std::string CreateMonitoringAgentProcessRequest::getProcessUser()const -{ - return processUser_; +void CreateMonitoringAgentProcessRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateMonitoringAgentProcessRequest::setProcessUser(const std::string& processUser) -{ - processUser_ = processUser; - setParameter("ProcessUser", processUser); +std::string CreateMonitoringAgentProcessRequest::getProcessUser() const { + return processUser_; +} + +void CreateMonitoringAgentProcessRequest::setProcessUser(const std::string &processUser) { + processUser_ = processUser; + setParameter(std::string("ProcessUser"), processUser); } diff --git a/cms/src/model/CreateSiteMonitorRequest.cc b/cms/src/model/CreateSiteMonitorRequest.cc index 547f8ad85..5085b9956 100644 --- a/cms/src/model/CreateSiteMonitorRequest.cc +++ b/cms/src/model/CreateSiteMonitorRequest.cc @@ -1,139 +1,117 @@ /* * 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::Cms::Model::CreateSiteMonitorRequest; - -CreateSiteMonitorRequest::CreateSiteMonitorRequest() : - RpcServiceRequest("cms", "2019-01-01", "CreateSiteMonitor") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSiteMonitorRequest::~CreateSiteMonitorRequest() -{} - -std::string CreateSiteMonitorRequest::getReportProject()const -{ - return reportProject_; + */ + +#include + +using AlibabaCloud::Cms::Model::CreateSiteMonitorRequest; + +CreateSiteMonitorRequest::CreateSiteMonitorRequest() + : RpcServiceRequest("cms", "2019-01-01", "CreateSiteMonitor") { + setMethod(HttpRequest::Method::Post); } -void CreateSiteMonitorRequest::setReportProject(const std::string& reportProject) -{ - reportProject_ = reportProject; - setParameter("ReportProject", reportProject); +CreateSiteMonitorRequest::~CreateSiteMonitorRequest() {} + +std::string CreateSiteMonitorRequest::getReportProject() const { + return reportProject_; } -std::string CreateSiteMonitorRequest::getTaskName()const -{ - return taskName_; +void CreateSiteMonitorRequest::setReportProject(const std::string &reportProject) { + reportProject_ = reportProject; + setParameter(std::string("ReportProject"), reportProject); } -void CreateSiteMonitorRequest::setTaskName(const std::string& taskName) -{ - taskName_ = taskName; - setParameter("TaskName", taskName); +std::string CreateSiteMonitorRequest::getTaskName() const { + return taskName_; } -std::string CreateSiteMonitorRequest::getAlertIds()const -{ - return alertIds_; +void CreateSiteMonitorRequest::setTaskName(const std::string &taskName) { + taskName_ = taskName; + setParameter(std::string("TaskName"), taskName); } -void CreateSiteMonitorRequest::setAlertIds(const std::string& alertIds) -{ - alertIds_ = alertIds; - setParameter("AlertIds", alertIds); +std::string CreateSiteMonitorRequest::getAlertIds() const { + return alertIds_; } -std::string CreateSiteMonitorRequest::getAddress()const -{ - return address_; +void CreateSiteMonitorRequest::setAlertIds(const std::string &alertIds) { + alertIds_ = alertIds; + setParameter(std::string("AlertIds"), alertIds); } -void CreateSiteMonitorRequest::setAddress(const std::string& address) -{ - address_ = address; - setParameter("Address", address); +std::string CreateSiteMonitorRequest::getAddress() const { + return address_; } -std::string CreateSiteMonitorRequest::getTaskType()const -{ - return taskType_; +void CreateSiteMonitorRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); } -void CreateSiteMonitorRequest::setTaskType(const std::string& taskType) -{ - taskType_ = taskType; - setParameter("TaskType", taskType); +std::string CreateSiteMonitorRequest::getTaskType() const { + return taskType_; } -long CreateSiteMonitorRequest::getEndTime()const -{ - return endTime_; +void CreateSiteMonitorRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); } -void CreateSiteMonitorRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long CreateSiteMonitorRequest::getEndTime() const { + return endTime_; } -std::string CreateSiteMonitorRequest::getIspCities()const -{ - return ispCities_; +void CreateSiteMonitorRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void CreateSiteMonitorRequest::setIspCities(const std::string& ispCities) -{ - ispCities_ = ispCities; - setParameter("IspCities", ispCities); +std::string CreateSiteMonitorRequest::getIspCities() const { + return ispCities_; } -std::string CreateSiteMonitorRequest::getOptionsJson()const -{ - return optionsJson_; +void CreateSiteMonitorRequest::setIspCities(const std::string &ispCities) { + ispCities_ = ispCities; + setParameter(std::string("IspCities"), ispCities); } -void CreateSiteMonitorRequest::setOptionsJson(const std::string& optionsJson) -{ - optionsJson_ = optionsJson; - setParameter("OptionsJson", optionsJson); +std::string CreateSiteMonitorRequest::getOptionsJson() const { + return optionsJson_; } -std::string CreateSiteMonitorRequest::getIntervalUnit()const -{ - return intervalUnit_; +void CreateSiteMonitorRequest::setOptionsJson(const std::string &optionsJson) { + optionsJson_ = optionsJson; + setParameter(std::string("OptionsJson"), optionsJson); } -void CreateSiteMonitorRequest::setIntervalUnit(const std::string& intervalUnit) -{ - intervalUnit_ = intervalUnit; - setParameter("IntervalUnit", intervalUnit); +std::string CreateSiteMonitorRequest::getIntervalUnit() const { + return intervalUnit_; } -std::string CreateSiteMonitorRequest::getInterval()const -{ - return interval_; +void CreateSiteMonitorRequest::setIntervalUnit(const std::string &intervalUnit) { + intervalUnit_ = intervalUnit; + setParameter(std::string("IntervalUnit"), intervalUnit); } -void CreateSiteMonitorRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); +std::string CreateSiteMonitorRequest::getInterval() const { + return interval_; +} + +void CreateSiteMonitorRequest::setInterval(const std::string &interval) { + interval_ = interval; + setParameter(std::string("Interval"), interval); } diff --git a/cms/src/model/DeleteContactGroupRequest.cc b/cms/src/model/DeleteContactGroupRequest.cc index 213731ae9..3cfda9b62 100644 --- a/cms/src/model/DeleteContactGroupRequest.cc +++ b/cms/src/model/DeleteContactGroupRequest.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::Cms::Model::DeleteContactGroupRequest; - -DeleteContactGroupRequest::DeleteContactGroupRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteContactGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteContactGroupRequest::~DeleteContactGroupRequest() -{} - -std::string DeleteContactGroupRequest::getContactGroupName()const -{ - return contactGroupName_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteContactGroupRequest; + +DeleteContactGroupRequest::DeleteContactGroupRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteContactGroup") { + setMethod(HttpRequest::Method::Post); } -void DeleteContactGroupRequest::setContactGroupName(const std::string& contactGroupName) -{ - contactGroupName_ = contactGroupName; - setParameter("ContactGroupName", contactGroupName); +DeleteContactGroupRequest::~DeleteContactGroupRequest() {} + +std::string DeleteContactGroupRequest::getContactGroupName() const { + return contactGroupName_; +} + +void DeleteContactGroupRequest::setContactGroupName(const std::string &contactGroupName) { + contactGroupName_ = contactGroupName; + setParameter(std::string("ContactGroupName"), contactGroupName); } diff --git a/cms/src/model/DeleteContactGroupResult.cc b/cms/src/model/DeleteContactGroupResult.cc index e451a434c..bf9fd6779 100644 --- a/cms/src/model/DeleteContactGroupResult.cc +++ b/cms/src/model/DeleteContactGroupResult.cc @@ -39,12 +39,12 @@ void DeleteContactGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DeleteContactRequest.cc b/cms/src/model/DeleteContactRequest.cc index 0903066a0..e966e8eda 100644 --- a/cms/src/model/DeleteContactRequest.cc +++ b/cms/src/model/DeleteContactRequest.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::Cms::Model::DeleteContactRequest; - -DeleteContactRequest::DeleteContactRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteContact") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteContactRequest::~DeleteContactRequest() -{} - -std::string DeleteContactRequest::getContactName()const -{ - return contactName_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteContactRequest; + +DeleteContactRequest::DeleteContactRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteContact") { + setMethod(HttpRequest::Method::Post); } -void DeleteContactRequest::setContactName(const std::string& contactName) -{ - contactName_ = contactName; - setParameter("ContactName", contactName); +DeleteContactRequest::~DeleteContactRequest() {} + +std::string DeleteContactRequest::getContactName() const { + return contactName_; +} + +void DeleteContactRequest::setContactName(const std::string &contactName) { + contactName_ = contactName; + setParameter(std::string("ContactName"), contactName); } diff --git a/cms/src/model/DeleteContactResult.cc b/cms/src/model/DeleteContactResult.cc index 4cc81d547..f1ab63468 100644 --- a/cms/src/model/DeleteContactResult.cc +++ b/cms/src/model/DeleteContactResult.cc @@ -39,12 +39,12 @@ void DeleteContactResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DeleteCustomMetricRequest.cc b/cms/src/model/DeleteCustomMetricRequest.cc index 861c06b09..5918ed340 100644 --- a/cms/src/model/DeleteCustomMetricRequest.cc +++ b/cms/src/model/DeleteCustomMetricRequest.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::Cms::Model::DeleteCustomMetricRequest; - -DeleteCustomMetricRequest::DeleteCustomMetricRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteCustomMetric") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteCustomMetricRequest::~DeleteCustomMetricRequest() -{} - -std::string DeleteCustomMetricRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteCustomMetricRequest; + +DeleteCustomMetricRequest::DeleteCustomMetricRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteCustomMetric") { + setMethod(HttpRequest::Method::Post); } -void DeleteCustomMetricRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +DeleteCustomMetricRequest::~DeleteCustomMetricRequest() {} + +std::string DeleteCustomMetricRequest::getGroupId() const { + return groupId_; } -std::string DeleteCustomMetricRequest::getUUID()const -{ - return uUID_; +void DeleteCustomMetricRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DeleteCustomMetricRequest::setUUID(const std::string& uUID) -{ - uUID_ = uUID; - setParameter("UUID", uUID); +std::string DeleteCustomMetricRequest::getUUID() const { + return uUID_; } -std::string DeleteCustomMetricRequest::getMetricName()const -{ - return metricName_; +void DeleteCustomMetricRequest::setUUID(const std::string &uUID) { + uUID_ = uUID; + setParameter(std::string("UUID"), uUID); } -void DeleteCustomMetricRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DeleteCustomMetricRequest::getMetricName() const { + return metricName_; } -std::string DeleteCustomMetricRequest::getMd5()const -{ - return md5_; +void DeleteCustomMetricRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DeleteCustomMetricRequest::setMd5(const std::string& md5) -{ - md5_ = md5; - setParameter("Md5", md5); +std::string DeleteCustomMetricRequest::getMd5() const { + return md5_; +} + +void DeleteCustomMetricRequest::setMd5(const std::string &md5) { + md5_ = md5; + setParameter(std::string("Md5"), md5); } diff --git a/cms/src/model/DeleteDynamicTagGroupRequest.cc b/cms/src/model/DeleteDynamicTagGroupRequest.cc index fab5efc8f..cfae8eee0 100644 --- a/cms/src/model/DeleteDynamicTagGroupRequest.cc +++ b/cms/src/model/DeleteDynamicTagGroupRequest.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::Cms::Model::DeleteDynamicTagGroupRequest; - -DeleteDynamicTagGroupRequest::DeleteDynamicTagGroupRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteDynamicTagGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDynamicTagGroupRequest::~DeleteDynamicTagGroupRequest() -{} - -std::string DeleteDynamicTagGroupRequest::getDynamicTagRuleId()const -{ - return dynamicTagRuleId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteDynamicTagGroupRequest; + +DeleteDynamicTagGroupRequest::DeleteDynamicTagGroupRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteDynamicTagGroup") { + setMethod(HttpRequest::Method::Post); } -void DeleteDynamicTagGroupRequest::setDynamicTagRuleId(const std::string& dynamicTagRuleId) -{ - dynamicTagRuleId_ = dynamicTagRuleId; - setParameter("DynamicTagRuleId", dynamicTagRuleId); +DeleteDynamicTagGroupRequest::~DeleteDynamicTagGroupRequest() {} + +std::string DeleteDynamicTagGroupRequest::getDynamicTagRuleId() const { + return dynamicTagRuleId_; +} + +void DeleteDynamicTagGroupRequest::setDynamicTagRuleId(const std::string &dynamicTagRuleId) { + dynamicTagRuleId_ = dynamicTagRuleId; + setParameter(std::string("DynamicTagRuleId"), dynamicTagRuleId); } diff --git a/cms/src/model/DeleteEventRuleTargetsRequest.cc b/cms/src/model/DeleteEventRuleTargetsRequest.cc index f63b14089..c55a8af93 100644 --- a/cms/src/model/DeleteEventRuleTargetsRequest.cc +++ b/cms/src/model/DeleteEventRuleTargetsRequest.cc @@ -1,53 +1,44 @@ /* * 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::Cms::Model::DeleteEventRuleTargetsRequest; - -DeleteEventRuleTargetsRequest::DeleteEventRuleTargetsRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteEventRuleTargets") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteEventRuleTargetsRequest::~DeleteEventRuleTargetsRequest() -{} - -std::string DeleteEventRuleTargetsRequest::getRuleName()const -{ - return ruleName_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteEventRuleTargetsRequest; + +DeleteEventRuleTargetsRequest::DeleteEventRuleTargetsRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteEventRuleTargets") { + setMethod(HttpRequest::Method::Post); } -void DeleteEventRuleTargetsRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +DeleteEventRuleTargetsRequest::~DeleteEventRuleTargetsRequest() {} + +std::string DeleteEventRuleTargetsRequest::getRuleName() const { + return ruleName_; } -std::vector DeleteEventRuleTargetsRequest::getIds()const -{ - return ids_; +void DeleteEventRuleTargetsRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void DeleteEventRuleTargetsRequest::setIds(const std::vector& ids) -{ - ids_ = ids; - for(int dep1 = 0; dep1!= ids.size(); dep1++) { - setParameter("Ids."+ std::to_string(dep1), ids.at(dep1)); - } +std::vector DeleteEventRuleTargetsRequest::getIds() const { + return ids_; +} + +void DeleteEventRuleTargetsRequest::setIds(const std::vector &ids) { + ids_ = ids; } diff --git a/cms/src/model/DeleteEventRuleTargetsResult.cc b/cms/src/model/DeleteEventRuleTargetsResult.cc index 1409bc78a..1f726ff97 100644 --- a/cms/src/model/DeleteEventRuleTargetsResult.cc +++ b/cms/src/model/DeleteEventRuleTargetsResult.cc @@ -39,12 +39,12 @@ void DeleteEventRuleTargetsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DeleteEventRulesRequest.cc b/cms/src/model/DeleteEventRulesRequest.cc index 140c16adb..a6473adb4 100644 --- a/cms/src/model/DeleteEventRulesRequest.cc +++ b/cms/src/model/DeleteEventRulesRequest.cc @@ -1,42 +1,35 @@ /* * 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::Cms::Model::DeleteEventRulesRequest; - -DeleteEventRulesRequest::DeleteEventRulesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteEventRules") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteEventRulesRequest::~DeleteEventRulesRequest() -{} - -std::vector DeleteEventRulesRequest::getRuleNames()const -{ - return ruleNames_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteEventRulesRequest; + +DeleteEventRulesRequest::DeleteEventRulesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteEventRules") { + setMethod(HttpRequest::Method::Post); } -void DeleteEventRulesRequest::setRuleNames(const std::vector& ruleNames) -{ - ruleNames_ = ruleNames; - for(int dep1 = 0; dep1!= ruleNames.size(); dep1++) { - setParameter("RuleNames."+ std::to_string(dep1), ruleNames.at(dep1)); - } +DeleteEventRulesRequest::~DeleteEventRulesRequest() {} + +std::vector DeleteEventRulesRequest::getRuleNames() const { + return ruleNames_; +} + +void DeleteEventRulesRequest::setRuleNames(const std::vector &ruleNames) { + ruleNames_ = ruleNames; } diff --git a/cms/src/model/DeleteEventRulesResult.cc b/cms/src/model/DeleteEventRulesResult.cc index de7ca41e2..bf6c5de18 100644 --- a/cms/src/model/DeleteEventRulesResult.cc +++ b/cms/src/model/DeleteEventRulesResult.cc @@ -39,12 +39,12 @@ void DeleteEventRulesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DeleteExporterOutputRequest.cc b/cms/src/model/DeleteExporterOutputRequest.cc index 5a250352b..fcb9addfc 100644 --- a/cms/src/model/DeleteExporterOutputRequest.cc +++ b/cms/src/model/DeleteExporterOutputRequest.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::Cms::Model::DeleteExporterOutputRequest; - -DeleteExporterOutputRequest::DeleteExporterOutputRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteExporterOutput") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteExporterOutputRequest::~DeleteExporterOutputRequest() -{} - -std::string DeleteExporterOutputRequest::getDestName()const -{ - return destName_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteExporterOutputRequest; + +DeleteExporterOutputRequest::DeleteExporterOutputRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteExporterOutput") { + setMethod(HttpRequest::Method::Post); } -void DeleteExporterOutputRequest::setDestName(const std::string& destName) -{ - destName_ = destName; - setParameter("DestName", destName); +DeleteExporterOutputRequest::~DeleteExporterOutputRequest() {} + +std::string DeleteExporterOutputRequest::getDestName() const { + return destName_; +} + +void DeleteExporterOutputRequest::setDestName(const std::string &destName) { + destName_ = destName; + setParameter(std::string("DestName"), destName); } diff --git a/cms/src/model/DeleteExporterRuleRequest.cc b/cms/src/model/DeleteExporterRuleRequest.cc index 1f6e26e92..d8c8006ec 100644 --- a/cms/src/model/DeleteExporterRuleRequest.cc +++ b/cms/src/model/DeleteExporterRuleRequest.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::Cms::Model::DeleteExporterRuleRequest; - -DeleteExporterRuleRequest::DeleteExporterRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteExporterRule") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteExporterRuleRequest::~DeleteExporterRuleRequest() -{} - -std::string DeleteExporterRuleRequest::getRuleName()const -{ - return ruleName_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteExporterRuleRequest; + +DeleteExporterRuleRequest::DeleteExporterRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteExporterRule") { + setMethod(HttpRequest::Method::Post); } -void DeleteExporterRuleRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +DeleteExporterRuleRequest::~DeleteExporterRuleRequest() {} + +std::string DeleteExporterRuleRequest::getRuleName() const { + return ruleName_; +} + +void DeleteExporterRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } diff --git a/cms/src/model/DeleteGroupMonitoringAgentProcessRequest.cc b/cms/src/model/DeleteGroupMonitoringAgentProcessRequest.cc index 2524be193..ebe58ba98 100644 --- a/cms/src/model/DeleteGroupMonitoringAgentProcessRequest.cc +++ b/cms/src/model/DeleteGroupMonitoringAgentProcessRequest.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::Cms::Model::DeleteGroupMonitoringAgentProcessRequest; - -DeleteGroupMonitoringAgentProcessRequest::DeleteGroupMonitoringAgentProcessRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteGroupMonitoringAgentProcess") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteGroupMonitoringAgentProcessRequest::~DeleteGroupMonitoringAgentProcessRequest() -{} - -std::string DeleteGroupMonitoringAgentProcessRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteGroupMonitoringAgentProcessRequest; + +DeleteGroupMonitoringAgentProcessRequest::DeleteGroupMonitoringAgentProcessRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteGroupMonitoringAgentProcess") { + setMethod(HttpRequest::Method::Post); } -void DeleteGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +DeleteGroupMonitoringAgentProcessRequest::~DeleteGroupMonitoringAgentProcessRequest() {} + +std::string DeleteGroupMonitoringAgentProcessRequest::getGroupId() const { + return groupId_; } -std::string DeleteGroupMonitoringAgentProcessRequest::getId()const -{ - return id_; +void DeleteGroupMonitoringAgentProcessRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DeleteGroupMonitoringAgentProcessRequest::setId(const std::string& id) -{ - id_ = id; - setParameter("Id", id); +std::string DeleteGroupMonitoringAgentProcessRequest::getId() const { + return id_; +} + +void DeleteGroupMonitoringAgentProcessRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("Id"), id); } diff --git a/cms/src/model/DeleteHostAvailabilityRequest.cc b/cms/src/model/DeleteHostAvailabilityRequest.cc index 8b9799386..ab6327aef 100644 --- a/cms/src/model/DeleteHostAvailabilityRequest.cc +++ b/cms/src/model/DeleteHostAvailabilityRequest.cc @@ -1,42 +1,35 @@ /* * 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::Cms::Model::DeleteHostAvailabilityRequest; - -DeleteHostAvailabilityRequest::DeleteHostAvailabilityRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteHostAvailability") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteHostAvailabilityRequest::~DeleteHostAvailabilityRequest() -{} - -std::vector DeleteHostAvailabilityRequest::getId()const -{ - return id_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteHostAvailabilityRequest; + +DeleteHostAvailabilityRequest::DeleteHostAvailabilityRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteHostAvailability") { + setMethod(HttpRequest::Method::Post); } -void DeleteHostAvailabilityRequest::setId(const std::vector& id) -{ - id_ = id; - for(int dep1 = 0; dep1!= id.size(); dep1++) { - setParameter("Id."+ std::to_string(dep1), std::to_string(id.at(dep1))); - } +DeleteHostAvailabilityRequest::~DeleteHostAvailabilityRequest() {} + +std::vector DeleteHostAvailabilityRequest::getId() const { + return id_; +} + +void DeleteHostAvailabilityRequest::setId(const std::vector &id) { + id_ = id; } diff --git a/cms/src/model/DeleteLogMonitorRequest.cc b/cms/src/model/DeleteLogMonitorRequest.cc index a6448d514..c5f3e1da9 100644 --- a/cms/src/model/DeleteLogMonitorRequest.cc +++ b/cms/src/model/DeleteLogMonitorRequest.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::Cms::Model::DeleteLogMonitorRequest; - -DeleteLogMonitorRequest::DeleteLogMonitorRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteLogMonitor") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteLogMonitorRequest::~DeleteLogMonitorRequest() -{} - -long DeleteLogMonitorRequest::getLogId()const -{ - return logId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteLogMonitorRequest; + +DeleteLogMonitorRequest::DeleteLogMonitorRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteLogMonitor") { + setMethod(HttpRequest::Method::Post); } -void DeleteLogMonitorRequest::setLogId(long logId) -{ - logId_ = logId; - setParameter("LogId", std::to_string(logId)); +DeleteLogMonitorRequest::~DeleteLogMonitorRequest() {} + +long DeleteLogMonitorRequest::getLogId() const { + return logId_; +} + +void DeleteLogMonitorRequest::setLogId(long logId) { + logId_ = logId; + setParameter(std::string("LogId"), std::to_string(logId)); } diff --git a/cms/src/model/DeleteLogMonitorResult.cc b/cms/src/model/DeleteLogMonitorResult.cc index 10612c557..cf3cb9c7a 100644 --- a/cms/src/model/DeleteLogMonitorResult.cc +++ b/cms/src/model/DeleteLogMonitorResult.cc @@ -41,10 +41,10 @@ void DeleteLogMonitorResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DeleteMetricRuleResourcesRequest.cc b/cms/src/model/DeleteMetricRuleResourcesRequest.cc index d42720dd1..e8d1f19b9 100644 --- a/cms/src/model/DeleteMetricRuleResourcesRequest.cc +++ b/cms/src/model/DeleteMetricRuleResourcesRequest.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::Cms::Model::DeleteMetricRuleResourcesRequest; - -DeleteMetricRuleResourcesRequest::DeleteMetricRuleResourcesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleResources") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMetricRuleResourcesRequest::~DeleteMetricRuleResourcesRequest() -{} - -std::string DeleteMetricRuleResourcesRequest::getResources()const -{ - return resources_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMetricRuleResourcesRequest; + +DeleteMetricRuleResourcesRequest::DeleteMetricRuleResourcesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleResources") { + setMethod(HttpRequest::Method::Post); } -void DeleteMetricRuleResourcesRequest::setResources(const std::string& resources) -{ - resources_ = resources; - setParameter("Resources", resources); +DeleteMetricRuleResourcesRequest::~DeleteMetricRuleResourcesRequest() {} + +std::string DeleteMetricRuleResourcesRequest::getResources() const { + return resources_; } -std::string DeleteMetricRuleResourcesRequest::getRuleId()const -{ - return ruleId_; +void DeleteMetricRuleResourcesRequest::setResources(const std::string &resources) { + resources_ = resources; + setParameter(std::string("Resources"), resources); } -void DeleteMetricRuleResourcesRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); +std::string DeleteMetricRuleResourcesRequest::getRuleId() const { + return ruleId_; +} + +void DeleteMetricRuleResourcesRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } diff --git a/cms/src/model/DeleteMetricRuleResourcesResult.cc b/cms/src/model/DeleteMetricRuleResourcesResult.cc index 90593aa9b..dbd40df58 100644 --- a/cms/src/model/DeleteMetricRuleResourcesResult.cc +++ b/cms/src/model/DeleteMetricRuleResourcesResult.cc @@ -39,12 +39,12 @@ void DeleteMetricRuleResourcesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DeleteMetricRuleTargetsRequest.cc b/cms/src/model/DeleteMetricRuleTargetsRequest.cc index ccaae1216..c1e5dbe74 100644 --- a/cms/src/model/DeleteMetricRuleTargetsRequest.cc +++ b/cms/src/model/DeleteMetricRuleTargetsRequest.cc @@ -1,53 +1,44 @@ /* * 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::Cms::Model::DeleteMetricRuleTargetsRequest; - -DeleteMetricRuleTargetsRequest::DeleteMetricRuleTargetsRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleTargets") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMetricRuleTargetsRequest::~DeleteMetricRuleTargetsRequest() -{} - -std::vector DeleteMetricRuleTargetsRequest::getTargetIds()const -{ - return targetIds_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMetricRuleTargetsRequest; + +DeleteMetricRuleTargetsRequest::DeleteMetricRuleTargetsRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleTargets") { + setMethod(HttpRequest::Method::Post); } -void DeleteMetricRuleTargetsRequest::setTargetIds(const std::vector& targetIds) -{ - targetIds_ = targetIds; - for(int dep1 = 0; dep1!= targetIds.size(); dep1++) { - setParameter("TargetIds."+ std::to_string(dep1), targetIds.at(dep1)); - } +DeleteMetricRuleTargetsRequest::~DeleteMetricRuleTargetsRequest() {} + +std::vector DeleteMetricRuleTargetsRequest::getTargetIds() const { + return targetIds_; } -std::string DeleteMetricRuleTargetsRequest::getRuleId()const -{ - return ruleId_; +void DeleteMetricRuleTargetsRequest::setTargetIds(const std::vector &targetIds) { + targetIds_ = targetIds; } -void DeleteMetricRuleTargetsRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); +std::string DeleteMetricRuleTargetsRequest::getRuleId() const { + return ruleId_; +} + +void DeleteMetricRuleTargetsRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } diff --git a/cms/src/model/DeleteMetricRuleTargetsResult.cc b/cms/src/model/DeleteMetricRuleTargetsResult.cc index 852a8bc95..d60fd6901 100644 --- a/cms/src/model/DeleteMetricRuleTargetsResult.cc +++ b/cms/src/model/DeleteMetricRuleTargetsResult.cc @@ -43,12 +43,12 @@ void DeleteMetricRuleTargetsResult::parse(const std::string &payload) auto allTargetIds = failIdsNode["TargetIds"]["TargetId"]; for (auto value : allTargetIds) failIds_.targetIds.push_back(value.asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DeleteMetricRuleTemplateRequest.cc b/cms/src/model/DeleteMetricRuleTemplateRequest.cc index 55f1ffb02..4b36f1cb7 100644 --- a/cms/src/model/DeleteMetricRuleTemplateRequest.cc +++ b/cms/src/model/DeleteMetricRuleTemplateRequest.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::Cms::Model::DeleteMetricRuleTemplateRequest; - -DeleteMetricRuleTemplateRequest::DeleteMetricRuleTemplateRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMetricRuleTemplateRequest::~DeleteMetricRuleTemplateRequest() -{} - -std::string DeleteMetricRuleTemplateRequest::getTemplateId()const -{ - return templateId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMetricRuleTemplateRequest; + +DeleteMetricRuleTemplateRequest::DeleteMetricRuleTemplateRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleTemplate") { + setMethod(HttpRequest::Method::Post); } -void DeleteMetricRuleTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +DeleteMetricRuleTemplateRequest::~DeleteMetricRuleTemplateRequest() {} + +std::string DeleteMetricRuleTemplateRequest::getTemplateId() const { + return templateId_; +} + +void DeleteMetricRuleTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } diff --git a/cms/src/model/DeleteMetricRulesRequest.cc b/cms/src/model/DeleteMetricRulesRequest.cc index ec1c6f11d..080fc5d7e 100644 --- a/cms/src/model/DeleteMetricRulesRequest.cc +++ b/cms/src/model/DeleteMetricRulesRequest.cc @@ -1,42 +1,35 @@ /* * 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::Cms::Model::DeleteMetricRulesRequest; - -DeleteMetricRulesRequest::DeleteMetricRulesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRules") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMetricRulesRequest::~DeleteMetricRulesRequest() -{} - -std::vector DeleteMetricRulesRequest::getId()const -{ - return id_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMetricRulesRequest; + +DeleteMetricRulesRequest::DeleteMetricRulesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRules") { + setMethod(HttpRequest::Method::Post); } -void DeleteMetricRulesRequest::setId(const std::vector& id) -{ - id_ = id; - for(int dep1 = 0; dep1!= id.size(); dep1++) { - setParameter("Id."+ std::to_string(dep1), id.at(dep1)); - } +DeleteMetricRulesRequest::~DeleteMetricRulesRequest() {} + +std::vector DeleteMetricRulesRequest::getId() const { + return id_; +} + +void DeleteMetricRulesRequest::setId(const std::vector &id) { + id_ = id; } diff --git a/cms/src/model/DeleteMetricRulesResult.cc b/cms/src/model/DeleteMetricRulesResult.cc index 2316927b3..dca3e2c6f 100644 --- a/cms/src/model/DeleteMetricRulesResult.cc +++ b/cms/src/model/DeleteMetricRulesResult.cc @@ -39,12 +39,12 @@ void DeleteMetricRulesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DeleteMonitorGroupDynamicRuleRequest.cc b/cms/src/model/DeleteMonitorGroupDynamicRuleRequest.cc index 986d6518e..aee03e3a0 100644 --- a/cms/src/model/DeleteMonitorGroupDynamicRuleRequest.cc +++ b/cms/src/model/DeleteMonitorGroupDynamicRuleRequest.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::Cms::Model::DeleteMonitorGroupDynamicRuleRequest; - -DeleteMonitorGroupDynamicRuleRequest::DeleteMonitorGroupDynamicRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupDynamicRule") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMonitorGroupDynamicRuleRequest::~DeleteMonitorGroupDynamicRuleRequest() -{} - -long DeleteMonitorGroupDynamicRuleRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMonitorGroupDynamicRuleRequest; + +DeleteMonitorGroupDynamicRuleRequest::DeleteMonitorGroupDynamicRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupDynamicRule") { + setMethod(HttpRequest::Method::Post); } -void DeleteMonitorGroupDynamicRuleRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DeleteMonitorGroupDynamicRuleRequest::~DeleteMonitorGroupDynamicRuleRequest() {} + +long DeleteMonitorGroupDynamicRuleRequest::getGroupId() const { + return groupId_; } -std::string DeleteMonitorGroupDynamicRuleRequest::getCategory()const -{ - return category_; +void DeleteMonitorGroupDynamicRuleRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } -void DeleteMonitorGroupDynamicRuleRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string DeleteMonitorGroupDynamicRuleRequest::getCategory() const { + return category_; +} + +void DeleteMonitorGroupDynamicRuleRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } diff --git a/cms/src/model/DeleteMonitorGroupDynamicRuleResult.cc b/cms/src/model/DeleteMonitorGroupDynamicRuleResult.cc index 82c753017..d4c409f6b 100644 --- a/cms/src/model/DeleteMonitorGroupDynamicRuleResult.cc +++ b/cms/src/model/DeleteMonitorGroupDynamicRuleResult.cc @@ -39,12 +39,12 @@ void DeleteMonitorGroupDynamicRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DeleteMonitorGroupInstancesRequest.cc b/cms/src/model/DeleteMonitorGroupInstancesRequest.cc index 8c76cc8d1..baa0e930d 100644 --- a/cms/src/model/DeleteMonitorGroupInstancesRequest.cc +++ b/cms/src/model/DeleteMonitorGroupInstancesRequest.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::Cms::Model::DeleteMonitorGroupInstancesRequest; - -DeleteMonitorGroupInstancesRequest::DeleteMonitorGroupInstancesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMonitorGroupInstancesRequest::~DeleteMonitorGroupInstancesRequest() -{} - -long DeleteMonitorGroupInstancesRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMonitorGroupInstancesRequest; + +DeleteMonitorGroupInstancesRequest::DeleteMonitorGroupInstancesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupInstances") { + setMethod(HttpRequest::Method::Post); } -void DeleteMonitorGroupInstancesRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DeleteMonitorGroupInstancesRequest::~DeleteMonitorGroupInstancesRequest() {} + +long DeleteMonitorGroupInstancesRequest::getGroupId() const { + return groupId_; } -std::string DeleteMonitorGroupInstancesRequest::getInstanceIdList()const -{ - return instanceIdList_; +void DeleteMonitorGroupInstancesRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } -void DeleteMonitorGroupInstancesRequest::setInstanceIdList(const std::string& instanceIdList) -{ - instanceIdList_ = instanceIdList; - setParameter("InstanceIdList", instanceIdList); +std::string DeleteMonitorGroupInstancesRequest::getInstanceIdList() const { + return instanceIdList_; } -std::string DeleteMonitorGroupInstancesRequest::getCategory()const -{ - return category_; +void DeleteMonitorGroupInstancesRequest::setInstanceIdList(const std::string &instanceIdList) { + instanceIdList_ = instanceIdList; + setParameter(std::string("InstanceIdList"), instanceIdList); } -void DeleteMonitorGroupInstancesRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string DeleteMonitorGroupInstancesRequest::getCategory() const { + return category_; +} + +void DeleteMonitorGroupInstancesRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } diff --git a/cms/src/model/DeleteMonitorGroupInstancesResult.cc b/cms/src/model/DeleteMonitorGroupInstancesResult.cc index 6ab6b29f2..125663724 100644 --- a/cms/src/model/DeleteMonitorGroupInstancesResult.cc +++ b/cms/src/model/DeleteMonitorGroupInstancesResult.cc @@ -39,12 +39,12 @@ void DeleteMonitorGroupInstancesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DeleteMonitorGroupNotifyPolicyRequest.cc b/cms/src/model/DeleteMonitorGroupNotifyPolicyRequest.cc index a8fd1254e..8147207d2 100644 --- a/cms/src/model/DeleteMonitorGroupNotifyPolicyRequest.cc +++ b/cms/src/model/DeleteMonitorGroupNotifyPolicyRequest.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::Cms::Model::DeleteMonitorGroupNotifyPolicyRequest; - -DeleteMonitorGroupNotifyPolicyRequest::DeleteMonitorGroupNotifyPolicyRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupNotifyPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMonitorGroupNotifyPolicyRequest::~DeleteMonitorGroupNotifyPolicyRequest() -{} - -std::string DeleteMonitorGroupNotifyPolicyRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMonitorGroupNotifyPolicyRequest; + +DeleteMonitorGroupNotifyPolicyRequest::DeleteMonitorGroupNotifyPolicyRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupNotifyPolicy") { + setMethod(HttpRequest::Method::Post); } -void DeleteMonitorGroupNotifyPolicyRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +DeleteMonitorGroupNotifyPolicyRequest::~DeleteMonitorGroupNotifyPolicyRequest() {} + +std::string DeleteMonitorGroupNotifyPolicyRequest::getPolicyType() const { + return policyType_; } -std::string DeleteMonitorGroupNotifyPolicyRequest::getGroupId()const -{ - return groupId_; +void DeleteMonitorGroupNotifyPolicyRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void DeleteMonitorGroupNotifyPolicyRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DeleteMonitorGroupNotifyPolicyRequest::getGroupId() const { + return groupId_; +} + +void DeleteMonitorGroupNotifyPolicyRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } diff --git a/cms/src/model/DeleteMonitorGroupNotifyPolicyResult.cc b/cms/src/model/DeleteMonitorGroupNotifyPolicyResult.cc index a419baddc..68c0e0a38 100644 --- a/cms/src/model/DeleteMonitorGroupNotifyPolicyResult.cc +++ b/cms/src/model/DeleteMonitorGroupNotifyPolicyResult.cc @@ -43,10 +43,10 @@ void DeleteMonitorGroupNotifyPolicyResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); if(!value["Result"].isNull()) result_ = std::stoi(value["Result"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } diff --git a/cms/src/model/DeleteMonitorGroupRequest.cc b/cms/src/model/DeleteMonitorGroupRequest.cc index a5161b060..2b566289e 100644 --- a/cms/src/model/DeleteMonitorGroupRequest.cc +++ b/cms/src/model/DeleteMonitorGroupRequest.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::Cms::Model::DeleteMonitorGroupRequest; - -DeleteMonitorGroupRequest::DeleteMonitorGroupRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMonitorGroupRequest::~DeleteMonitorGroupRequest() -{} - -long DeleteMonitorGroupRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMonitorGroupRequest; + +DeleteMonitorGroupRequest::DeleteMonitorGroupRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroup") { + setMethod(HttpRequest::Method::Post); } -void DeleteMonitorGroupRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DeleteMonitorGroupRequest::~DeleteMonitorGroupRequest() {} + +long DeleteMonitorGroupRequest::getGroupId() const { + return groupId_; +} + +void DeleteMonitorGroupRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } diff --git a/cms/src/model/DeleteMonitorGroupResult.cc b/cms/src/model/DeleteMonitorGroupResult.cc index ce3182d3c..cf5328043 100644 --- a/cms/src/model/DeleteMonitorGroupResult.cc +++ b/cms/src/model/DeleteMonitorGroupResult.cc @@ -50,12 +50,12 @@ void DeleteMonitorGroupResult::parse(const std::string &payload) contactGroupObject.name = groupNodeContactGroupsContactGroup["Name"].asString(); group_.contactGroups.push_back(contactGroupObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DeleteMonitoringAgentProcessRequest.cc b/cms/src/model/DeleteMonitoringAgentProcessRequest.cc index 0930e45ef..0bfb5ee3a 100644 --- a/cms/src/model/DeleteMonitoringAgentProcessRequest.cc +++ b/cms/src/model/DeleteMonitoringAgentProcessRequest.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::Cms::Model::DeleteMonitoringAgentProcessRequest; - -DeleteMonitoringAgentProcessRequest::DeleteMonitoringAgentProcessRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteMonitoringAgentProcess") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMonitoringAgentProcessRequest::~DeleteMonitoringAgentProcessRequest() -{} - -std::string DeleteMonitoringAgentProcessRequest::getProcessName()const -{ - return processName_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMonitoringAgentProcessRequest; + +DeleteMonitoringAgentProcessRequest::DeleteMonitoringAgentProcessRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteMonitoringAgentProcess") { + setMethod(HttpRequest::Method::Post); } -void DeleteMonitoringAgentProcessRequest::setProcessName(const std::string& processName) -{ - processName_ = processName; - setParameter("ProcessName", processName); +DeleteMonitoringAgentProcessRequest::~DeleteMonitoringAgentProcessRequest() {} + +std::string DeleteMonitoringAgentProcessRequest::getProcessName() const { + return processName_; } -std::string DeleteMonitoringAgentProcessRequest::getInstanceId()const -{ - return instanceId_; +void DeleteMonitoringAgentProcessRequest::setProcessName(const std::string &processName) { + processName_ = processName; + setParameter(std::string("ProcessName"), processName); } -void DeleteMonitoringAgentProcessRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteMonitoringAgentProcessRequest::getInstanceId() const { + return instanceId_; } -std::string DeleteMonitoringAgentProcessRequest::getProcessId()const -{ - return processId_; +void DeleteMonitoringAgentProcessRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DeleteMonitoringAgentProcessRequest::setProcessId(const std::string& processId) -{ - processId_ = processId; - setParameter("ProcessId", processId); +std::string DeleteMonitoringAgentProcessRequest::getProcessId() const { + return processId_; +} + +void DeleteMonitoringAgentProcessRequest::setProcessId(const std::string &processId) { + processId_ = processId; + setParameter(std::string("ProcessId"), processId); } diff --git a/cms/src/model/DeleteSiteMonitorsRequest.cc b/cms/src/model/DeleteSiteMonitorsRequest.cc index 754b5af2d..06e7c89de 100644 --- a/cms/src/model/DeleteSiteMonitorsRequest.cc +++ b/cms/src/model/DeleteSiteMonitorsRequest.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::Cms::Model::DeleteSiteMonitorsRequest; - -DeleteSiteMonitorsRequest::DeleteSiteMonitorsRequest() : - RpcServiceRequest("cms", "2019-01-01", "DeleteSiteMonitors") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSiteMonitorsRequest::~DeleteSiteMonitorsRequest() -{} - -bool DeleteSiteMonitorsRequest::getIsDeleteAlarms()const -{ - return isDeleteAlarms_; + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteSiteMonitorsRequest; + +DeleteSiteMonitorsRequest::DeleteSiteMonitorsRequest() + : RpcServiceRequest("cms", "2019-01-01", "DeleteSiteMonitors") { + setMethod(HttpRequest::Method::Post); } -void DeleteSiteMonitorsRequest::setIsDeleteAlarms(bool isDeleteAlarms) -{ - isDeleteAlarms_ = isDeleteAlarms; - setParameter("IsDeleteAlarms", isDeleteAlarms ? "true" : "false"); +DeleteSiteMonitorsRequest::~DeleteSiteMonitorsRequest() {} + +bool DeleteSiteMonitorsRequest::getIsDeleteAlarms() const { + return isDeleteAlarms_; } -std::string DeleteSiteMonitorsRequest::getTaskIds()const -{ - return taskIds_; +void DeleteSiteMonitorsRequest::setIsDeleteAlarms(bool isDeleteAlarms) { + isDeleteAlarms_ = isDeleteAlarms; + setParameter(std::string("IsDeleteAlarms"), isDeleteAlarms ? "true" : "false"); } -void DeleteSiteMonitorsRequest::setTaskIds(const std::string& taskIds) -{ - taskIds_ = taskIds; - setParameter("TaskIds", taskIds); +std::string DeleteSiteMonitorsRequest::getTaskIds() const { + return taskIds_; +} + +void DeleteSiteMonitorsRequest::setTaskIds(const std::string &taskIds) { + taskIds_ = taskIds; + setParameter(std::string("TaskIds"), taskIds); } diff --git a/cms/src/model/DescribeActiveMetricRuleListRequest.cc b/cms/src/model/DescribeActiveMetricRuleListRequest.cc index fbed220af..7909d934e 100644 --- a/cms/src/model/DescribeActiveMetricRuleListRequest.cc +++ b/cms/src/model/DescribeActiveMetricRuleListRequest.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::Cms::Model::DescribeActiveMetricRuleListRequest; - -DescribeActiveMetricRuleListRequest::DescribeActiveMetricRuleListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeActiveMetricRuleList") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeActiveMetricRuleListRequest::~DescribeActiveMetricRuleListRequest() -{} - -std::string DescribeActiveMetricRuleListRequest::getProduct()const -{ - return product_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeActiveMetricRuleListRequest; + +DescribeActiveMetricRuleListRequest::DescribeActiveMetricRuleListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeActiveMetricRuleList") { + setMethod(HttpRequest::Method::Get); } -void DescribeActiveMetricRuleListRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); +DescribeActiveMetricRuleListRequest::~DescribeActiveMetricRuleListRequest() {} + +std::string DescribeActiveMetricRuleListRequest::getProduct() const { + return product_; +} + +void DescribeActiveMetricRuleListRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("Product"), product); } diff --git a/cms/src/model/DescribeAlertHistoryListRequest.cc b/cms/src/model/DescribeAlertHistoryListRequest.cc index c33b750ee..45d597f97 100644 --- a/cms/src/model/DescribeAlertHistoryListRequest.cc +++ b/cms/src/model/DescribeAlertHistoryListRequest.cc @@ -1,161 +1,135 @@ /* * 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::Cms::Model::DescribeAlertHistoryListRequest; - -DescribeAlertHistoryListRequest::DescribeAlertHistoryListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeAlertHistoryList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAlertHistoryListRequest::~DescribeAlertHistoryListRequest() -{} - -std::string DescribeAlertHistoryListRequest::getRuleName()const -{ - return ruleName_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeAlertHistoryListRequest; + +DescribeAlertHistoryListRequest::DescribeAlertHistoryListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeAlertHistoryList") { + setMethod(HttpRequest::Method::Post); } -void DescribeAlertHistoryListRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +DescribeAlertHistoryListRequest::~DescribeAlertHistoryListRequest() {} + +std::string DescribeAlertHistoryListRequest::getRuleName() const { + return ruleName_; } -std::string DescribeAlertHistoryListRequest::getStartTime()const -{ - return startTime_; +void DescribeAlertHistoryListRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void DescribeAlertHistoryListRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeAlertHistoryListRequest::getStartTime() const { + return startTime_; } -int DescribeAlertHistoryListRequest::getPageSize()const -{ - return pageSize_; +void DescribeAlertHistoryListRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeAlertHistoryListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAlertHistoryListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeAlertHistoryListRequest::getState()const -{ - return state_; +void DescribeAlertHistoryListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAlertHistoryListRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string DescribeAlertHistoryListRequest::getState() const { + return state_; } -std::string DescribeAlertHistoryListRequest::getMetricName()const -{ - return metricName_; +void DescribeAlertHistoryListRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void DescribeAlertHistoryListRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeAlertHistoryListRequest::getMetricName() const { + return metricName_; } -std::string DescribeAlertHistoryListRequest::getGroupId()const -{ - return groupId_; +void DescribeAlertHistoryListRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeAlertHistoryListRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeAlertHistoryListRequest::getGroupId() const { + return groupId_; } -std::string DescribeAlertHistoryListRequest::getEndTime()const -{ - return endTime_; +void DescribeAlertHistoryListRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeAlertHistoryListRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeAlertHistoryListRequest::getEndTime() const { + return endTime_; } -bool DescribeAlertHistoryListRequest::getAscending()const -{ - return ascending_; +void DescribeAlertHistoryListRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeAlertHistoryListRequest::setAscending(bool ascending) -{ - ascending_ = ascending; - setParameter("Ascending", ascending ? "true" : "false"); +bool DescribeAlertHistoryListRequest::getAscending() const { + return ascending_; } -std::string DescribeAlertHistoryListRequest::get_Namespace()const -{ - return _namespace_; +void DescribeAlertHistoryListRequest::setAscending(bool ascending) { + ascending_ = ascending; + setParameter(std::string("Ascending"), ascending ? "true" : "false"); } -void DescribeAlertHistoryListRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string DescribeAlertHistoryListRequest::get_Namespace() const { + return _namespace_; } -int DescribeAlertHistoryListRequest::getPage()const -{ - return page_; +void DescribeAlertHistoryListRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -void DescribeAlertHistoryListRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +int DescribeAlertHistoryListRequest::getPage() const { + return page_; } -std::string DescribeAlertHistoryListRequest::getRuleId()const -{ - return ruleId_; +void DescribeAlertHistoryListRequest::setPage(int page) { + page_ = page; + setParameter(std::string("Page"), std::to_string(page)); } -void DescribeAlertHistoryListRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); +std::string DescribeAlertHistoryListRequest::getRuleId() const { + return ruleId_; } -std::string DescribeAlertHistoryListRequest::getStatus()const -{ - return status_; +void DescribeAlertHistoryListRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } -void DescribeAlertHistoryListRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeAlertHistoryListRequest::getStatus() const { + return status_; +} + +void DescribeAlertHistoryListRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/cms/src/model/DescribeAlertHistoryListResult.cc b/cms/src/model/DescribeAlertHistoryListResult.cc index 1c836cdd2..4e68f937c 100644 --- a/cms/src/model/DescribeAlertHistoryListResult.cc +++ b/cms/src/model/DescribeAlertHistoryListResult.cc @@ -43,65 +43,65 @@ void DescribeAlertHistoryListResult::parse(const std::string &payload) for (auto valueAlarmHistoryListAlarmHistory : allAlarmHistoryListNode) { AlarmHistory alarmHistoryListObject; - if(!valueAlarmHistoryListAlarmHistory["RuleId"].isNull()) - alarmHistoryListObject.ruleId = valueAlarmHistoryListAlarmHistory["RuleId"].asString(); - if(!valueAlarmHistoryListAlarmHistory["GroupId"].isNull()) - alarmHistoryListObject.groupId = valueAlarmHistoryListAlarmHistory["GroupId"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Namespace"].isNull()) - alarmHistoryListObject._namespace = valueAlarmHistoryListAlarmHistory["Namespace"].asString(); - if(!valueAlarmHistoryListAlarmHistory["MetricName"].isNull()) - alarmHistoryListObject.metricName = valueAlarmHistoryListAlarmHistory["MetricName"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Dimensions"].isNull()) - alarmHistoryListObject.dimensions = valueAlarmHistoryListAlarmHistory["Dimensions"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Expression"].isNull()) - alarmHistoryListObject.expression = valueAlarmHistoryListAlarmHistory["Expression"].asString(); - if(!valueAlarmHistoryListAlarmHistory["EvaluationCount"].isNull()) - alarmHistoryListObject.evaluationCount = std::stoi(valueAlarmHistoryListAlarmHistory["EvaluationCount"].asString()); - if(!valueAlarmHistoryListAlarmHistory["Value"].isNull()) - alarmHistoryListObject.value = valueAlarmHistoryListAlarmHistory["Value"].asString(); - if(!valueAlarmHistoryListAlarmHistory["AlertTime"].isNull()) - alarmHistoryListObject.alertTime = std::stol(valueAlarmHistoryListAlarmHistory["AlertTime"].asString()); - if(!valueAlarmHistoryListAlarmHistory["LastTime"].isNull()) - alarmHistoryListObject.lastTime = std::stol(valueAlarmHistoryListAlarmHistory["LastTime"].asString()); - if(!valueAlarmHistoryListAlarmHistory["Level"].isNull()) - alarmHistoryListObject.level = valueAlarmHistoryListAlarmHistory["Level"].asString(); - if(!valueAlarmHistoryListAlarmHistory["PreLevel"].isNull()) - alarmHistoryListObject.preLevel = valueAlarmHistoryListAlarmHistory["PreLevel"].asString(); - if(!valueAlarmHistoryListAlarmHistory["RuleName"].isNull()) - alarmHistoryListObject.ruleName = valueAlarmHistoryListAlarmHistory["RuleName"].asString(); - if(!valueAlarmHistoryListAlarmHistory["State"].isNull()) - alarmHistoryListObject.state = valueAlarmHistoryListAlarmHistory["State"].asString(); if(!valueAlarmHistoryListAlarmHistory["Status"].isNull()) alarmHistoryListObject.status = std::stoi(valueAlarmHistoryListAlarmHistory["Status"].asString()); + if(!valueAlarmHistoryListAlarmHistory["MetricName"].isNull()) + alarmHistoryListObject.metricName = valueAlarmHistoryListAlarmHistory["MetricName"].asString(); + if(!valueAlarmHistoryListAlarmHistory["EvaluationCount"].isNull()) + alarmHistoryListObject.evaluationCount = std::stoi(valueAlarmHistoryListAlarmHistory["EvaluationCount"].asString()); + if(!valueAlarmHistoryListAlarmHistory["State"].isNull()) + alarmHistoryListObject.state = valueAlarmHistoryListAlarmHistory["State"].asString(); + if(!valueAlarmHistoryListAlarmHistory["PreLevel"].isNull()) + alarmHistoryListObject.preLevel = valueAlarmHistoryListAlarmHistory["PreLevel"].asString(); + if(!valueAlarmHistoryListAlarmHistory["Namespace"].isNull()) + alarmHistoryListObject._namespace = valueAlarmHistoryListAlarmHistory["Namespace"].asString(); if(!valueAlarmHistoryListAlarmHistory["Webhooks"].isNull()) alarmHistoryListObject.webhooks = valueAlarmHistoryListAlarmHistory["Webhooks"].asString(); + if(!valueAlarmHistoryListAlarmHistory["RuleName"].isNull()) + alarmHistoryListObject.ruleName = valueAlarmHistoryListAlarmHistory["RuleName"].asString(); + if(!valueAlarmHistoryListAlarmHistory["RuleId"].isNull()) + alarmHistoryListObject.ruleId = valueAlarmHistoryListAlarmHistory["RuleId"].asString(); + if(!valueAlarmHistoryListAlarmHistory["LastTime"].isNull()) + alarmHistoryListObject.lastTime = std::stol(valueAlarmHistoryListAlarmHistory["LastTime"].asString()); + if(!valueAlarmHistoryListAlarmHistory["Value"].isNull()) + alarmHistoryListObject.value = valueAlarmHistoryListAlarmHistory["Value"].asString(); + if(!valueAlarmHistoryListAlarmHistory["Expression"].isNull()) + alarmHistoryListObject.expression = valueAlarmHistoryListAlarmHistory["Expression"].asString(); + if(!valueAlarmHistoryListAlarmHistory["GroupId"].isNull()) + alarmHistoryListObject.groupId = valueAlarmHistoryListAlarmHistory["GroupId"].asString(); + if(!valueAlarmHistoryListAlarmHistory["AlertTime"].isNull()) + alarmHistoryListObject.alertTime = std::stol(valueAlarmHistoryListAlarmHistory["AlertTime"].asString()); if(!valueAlarmHistoryListAlarmHistory["InstanceName"].isNull()) alarmHistoryListObject.instanceName = valueAlarmHistoryListAlarmHistory["InstanceName"].asString(); - auto allContactGroups = value["ContactGroups"]["ContactGroup"]; - for (auto value : allContactGroups) - alarmHistoryListObject.contactGroups.push_back(value.asString()); + if(!valueAlarmHistoryListAlarmHistory["Dimensions"].isNull()) + alarmHistoryListObject.dimensions = valueAlarmHistoryListAlarmHistory["Dimensions"].asString(); + if(!valueAlarmHistoryListAlarmHistory["Level"].isNull()) + alarmHistoryListObject.level = valueAlarmHistoryListAlarmHistory["Level"].asString(); auto allContacts = value["Contacts"]["Contact"]; for (auto value : allContacts) alarmHistoryListObject.contacts.push_back(value.asString()); auto allContactALIIMs = value["ContactALIIMs"]["ContactALIIM"]; for (auto value : allContactALIIMs) alarmHistoryListObject.contactALIIMs.push_back(value.asString()); - auto allContactSmses = value["ContactSmses"]["ContactSms"]; - for (auto value : allContactSmses) - alarmHistoryListObject.contactSmses.push_back(value.asString()); auto allContactMails = value["ContactMails"]["ContactMail"]; for (auto value : allContactMails) alarmHistoryListObject.contactMails.push_back(value.asString()); + auto allContactSmses = value["ContactSmses"]["ContactSms"]; + for (auto value : allContactSmses) + alarmHistoryListObject.contactSmses.push_back(value.asString()); + auto allContactGroups = value["ContactGroups"]["ContactGroup"]; + for (auto value : allContactGroups) + alarmHistoryListObject.contactGroups.push_back(value.asString()); alarmHistoryList_.push_back(alarmHistoryListObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Total"].isNull()) total_ = value["Total"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeAlertLogCountRequest.cc b/cms/src/model/DescribeAlertLogCountRequest.cc index dae797ea2..ae8fb3741 100644 --- a/cms/src/model/DescribeAlertLogCountRequest.cc +++ b/cms/src/model/DescribeAlertLogCountRequest.cc @@ -1,194 +1,162 @@ /* * 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::Cms::Model::DescribeAlertLogCountRequest; - -DescribeAlertLogCountRequest::DescribeAlertLogCountRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeAlertLogCount") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAlertLogCountRequest::~DescribeAlertLogCountRequest() -{} - -std::string DescribeAlertLogCountRequest::getSendStatus()const -{ - return sendStatus_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeAlertLogCountRequest; + +DescribeAlertLogCountRequest::DescribeAlertLogCountRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeAlertLogCount") { + setMethod(HttpRequest::Method::Post); } -void DescribeAlertLogCountRequest::setSendStatus(const std::string& sendStatus) -{ - sendStatus_ = sendStatus; - setParameter("SendStatus", sendStatus); +DescribeAlertLogCountRequest::~DescribeAlertLogCountRequest() {} + +std::string DescribeAlertLogCountRequest::getSendStatus() const { + return sendStatus_; } -std::string DescribeAlertLogCountRequest::getContactGroup()const -{ - return contactGroup_; +void DescribeAlertLogCountRequest::setSendStatus(const std::string &sendStatus) { + sendStatus_ = sendStatus; + setParameter(std::string("SendStatus"), sendStatus); } -void DescribeAlertLogCountRequest::setContactGroup(const std::string& contactGroup) -{ - contactGroup_ = contactGroup; - setParameter("ContactGroup", contactGroup); +std::string DescribeAlertLogCountRequest::getContactGroup() const { + return contactGroup_; } -std::string DescribeAlertLogCountRequest::getSearchKey()const -{ - return searchKey_; +void DescribeAlertLogCountRequest::setContactGroup(const std::string &contactGroup) { + contactGroup_ = contactGroup; + setParameter(std::string("ContactGroup"), contactGroup); } -void DescribeAlertLogCountRequest::setSearchKey(const std::string& searchKey) -{ - searchKey_ = searchKey; - setParameter("SearchKey", searchKey); +std::string DescribeAlertLogCountRequest::getSearchKey() const { + return searchKey_; } -std::string DescribeAlertLogCountRequest::getRuleName()const -{ - return ruleName_; +void DescribeAlertLogCountRequest::setSearchKey(const std::string &searchKey) { + searchKey_ = searchKey; + setParameter(std::string("SearchKey"), searchKey); } -void DescribeAlertLogCountRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +std::string DescribeAlertLogCountRequest::getRuleName() const { + return ruleName_; } -long DescribeAlertLogCountRequest::getStartTime()const -{ - return startTime_; +void DescribeAlertLogCountRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void DescribeAlertLogCountRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +long DescribeAlertLogCountRequest::getStartTime() const { + return startTime_; } -int DescribeAlertLogCountRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeAlertLogCountRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); } -void DescribeAlertLogCountRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeAlertLogCountRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeAlertLogCountRequest::getLastMin()const -{ - return lastMin_; +void DescribeAlertLogCountRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeAlertLogCountRequest::setLastMin(const std::string& lastMin) -{ - lastMin_ = lastMin; - setParameter("LastMin", lastMin); +std::string DescribeAlertLogCountRequest::getLastMin() const { + return lastMin_; } -int DescribeAlertLogCountRequest::getPageSize()const -{ - return pageSize_; +void DescribeAlertLogCountRequest::setLastMin(const std::string &lastMin) { + lastMin_ = lastMin; + setParameter(std::string("LastMin"), lastMin); } -void DescribeAlertLogCountRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAlertLogCountRequest::getPageSize() const { + return pageSize_; } -std::string DescribeAlertLogCountRequest::getMetricName()const -{ - return metricName_; +void DescribeAlertLogCountRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAlertLogCountRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeAlertLogCountRequest::getMetricName() const { + return metricName_; } -std::string DescribeAlertLogCountRequest::getProduct()const -{ - return product_; +void DescribeAlertLogCountRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeAlertLogCountRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); +std::string DescribeAlertLogCountRequest::getProduct() const { + return product_; } -std::string DescribeAlertLogCountRequest::getLevel()const -{ - return level_; +void DescribeAlertLogCountRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("Product"), product); } -void DescribeAlertLogCountRequest::setLevel(const std::string& level) -{ - level_ = level; - setParameter("Level", level); +std::string DescribeAlertLogCountRequest::getLevel() const { + return level_; } -std::string DescribeAlertLogCountRequest::getGroupId()const -{ - return groupId_; +void DescribeAlertLogCountRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); } -void DescribeAlertLogCountRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeAlertLogCountRequest::getGroupId() const { + return groupId_; } -long DescribeAlertLogCountRequest::getEndTime()const -{ - return endTime_; +void DescribeAlertLogCountRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeAlertLogCountRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long DescribeAlertLogCountRequest::getEndTime() const { + return endTime_; } -std::string DescribeAlertLogCountRequest::getGroupBy()const -{ - return groupBy_; +void DescribeAlertLogCountRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void DescribeAlertLogCountRequest::setGroupBy(const std::string& groupBy) -{ - groupBy_ = groupBy; - setParameter("GroupBy", groupBy); +std::string DescribeAlertLogCountRequest::getGroupBy() const { + return groupBy_; } -std::string DescribeAlertLogCountRequest::get_Namespace()const -{ - return _namespace_; +void DescribeAlertLogCountRequest::setGroupBy(const std::string &groupBy) { + groupBy_ = groupBy; + setParameter(std::string("GroupBy"), groupBy); } -void DescribeAlertLogCountRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string DescribeAlertLogCountRequest::get_Namespace() const { + return _namespace_; +} + +void DescribeAlertLogCountRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } diff --git a/cms/src/model/DescribeAlertLogHistogramRequest.cc b/cms/src/model/DescribeAlertLogHistogramRequest.cc index 8ffc41e05..4cfe2f38a 100644 --- a/cms/src/model/DescribeAlertLogHistogramRequest.cc +++ b/cms/src/model/DescribeAlertLogHistogramRequest.cc @@ -1,194 +1,162 @@ /* * 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::Cms::Model::DescribeAlertLogHistogramRequest; - -DescribeAlertLogHistogramRequest::DescribeAlertLogHistogramRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeAlertLogHistogram") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAlertLogHistogramRequest::~DescribeAlertLogHistogramRequest() -{} - -std::string DescribeAlertLogHistogramRequest::getSendStatus()const -{ - return sendStatus_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeAlertLogHistogramRequest; + +DescribeAlertLogHistogramRequest::DescribeAlertLogHistogramRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeAlertLogHistogram") { + setMethod(HttpRequest::Method::Post); } -void DescribeAlertLogHistogramRequest::setSendStatus(const std::string& sendStatus) -{ - sendStatus_ = sendStatus; - setParameter("SendStatus", sendStatus); +DescribeAlertLogHistogramRequest::~DescribeAlertLogHistogramRequest() {} + +std::string DescribeAlertLogHistogramRequest::getSendStatus() const { + return sendStatus_; } -std::string DescribeAlertLogHistogramRequest::getContactGroup()const -{ - return contactGroup_; +void DescribeAlertLogHistogramRequest::setSendStatus(const std::string &sendStatus) { + sendStatus_ = sendStatus; + setParameter(std::string("SendStatus"), sendStatus); } -void DescribeAlertLogHistogramRequest::setContactGroup(const std::string& contactGroup) -{ - contactGroup_ = contactGroup; - setParameter("ContactGroup", contactGroup); +std::string DescribeAlertLogHistogramRequest::getContactGroup() const { + return contactGroup_; } -std::string DescribeAlertLogHistogramRequest::getSearchKey()const -{ - return searchKey_; +void DescribeAlertLogHistogramRequest::setContactGroup(const std::string &contactGroup) { + contactGroup_ = contactGroup; + setParameter(std::string("ContactGroup"), contactGroup); } -void DescribeAlertLogHistogramRequest::setSearchKey(const std::string& searchKey) -{ - searchKey_ = searchKey; - setParameter("SearchKey", searchKey); +std::string DescribeAlertLogHistogramRequest::getSearchKey() const { + return searchKey_; } -std::string DescribeAlertLogHistogramRequest::getRuleName()const -{ - return ruleName_; +void DescribeAlertLogHistogramRequest::setSearchKey(const std::string &searchKey) { + searchKey_ = searchKey; + setParameter(std::string("SearchKey"), searchKey); } -void DescribeAlertLogHistogramRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +std::string DescribeAlertLogHistogramRequest::getRuleName() const { + return ruleName_; } -long DescribeAlertLogHistogramRequest::getStartTime()const -{ - return startTime_; +void DescribeAlertLogHistogramRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void DescribeAlertLogHistogramRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +long DescribeAlertLogHistogramRequest::getStartTime() const { + return startTime_; } -int DescribeAlertLogHistogramRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeAlertLogHistogramRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); } -void DescribeAlertLogHistogramRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeAlertLogHistogramRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeAlertLogHistogramRequest::getLastMin()const -{ - return lastMin_; +void DescribeAlertLogHistogramRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeAlertLogHistogramRequest::setLastMin(const std::string& lastMin) -{ - lastMin_ = lastMin; - setParameter("LastMin", lastMin); +std::string DescribeAlertLogHistogramRequest::getLastMin() const { + return lastMin_; } -int DescribeAlertLogHistogramRequest::getPageSize()const -{ - return pageSize_; +void DescribeAlertLogHistogramRequest::setLastMin(const std::string &lastMin) { + lastMin_ = lastMin; + setParameter(std::string("LastMin"), lastMin); } -void DescribeAlertLogHistogramRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAlertLogHistogramRequest::getPageSize() const { + return pageSize_; } -std::string DescribeAlertLogHistogramRequest::getMetricName()const -{ - return metricName_; +void DescribeAlertLogHistogramRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAlertLogHistogramRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeAlertLogHistogramRequest::getMetricName() const { + return metricName_; } -std::string DescribeAlertLogHistogramRequest::getProduct()const -{ - return product_; +void DescribeAlertLogHistogramRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeAlertLogHistogramRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); +std::string DescribeAlertLogHistogramRequest::getProduct() const { + return product_; } -std::string DescribeAlertLogHistogramRequest::getLevel()const -{ - return level_; +void DescribeAlertLogHistogramRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("Product"), product); } -void DescribeAlertLogHistogramRequest::setLevel(const std::string& level) -{ - level_ = level; - setParameter("Level", level); +std::string DescribeAlertLogHistogramRequest::getLevel() const { + return level_; } -std::string DescribeAlertLogHistogramRequest::getGroupId()const -{ - return groupId_; +void DescribeAlertLogHistogramRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); } -void DescribeAlertLogHistogramRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeAlertLogHistogramRequest::getGroupId() const { + return groupId_; } -long DescribeAlertLogHistogramRequest::getEndTime()const -{ - return endTime_; +void DescribeAlertLogHistogramRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeAlertLogHistogramRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long DescribeAlertLogHistogramRequest::getEndTime() const { + return endTime_; } -std::string DescribeAlertLogHistogramRequest::getGroupBy()const -{ - return groupBy_; +void DescribeAlertLogHistogramRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void DescribeAlertLogHistogramRequest::setGroupBy(const std::string& groupBy) -{ - groupBy_ = groupBy; - setParameter("GroupBy", groupBy); +std::string DescribeAlertLogHistogramRequest::getGroupBy() const { + return groupBy_; } -std::string DescribeAlertLogHistogramRequest::get_Namespace()const -{ - return _namespace_; +void DescribeAlertLogHistogramRequest::setGroupBy(const std::string &groupBy) { + groupBy_ = groupBy; + setParameter(std::string("GroupBy"), groupBy); } -void DescribeAlertLogHistogramRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string DescribeAlertLogHistogramRequest::get_Namespace() const { + return _namespace_; +} + +void DescribeAlertLogHistogramRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } diff --git a/cms/src/model/DescribeAlertLogHistogramResult.cc b/cms/src/model/DescribeAlertLogHistogramResult.cc index c96954654..86e6fd5bc 100644 --- a/cms/src/model/DescribeAlertLogHistogramResult.cc +++ b/cms/src/model/DescribeAlertLogHistogramResult.cc @@ -43,12 +43,12 @@ void DescribeAlertLogHistogramResult::parse(const std::string &payload) for (auto valueAlertLogHistogramListAlertLogHistogramListItem : allAlertLogHistogramListNode) { AlertLogHistogramListItem alertLogHistogramListObject; - if(!valueAlertLogHistogramListAlertLogHistogramListItem["Count"].isNull()) - alertLogHistogramListObject.count = std::stoi(valueAlertLogHistogramListAlertLogHistogramListItem["Count"].asString()); if(!valueAlertLogHistogramListAlertLogHistogramListItem["From"].isNull()) alertLogHistogramListObject.from = std::stol(valueAlertLogHistogramListAlertLogHistogramListItem["From"].asString()); if(!valueAlertLogHistogramListAlertLogHistogramListItem["To"].isNull()) alertLogHistogramListObject.to = std::stol(valueAlertLogHistogramListAlertLogHistogramListItem["To"].asString()); + if(!valueAlertLogHistogramListAlertLogHistogramListItem["Count"].isNull()) + alertLogHistogramListObject.count = std::stoi(valueAlertLogHistogramListAlertLogHistogramListItem["Count"].asString()); alertLogHistogramList_.push_back(alertLogHistogramListObject); } if(!value["Code"].isNull()) diff --git a/cms/src/model/DescribeAlertLogListRequest.cc b/cms/src/model/DescribeAlertLogListRequest.cc index 121f3eea7..df9158b6a 100644 --- a/cms/src/model/DescribeAlertLogListRequest.cc +++ b/cms/src/model/DescribeAlertLogListRequest.cc @@ -1,194 +1,171 @@ /* * 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::Cms::Model::DescribeAlertLogListRequest; - -DescribeAlertLogListRequest::DescribeAlertLogListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeAlertLogList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAlertLogListRequest::~DescribeAlertLogListRequest() -{} - -std::string DescribeAlertLogListRequest::getSendStatus()const -{ - return sendStatus_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeAlertLogListRequest; + +DescribeAlertLogListRequest::DescribeAlertLogListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeAlertLogList") { + setMethod(HttpRequest::Method::Post); } -void DescribeAlertLogListRequest::setSendStatus(const std::string& sendStatus) -{ - sendStatus_ = sendStatus; - setParameter("SendStatus", sendStatus); +DescribeAlertLogListRequest::~DescribeAlertLogListRequest() {} + +std::string DescribeAlertLogListRequest::getSendStatus() const { + return sendStatus_; } -std::string DescribeAlertLogListRequest::getContactGroup()const -{ - return contactGroup_; +void DescribeAlertLogListRequest::setSendStatus(const std::string &sendStatus) { + sendStatus_ = sendStatus; + setParameter(std::string("SendStatus"), sendStatus); } -void DescribeAlertLogListRequest::setContactGroup(const std::string& contactGroup) -{ - contactGroup_ = contactGroup; - setParameter("ContactGroup", contactGroup); +std::string DescribeAlertLogListRequest::getContactGroup() const { + return contactGroup_; } -std::string DescribeAlertLogListRequest::getSearchKey()const -{ - return searchKey_; +void DescribeAlertLogListRequest::setContactGroup(const std::string &contactGroup) { + contactGroup_ = contactGroup; + setParameter(std::string("ContactGroup"), contactGroup); } -void DescribeAlertLogListRequest::setSearchKey(const std::string& searchKey) -{ - searchKey_ = searchKey; - setParameter("SearchKey", searchKey); +std::string DescribeAlertLogListRequest::getSearchKey() const { + return searchKey_; } -std::string DescribeAlertLogListRequest::getRuleName()const -{ - return ruleName_; +void DescribeAlertLogListRequest::setSearchKey(const std::string &searchKey) { + searchKey_ = searchKey; + setParameter(std::string("SearchKey"), searchKey); } -void DescribeAlertLogListRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +std::string DescribeAlertLogListRequest::getRuleName() const { + return ruleName_; } -long DescribeAlertLogListRequest::getStartTime()const -{ - return startTime_; +void DescribeAlertLogListRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void DescribeAlertLogListRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +long DescribeAlertLogListRequest::getStartTime() const { + return startTime_; } -int DescribeAlertLogListRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeAlertLogListRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); } -void DescribeAlertLogListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeAlertLogListRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeAlertLogListRequest::getLastMin()const -{ - return lastMin_; +void DescribeAlertLogListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeAlertLogListRequest::setLastMin(const std::string& lastMin) -{ - lastMin_ = lastMin; - setParameter("LastMin", lastMin); +std::string DescribeAlertLogListRequest::getLastMin() const { + return lastMin_; } -int DescribeAlertLogListRequest::getPageSize()const -{ - return pageSize_; +void DescribeAlertLogListRequest::setLastMin(const std::string &lastMin) { + lastMin_ = lastMin; + setParameter(std::string("LastMin"), lastMin); } -void DescribeAlertLogListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAlertLogListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeAlertLogListRequest::getMetricName()const -{ - return metricName_; +void DescribeAlertLogListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAlertLogListRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeAlertLogListRequest::getMetricName() const { + return metricName_; } -std::string DescribeAlertLogListRequest::getProduct()const -{ - return product_; +void DescribeAlertLogListRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeAlertLogListRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); +std::string DescribeAlertLogListRequest::getProduct() const { + return product_; } -std::string DescribeAlertLogListRequest::getLevel()const -{ - return level_; +void DescribeAlertLogListRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("Product"), product); } -void DescribeAlertLogListRequest::setLevel(const std::string& level) -{ - level_ = level; - setParameter("Level", level); +std::string DescribeAlertLogListRequest::getLevel() const { + return level_; } -std::string DescribeAlertLogListRequest::getGroupId()const -{ - return groupId_; +void DescribeAlertLogListRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); } -void DescribeAlertLogListRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeAlertLogListRequest::getGroupId() const { + return groupId_; } -long DescribeAlertLogListRequest::getEndTime()const -{ - return endTime_; +void DescribeAlertLogListRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeAlertLogListRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long DescribeAlertLogListRequest::getEndTime() const { + return endTime_; } -std::string DescribeAlertLogListRequest::getGroupBy()const -{ - return groupBy_; +void DescribeAlertLogListRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void DescribeAlertLogListRequest::setGroupBy(const std::string& groupBy) -{ - groupBy_ = groupBy; - setParameter("GroupBy", groupBy); +std::string DescribeAlertLogListRequest::getGroupBy() const { + return groupBy_; } -std::string DescribeAlertLogListRequest::get_Namespace()const -{ - return _namespace_; +void DescribeAlertLogListRequest::setGroupBy(const std::string &groupBy) { + groupBy_ = groupBy; + setParameter(std::string("GroupBy"), groupBy); } -void DescribeAlertLogListRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string DescribeAlertLogListRequest::get_Namespace() const { + return _namespace_; +} + +void DescribeAlertLogListRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string DescribeAlertLogListRequest::getRuleId() const { + return ruleId_; +} + +void DescribeAlertLogListRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } diff --git a/cms/src/model/DescribeAlertingMetricRuleResourcesRequest.cc b/cms/src/model/DescribeAlertingMetricRuleResourcesRequest.cc index ef4b7d9f8..e568f631b 100644 --- a/cms/src/model/DescribeAlertingMetricRuleResourcesRequest.cc +++ b/cms/src/model/DescribeAlertingMetricRuleResourcesRequest.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::Cms::Model::DescribeAlertingMetricRuleResourcesRequest; - -DescribeAlertingMetricRuleResourcesRequest::DescribeAlertingMetricRuleResourcesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeAlertingMetricRuleResources") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeAlertingMetricRuleResourcesRequest::~DescribeAlertingMetricRuleResourcesRequest() -{} - -std::string DescribeAlertingMetricRuleResourcesRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeAlertingMetricRuleResourcesRequest; + +DescribeAlertingMetricRuleResourcesRequest::DescribeAlertingMetricRuleResourcesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeAlertingMetricRuleResources") { + setMethod(HttpRequest::Method::Get); } -void DescribeAlertingMetricRuleResourcesRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +DescribeAlertingMetricRuleResourcesRequest::~DescribeAlertingMetricRuleResourcesRequest() {} + +std::string DescribeAlertingMetricRuleResourcesRequest::getGroupId() const { + return groupId_; } -int DescribeAlertingMetricRuleResourcesRequest::getPageSize()const -{ - return pageSize_; +void DescribeAlertingMetricRuleResourcesRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeAlertingMetricRuleResourcesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAlertingMetricRuleResourcesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeAlertingMetricRuleResourcesRequest::get_Namespace()const -{ - return _namespace_; +void DescribeAlertingMetricRuleResourcesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAlertingMetricRuleResourcesRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string DescribeAlertingMetricRuleResourcesRequest::get_Namespace() const { + return _namespace_; } -int DescribeAlertingMetricRuleResourcesRequest::getPage()const -{ - return page_; +void DescribeAlertingMetricRuleResourcesRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -void DescribeAlertingMetricRuleResourcesRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +int DescribeAlertingMetricRuleResourcesRequest::getPage() const { + return page_; } -std::string DescribeAlertingMetricRuleResourcesRequest::getRuleId()const -{ - return ruleId_; +void DescribeAlertingMetricRuleResourcesRequest::setPage(int page) { + page_ = page; + setParameter(std::string("Page"), std::to_string(page)); } -void DescribeAlertingMetricRuleResourcesRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); +std::string DescribeAlertingMetricRuleResourcesRequest::getRuleId() const { + return ruleId_; } -std::string DescribeAlertingMetricRuleResourcesRequest::getDimensions()const -{ - return dimensions_; +void DescribeAlertingMetricRuleResourcesRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } -void DescribeAlertingMetricRuleResourcesRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setParameter("Dimensions", dimensions); +std::string DescribeAlertingMetricRuleResourcesRequest::getDimensions() const { + return dimensions_; +} + +void DescribeAlertingMetricRuleResourcesRequest::setDimensions(const std::string &dimensions) { + dimensions_ = dimensions; + setParameter(std::string("Dimensions"), dimensions); } diff --git a/cms/src/model/DescribeAlertingMetricRuleResourcesResult.cc b/cms/src/model/DescribeAlertingMetricRuleResourcesResult.cc index 005dc2f8d..ca96fd234 100644 --- a/cms/src/model/DescribeAlertingMetricRuleResourcesResult.cc +++ b/cms/src/model/DescribeAlertingMetricRuleResourcesResult.cc @@ -43,70 +43,70 @@ void DescribeAlertingMetricRuleResourcesResult::parse(const std::string &payload for (auto valueResourcesResource : allResourcesNode) { Resource resourcesObject; - if(!valueResourcesResource["RuleId"].isNull()) - resourcesObject.ruleId = valueResourcesResource["RuleId"].asString(); - if(!valueResourcesResource["RuleName"].isNull()) - resourcesObject.ruleName = valueResourcesResource["RuleName"].asString(); - if(!valueResourcesResource["GroupId"].isNull()) - resourcesObject.groupId = valueResourcesResource["GroupId"].asString(); - if(!valueResourcesResource["Resource"].isNull()) - resourcesObject.resource = valueResourcesResource["Resource"].asString(); if(!valueResourcesResource["MetricName"].isNull()) resourcesObject.metricName = valueResourcesResource["MetricName"].asString(); - if(!valueResourcesResource["Namespace"].isNull()) - resourcesObject._namespace = valueResourcesResource["Namespace"].asString(); - if(!valueResourcesResource["Enable"].isNull()) - resourcesObject.enable = valueResourcesResource["Enable"].asString(); - if(!valueResourcesResource["LastAlertTime"].isNull()) - resourcesObject.lastAlertTime = valueResourcesResource["LastAlertTime"].asString(); - if(!valueResourcesResource["LastModifyTime"].isNull()) - resourcesObject.lastModifyTime = valueResourcesResource["LastModifyTime"].asString(); - if(!valueResourcesResource["Dimensions"].isNull()) - resourcesObject.dimensions = valueResourcesResource["Dimensions"].asString(); - if(!valueResourcesResource["StartTime"].isNull()) - resourcesObject.startTime = valueResourcesResource["StartTime"].asString(); - if(!valueResourcesResource["MetricValues"].isNull()) - resourcesObject.metricValues = valueResourcesResource["MetricValues"].asString(); if(!valueResourcesResource["RetryTimes"].isNull()) resourcesObject.retryTimes = valueResourcesResource["RetryTimes"].asString(); - if(!valueResourcesResource["Statistics"].isNull()) - resourcesObject.statistics = valueResourcesResource["Statistics"].asString(); - if(!valueResourcesResource["Threshold"].isNull()) - resourcesObject.threshold = valueResourcesResource["Threshold"].asString(); + if(!valueResourcesResource["MetricValues"].isNull()) + resourcesObject.metricValues = valueResourcesResource["MetricValues"].asString(); + if(!valueResourcesResource["Namespace"].isNull()) + resourcesObject._namespace = valueResourcesResource["Namespace"].asString(); + if(!valueResourcesResource["RuleName"].isNull()) + resourcesObject.ruleName = valueResourcesResource["RuleName"].asString(); + if(!valueResourcesResource["RuleId"].isNull()) + resourcesObject.ruleId = valueResourcesResource["RuleId"].asString(); if(!valueResourcesResource["ProductCategory"].isNull()) resourcesObject.productCategory = valueResourcesResource["ProductCategory"].asString(); + if(!valueResourcesResource["StartTime"].isNull()) + resourcesObject.startTime = valueResourcesResource["StartTime"].asString(); + if(!valueResourcesResource["Resource"].isNull()) + resourcesObject.resource = valueResourcesResource["Resource"].asString(); + if(!valueResourcesResource["LastModifyTime"].isNull()) + resourcesObject.lastModifyTime = valueResourcesResource["LastModifyTime"].asString(); + if(!valueResourcesResource["GroupId"].isNull()) + resourcesObject.groupId = valueResourcesResource["GroupId"].asString(); + if(!valueResourcesResource["Dimensions"].isNull()) + resourcesObject.dimensions = valueResourcesResource["Dimensions"].asString(); + if(!valueResourcesResource["LastAlertTime"].isNull()) + resourcesObject.lastAlertTime = valueResourcesResource["LastAlertTime"].asString(); if(!valueResourcesResource["Level"].isNull()) resourcesObject.level = std::stoi(valueResourcesResource["Level"].asString()); + if(!valueResourcesResource["Threshold"].isNull()) + resourcesObject.threshold = valueResourcesResource["Threshold"].asString(); + if(!valueResourcesResource["Statistics"].isNull()) + resourcesObject.statistics = valueResourcesResource["Statistics"].asString(); + if(!valueResourcesResource["Enable"].isNull()) + resourcesObject.enable = valueResourcesResource["Enable"].asString(); auto allEscalationNode = valueResourcesResource["Escalation"]["Resource"]; for (auto valueResourcesResourceEscalationResource : allEscalationNode) { Resource::Resource1 escalationObject; - if(!valueResourcesResourceEscalationResource["Expression"].isNull()) - escalationObject.expression = valueResourcesResourceEscalationResource["Expression"].asString(); - if(!valueResourcesResourceEscalationResource["PreCondition"].isNull()) - escalationObject.preCondition = valueResourcesResourceEscalationResource["PreCondition"].asString(); - if(!valueResourcesResourceEscalationResource["Level"].isNull()) - escalationObject.level = std::stoi(valueResourcesResourceEscalationResource["Level"].asString()); - if(!valueResourcesResourceEscalationResource["Times"].isNull()) - escalationObject.times = std::stoi(valueResourcesResourceEscalationResource["Times"].asString()); if(!valueResourcesResourceEscalationResource["ComparisonOperator"].isNull()) escalationObject.comparisonOperator = valueResourcesResourceEscalationResource["ComparisonOperator"].asString(); + if(!valueResourcesResourceEscalationResource["PreCondition"].isNull()) + escalationObject.preCondition = valueResourcesResourceEscalationResource["PreCondition"].asString(); + if(!valueResourcesResourceEscalationResource["Expression"].isNull()) + escalationObject.expression = valueResourcesResourceEscalationResource["Expression"].asString(); + if(!valueResourcesResourceEscalationResource["Times"].isNull()) + escalationObject.times = std::stoi(valueResourcesResourceEscalationResource["Times"].asString()); if(!valueResourcesResourceEscalationResource["Tag"].isNull()) escalationObject.tag = valueResourcesResourceEscalationResource["Tag"].asString(); if(!valueResourcesResourceEscalationResource["Threshold"].isNull()) escalationObject.threshold = valueResourcesResourceEscalationResource["Threshold"].asString(); + if(!valueResourcesResourceEscalationResource["Level"].isNull()) + escalationObject.level = std::stoi(valueResourcesResourceEscalationResource["Level"].asString()); resourcesObject.escalation.push_back(escalationObject); } resources_.push_back(resourcesObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Total"].isNull()) total_ = std::stoi(value["Total"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeContactGroupListRequest.cc b/cms/src/model/DescribeContactGroupListRequest.cc index 4bf6e3327..f4792223f 100644 --- a/cms/src/model/DescribeContactGroupListRequest.cc +++ b/cms/src/model/DescribeContactGroupListRequest.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::Cms::Model::DescribeContactGroupListRequest; - -DescribeContactGroupListRequest::DescribeContactGroupListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeContactGroupList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeContactGroupListRequest::~DescribeContactGroupListRequest() -{} - -int DescribeContactGroupListRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeContactGroupListRequest; + +DescribeContactGroupListRequest::DescribeContactGroupListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeContactGroupList") { + setMethod(HttpRequest::Method::Post); } -void DescribeContactGroupListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeContactGroupListRequest::~DescribeContactGroupListRequest() {} + +int DescribeContactGroupListRequest::getPageNumber() const { + return pageNumber_; } -int DescribeContactGroupListRequest::getPageSize()const -{ - return pageSize_; +void DescribeContactGroupListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeContactGroupListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeContactGroupListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeContactGroupListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/cms/src/model/DescribeContactGroupListResult.cc b/cms/src/model/DescribeContactGroupListResult.cc index e4ef536c2..7ab7321d1 100644 --- a/cms/src/model/DescribeContactGroupListResult.cc +++ b/cms/src/model/DescribeContactGroupListResult.cc @@ -43,16 +43,16 @@ void DescribeContactGroupListResult::parse(const std::string &payload) for (auto valueContactGroupListContactGroup : allContactGroupListNode) { ContactGroup contactGroupListObject; - if(!valueContactGroupListContactGroup["Name"].isNull()) - contactGroupListObject.name = valueContactGroupListContactGroup["Name"].asString(); if(!valueContactGroupListContactGroup["Describe"].isNull()) contactGroupListObject.describe = valueContactGroupListContactGroup["Describe"].asString(); - if(!valueContactGroupListContactGroup["CreateTime"].isNull()) - contactGroupListObject.createTime = std::stol(valueContactGroupListContactGroup["CreateTime"].asString()); if(!valueContactGroupListContactGroup["UpdateTime"].isNull()) contactGroupListObject.updateTime = std::stol(valueContactGroupListContactGroup["UpdateTime"].asString()); + if(!valueContactGroupListContactGroup["CreateTime"].isNull()) + contactGroupListObject.createTime = std::stol(valueContactGroupListContactGroup["CreateTime"].asString()); if(!valueContactGroupListContactGroup["EnabledWeeklyReport"].isNull()) contactGroupListObject.enabledWeeklyReport = valueContactGroupListContactGroup["EnabledWeeklyReport"].asString() == "true"; + if(!valueContactGroupListContactGroup["Name"].isNull()) + contactGroupListObject.name = valueContactGroupListContactGroup["Name"].asString(); if(!valueContactGroupListContactGroup["EnableSubscribed"].isNull()) contactGroupListObject.enableSubscribed = valueContactGroupListContactGroup["EnableSubscribed"].asString() == "true"; auto allContacts = value["Contacts"]["Contact"]; @@ -63,14 +63,14 @@ void DescribeContactGroupListResult::parse(const std::string &payload) auto allContactGroups = value["ContactGroups"]["ContactGroup"]; for (const auto &item : allContactGroups) contactGroups_.push_back(item.asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Total"].isNull()) total_ = std::stoi(value["Total"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeContactListByContactGroupRequest.cc b/cms/src/model/DescribeContactListByContactGroupRequest.cc index 81b3557ca..2bc0e1470 100644 --- a/cms/src/model/DescribeContactListByContactGroupRequest.cc +++ b/cms/src/model/DescribeContactListByContactGroupRequest.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::Cms::Model::DescribeContactListByContactGroupRequest; - -DescribeContactListByContactGroupRequest::DescribeContactListByContactGroupRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeContactListByContactGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeContactListByContactGroupRequest::~DescribeContactListByContactGroupRequest() -{} - -std::string DescribeContactListByContactGroupRequest::getContactGroupName()const -{ - return contactGroupName_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeContactListByContactGroupRequest; + +DescribeContactListByContactGroupRequest::DescribeContactListByContactGroupRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeContactListByContactGroup") { + setMethod(HttpRequest::Method::Post); } -void DescribeContactListByContactGroupRequest::setContactGroupName(const std::string& contactGroupName) -{ - contactGroupName_ = contactGroupName; - setParameter("ContactGroupName", contactGroupName); +DescribeContactListByContactGroupRequest::~DescribeContactListByContactGroupRequest() {} + +std::string DescribeContactListByContactGroupRequest::getContactGroupName() const { + return contactGroupName_; +} + +void DescribeContactListByContactGroupRequest::setContactGroupName(const std::string &contactGroupName) { + contactGroupName_ = contactGroupName; + setParameter(std::string("ContactGroupName"), contactGroupName); } diff --git a/cms/src/model/DescribeContactListByContactGroupResult.cc b/cms/src/model/DescribeContactListByContactGroupResult.cc index 7f0484ba1..4efb7e025 100644 --- a/cms/src/model/DescribeContactListByContactGroupResult.cc +++ b/cms/src/model/DescribeContactListByContactGroupResult.cc @@ -43,31 +43,31 @@ void DescribeContactListByContactGroupResult::parse(const std::string &payload) for (auto valueContactsContact : allContactsNode) { Contact contactsObject; - if(!valueContactsContact["Name"].isNull()) - contactsObject.name = valueContactsContact["Name"].asString(); - if(!valueContactsContact["Desc"].isNull()) - contactsObject.desc = valueContactsContact["Desc"].asString(); - if(!valueContactsContact["CreateTime"].isNull()) - contactsObject.createTime = std::stol(valueContactsContact["CreateTime"].asString()); if(!valueContactsContact["UpdateTime"].isNull()) contactsObject.updateTime = std::stol(valueContactsContact["UpdateTime"].asString()); + if(!valueContactsContact["Name"].isNull()) + contactsObject.name = valueContactsContact["Name"].asString(); + if(!valueContactsContact["CreateTime"].isNull()) + contactsObject.createTime = std::stol(valueContactsContact["CreateTime"].asString()); + if(!valueContactsContact["Desc"].isNull()) + contactsObject.desc = valueContactsContact["Desc"].asString(); auto channelsNode = value["Channels"]; - if(!channelsNode["SMS"].isNull()) - contactsObject.channels.sMS = channelsNode["SMS"].asString(); if(!channelsNode["Mail"].isNull()) contactsObject.channels.mail = channelsNode["Mail"].asString(); if(!channelsNode["AliIM"].isNull()) contactsObject.channels.aliIM = channelsNode["AliIM"].asString(); if(!channelsNode["DingWebHook"].isNull()) contactsObject.channels.dingWebHook = channelsNode["DingWebHook"].asString(); + if(!channelsNode["SMS"].isNull()) + contactsObject.channels.sMS = channelsNode["SMS"].asString(); contacts_.push_back(contactsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeContactListRequest.cc b/cms/src/model/DescribeContactListRequest.cc index 5666f9f7c..69b1f6be2 100644 --- a/cms/src/model/DescribeContactListRequest.cc +++ b/cms/src/model/DescribeContactListRequest.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::Cms::Model::DescribeContactListRequest; - -DescribeContactListRequest::DescribeContactListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeContactList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeContactListRequest::~DescribeContactListRequest() -{} - -std::string DescribeContactListRequest::getChanelType()const -{ - return chanelType_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeContactListRequest; + +DescribeContactListRequest::DescribeContactListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeContactList") { + setMethod(HttpRequest::Method::Post); } -void DescribeContactListRequest::setChanelType(const std::string& chanelType) -{ - chanelType_ = chanelType; - setParameter("ChanelType", chanelType); +DescribeContactListRequest::~DescribeContactListRequest() {} + +std::string DescribeContactListRequest::getChanelType() const { + return chanelType_; } -int DescribeContactListRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeContactListRequest::setChanelType(const std::string &chanelType) { + chanelType_ = chanelType; + setParameter(std::string("ChanelType"), chanelType); } -void DescribeContactListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeContactListRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeContactListRequest::getContactName()const -{ - return contactName_; +void DescribeContactListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeContactListRequest::setContactName(const std::string& contactName) -{ - contactName_ = contactName; - setParameter("ContactName", contactName); +std::string DescribeContactListRequest::getContactName() const { + return contactName_; } -int DescribeContactListRequest::getPageSize()const -{ - return pageSize_; +void DescribeContactListRequest::setContactName(const std::string &contactName) { + contactName_ = contactName; + setParameter(std::string("ContactName"), contactName); } -void DescribeContactListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeContactListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeContactListRequest::getChanelValue()const -{ - return chanelValue_; +void DescribeContactListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeContactListRequest::setChanelValue(const std::string& chanelValue) -{ - chanelValue_ = chanelValue; - setParameter("ChanelValue", chanelValue); +std::string DescribeContactListRequest::getChanelValue() const { + return chanelValue_; +} + +void DescribeContactListRequest::setChanelValue(const std::string &chanelValue) { + chanelValue_ = chanelValue; + setParameter(std::string("ChanelValue"), chanelValue); } diff --git a/cms/src/model/DescribeContactListResult.cc b/cms/src/model/DescribeContactListResult.cc index 66750b742..efe8b5118 100644 --- a/cms/src/model/DescribeContactListResult.cc +++ b/cms/src/model/DescribeContactListResult.cc @@ -43,47 +43,47 @@ void DescribeContactListResult::parse(const std::string &payload) for (auto valueContactsContact : allContactsNode) { Contact contactsObject; - if(!valueContactsContact["Name"].isNull()) - contactsObject.name = valueContactsContact["Name"].asString(); - if(!valueContactsContact["Desc"].isNull()) - contactsObject.desc = valueContactsContact["Desc"].asString(); - if(!valueContactsContact["Lang"].isNull()) - contactsObject.lang = valueContactsContact["Lang"].asString(); - if(!valueContactsContact["CreateTime"].isNull()) - contactsObject.createTime = std::stol(valueContactsContact["CreateTime"].asString()); if(!valueContactsContact["UpdateTime"].isNull()) contactsObject.updateTime = std::stol(valueContactsContact["UpdateTime"].asString()); + if(!valueContactsContact["Name"].isNull()) + contactsObject.name = valueContactsContact["Name"].asString(); + if(!valueContactsContact["CreateTime"].isNull()) + contactsObject.createTime = std::stol(valueContactsContact["CreateTime"].asString()); + if(!valueContactsContact["Lang"].isNull()) + contactsObject.lang = valueContactsContact["Lang"].asString(); + if(!valueContactsContact["Desc"].isNull()) + contactsObject.desc = valueContactsContact["Desc"].asString(); auto channelsNode = value["Channels"]; - if(!channelsNode["SMS"].isNull()) - contactsObject.channels.sMS = channelsNode["SMS"].asString(); if(!channelsNode["Mail"].isNull()) contactsObject.channels.mail = channelsNode["Mail"].asString(); if(!channelsNode["AliIM"].isNull()) contactsObject.channels.aliIM = channelsNode["AliIM"].asString(); if(!channelsNode["DingWebHook"].isNull()) contactsObject.channels.dingWebHook = channelsNode["DingWebHook"].asString(); + if(!channelsNode["SMS"].isNull()) + contactsObject.channels.sMS = channelsNode["SMS"].asString(); auto channelsStateNode = value["ChannelsState"]; - if(!channelsStateNode["SMS"].isNull()) - contactsObject.channelsState.sMS = channelsStateNode["SMS"].asString(); if(!channelsStateNode["Mail"].isNull()) contactsObject.channelsState.mail = channelsStateNode["Mail"].asString(); if(!channelsStateNode["AliIM"].isNull()) contactsObject.channelsState.aliIM = channelsStateNode["AliIM"].asString(); if(!channelsStateNode["DingWebHook"].isNull()) contactsObject.channelsState.dingWebHook = channelsStateNode["DingWebHook"].asString(); + if(!channelsStateNode["SMS"].isNull()) + contactsObject.channelsState.sMS = channelsStateNode["SMS"].asString(); auto allContactGroups = value["ContactGroups"]["ContactGroup"]; for (auto value : allContactGroups) contactsObject.contactGroups.push_back(value.asString()); contacts_.push_back(contactsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Total"].isNull()) total_ = std::stoi(value["Total"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeCustomEventAttributeRequest.cc b/cms/src/model/DescribeCustomEventAttributeRequest.cc index 818b82534..5df60af0b 100644 --- a/cms/src/model/DescribeCustomEventAttributeRequest.cc +++ b/cms/src/model/DescribeCustomEventAttributeRequest.cc @@ -1,117 +1,99 @@ /* * 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::Cms::Model::DescribeCustomEventAttributeRequest; - -DescribeCustomEventAttributeRequest::DescribeCustomEventAttributeRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeCustomEventAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCustomEventAttributeRequest::~DescribeCustomEventAttributeRequest() -{} - -std::string DescribeCustomEventAttributeRequest::getEventId()const -{ - return eventId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeCustomEventAttributeRequest; + +DescribeCustomEventAttributeRequest::DescribeCustomEventAttributeRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeCustomEventAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeCustomEventAttributeRequest::setEventId(const std::string& eventId) -{ - eventId_ = eventId; - setParameter("EventId", eventId); +DescribeCustomEventAttributeRequest::~DescribeCustomEventAttributeRequest() {} + +std::string DescribeCustomEventAttributeRequest::getEventId() const { + return eventId_; } -std::string DescribeCustomEventAttributeRequest::getStartTime()const -{ - return startTime_; +void DescribeCustomEventAttributeRequest::setEventId(const std::string &eventId) { + eventId_ = eventId; + setParameter(std::string("EventId"), eventId); } -void DescribeCustomEventAttributeRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeCustomEventAttributeRequest::getStartTime() const { + return startTime_; } -std::string DescribeCustomEventAttributeRequest::getSearchKeywords()const -{ - return searchKeywords_; +void DescribeCustomEventAttributeRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeCustomEventAttributeRequest::setSearchKeywords(const std::string& searchKeywords) -{ - searchKeywords_ = searchKeywords; - setParameter("SearchKeywords", searchKeywords); +std::string DescribeCustomEventAttributeRequest::getSearchKeywords() const { + return searchKeywords_; } -int DescribeCustomEventAttributeRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeCustomEventAttributeRequest::setSearchKeywords(const std::string &searchKeywords) { + searchKeywords_ = searchKeywords; + setParameter(std::string("SearchKeywords"), searchKeywords); } -void DescribeCustomEventAttributeRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeCustomEventAttributeRequest::getPageNumber() const { + return pageNumber_; } -int DescribeCustomEventAttributeRequest::getPageSize()const -{ - return pageSize_; +void DescribeCustomEventAttributeRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeCustomEventAttributeRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeCustomEventAttributeRequest::getPageSize() const { + return pageSize_; } -std::string DescribeCustomEventAttributeRequest::getGroupId()const -{ - return groupId_; +void DescribeCustomEventAttributeRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeCustomEventAttributeRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeCustomEventAttributeRequest::getGroupId() const { + return groupId_; } -std::string DescribeCustomEventAttributeRequest::getEndTime()const -{ - return endTime_; +void DescribeCustomEventAttributeRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeCustomEventAttributeRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeCustomEventAttributeRequest::getEndTime() const { + return endTime_; } -std::string DescribeCustomEventAttributeRequest::getName()const -{ - return name_; +void DescribeCustomEventAttributeRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeCustomEventAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeCustomEventAttributeRequest::getName() const { + return name_; +} + +void DescribeCustomEventAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/cms/src/model/DescribeCustomEventAttributeResult.cc b/cms/src/model/DescribeCustomEventAttributeResult.cc index f141dbc65..8f497b367 100644 --- a/cms/src/model/DescribeCustomEventAttributeResult.cc +++ b/cms/src/model/DescribeCustomEventAttributeResult.cc @@ -43,16 +43,16 @@ void DescribeCustomEventAttributeResult::parse(const std::string &payload) for (auto valueCustomEventsCustomEvent : allCustomEventsNode) { CustomEvent customEventsObject; - if(!valueCustomEventsCustomEvent["Id"].isNull()) - customEventsObject.id = valueCustomEventsCustomEvent["Id"].asString(); - if(!valueCustomEventsCustomEvent["Content"].isNull()) - customEventsObject.content = valueCustomEventsCustomEvent["Content"].asString(); - if(!valueCustomEventsCustomEvent["GroupId"].isNull()) - customEventsObject.groupId = valueCustomEventsCustomEvent["GroupId"].asString(); - if(!valueCustomEventsCustomEvent["Name"].isNull()) - customEventsObject.name = valueCustomEventsCustomEvent["Name"].asString(); if(!valueCustomEventsCustomEvent["Time"].isNull()) customEventsObject.time = valueCustomEventsCustomEvent["Time"].asString(); + if(!valueCustomEventsCustomEvent["Name"].isNull()) + customEventsObject.name = valueCustomEventsCustomEvent["Name"].asString(); + if(!valueCustomEventsCustomEvent["GroupId"].isNull()) + customEventsObject.groupId = valueCustomEventsCustomEvent["GroupId"].asString(); + if(!valueCustomEventsCustomEvent["Content"].isNull()) + customEventsObject.content = valueCustomEventsCustomEvent["Content"].asString(); + if(!valueCustomEventsCustomEvent["Id"].isNull()) + customEventsObject.id = valueCustomEventsCustomEvent["Id"].asString(); customEvents_.push_back(customEventsObject); } if(!value["Code"].isNull()) diff --git a/cms/src/model/DescribeCustomEventCountRequest.cc b/cms/src/model/DescribeCustomEventCountRequest.cc index ee5b63183..1e1d747f3 100644 --- a/cms/src/model/DescribeCustomEventCountRequest.cc +++ b/cms/src/model/DescribeCustomEventCountRequest.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::Cms::Model::DescribeCustomEventCountRequest; - -DescribeCustomEventCountRequest::DescribeCustomEventCountRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeCustomEventCount") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCustomEventCountRequest::~DescribeCustomEventCountRequest() -{} - -std::string DescribeCustomEventCountRequest::getEventId()const -{ - return eventId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeCustomEventCountRequest; + +DescribeCustomEventCountRequest::DescribeCustomEventCountRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeCustomEventCount") { + setMethod(HttpRequest::Method::Post); } -void DescribeCustomEventCountRequest::setEventId(const std::string& eventId) -{ - eventId_ = eventId; - setParameter("EventId", eventId); +DescribeCustomEventCountRequest::~DescribeCustomEventCountRequest() {} + +std::string DescribeCustomEventCountRequest::getEventId() const { + return eventId_; } -std::string DescribeCustomEventCountRequest::getGroupId()const -{ - return groupId_; +void DescribeCustomEventCountRequest::setEventId(const std::string &eventId) { + eventId_ = eventId; + setParameter(std::string("EventId"), eventId); } -void DescribeCustomEventCountRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeCustomEventCountRequest::getGroupId() const { + return groupId_; } -std::string DescribeCustomEventCountRequest::getEndTime()const -{ - return endTime_; +void DescribeCustomEventCountRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeCustomEventCountRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeCustomEventCountRequest::getEndTime() const { + return endTime_; } -std::string DescribeCustomEventCountRequest::getStartTime()const -{ - return startTime_; +void DescribeCustomEventCountRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeCustomEventCountRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeCustomEventCountRequest::getStartTime() const { + return startTime_; } -std::string DescribeCustomEventCountRequest::getSearchKeywords()const -{ - return searchKeywords_; +void DescribeCustomEventCountRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeCustomEventCountRequest::setSearchKeywords(const std::string& searchKeywords) -{ - searchKeywords_ = searchKeywords; - setParameter("SearchKeywords", searchKeywords); +std::string DescribeCustomEventCountRequest::getSearchKeywords() const { + return searchKeywords_; } -std::string DescribeCustomEventCountRequest::getName()const -{ - return name_; +void DescribeCustomEventCountRequest::setSearchKeywords(const std::string &searchKeywords) { + searchKeywords_ = searchKeywords; + setParameter(std::string("SearchKeywords"), searchKeywords); } -void DescribeCustomEventCountRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeCustomEventCountRequest::getName() const { + return name_; +} + +void DescribeCustomEventCountRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/cms/src/model/DescribeCustomEventCountResult.cc b/cms/src/model/DescribeCustomEventCountResult.cc index 13d5fcde0..bf4a808d5 100644 --- a/cms/src/model/DescribeCustomEventCountResult.cc +++ b/cms/src/model/DescribeCustomEventCountResult.cc @@ -43,12 +43,12 @@ void DescribeCustomEventCountResult::parse(const std::string &payload) for (auto valueCustomEventCountsCustomEventCount : allCustomEventCountsNode) { CustomEventCount customEventCountsObject; - if(!valueCustomEventCountsCustomEventCount["Name"].isNull()) - customEventCountsObject.name = valueCustomEventCountsCustomEventCount["Name"].asString(); - if(!valueCustomEventCountsCustomEventCount["Num"].isNull()) - customEventCountsObject.num = std::stoi(valueCustomEventCountsCustomEventCount["Num"].asString()); if(!valueCustomEventCountsCustomEventCount["Time"].isNull()) customEventCountsObject.time = std::stol(valueCustomEventCountsCustomEventCount["Time"].asString()); + if(!valueCustomEventCountsCustomEventCount["Num"].isNull()) + customEventCountsObject.num = std::stoi(valueCustomEventCountsCustomEventCount["Num"].asString()); + if(!valueCustomEventCountsCustomEventCount["Name"].isNull()) + customEventCountsObject.name = valueCustomEventCountsCustomEventCount["Name"].asString(); customEventCounts_.push_back(customEventCountsObject); } if(!value["Code"].isNull()) diff --git a/cms/src/model/DescribeCustomEventHistogramRequest.cc b/cms/src/model/DescribeCustomEventHistogramRequest.cc index 728ee8f93..01ad4220e 100644 --- a/cms/src/model/DescribeCustomEventHistogramRequest.cc +++ b/cms/src/model/DescribeCustomEventHistogramRequest.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::Cms::Model::DescribeCustomEventHistogramRequest; - -DescribeCustomEventHistogramRequest::DescribeCustomEventHistogramRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeCustomEventHistogram") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCustomEventHistogramRequest::~DescribeCustomEventHistogramRequest() -{} - -std::string DescribeCustomEventHistogramRequest::getEventId()const -{ - return eventId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeCustomEventHistogramRequest; + +DescribeCustomEventHistogramRequest::DescribeCustomEventHistogramRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeCustomEventHistogram") { + setMethod(HttpRequest::Method::Post); } -void DescribeCustomEventHistogramRequest::setEventId(const std::string& eventId) -{ - eventId_ = eventId; - setParameter("EventId", eventId); +DescribeCustomEventHistogramRequest::~DescribeCustomEventHistogramRequest() {} + +std::string DescribeCustomEventHistogramRequest::getEventId() const { + return eventId_; } -std::string DescribeCustomEventHistogramRequest::getLevel()const -{ - return level_; +void DescribeCustomEventHistogramRequest::setEventId(const std::string &eventId) { + eventId_ = eventId; + setParameter(std::string("EventId"), eventId); } -void DescribeCustomEventHistogramRequest::setLevel(const std::string& level) -{ - level_ = level; - setParameter("Level", level); +std::string DescribeCustomEventHistogramRequest::getLevel() const { + return level_; } -std::string DescribeCustomEventHistogramRequest::getGroupId()const -{ - return groupId_; +void DescribeCustomEventHistogramRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); } -void DescribeCustomEventHistogramRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeCustomEventHistogramRequest::getGroupId() const { + return groupId_; } -std::string DescribeCustomEventHistogramRequest::getEndTime()const -{ - return endTime_; +void DescribeCustomEventHistogramRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeCustomEventHistogramRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeCustomEventHistogramRequest::getEndTime() const { + return endTime_; } -std::string DescribeCustomEventHistogramRequest::getStartTime()const -{ - return startTime_; +void DescribeCustomEventHistogramRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeCustomEventHistogramRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeCustomEventHistogramRequest::getStartTime() const { + return startTime_; } -std::string DescribeCustomEventHistogramRequest::getSearchKeywords()const -{ - return searchKeywords_; +void DescribeCustomEventHistogramRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeCustomEventHistogramRequest::setSearchKeywords(const std::string& searchKeywords) -{ - searchKeywords_ = searchKeywords; - setParameter("SearchKeywords", searchKeywords); +std::string DescribeCustomEventHistogramRequest::getSearchKeywords() const { + return searchKeywords_; } -std::string DescribeCustomEventHistogramRequest::getName()const -{ - return name_; +void DescribeCustomEventHistogramRequest::setSearchKeywords(const std::string &searchKeywords) { + searchKeywords_ = searchKeywords; + setParameter(std::string("SearchKeywords"), searchKeywords); } -void DescribeCustomEventHistogramRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeCustomEventHistogramRequest::getName() const { + return name_; +} + +void DescribeCustomEventHistogramRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/cms/src/model/DescribeCustomEventHistogramResult.cc b/cms/src/model/DescribeCustomEventHistogramResult.cc index 3d418cb48..e887fdde6 100644 --- a/cms/src/model/DescribeCustomEventHistogramResult.cc +++ b/cms/src/model/DescribeCustomEventHistogramResult.cc @@ -43,12 +43,12 @@ void DescribeCustomEventHistogramResult::parse(const std::string &payload) for (auto valueEventHistogramsEventHistogram : allEventHistogramsNode) { EventHistogram eventHistogramsObject; - if(!valueEventHistogramsEventHistogram["Count"].isNull()) - eventHistogramsObject.count = std::stol(valueEventHistogramsEventHistogram["Count"].asString()); - if(!valueEventHistogramsEventHistogram["StartTime"].isNull()) - eventHistogramsObject.startTime = std::stol(valueEventHistogramsEventHistogram["StartTime"].asString()); if(!valueEventHistogramsEventHistogram["EndTime"].isNull()) eventHistogramsObject.endTime = std::stol(valueEventHistogramsEventHistogram["EndTime"].asString()); + if(!valueEventHistogramsEventHistogram["StartTime"].isNull()) + eventHistogramsObject.startTime = std::stol(valueEventHistogramsEventHistogram["StartTime"].asString()); + if(!valueEventHistogramsEventHistogram["Count"].isNull()) + eventHistogramsObject.count = std::stol(valueEventHistogramsEventHistogram["Count"].asString()); eventHistograms_.push_back(eventHistogramsObject); } if(!value["Code"].isNull()) diff --git a/cms/src/model/DescribeCustomMetricListRequest.cc b/cms/src/model/DescribeCustomMetricListRequest.cc index 065a2db41..335fbbefd 100644 --- a/cms/src/model/DescribeCustomMetricListRequest.cc +++ b/cms/src/model/DescribeCustomMetricListRequest.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::Cms::Model::DescribeCustomMetricListRequest; - -DescribeCustomMetricListRequest::DescribeCustomMetricListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeCustomMetricList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCustomMetricListRequest::~DescribeCustomMetricListRequest() -{} - -std::string DescribeCustomMetricListRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeCustomMetricListRequest; + +DescribeCustomMetricListRequest::DescribeCustomMetricListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeCustomMetricList") { + setMethod(HttpRequest::Method::Post); } -void DescribeCustomMetricListRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +DescribeCustomMetricListRequest::~DescribeCustomMetricListRequest() {} + +std::string DescribeCustomMetricListRequest::getGroupId() const { + return groupId_; } -std::string DescribeCustomMetricListRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeCustomMetricListRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeCustomMetricListRequest::setPageNumber(const std::string& pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", pageNumber); +std::string DescribeCustomMetricListRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeCustomMetricListRequest::getPageSize()const -{ - return pageSize_; +void DescribeCustomMetricListRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); } -void DescribeCustomMetricListRequest::setPageSize(const std::string& pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", pageSize); +std::string DescribeCustomMetricListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeCustomMetricListRequest::getMetricName()const -{ - return metricName_; +void DescribeCustomMetricListRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); } -void DescribeCustomMetricListRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeCustomMetricListRequest::getMetricName() const { + return metricName_; } -std::string DescribeCustomMetricListRequest::getDimension()const -{ - return dimension_; +void DescribeCustomMetricListRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeCustomMetricListRequest::setDimension(const std::string& dimension) -{ - dimension_ = dimension; - setParameter("Dimension", dimension); +std::string DescribeCustomMetricListRequest::getDimension() const { + return dimension_; } -std::string DescribeCustomMetricListRequest::getMd5()const -{ - return md5_; +void DescribeCustomMetricListRequest::setDimension(const std::string &dimension) { + dimension_ = dimension; + setParameter(std::string("Dimension"), dimension); } -void DescribeCustomMetricListRequest::setMd5(const std::string& md5) -{ - md5_ = md5; - setParameter("Md5", md5); +std::string DescribeCustomMetricListRequest::getMd5() const { + return md5_; +} + +void DescribeCustomMetricListRequest::setMd5(const std::string &md5) { + md5_ = md5; + setParameter(std::string("Md5"), md5); } diff --git a/cms/src/model/DescribeDynamicTagRuleListRequest.cc b/cms/src/model/DescribeDynamicTagRuleListRequest.cc index 8a1e36143..d516cf1c3 100644 --- a/cms/src/model/DescribeDynamicTagRuleListRequest.cc +++ b/cms/src/model/DescribeDynamicTagRuleListRequest.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::Cms::Model::DescribeDynamicTagRuleListRequest; - -DescribeDynamicTagRuleListRequest::DescribeDynamicTagRuleListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeDynamicTagRuleList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDynamicTagRuleListRequest::~DescribeDynamicTagRuleListRequest() -{} - -std::string DescribeDynamicTagRuleListRequest::getTagValue()const -{ - return tagValue_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeDynamicTagRuleListRequest; + +DescribeDynamicTagRuleListRequest::DescribeDynamicTagRuleListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeDynamicTagRuleList") { + setMethod(HttpRequest::Method::Post); } -void DescribeDynamicTagRuleListRequest::setTagValue(const std::string& tagValue) -{ - tagValue_ = tagValue; - setParameter("TagValue", tagValue); +DescribeDynamicTagRuleListRequest::~DescribeDynamicTagRuleListRequest() {} + +std::string DescribeDynamicTagRuleListRequest::getTagValue() const { + return tagValue_; } -std::string DescribeDynamicTagRuleListRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDynamicTagRuleListRequest::setTagValue(const std::string &tagValue) { + tagValue_ = tagValue; + setParameter(std::string("TagValue"), tagValue); } -void DescribeDynamicTagRuleListRequest::setPageNumber(const std::string& pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", pageNumber); +std::string DescribeDynamicTagRuleListRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDynamicTagRuleListRequest::getPageSize()const -{ - return pageSize_; +void DescribeDynamicTagRuleListRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); } -void DescribeDynamicTagRuleListRequest::setPageSize(const std::string& pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", pageSize); +std::string DescribeDynamicTagRuleListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDynamicTagRuleListRequest::getTagKey()const -{ - return tagKey_; +void DescribeDynamicTagRuleListRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); } -void DescribeDynamicTagRuleListRequest::setTagKey(const std::string& tagKey) -{ - tagKey_ = tagKey; - setParameter("TagKey", tagKey); +std::string DescribeDynamicTagRuleListRequest::getTagKey() const { + return tagKey_; } -std::string DescribeDynamicTagRuleListRequest::getTagRegionId()const -{ - return tagRegionId_; +void DescribeDynamicTagRuleListRequest::setTagKey(const std::string &tagKey) { + tagKey_ = tagKey; + setParameter(std::string("TagKey"), tagKey); } -void DescribeDynamicTagRuleListRequest::setTagRegionId(const std::string& tagRegionId) -{ - tagRegionId_ = tagRegionId; - setParameter("TagRegionId", tagRegionId); +std::string DescribeDynamicTagRuleListRequest::getTagRegionId() const { + return tagRegionId_; +} + +void DescribeDynamicTagRuleListRequest::setTagRegionId(const std::string &tagRegionId) { + tagRegionId_ = tagRegionId; + setParameter(std::string("TagRegionId"), tagRegionId); } diff --git a/cms/src/model/DescribeEventRuleAttributeRequest.cc b/cms/src/model/DescribeEventRuleAttributeRequest.cc index 5c8f809e3..b923f726e 100644 --- a/cms/src/model/DescribeEventRuleAttributeRequest.cc +++ b/cms/src/model/DescribeEventRuleAttributeRequest.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::Cms::Model::DescribeEventRuleAttributeRequest; - -DescribeEventRuleAttributeRequest::DescribeEventRuleAttributeRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeEventRuleAttributeRequest::~DescribeEventRuleAttributeRequest() -{} - -std::string DescribeEventRuleAttributeRequest::getRuleName()const -{ - return ruleName_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeEventRuleAttributeRequest; + +DescribeEventRuleAttributeRequest::DescribeEventRuleAttributeRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeEventRuleAttributeRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +DescribeEventRuleAttributeRequest::~DescribeEventRuleAttributeRequest() {} + +std::string DescribeEventRuleAttributeRequest::getRuleName() const { + return ruleName_; +} + +void DescribeEventRuleAttributeRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } diff --git a/cms/src/model/DescribeEventRuleAttributeResult.cc b/cms/src/model/DescribeEventRuleAttributeResult.cc index 5e3064300..271b12bf9 100644 --- a/cms/src/model/DescribeEventRuleAttributeResult.cc +++ b/cms/src/model/DescribeEventRuleAttributeResult.cc @@ -40,34 +40,34 @@ void DescribeEventRuleAttributeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto resultNode = value["Result"]; - if(!resultNode["Description"].isNull()) - result_.description = resultNode["Description"].asString(); - if(!resultNode["Name"].isNull()) - result_.name = resultNode["Name"].asString(); if(!resultNode["EventType"].isNull()) result_.eventType = resultNode["EventType"].asString(); if(!resultNode["GroupId"].isNull()) result_.groupId = resultNode["GroupId"].asString(); + if(!resultNode["Name"].isNull()) + result_.name = resultNode["Name"].asString(); + if(!resultNode["Description"].isNull()) + result_.description = resultNode["Description"].asString(); if(!resultNode["State"].isNull()) result_.state = resultNode["State"].asString(); auto eventPatternNode = resultNode["EventPattern"]; if(!eventPatternNode["Product"].isNull()) result_.eventPattern.product = eventPatternNode["Product"].asString(); - auto allNameList = eventPatternNode["NameList"]["NameList"]; - for (auto value : allNameList) - result_.eventPattern.nameList.push_back(value.asString()); - auto allStatusList = eventPatternNode["StatusList"]["StatusList"]; - for (auto value : allStatusList) - result_.eventPattern.statusList.push_back(value.asString()); auto allLevelList = eventPatternNode["LevelList"]["LevelList"]; for (auto value : allLevelList) result_.eventPattern.levelList.push_back(value.asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + auto allStatusList = eventPatternNode["StatusList"]["StatusList"]; + for (auto value : allStatusList) + result_.eventPattern.statusList.push_back(value.asString()); + auto allNameList = eventPatternNode["NameList"]["NameList"]; + for (auto value : allNameList) + result_.eventPattern.nameList.push_back(value.asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeEventRuleListRequest.cc b/cms/src/model/DescribeEventRuleListRequest.cc index 377c9c539..8afaaca94 100644 --- a/cms/src/model/DescribeEventRuleListRequest.cc +++ b/cms/src/model/DescribeEventRuleListRequest.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::Cms::Model::DescribeEventRuleListRequest; - -DescribeEventRuleListRequest::DescribeEventRuleListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeEventRuleListRequest::~DescribeEventRuleListRequest() -{} - -std::string DescribeEventRuleListRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeEventRuleListRequest; + +DescribeEventRuleListRequest::DescribeEventRuleListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleList") { + setMethod(HttpRequest::Method::Post); } -void DescribeEventRuleListRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +DescribeEventRuleListRequest::~DescribeEventRuleListRequest() {} + +std::string DescribeEventRuleListRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeEventRuleListRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeEventRuleListRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); } -void DescribeEventRuleListRequest::setPageNumber(const std::string& pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", pageNumber); +std::string DescribeEventRuleListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeEventRuleListRequest::getPageSize()const -{ - return pageSize_; +void DescribeEventRuleListRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); } -void DescribeEventRuleListRequest::setPageSize(const std::string& pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", pageSize); +std::string DescribeEventRuleListRequest::getNamePrefix() const { + return namePrefix_; } -std::string DescribeEventRuleListRequest::getNamePrefix()const -{ - return namePrefix_; +void DescribeEventRuleListRequest::setNamePrefix(const std::string &namePrefix) { + namePrefix_ = namePrefix; + setParameter(std::string("NamePrefix"), namePrefix); } -void DescribeEventRuleListRequest::setNamePrefix(const std::string& namePrefix) -{ - namePrefix_ = namePrefix; - setParameter("NamePrefix", namePrefix); +std::string DescribeEventRuleListRequest::getGroupId() const { + return groupId_; +} + +void DescribeEventRuleListRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } diff --git a/cms/src/model/DescribeEventRuleListResult.cc b/cms/src/model/DescribeEventRuleListResult.cc index 87d799fcb..d81c92bda 100644 --- a/cms/src/model/DescribeEventRuleListResult.cc +++ b/cms/src/model/DescribeEventRuleListResult.cc @@ -43,43 +43,55 @@ void DescribeEventRuleListResult::parse(const std::string &payload) for (auto valueEventRulesEventRule : allEventRulesNode) { EventRule eventRulesObject; - if(!valueEventRulesEventRule["Name"].isNull()) - eventRulesObject.name = valueEventRulesEventRule["Name"].asString(); - if(!valueEventRulesEventRule["GroupId"].isNull()) - eventRulesObject.groupId = valueEventRulesEventRule["GroupId"].asString(); if(!valueEventRulesEventRule["EventType"].isNull()) eventRulesObject.eventType = valueEventRulesEventRule["EventType"].asString(); - if(!valueEventRulesEventRule["State"].isNull()) - eventRulesObject.state = valueEventRulesEventRule["State"].asString(); if(!valueEventRulesEventRule["Description"].isNull()) eventRulesObject.description = valueEventRulesEventRule["Description"].asString(); + if(!valueEventRulesEventRule["GroupId"].isNull()) + eventRulesObject.groupId = valueEventRulesEventRule["GroupId"].asString(); + if(!valueEventRulesEventRule["Name"].isNull()) + eventRulesObject.name = valueEventRulesEventRule["Name"].asString(); + if(!valueEventRulesEventRule["State"].isNull()) + eventRulesObject.state = valueEventRulesEventRule["State"].asString(); + if(!valueEventRulesEventRule["SilenceTime"].isNull()) + eventRulesObject.silenceTime = std::stol(valueEventRulesEventRule["SilenceTime"].asString()); auto allEventPatternNode = valueEventRulesEventRule["EventPattern"]["EventPatternItem"]; for (auto valueEventRulesEventRuleEventPatternEventPatternItem : allEventPatternNode) { EventRule::EventPatternItem eventPatternObject; if(!valueEventRulesEventRuleEventPatternEventPatternItem["Product"].isNull()) eventPatternObject.product = valueEventRulesEventRuleEventPatternEventPatternItem["Product"].asString(); - auto allNameList = value["NameList"]["NameList"]; - for (auto value : allNameList) - eventPatternObject.nameList.push_back(value.asString()); + if(!valueEventRulesEventRuleEventPatternEventPatternItem["CustomFilters"].isNull()) + eventPatternObject.customFilters = valueEventRulesEventRuleEventPatternEventPatternItem["CustomFilters"].asString(); + if(!valueEventRulesEventRuleEventPatternEventPatternItem["SQLFilter"].isNull()) + eventPatternObject.sQLFilter = valueEventRulesEventRuleEventPatternEventPatternItem["SQLFilter"].asString(); + auto keywordFilterNode = value["KeywordFilter"]; + if(!keywordFilterNode["Relation"].isNull()) + eventPatternObject.keywordFilter.relation = keywordFilterNode["Relation"].asString(); + auto allKeywords = keywordFilterNode["Keywords"]["Keywords"]; + for (auto value : allKeywords) + eventPatternObject.keywordFilter.keywords.push_back(value.asString()); auto allLevelList = value["LevelList"]["LevelList"]; for (auto value : allLevelList) eventPatternObject.levelList.push_back(value.asString()); auto allEventTypeList = value["EventTypeList"]["EventTypeList"]; for (auto value : allEventTypeList) eventPatternObject.eventTypeList.push_back(value.asString()); + auto allNameList = value["NameList"]["NameList"]; + for (auto value : allNameList) + eventPatternObject.nameList.push_back(value.asString()); eventRulesObject.eventPattern.push_back(eventPatternObject); } eventRules_.push_back(eventRulesObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Total"].isNull()) total_ = std::stoi(value["Total"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeEventRuleTargetListRequest.cc b/cms/src/model/DescribeEventRuleTargetListRequest.cc index d2a9ae11a..db3fb0bc1 100644 --- a/cms/src/model/DescribeEventRuleTargetListRequest.cc +++ b/cms/src/model/DescribeEventRuleTargetListRequest.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::Cms::Model::DescribeEventRuleTargetListRequest; - -DescribeEventRuleTargetListRequest::DescribeEventRuleTargetListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleTargetList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeEventRuleTargetListRequest::~DescribeEventRuleTargetListRequest() -{} - -std::string DescribeEventRuleTargetListRequest::getRuleName()const -{ - return ruleName_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeEventRuleTargetListRequest; + +DescribeEventRuleTargetListRequest::DescribeEventRuleTargetListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleTargetList") { + setMethod(HttpRequest::Method::Post); } -void DescribeEventRuleTargetListRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +DescribeEventRuleTargetListRequest::~DescribeEventRuleTargetListRequest() {} + +std::string DescribeEventRuleTargetListRequest::getRuleName() const { + return ruleName_; +} + +void DescribeEventRuleTargetListRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } diff --git a/cms/src/model/DescribeEventRuleTargetListResult.cc b/cms/src/model/DescribeEventRuleTargetListResult.cc index fb1321d15..d85b276e6 100644 --- a/cms/src/model/DescribeEventRuleTargetListResult.cc +++ b/cms/src/model/DescribeEventRuleTargetListResult.cc @@ -55,62 +55,82 @@ void DescribeEventRuleTargetListResult::parse(const std::string &payload) for (auto valueFcParametersFCParameter : allFcParametersNode) { FCParameter fcParametersObject; - if(!valueFcParametersFCParameter["Region"].isNull()) - fcParametersObject.region = valueFcParametersFCParameter["Region"].asString(); if(!valueFcParametersFCParameter["ServiceName"].isNull()) fcParametersObject.serviceName = valueFcParametersFCParameter["ServiceName"].asString(); if(!valueFcParametersFCParameter["FunctionName"].isNull()) fcParametersObject.functionName = valueFcParametersFCParameter["FunctionName"].asString(); - if(!valueFcParametersFCParameter["Id"].isNull()) - fcParametersObject.id = valueFcParametersFCParameter["Id"].asString(); if(!valueFcParametersFCParameter["Arn"].isNull()) fcParametersObject.arn = valueFcParametersFCParameter["Arn"].asString(); + if(!valueFcParametersFCParameter["Id"].isNull()) + fcParametersObject.id = valueFcParametersFCParameter["Id"].asString(); + if(!valueFcParametersFCParameter["Region"].isNull()) + fcParametersObject.region = valueFcParametersFCParameter["Region"].asString(); fcParameters_.push_back(fcParametersObject); } auto allMnsParametersNode = value["MnsParameters"]["MnsParameter"]; for (auto valueMnsParametersMnsParameter : allMnsParametersNode) { MnsParameter mnsParametersObject; - if(!valueMnsParametersMnsParameter["Region"].isNull()) - mnsParametersObject.region = valueMnsParametersMnsParameter["Region"].asString(); if(!valueMnsParametersMnsParameter["Queue"].isNull()) mnsParametersObject.queue = valueMnsParametersMnsParameter["Queue"].asString(); - if(!valueMnsParametersMnsParameter["Id"].isNull()) - mnsParametersObject.id = valueMnsParametersMnsParameter["Id"].asString(); if(!valueMnsParametersMnsParameter["Arn"].isNull()) mnsParametersObject.arn = valueMnsParametersMnsParameter["Arn"].asString(); + if(!valueMnsParametersMnsParameter["Region"].isNull()) + mnsParametersObject.region = valueMnsParametersMnsParameter["Region"].asString(); + if(!valueMnsParametersMnsParameter["Id"].isNull()) + mnsParametersObject.id = valueMnsParametersMnsParameter["Id"].asString(); mnsParameters_.push_back(mnsParametersObject); } auto allWebhookParametersNode = value["WebhookParameters"]["WebhookParameter"]; for (auto valueWebhookParametersWebhookParameter : allWebhookParametersNode) { WebhookParameter webhookParametersObject; - if(!valueWebhookParametersWebhookParameter["Id"].isNull()) - webhookParametersObject.id = valueWebhookParametersWebhookParameter["Id"].asString(); - if(!valueWebhookParametersWebhookParameter["Protocol"].isNull()) - webhookParametersObject.protocol = valueWebhookParametersWebhookParameter["Protocol"].asString(); - if(!valueWebhookParametersWebhookParameter["Method"].isNull()) - webhookParametersObject.method = valueWebhookParametersWebhookParameter["Method"].asString(); if(!valueWebhookParametersWebhookParameter["Url"].isNull()) webhookParametersObject.url = valueWebhookParametersWebhookParameter["Url"].asString(); + if(!valueWebhookParametersWebhookParameter["Method"].isNull()) + webhookParametersObject.method = valueWebhookParametersWebhookParameter["Method"].asString(); + if(!valueWebhookParametersWebhookParameter["Protocol"].isNull()) + webhookParametersObject.protocol = valueWebhookParametersWebhookParameter["Protocol"].asString(); + if(!valueWebhookParametersWebhookParameter["Id"].isNull()) + webhookParametersObject.id = valueWebhookParametersWebhookParameter["Id"].asString(); webhookParameters_.push_back(webhookParametersObject); } auto allSlsParametersNode = value["SlsParameters"]["SlsParameter"]; for (auto valueSlsParametersSlsParameter : allSlsParametersNode) { SlsParameter slsParametersObject; - if(!valueSlsParametersSlsParameter["Id"].isNull()) - slsParametersObject.id = valueSlsParametersSlsParameter["Id"].asString(); - if(!valueSlsParametersSlsParameter["Region"].isNull()) - slsParametersObject.region = valueSlsParametersSlsParameter["Region"].asString(); if(!valueSlsParametersSlsParameter["Project"].isNull()) slsParametersObject.project = valueSlsParametersSlsParameter["Project"].asString(); if(!valueSlsParametersSlsParameter["LogStore"].isNull()) slsParametersObject.logStore = valueSlsParametersSlsParameter["LogStore"].asString(); if(!valueSlsParametersSlsParameter["Arn"].isNull()) slsParametersObject.arn = valueSlsParametersSlsParameter["Arn"].asString(); + if(!valueSlsParametersSlsParameter["Region"].isNull()) + slsParametersObject.region = valueSlsParametersSlsParameter["Region"].asString(); + if(!valueSlsParametersSlsParameter["Id"].isNull()) + slsParametersObject.id = valueSlsParametersSlsParameter["Id"].asString(); slsParameters_.push_back(slsParametersObject); } + auto allOpenApiParametersNode = value["OpenApiParameters"]["OpenApiParametersItem"]; + for (auto valueOpenApiParametersOpenApiParametersItem : allOpenApiParametersNode) + { + OpenApiParametersItem openApiParametersObject; + if(!valueOpenApiParametersOpenApiParametersItem["Action"].isNull()) + openApiParametersObject.action = valueOpenApiParametersOpenApiParametersItem["Action"].asString(); + if(!valueOpenApiParametersOpenApiParametersItem["Arn"].isNull()) + openApiParametersObject.arn = valueOpenApiParametersOpenApiParametersItem["Arn"].asString(); + if(!valueOpenApiParametersOpenApiParametersItem["Id"].isNull()) + openApiParametersObject.id = valueOpenApiParametersOpenApiParametersItem["Id"].asString(); + if(!valueOpenApiParametersOpenApiParametersItem["Product"].isNull()) + openApiParametersObject.product = valueOpenApiParametersOpenApiParametersItem["Product"].asString(); + if(!valueOpenApiParametersOpenApiParametersItem["Region"].isNull()) + openApiParametersObject.region = valueOpenApiParametersOpenApiParametersItem["Region"].asString(); + if(!valueOpenApiParametersOpenApiParametersItem["Role"].isNull()) + openApiParametersObject.role = valueOpenApiParametersOpenApiParametersItem["Role"].asString(); + if(!valueOpenApiParametersOpenApiParametersItem["Version"].isNull()) + openApiParametersObject.version = valueOpenApiParametersOpenApiParametersItem["Version"].asString(); + openApiParameters_.push_back(openApiParametersObject); + } if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) @@ -123,6 +143,11 @@ std::vector DescribeEventRu return contactParameters_; } +std::vector DescribeEventRuleTargetListResult::getOpenApiParameters()const +{ + return openApiParameters_; +} + std::string DescribeEventRuleTargetListResult::getMessage()const { return message_; diff --git a/cms/src/model/DescribeExporterOutputListRequest.cc b/cms/src/model/DescribeExporterOutputListRequest.cc index f9c76f0ba..59f843bce 100644 --- a/cms/src/model/DescribeExporterOutputListRequest.cc +++ b/cms/src/model/DescribeExporterOutputListRequest.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::Cms::Model::DescribeExporterOutputListRequest; - -DescribeExporterOutputListRequest::DescribeExporterOutputListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeExporterOutputList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeExporterOutputListRequest::~DescribeExporterOutputListRequest() -{} - -int DescribeExporterOutputListRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeExporterOutputListRequest; + +DescribeExporterOutputListRequest::DescribeExporterOutputListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeExporterOutputList") { + setMethod(HttpRequest::Method::Post); } -void DescribeExporterOutputListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeExporterOutputListRequest::~DescribeExporterOutputListRequest() {} + +int DescribeExporterOutputListRequest::getPageNumber() const { + return pageNumber_; } -int DescribeExporterOutputListRequest::getPageSize()const -{ - return pageSize_; +void DescribeExporterOutputListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeExporterOutputListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeExporterOutputListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeExporterOutputListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/cms/src/model/DescribeExporterOutputListResult.cc b/cms/src/model/DescribeExporterOutputListResult.cc index 981822aaa..92d11bfd9 100644 --- a/cms/src/model/DescribeExporterOutputListResult.cc +++ b/cms/src/model/DescribeExporterOutputListResult.cc @@ -43,33 +43,33 @@ void DescribeExporterOutputListResult::parse(const std::string &payload) for (auto valueDatapointsDatapoint : allDatapointsNode) { Datapoint datapointsObject; - if(!valueDatapointsDatapoint["DestName"].isNull()) - datapointsObject.destName = valueDatapointsDatapoint["DestName"].asString(); if(!valueDatapointsDatapoint["DestType"].isNull()) datapointsObject.destType = valueDatapointsDatapoint["DestType"].asString(); if(!valueDatapointsDatapoint["CreateTime"].isNull()) datapointsObject.createTime = std::stol(valueDatapointsDatapoint["CreateTime"].asString()); + if(!valueDatapointsDatapoint["DestName"].isNull()) + datapointsObject.destName = valueDatapointsDatapoint["DestName"].asString(); auto configJsonNode = value["ConfigJson"]; + if(!configJsonNode["ak"].isNull()) + datapointsObject.configJson.ak = configJsonNode["ak"].asString(); + if(!configJsonNode["endpoint"].isNull()) + datapointsObject.configJson.endpoint = configJsonNode["endpoint"].asString(); if(!configJsonNode["logstore"].isNull()) datapointsObject.configJson.logstore = configJsonNode["logstore"].asString(); if(!configJsonNode["project"].isNull()) datapointsObject.configJson.project = configJsonNode["project"].asString(); - if(!configJsonNode["endpoint"].isNull()) - datapointsObject.configJson.endpoint = configJsonNode["endpoint"].asString(); - if(!configJsonNode["ak"].isNull()) - datapointsObject.configJson.ak = configJsonNode["ak"].asString(); datapoints_.push_back(datapointsObject); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); } diff --git a/cms/src/model/DescribeExporterRuleListRequest.cc b/cms/src/model/DescribeExporterRuleListRequest.cc index 89dd51e8d..755727bba 100644 --- a/cms/src/model/DescribeExporterRuleListRequest.cc +++ b/cms/src/model/DescribeExporterRuleListRequest.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::Cms::Model::DescribeExporterRuleListRequest; - -DescribeExporterRuleListRequest::DescribeExporterRuleListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeExporterRuleList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeExporterRuleListRequest::~DescribeExporterRuleListRequest() -{} - -int DescribeExporterRuleListRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeExporterRuleListRequest; + +DescribeExporterRuleListRequest::DescribeExporterRuleListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeExporterRuleList") { + setMethod(HttpRequest::Method::Post); } -void DescribeExporterRuleListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeExporterRuleListRequest::~DescribeExporterRuleListRequest() {} + +int DescribeExporterRuleListRequest::getPageNumber() const { + return pageNumber_; } -int DescribeExporterRuleListRequest::getPageSize()const -{ - return pageSize_; +void DescribeExporterRuleListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeExporterRuleListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeExporterRuleListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeExporterRuleListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/cms/src/model/DescribeExporterRuleListResult.cc b/cms/src/model/DescribeExporterRuleListResult.cc index b58232002..016c1e7ee 100644 --- a/cms/src/model/DescribeExporterRuleListResult.cc +++ b/cms/src/model/DescribeExporterRuleListResult.cc @@ -43,37 +43,37 @@ void DescribeExporterRuleListResult::parse(const std::string &payload) for (auto valueDatapointsDatapoint : allDatapointsNode) { Datapoint datapointsObject; - if(!valueDatapointsDatapoint["RuleName"].isNull()) - datapointsObject.ruleName = valueDatapointsDatapoint["RuleName"].asString(); - if(!valueDatapointsDatapoint["Namespace"].isNull()) - datapointsObject._namespace = valueDatapointsDatapoint["Namespace"].asString(); if(!valueDatapointsDatapoint["MetricName"].isNull()) datapointsObject.metricName = valueDatapointsDatapoint["MetricName"].asString(); - if(!valueDatapointsDatapoint["Enabled"].isNull()) - datapointsObject.enabled = valueDatapointsDatapoint["Enabled"].asString() == "true"; - if(!valueDatapointsDatapoint["TargetWindows"].isNull()) - datapointsObject.targetWindows = valueDatapointsDatapoint["TargetWindows"].asString(); if(!valueDatapointsDatapoint["Describe"].isNull()) datapointsObject.describe = valueDatapointsDatapoint["Describe"].asString(); - if(!valueDatapointsDatapoint["Dimension"].isNull()) - datapointsObject.dimension = valueDatapointsDatapoint["Dimension"].asString(); + if(!valueDatapointsDatapoint["TargetWindows"].isNull()) + datapointsObject.targetWindows = valueDatapointsDatapoint["TargetWindows"].asString(); if(!valueDatapointsDatapoint["CreateTime"].isNull()) datapointsObject.createTime = std::stol(valueDatapointsDatapoint["CreateTime"].asString()); + if(!valueDatapointsDatapoint["Enabled"].isNull()) + datapointsObject.enabled = valueDatapointsDatapoint["Enabled"].asString() == "true"; + if(!valueDatapointsDatapoint["Dimension"].isNull()) + datapointsObject.dimension = valueDatapointsDatapoint["Dimension"].asString(); + if(!valueDatapointsDatapoint["Namespace"].isNull()) + datapointsObject._namespace = valueDatapointsDatapoint["Namespace"].asString(); + if(!valueDatapointsDatapoint["RuleName"].isNull()) + datapointsObject.ruleName = valueDatapointsDatapoint["RuleName"].asString(); auto allDstName = value["DstName"]["DstName"]; for (auto value : allDstName) datapointsObject.dstName.push_back(value.asString()); datapoints_.push_back(datapointsObject); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); } diff --git a/cms/src/model/DescribeGroupMonitoringAgentProcessRequest.cc b/cms/src/model/DescribeGroupMonitoringAgentProcessRequest.cc index eb0c7b940..1c59663e9 100644 --- a/cms/src/model/DescribeGroupMonitoringAgentProcessRequest.cc +++ b/cms/src/model/DescribeGroupMonitoringAgentProcessRequest.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::Cms::Model::DescribeGroupMonitoringAgentProcessRequest; - -DescribeGroupMonitoringAgentProcessRequest::DescribeGroupMonitoringAgentProcessRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeGroupMonitoringAgentProcess") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGroupMonitoringAgentProcessRequest::~DescribeGroupMonitoringAgentProcessRequest() -{} - -std::string DescribeGroupMonitoringAgentProcessRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeGroupMonitoringAgentProcessRequest; + +DescribeGroupMonitoringAgentProcessRequest::DescribeGroupMonitoringAgentProcessRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeGroupMonitoringAgentProcess") { + setMethod(HttpRequest::Method::Post); } -void DescribeGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +DescribeGroupMonitoringAgentProcessRequest::~DescribeGroupMonitoringAgentProcessRequest() {} + +std::string DescribeGroupMonitoringAgentProcessRequest::getGroupId() const { + return groupId_; } -std::string DescribeGroupMonitoringAgentProcessRequest::getProcessName()const -{ - return processName_; +void DescribeGroupMonitoringAgentProcessRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeGroupMonitoringAgentProcessRequest::setProcessName(const std::string& processName) -{ - processName_ = processName; - setParameter("ProcessName", processName); +std::string DescribeGroupMonitoringAgentProcessRequest::getProcessName() const { + return processName_; } -int DescribeGroupMonitoringAgentProcessRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeGroupMonitoringAgentProcessRequest::setProcessName(const std::string &processName) { + processName_ = processName; + setParameter(std::string("ProcessName"), processName); } -void DescribeGroupMonitoringAgentProcessRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeGroupMonitoringAgentProcessRequest::getPageNumber() const { + return pageNumber_; } -int DescribeGroupMonitoringAgentProcessRequest::getPageSize()const -{ - return pageSize_; +void DescribeGroupMonitoringAgentProcessRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeGroupMonitoringAgentProcessRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeGroupMonitoringAgentProcessRequest::getPageSize() const { + return pageSize_; +} + +void DescribeGroupMonitoringAgentProcessRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/cms/src/model/DescribeGroupMonitoringAgentProcessResult.cc b/cms/src/model/DescribeGroupMonitoringAgentProcessResult.cc index f5b9016d6..fd523d8d1 100644 --- a/cms/src/model/DescribeGroupMonitoringAgentProcessResult.cc +++ b/cms/src/model/DescribeGroupMonitoringAgentProcessResult.cc @@ -43,64 +43,64 @@ void DescribeGroupMonitoringAgentProcessResult::parse(const std::string &payload for (auto valueProcessesProcess : allProcessesNode) { Process processesObject; - if(!valueProcessesProcess["Id"].isNull()) - processesObject.id = valueProcessesProcess["Id"].asString(); - if(!valueProcessesProcess["GroupId"].isNull()) - processesObject.groupId = valueProcessesProcess["GroupId"].asString(); if(!valueProcessesProcess["ProcessName"].isNull()) processesObject.processName = valueProcessesProcess["ProcessName"].asString(); if(!valueProcessesProcess["MatchExpressFilterRelation"].isNull()) processesObject.matchExpressFilterRelation = valueProcessesProcess["MatchExpressFilterRelation"].asString(); + if(!valueProcessesProcess["GroupId"].isNull()) + processesObject.groupId = valueProcessesProcess["GroupId"].asString(); + if(!valueProcessesProcess["Id"].isNull()) + processesObject.id = valueProcessesProcess["Id"].asString(); auto allMatchExpressNode = valueProcessesProcess["MatchExpress"]["MatchExpressItem"]; for (auto valueProcessesProcessMatchExpressMatchExpressItem : allMatchExpressNode) { Process::MatchExpressItem matchExpressObject; + if(!valueProcessesProcessMatchExpressMatchExpressItem["Value"].isNull()) + matchExpressObject.value = valueProcessesProcessMatchExpressMatchExpressItem["Value"].asString(); if(!valueProcessesProcessMatchExpressMatchExpressItem["Name"].isNull()) matchExpressObject.name = valueProcessesProcessMatchExpressMatchExpressItem["Name"].asString(); if(!valueProcessesProcessMatchExpressMatchExpressItem["Function"].isNull()) matchExpressObject.function = valueProcessesProcessMatchExpressMatchExpressItem["Function"].asString(); - if(!valueProcessesProcessMatchExpressMatchExpressItem["Value"].isNull()) - matchExpressObject.value = valueProcessesProcessMatchExpressMatchExpressItem["Value"].asString(); processesObject.matchExpress.push_back(matchExpressObject); } auto allAlertConfigNode = valueProcessesProcess["AlertConfig"]["AlertConfigItem"]; for (auto valueProcessesProcessAlertConfigAlertConfigItem : allAlertConfigNode) { Process::AlertConfigItem alertConfigObject; - if(!valueProcessesProcessAlertConfigAlertConfigItem["EffectiveInterval"].isNull()) - alertConfigObject.effectiveInterval = valueProcessesProcessAlertConfigAlertConfigItem["EffectiveInterval"].asString(); - if(!valueProcessesProcessAlertConfigAlertConfigItem["NoEffectiveInterval"].isNull()) - alertConfigObject.noEffectiveInterval = valueProcessesProcessAlertConfigAlertConfigItem["NoEffectiveInterval"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["ComparisonOperator"].isNull()) + alertConfigObject.comparisonOperator = valueProcessesProcessAlertConfigAlertConfigItem["ComparisonOperator"].asString(); if(!valueProcessesProcessAlertConfigAlertConfigItem["SilenceTime"].isNull()) alertConfigObject.silenceTime = valueProcessesProcessAlertConfigAlertConfigItem["SilenceTime"].asString(); if(!valueProcessesProcessAlertConfigAlertConfigItem["Webhook"].isNull()) alertConfigObject.webhook = valueProcessesProcessAlertConfigAlertConfigItem["Webhook"].asString(); - if(!valueProcessesProcessAlertConfigAlertConfigItem["EscalationsLevel"].isNull()) - alertConfigObject.escalationsLevel = valueProcessesProcessAlertConfigAlertConfigItem["EscalationsLevel"].asString(); - if(!valueProcessesProcessAlertConfigAlertConfigItem["ComparisonOperator"].isNull()) - alertConfigObject.comparisonOperator = valueProcessesProcessAlertConfigAlertConfigItem["ComparisonOperator"].asString(); - if(!valueProcessesProcessAlertConfigAlertConfigItem["Statistics"].isNull()) - alertConfigObject.statistics = valueProcessesProcessAlertConfigAlertConfigItem["Statistics"].asString(); - if(!valueProcessesProcessAlertConfigAlertConfigItem["Threshold"].isNull()) - alertConfigObject.threshold = valueProcessesProcessAlertConfigAlertConfigItem["Threshold"].asString(); if(!valueProcessesProcessAlertConfigAlertConfigItem["Times"].isNull()) alertConfigObject.times = valueProcessesProcessAlertConfigAlertConfigItem["Times"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["EscalationsLevel"].isNull()) + alertConfigObject.escalationsLevel = valueProcessesProcessAlertConfigAlertConfigItem["EscalationsLevel"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["NoEffectiveInterval"].isNull()) + alertConfigObject.noEffectiveInterval = valueProcessesProcessAlertConfigAlertConfigItem["NoEffectiveInterval"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["EffectiveInterval"].isNull()) + alertConfigObject.effectiveInterval = valueProcessesProcessAlertConfigAlertConfigItem["EffectiveInterval"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["Threshold"].isNull()) + alertConfigObject.threshold = valueProcessesProcessAlertConfigAlertConfigItem["Threshold"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["Statistics"].isNull()) + alertConfigObject.statistics = valueProcessesProcessAlertConfigAlertConfigItem["Statistics"].asString(); processesObject.alertConfig.push_back(alertConfigObject); } processes_.push_back(processesObject); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Total"].isNull()) - total_ = value["Total"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = value["PageSize"].asString(); if(!value["PageNumber"].isNull()) pageNumber_ = value["PageNumber"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); + if(!value["Total"].isNull()) + total_ = value["Total"].asString(); } diff --git a/cms/src/model/DescribeHostAvailabilityListRequest.cc b/cms/src/model/DescribeHostAvailabilityListRequest.cc index 50827fec5..b6099bbe1 100644 --- a/cms/src/model/DescribeHostAvailabilityListRequest.cc +++ b/cms/src/model/DescribeHostAvailabilityListRequest.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::Cms::Model::DescribeHostAvailabilityListRequest; - -DescribeHostAvailabilityListRequest::DescribeHostAvailabilityListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeHostAvailabilityList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeHostAvailabilityListRequest::~DescribeHostAvailabilityListRequest() -{} - -long DescribeHostAvailabilityListRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeHostAvailabilityListRequest; + +DescribeHostAvailabilityListRequest::DescribeHostAvailabilityListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeHostAvailabilityList") { + setMethod(HttpRequest::Method::Post); } -void DescribeHostAvailabilityListRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DescribeHostAvailabilityListRequest::~DescribeHostAvailabilityListRequest() {} + +long DescribeHostAvailabilityListRequest::getGroupId() const { + return groupId_; } -std::string DescribeHostAvailabilityListRequest::getTaskName()const -{ - return taskName_; +void DescribeHostAvailabilityListRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } -void DescribeHostAvailabilityListRequest::setTaskName(const std::string& taskName) -{ - taskName_ = taskName; - setParameter("TaskName", taskName); +std::string DescribeHostAvailabilityListRequest::getTaskName() const { + return taskName_; } -int DescribeHostAvailabilityListRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeHostAvailabilityListRequest::setTaskName(const std::string &taskName) { + taskName_ = taskName; + setParameter(std::string("TaskName"), taskName); } -void DescribeHostAvailabilityListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeHostAvailabilityListRequest::getPageNumber() const { + return pageNumber_; } -int DescribeHostAvailabilityListRequest::getPageSize()const -{ - return pageSize_; +void DescribeHostAvailabilityListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeHostAvailabilityListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeHostAvailabilityListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeHostAvailabilityListRequest::getIds()const -{ - return ids_; +void DescribeHostAvailabilityListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeHostAvailabilityListRequest::setIds(const std::string& ids) -{ - ids_ = ids; - setParameter("Ids", ids); +std::string DescribeHostAvailabilityListRequest::getIds() const { + return ids_; } -long DescribeHostAvailabilityListRequest::getId()const -{ - return id_; +void DescribeHostAvailabilityListRequest::setIds(const std::string &ids) { + ids_ = ids; + setParameter(std::string("Ids"), ids); } -void DescribeHostAvailabilityListRequest::setId(long id) -{ - id_ = id; - setParameter("Id", std::to_string(id)); +long DescribeHostAvailabilityListRequest::getId() const { + return id_; +} + +void DescribeHostAvailabilityListRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); } diff --git a/cms/src/model/DescribeLogMonitorAttributeRequest.cc b/cms/src/model/DescribeLogMonitorAttributeRequest.cc index 7ae174645..38b672abe 100644 --- a/cms/src/model/DescribeLogMonitorAttributeRequest.cc +++ b/cms/src/model/DescribeLogMonitorAttributeRequest.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::Cms::Model::DescribeLogMonitorAttributeRequest; - -DescribeLogMonitorAttributeRequest::DescribeLogMonitorAttributeRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeLogMonitorAttribute") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeLogMonitorAttributeRequest::~DescribeLogMonitorAttributeRequest() -{} - -std::string DescribeLogMonitorAttributeRequest::getMetricName()const -{ - return metricName_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeLogMonitorAttributeRequest; + +DescribeLogMonitorAttributeRequest::DescribeLogMonitorAttributeRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeLogMonitorAttribute") { + setMethod(HttpRequest::Method::Get); } -void DescribeLogMonitorAttributeRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +DescribeLogMonitorAttributeRequest::~DescribeLogMonitorAttributeRequest() {} + +std::string DescribeLogMonitorAttributeRequest::getMetricName() const { + return metricName_; +} + +void DescribeLogMonitorAttributeRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } diff --git a/cms/src/model/DescribeLogMonitorAttributeResult.cc b/cms/src/model/DescribeLogMonitorAttributeResult.cc index 47c6b0800..bf7ef1dcc 100644 --- a/cms/src/model/DescribeLogMonitorAttributeResult.cc +++ b/cms/src/model/DescribeLogMonitorAttributeResult.cc @@ -40,38 +40,38 @@ void DescribeLogMonitorAttributeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto logMonitorNode = value["LogMonitor"]; - if(!logMonitorNode["LogId"].isNull()) - logMonitor_.logId = std::stol(logMonitorNode["LogId"].asString()); - if(!logMonitorNode["SlsRegionId"].isNull()) - logMonitor_.slsRegionId = logMonitorNode["SlsRegionId"].asString(); - if(!logMonitorNode["SlsProject"].isNull()) - logMonitor_.slsProject = logMonitorNode["SlsProject"].asString(); + if(!logMonitorNode["ValueFilterRelation"].isNull()) + logMonitor_.valueFilterRelation = logMonitorNode["ValueFilterRelation"].asString(); if(!logMonitorNode["SlsLogstore"].isNull()) logMonitor_.slsLogstore = logMonitorNode["SlsLogstore"].asString(); if(!logMonitorNode["MetricName"].isNull()) logMonitor_.metricName = logMonitorNode["MetricName"].asString(); - if(!logMonitorNode["MetricExpress"].isNull()) - logMonitor_.metricExpress = logMonitorNode["MetricExpress"].asString(); - if(!logMonitorNode["GmtCreate"].isNull()) - logMonitor_.gmtCreate = std::stol(logMonitorNode["GmtCreate"].asString()); - if(!logMonitorNode["ValueFilterRelation"].isNull()) - logMonitor_.valueFilterRelation = logMonitorNode["ValueFilterRelation"].asString(); if(!logMonitorNode["GroupId"].isNull()) logMonitor_.groupId = std::stol(logMonitorNode["GroupId"].asString()); + if(!logMonitorNode["LogId"].isNull()) + logMonitor_.logId = std::stol(logMonitorNode["LogId"].asString()); + if(!logMonitorNode["MetricExpress"].isNull()) + logMonitor_.metricExpress = logMonitorNode["MetricExpress"].asString(); + if(!logMonitorNode["SlsRegionId"].isNull()) + logMonitor_.slsRegionId = logMonitorNode["SlsRegionId"].asString(); + if(!logMonitorNode["GmtCreate"].isNull()) + logMonitor_.gmtCreate = std::stol(logMonitorNode["GmtCreate"].asString()); + if(!logMonitorNode["SlsProject"].isNull()) + logMonitor_.slsProject = logMonitorNode["SlsProject"].asString(); auto allAggregatesNode = logMonitorNode["Aggregates"]["Aggregate"]; for (auto logMonitorNodeAggregatesAggregate : allAggregatesNode) { LogMonitor::Aggregate aggregateObject; + if(!logMonitorNodeAggregatesAggregate["Max"].isNull()) + aggregateObject.max = logMonitorNodeAggregatesAggregate["Max"].asString(); + if(!logMonitorNodeAggregatesAggregate["Min"].isNull()) + aggregateObject.min = logMonitorNodeAggregatesAggregate["Min"].asString(); + if(!logMonitorNodeAggregatesAggregate["Function"].isNull()) + aggregateObject.function = logMonitorNodeAggregatesAggregate["Function"].asString(); if(!logMonitorNodeAggregatesAggregate["Alias"].isNull()) aggregateObject.alias = logMonitorNodeAggregatesAggregate["Alias"].asString(); if(!logMonitorNodeAggregatesAggregate["FieldName"].isNull()) aggregateObject.fieldName = logMonitorNodeAggregatesAggregate["FieldName"].asString(); - if(!logMonitorNodeAggregatesAggregate["Function"].isNull()) - aggregateObject.function = logMonitorNodeAggregatesAggregate["Function"].asString(); - if(!logMonitorNodeAggregatesAggregate["Min"].isNull()) - aggregateObject.min = logMonitorNodeAggregatesAggregate["Min"].asString(); - if(!logMonitorNodeAggregatesAggregate["Max"].isNull()) - aggregateObject.max = logMonitorNodeAggregatesAggregate["Max"].asString(); logMonitor_.aggregates.push_back(aggregateObject); } auto allValueFilterNode = logMonitorNode["ValueFilter"]["ValueFilterObject"]; @@ -80,10 +80,10 @@ void DescribeLogMonitorAttributeResult::parse(const std::string &payload) LogMonitor::ValueFilterObject valueFilterObjectObject; if(!logMonitorNodeValueFilterValueFilterObject["Key"].isNull()) valueFilterObjectObject.key = logMonitorNodeValueFilterValueFilterObject["Key"].asString(); - if(!logMonitorNodeValueFilterValueFilterObject["Operator"].isNull()) - valueFilterObjectObject._operator = logMonitorNodeValueFilterValueFilterObject["Operator"].asString(); if(!logMonitorNodeValueFilterValueFilterObject["Value"].isNull()) valueFilterObjectObject.value = logMonitorNodeValueFilterValueFilterObject["Value"].asString(); + if(!logMonitorNodeValueFilterValueFilterObject["Operator"].isNull()) + valueFilterObjectObject._operator = logMonitorNodeValueFilterValueFilterObject["Operator"].asString(); logMonitor_.valueFilter.push_back(valueFilterObjectObject); } auto allTumblingwindows = logMonitorNode["Tumblingwindows"]["Tumblingwindow"]; @@ -94,10 +94,10 @@ void DescribeLogMonitorAttributeResult::parse(const std::string &payload) logMonitor_.groupbys.push_back(value.asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeLogMonitorListRequest.cc b/cms/src/model/DescribeLogMonitorListRequest.cc index b4164306e..e7240cc5a 100644 --- a/cms/src/model/DescribeLogMonitorListRequest.cc +++ b/cms/src/model/DescribeLogMonitorListRequest.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::Cms::Model::DescribeLogMonitorListRequest; - -DescribeLogMonitorListRequest::DescribeLogMonitorListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeLogMonitorList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeLogMonitorListRequest::~DescribeLogMonitorListRequest() -{} - -long DescribeLogMonitorListRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeLogMonitorListRequest; + +DescribeLogMonitorListRequest::DescribeLogMonitorListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeLogMonitorList") { + setMethod(HttpRequest::Method::Post); } -void DescribeLogMonitorListRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DescribeLogMonitorListRequest::~DescribeLogMonitorListRequest() {} + +long DescribeLogMonitorListRequest::getGroupId() const { + return groupId_; } -int DescribeLogMonitorListRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeLogMonitorListRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } -void DescribeLogMonitorListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeLogMonitorListRequest::getPageNumber() const { + return pageNumber_; } -int DescribeLogMonitorListRequest::getPageSize()const -{ - return pageSize_; +void DescribeLogMonitorListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeLogMonitorListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeLogMonitorListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeLogMonitorListRequest::getSearchValue()const -{ - return searchValue_; +void DescribeLogMonitorListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeLogMonitorListRequest::setSearchValue(const std::string& searchValue) -{ - searchValue_ = searchValue; - setParameter("SearchValue", searchValue); +std::string DescribeLogMonitorListRequest::getSearchValue() const { + return searchValue_; +} + +void DescribeLogMonitorListRequest::setSearchValue(const std::string &searchValue) { + searchValue_ = searchValue; + setParameter(std::string("SearchValue"), searchValue); } diff --git a/cms/src/model/DescribeLogMonitorListResult.cc b/cms/src/model/DescribeLogMonitorListResult.cc index 7fa532243..c53d53f2d 100644 --- a/cms/src/model/DescribeLogMonitorListResult.cc +++ b/cms/src/model/DescribeLogMonitorListResult.cc @@ -43,48 +43,48 @@ void DescribeLogMonitorListResult::parse(const std::string &payload) for (auto valueLogMonitorListLogMonitor : allLogMonitorListNode) { LogMonitor logMonitorListObject; - if(!valueLogMonitorListLogMonitor["LogId"].isNull()) - logMonitorListObject.logId = std::stol(valueLogMonitorListLogMonitor["LogId"].asString()); - if(!valueLogMonitorListLogMonitor["SlsRegionId"].isNull()) - logMonitorListObject.slsRegionId = valueLogMonitorListLogMonitor["SlsRegionId"].asString(); - if(!valueLogMonitorListLogMonitor["SlsProject"].isNull()) - logMonitorListObject.slsProject = valueLogMonitorListLogMonitor["SlsProject"].asString(); + if(!valueLogMonitorListLogMonitor["ValueFilterRelation"].isNull()) + logMonitorListObject.valueFilterRelation = valueLogMonitorListLogMonitor["ValueFilterRelation"].asString(); if(!valueLogMonitorListLogMonitor["SlsLogstore"].isNull()) logMonitorListObject.slsLogstore = valueLogMonitorListLogMonitor["SlsLogstore"].asString(); if(!valueLogMonitorListLogMonitor["MetricName"].isNull()) logMonitorListObject.metricName = valueLogMonitorListLogMonitor["MetricName"].asString(); - if(!valueLogMonitorListLogMonitor["GmtCreate"].isNull()) - logMonitorListObject.gmtCreate = std::stol(valueLogMonitorListLogMonitor["GmtCreate"].asString()); - if(!valueLogMonitorListLogMonitor["ValueFilterRelation"].isNull()) - logMonitorListObject.valueFilterRelation = valueLogMonitorListLogMonitor["ValueFilterRelation"].asString(); if(!valueLogMonitorListLogMonitor["GroupId"].isNull()) logMonitorListObject.groupId = std::stol(valueLogMonitorListLogMonitor["GroupId"].asString()); + if(!valueLogMonitorListLogMonitor["LogId"].isNull()) + logMonitorListObject.logId = std::stol(valueLogMonitorListLogMonitor["LogId"].asString()); + if(!valueLogMonitorListLogMonitor["SlsRegionId"].isNull()) + logMonitorListObject.slsRegionId = valueLogMonitorListLogMonitor["SlsRegionId"].asString(); + if(!valueLogMonitorListLogMonitor["GmtCreate"].isNull()) + logMonitorListObject.gmtCreate = std::stol(valueLogMonitorListLogMonitor["GmtCreate"].asString()); + if(!valueLogMonitorListLogMonitor["SlsProject"].isNull()) + logMonitorListObject.slsProject = valueLogMonitorListLogMonitor["SlsProject"].asString(); auto allValueFilterNode = valueLogMonitorListLogMonitor["ValueFilter"]["ValueFilterObject"]; for (auto valueLogMonitorListLogMonitorValueFilterValueFilterObject : allValueFilterNode) { LogMonitor::ValueFilterObject valueFilterObject; if(!valueLogMonitorListLogMonitorValueFilterValueFilterObject["Key"].isNull()) valueFilterObject.key = valueLogMonitorListLogMonitorValueFilterValueFilterObject["Key"].asString(); - if(!valueLogMonitorListLogMonitorValueFilterValueFilterObject["Operator"].isNull()) - valueFilterObject._operator = valueLogMonitorListLogMonitorValueFilterValueFilterObject["Operator"].asString(); if(!valueLogMonitorListLogMonitorValueFilterValueFilterObject["Value"].isNull()) valueFilterObject.value = valueLogMonitorListLogMonitorValueFilterValueFilterObject["Value"].asString(); + if(!valueLogMonitorListLogMonitorValueFilterValueFilterObject["Operator"].isNull()) + valueFilterObject._operator = valueLogMonitorListLogMonitorValueFilterValueFilterObject["Operator"].asString(); logMonitorListObject.valueFilter.push_back(valueFilterObject); } logMonitorList_.push_back(logMonitorListObject); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Total"].isNull()) - total_ = std::stol(value["Total"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["Total"].isNull()) + total_ = std::stol(value["Total"].asString()); } diff --git a/cms/src/model/DescribeMetricDataRequest.cc b/cms/src/model/DescribeMetricDataRequest.cc index 19fc46bd8..444e368e8 100644 --- a/cms/src/model/DescribeMetricDataRequest.cc +++ b/cms/src/model/DescribeMetricDataRequest.cc @@ -1,117 +1,99 @@ /* * 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::Cms::Model::DescribeMetricDataRequest; - -DescribeMetricDataRequest::DescribeMetricDataRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMetricData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMetricDataRequest::~DescribeMetricDataRequest() -{} - -std::string DescribeMetricDataRequest::getPeriod()const -{ - return period_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricDataRequest; + +DescribeMetricDataRequest::DescribeMetricDataRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMetricData") { + setMethod(HttpRequest::Method::Post); } -void DescribeMetricDataRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +DescribeMetricDataRequest::~DescribeMetricDataRequest() {} + +std::string DescribeMetricDataRequest::getPeriod() const { + return period_; } -std::string DescribeMetricDataRequest::getLength()const -{ - return length_; +void DescribeMetricDataRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -void DescribeMetricDataRequest::setLength(const std::string& length) -{ - length_ = length; - setParameter("Length", length); +std::string DescribeMetricDataRequest::getLength() const { + return length_; } -std::string DescribeMetricDataRequest::getEndTime()const -{ - return endTime_; +void DescribeMetricDataRequest::setLength(const std::string &length) { + length_ = length; + setParameter(std::string("Length"), length); } -void DescribeMetricDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeMetricDataRequest::getEndTime() const { + return endTime_; } -std::string DescribeMetricDataRequest::getExpress()const -{ - return express_; +void DescribeMetricDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeMetricDataRequest::setExpress(const std::string& express) -{ - express_ = express; - setParameter("Express", express); +std::string DescribeMetricDataRequest::getExpress() const { + return express_; } -std::string DescribeMetricDataRequest::getStartTime()const -{ - return startTime_; +void DescribeMetricDataRequest::setExpress(const std::string &express) { + express_ = express; + setParameter(std::string("Express"), express); } -void DescribeMetricDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeMetricDataRequest::getStartTime() const { + return startTime_; } -std::string DescribeMetricDataRequest::get_Namespace()const -{ - return _namespace_; +void DescribeMetricDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeMetricDataRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string DescribeMetricDataRequest::get_Namespace() const { + return _namespace_; } -std::string DescribeMetricDataRequest::getMetricName()const -{ - return metricName_; +void DescribeMetricDataRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -void DescribeMetricDataRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeMetricDataRequest::getMetricName() const { + return metricName_; } -std::string DescribeMetricDataRequest::getDimensions()const -{ - return dimensions_; +void DescribeMetricDataRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeMetricDataRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setParameter("Dimensions", dimensions); +std::string DescribeMetricDataRequest::getDimensions() const { + return dimensions_; +} + +void DescribeMetricDataRequest::setDimensions(const std::string &dimensions) { + dimensions_ = dimensions; + setParameter(std::string("Dimensions"), dimensions); } diff --git a/cms/src/model/DescribeMetricLastRequest.cc b/cms/src/model/DescribeMetricLastRequest.cc index 0639361e8..1fdeffb47 100644 --- a/cms/src/model/DescribeMetricLastRequest.cc +++ b/cms/src/model/DescribeMetricLastRequest.cc @@ -1,128 +1,108 @@ /* * 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::Cms::Model::DescribeMetricLastRequest; - -DescribeMetricLastRequest::DescribeMetricLastRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMetricLast") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMetricLastRequest::~DescribeMetricLastRequest() -{} - -std::string DescribeMetricLastRequest::getExpress()const -{ - return express_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricLastRequest; + +DescribeMetricLastRequest::DescribeMetricLastRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMetricLast") { + setMethod(HttpRequest::Method::Post); } -void DescribeMetricLastRequest::setExpress(const std::string& express) -{ - express_ = express; - setParameter("Express", express); +DescribeMetricLastRequest::~DescribeMetricLastRequest() {} + +std::string DescribeMetricLastRequest::getExpress() const { + return express_; } -std::string DescribeMetricLastRequest::getStartTime()const -{ - return startTime_; +void DescribeMetricLastRequest::setExpress(const std::string &express) { + express_ = express; + setParameter(std::string("Express"), express); } -void DescribeMetricLastRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeMetricLastRequest::getStartTime() const { + return startTime_; } -std::string DescribeMetricLastRequest::getNextToken()const -{ - return nextToken_; +void DescribeMetricLastRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeMetricLastRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeMetricLastRequest::getNextToken() const { + return nextToken_; } -std::string DescribeMetricLastRequest::getMetricName()const -{ - return metricName_; +void DescribeMetricLastRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeMetricLastRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeMetricLastRequest::getMetricName() const { + return metricName_; } -std::string DescribeMetricLastRequest::getPeriod()const -{ - return period_; +void DescribeMetricLastRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeMetricLastRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +std::string DescribeMetricLastRequest::getPeriod() const { + return period_; } -std::string DescribeMetricLastRequest::getLength()const -{ - return length_; +void DescribeMetricLastRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -void DescribeMetricLastRequest::setLength(const std::string& length) -{ - length_ = length; - setParameter("Length", length); +std::string DescribeMetricLastRequest::getLength() const { + return length_; } -std::string DescribeMetricLastRequest::getEndTime()const -{ - return endTime_; +void DescribeMetricLastRequest::setLength(const std::string &length) { + length_ = length; + setParameter(std::string("Length"), length); } -void DescribeMetricLastRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeMetricLastRequest::getEndTime() const { + return endTime_; } -std::string DescribeMetricLastRequest::get_Namespace()const -{ - return _namespace_; +void DescribeMetricLastRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeMetricLastRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string DescribeMetricLastRequest::get_Namespace() const { + return _namespace_; } -std::string DescribeMetricLastRequest::getDimensions()const -{ - return dimensions_; +void DescribeMetricLastRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -void DescribeMetricLastRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setParameter("Dimensions", dimensions); +std::string DescribeMetricLastRequest::getDimensions() const { + return dimensions_; +} + +void DescribeMetricLastRequest::setDimensions(const std::string &dimensions) { + dimensions_ = dimensions; + setParameter(std::string("Dimensions"), dimensions); } diff --git a/cms/src/model/DescribeMetricLastResult.cc b/cms/src/model/DescribeMetricLastResult.cc index cc80ba7e9..d661d1093 100644 --- a/cms/src/model/DescribeMetricLastResult.cc +++ b/cms/src/model/DescribeMetricLastResult.cc @@ -39,31 +39,31 @@ void DescribeMetricLastResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Datapoints"].isNull()) + datapoints_ = value["Datapoints"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["NextToken"].isNull()) - nextToken_ = value["NextToken"].asString(); - if(!value["Datapoints"].isNull()) - datapoints_ = value["Datapoints"].asString(); if(!value["Period"].isNull()) period_ = value["Period"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; } -std::string DescribeMetricLastResult::getMessage()const -{ - return message_; -} - std::string DescribeMetricLastResult::getNextToken()const { return nextToken_; } +std::string DescribeMetricLastResult::getMessage()const +{ + return message_; +} + std::string DescribeMetricLastResult::getPeriod()const { return period_; diff --git a/cms/src/model/DescribeMetricListRequest.cc b/cms/src/model/DescribeMetricListRequest.cc index a1b836e09..712664257 100644 --- a/cms/src/model/DescribeMetricListRequest.cc +++ b/cms/src/model/DescribeMetricListRequest.cc @@ -1,128 +1,108 @@ /* * 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::Cms::Model::DescribeMetricListRequest; - -DescribeMetricListRequest::DescribeMetricListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMetricList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMetricListRequest::~DescribeMetricListRequest() -{} - -std::string DescribeMetricListRequest::getExpress()const -{ - return express_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricListRequest; + +DescribeMetricListRequest::DescribeMetricListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMetricList") { + setMethod(HttpRequest::Method::Post); } -void DescribeMetricListRequest::setExpress(const std::string& express) -{ - express_ = express; - setParameter("Express", express); +DescribeMetricListRequest::~DescribeMetricListRequest() {} + +std::string DescribeMetricListRequest::getExpress() const { + return express_; } -std::string DescribeMetricListRequest::getStartTime()const -{ - return startTime_; +void DescribeMetricListRequest::setExpress(const std::string &express) { + express_ = express; + setParameter(std::string("Express"), express); } -void DescribeMetricListRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeMetricListRequest::getStartTime() const { + return startTime_; } -std::string DescribeMetricListRequest::getNextToken()const -{ - return nextToken_; +void DescribeMetricListRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeMetricListRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeMetricListRequest::getNextToken() const { + return nextToken_; } -std::string DescribeMetricListRequest::getMetricName()const -{ - return metricName_; +void DescribeMetricListRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeMetricListRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeMetricListRequest::getMetricName() const { + return metricName_; } -std::string DescribeMetricListRequest::getPeriod()const -{ - return period_; +void DescribeMetricListRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeMetricListRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +std::string DescribeMetricListRequest::getPeriod() const { + return period_; } -std::string DescribeMetricListRequest::getLength()const -{ - return length_; +void DescribeMetricListRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -void DescribeMetricListRequest::setLength(const std::string& length) -{ - length_ = length; - setParameter("Length", length); +std::string DescribeMetricListRequest::getLength() const { + return length_; } -std::string DescribeMetricListRequest::getEndTime()const -{ - return endTime_; +void DescribeMetricListRequest::setLength(const std::string &length) { + length_ = length; + setParameter(std::string("Length"), length); } -void DescribeMetricListRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeMetricListRequest::getEndTime() const { + return endTime_; } -std::string DescribeMetricListRequest::get_Namespace()const -{ - return _namespace_; +void DescribeMetricListRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeMetricListRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string DescribeMetricListRequest::get_Namespace() const { + return _namespace_; } -std::string DescribeMetricListRequest::getDimensions()const -{ - return dimensions_; +void DescribeMetricListRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -void DescribeMetricListRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setParameter("Dimensions", dimensions); +std::string DescribeMetricListRequest::getDimensions() const { + return dimensions_; +} + +void DescribeMetricListRequest::setDimensions(const std::string &dimensions) { + dimensions_ = dimensions; + setParameter(std::string("Dimensions"), dimensions); } diff --git a/cms/src/model/DescribeMetricListResult.cc b/cms/src/model/DescribeMetricListResult.cc index 43db629d0..0301d4b9a 100644 --- a/cms/src/model/DescribeMetricListResult.cc +++ b/cms/src/model/DescribeMetricListResult.cc @@ -39,31 +39,31 @@ void DescribeMetricListResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Datapoints"].isNull()) + datapoints_ = value["Datapoints"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["NextToken"].isNull()) - nextToken_ = value["NextToken"].asString(); - if(!value["Datapoints"].isNull()) - datapoints_ = value["Datapoints"].asString(); if(!value["Period"].isNull()) period_ = value["Period"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; } -std::string DescribeMetricListResult::getMessage()const -{ - return message_; -} - std::string DescribeMetricListResult::getNextToken()const { return nextToken_; } +std::string DescribeMetricListResult::getMessage()const +{ + return message_; +} + std::string DescribeMetricListResult::getPeriod()const { return period_; diff --git a/cms/src/model/DescribeMetricMetaListRequest.cc b/cms/src/model/DescribeMetricMetaListRequest.cc index 8344542dd..45e46f5a4 100644 --- a/cms/src/model/DescribeMetricMetaListRequest.cc +++ b/cms/src/model/DescribeMetricMetaListRequest.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::Cms::Model::DescribeMetricMetaListRequest; - -DescribeMetricMetaListRequest::DescribeMetricMetaListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMetricMetaList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMetricMetaListRequest::~DescribeMetricMetaListRequest() -{} - -int DescribeMetricMetaListRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricMetaListRequest; + +DescribeMetricMetaListRequest::DescribeMetricMetaListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMetricMetaList") { + setMethod(HttpRequest::Method::Post); } -void DescribeMetricMetaListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeMetricMetaListRequest::~DescribeMetricMetaListRequest() {} + +int DescribeMetricMetaListRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeMetricMetaListRequest::getLabels()const -{ - return labels_; +void DescribeMetricMetaListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeMetricMetaListRequest::setLabels(const std::string& labels) -{ - labels_ = labels; - setParameter("Labels", labels); +std::string DescribeMetricMetaListRequest::getLabels() const { + return labels_; } -std::string DescribeMetricMetaListRequest::get_Namespace()const -{ - return _namespace_; +void DescribeMetricMetaListRequest::setLabels(const std::string &labels) { + labels_ = labels; + setParameter(std::string("Labels"), labels); } -void DescribeMetricMetaListRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string DescribeMetricMetaListRequest::get_Namespace() const { + return _namespace_; } -int DescribeMetricMetaListRequest::getPageSize()const -{ - return pageSize_; +void DescribeMetricMetaListRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -void DescribeMetricMetaListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeMetricMetaListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeMetricMetaListRequest::getMetricName()const -{ - return metricName_; +void DescribeMetricMetaListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeMetricMetaListRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeMetricMetaListRequest::getMetricName() const { + return metricName_; +} + +void DescribeMetricMetaListRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } diff --git a/cms/src/model/DescribeMetricRuleCountRequest.cc b/cms/src/model/DescribeMetricRuleCountRequest.cc index 46c10cd19..ebe08dacb 100644 --- a/cms/src/model/DescribeMetricRuleCountRequest.cc +++ b/cms/src/model/DescribeMetricRuleCountRequest.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::Cms::Model::DescribeMetricRuleCountRequest; - -DescribeMetricRuleCountRequest::DescribeMetricRuleCountRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleCount") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeMetricRuleCountRequest::~DescribeMetricRuleCountRequest() -{} - -std::string DescribeMetricRuleCountRequest::get_Namespace()const -{ - return _namespace_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricRuleCountRequest; + +DescribeMetricRuleCountRequest::DescribeMetricRuleCountRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleCount") { + setMethod(HttpRequest::Method::Get); } -void DescribeMetricRuleCountRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +DescribeMetricRuleCountRequest::~DescribeMetricRuleCountRequest() {} + +std::string DescribeMetricRuleCountRequest::get_Namespace() const { + return _namespace_; } -std::string DescribeMetricRuleCountRequest::getMetricName()const -{ - return metricName_; +void DescribeMetricRuleCountRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -void DescribeMetricRuleCountRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeMetricRuleCountRequest::getMetricName() const { + return metricName_; +} + +void DescribeMetricRuleCountRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } diff --git a/cms/src/model/DescribeMetricRuleCountResult.cc b/cms/src/model/DescribeMetricRuleCountResult.cc index bda90325a..396953788 100644 --- a/cms/src/model/DescribeMetricRuleCountResult.cc +++ b/cms/src/model/DescribeMetricRuleCountResult.cc @@ -40,22 +40,22 @@ void DescribeMetricRuleCountResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto metricRuleCountNode = value["MetricRuleCount"]; - if(!metricRuleCountNode["Alarm"].isNull()) - metricRuleCount_.alarm = std::stoi(metricRuleCountNode["Alarm"].asString()); - if(!metricRuleCountNode["Disable"].isNull()) - metricRuleCount_.disable = std::stoi(metricRuleCountNode["Disable"].asString()); - if(!metricRuleCountNode["Nodata"].isNull()) - metricRuleCount_.nodata = std::stoi(metricRuleCountNode["Nodata"].asString()); if(!metricRuleCountNode["Ok"].isNull()) metricRuleCount_.ok = std::stoi(metricRuleCountNode["Ok"].asString()); + if(!metricRuleCountNode["Nodata"].isNull()) + metricRuleCount_.nodata = std::stoi(metricRuleCountNode["Nodata"].asString()); + if(!metricRuleCountNode["Disable"].isNull()) + metricRuleCount_.disable = std::stoi(metricRuleCountNode["Disable"].asString()); if(!metricRuleCountNode["Total"].isNull()) metricRuleCount_.total = std::stoi(metricRuleCountNode["Total"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!metricRuleCountNode["Alarm"].isNull()) + metricRuleCount_.alarm = std::stoi(metricRuleCountNode["Alarm"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeMetricRuleListRequest.cc b/cms/src/model/DescribeMetricRuleListRequest.cc index cc1c7e2e2..6c1a330fb 100644 --- a/cms/src/model/DescribeMetricRuleListRequest.cc +++ b/cms/src/model/DescribeMetricRuleListRequest.cc @@ -1,139 +1,117 @@ /* * 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::Cms::Model::DescribeMetricRuleListRequest; - -DescribeMetricRuleListRequest::DescribeMetricRuleListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMetricRuleListRequest::~DescribeMetricRuleListRequest() -{} - -bool DescribeMetricRuleListRequest::getEnableState()const -{ - return enableState_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricRuleListRequest; + +DescribeMetricRuleListRequest::DescribeMetricRuleListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleList") { + setMethod(HttpRequest::Method::Post); } -void DescribeMetricRuleListRequest::setEnableState(bool enableState) -{ - enableState_ = enableState; - setParameter("EnableState", enableState ? "true" : "false"); +DescribeMetricRuleListRequest::~DescribeMetricRuleListRequest() {} + +bool DescribeMetricRuleListRequest::getEnableState() const { + return enableState_; } -std::string DescribeMetricRuleListRequest::getRuleName()const -{ - return ruleName_; +void DescribeMetricRuleListRequest::setEnableState(bool enableState) { + enableState_ = enableState; + setParameter(std::string("EnableState"), enableState ? "true" : "false"); } -void DescribeMetricRuleListRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +std::string DescribeMetricRuleListRequest::getRuleName() const { + return ruleName_; } -int DescribeMetricRuleListRequest::getPageSize()const -{ - return pageSize_; +void DescribeMetricRuleListRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void DescribeMetricRuleListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeMetricRuleListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeMetricRuleListRequest::getMetricName()const -{ - return metricName_; +void DescribeMetricRuleListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeMetricRuleListRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeMetricRuleListRequest::getMetricName() const { + return metricName_; } -std::string DescribeMetricRuleListRequest::getGroupId()const -{ - return groupId_; +void DescribeMetricRuleListRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeMetricRuleListRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeMetricRuleListRequest::getGroupId() const { + return groupId_; } -std::string DescribeMetricRuleListRequest::getRuleIds()const -{ - return ruleIds_; +void DescribeMetricRuleListRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeMetricRuleListRequest::setRuleIds(const std::string& ruleIds) -{ - ruleIds_ = ruleIds; - setParameter("RuleIds", ruleIds); +std::string DescribeMetricRuleListRequest::getRuleIds() const { + return ruleIds_; } -std::string DescribeMetricRuleListRequest::get_Namespace()const -{ - return _namespace_; +void DescribeMetricRuleListRequest::setRuleIds(const std::string &ruleIds) { + ruleIds_ = ruleIds; + setParameter(std::string("RuleIds"), ruleIds); } -void DescribeMetricRuleListRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string DescribeMetricRuleListRequest::get_Namespace() const { + return _namespace_; } -std::string DescribeMetricRuleListRequest::getAlertState()const -{ - return alertState_; +void DescribeMetricRuleListRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -void DescribeMetricRuleListRequest::setAlertState(const std::string& alertState) -{ - alertState_ = alertState; - setParameter("AlertState", alertState); +std::string DescribeMetricRuleListRequest::getAlertState() const { + return alertState_; } -int DescribeMetricRuleListRequest::getPage()const -{ - return page_; +void DescribeMetricRuleListRequest::setAlertState(const std::string &alertState) { + alertState_ = alertState; + setParameter(std::string("AlertState"), alertState); } -void DescribeMetricRuleListRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +int DescribeMetricRuleListRequest::getPage() const { + return page_; } -std::string DescribeMetricRuleListRequest::getDimensions()const -{ - return dimensions_; +void DescribeMetricRuleListRequest::setPage(int page) { + page_ = page; + setParameter(std::string("Page"), std::to_string(page)); } -void DescribeMetricRuleListRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setParameter("Dimensions", dimensions); +std::string DescribeMetricRuleListRequest::getDimensions() const { + return dimensions_; +} + +void DescribeMetricRuleListRequest::setDimensions(const std::string &dimensions) { + dimensions_ = dimensions; + setParameter(std::string("Dimensions"), dimensions); } diff --git a/cms/src/model/DescribeMetricRuleTargetsRequest.cc b/cms/src/model/DescribeMetricRuleTargetsRequest.cc index 4452bf437..b4c8619d9 100644 --- a/cms/src/model/DescribeMetricRuleTargetsRequest.cc +++ b/cms/src/model/DescribeMetricRuleTargetsRequest.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::Cms::Model::DescribeMetricRuleTargetsRequest; - -DescribeMetricRuleTargetsRequest::DescribeMetricRuleTargetsRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleTargets") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMetricRuleTargetsRequest::~DescribeMetricRuleTargetsRequest() -{} - -std::string DescribeMetricRuleTargetsRequest::getRuleId()const -{ - return ruleId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricRuleTargetsRequest; + +DescribeMetricRuleTargetsRequest::DescribeMetricRuleTargetsRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleTargets") { + setMethod(HttpRequest::Method::Post); } -void DescribeMetricRuleTargetsRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); +DescribeMetricRuleTargetsRequest::~DescribeMetricRuleTargetsRequest() {} + +std::string DescribeMetricRuleTargetsRequest::getRuleId() const { + return ruleId_; +} + +void DescribeMetricRuleTargetsRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } diff --git a/cms/src/model/DescribeMetricRuleTemplateAttributeRequest.cc b/cms/src/model/DescribeMetricRuleTemplateAttributeRequest.cc index 9e7997e08..63ce6ba62 100644 --- a/cms/src/model/DescribeMetricRuleTemplateAttributeRequest.cc +++ b/cms/src/model/DescribeMetricRuleTemplateAttributeRequest.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::Cms::Model::DescribeMetricRuleTemplateAttributeRequest; - -DescribeMetricRuleTemplateAttributeRequest::DescribeMetricRuleTemplateAttributeRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleTemplateAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMetricRuleTemplateAttributeRequest::~DescribeMetricRuleTemplateAttributeRequest() -{} - -std::string DescribeMetricRuleTemplateAttributeRequest::getTemplateId()const -{ - return templateId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricRuleTemplateAttributeRequest; + +DescribeMetricRuleTemplateAttributeRequest::DescribeMetricRuleTemplateAttributeRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleTemplateAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeMetricRuleTemplateAttributeRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +DescribeMetricRuleTemplateAttributeRequest::~DescribeMetricRuleTemplateAttributeRequest() {} + +std::string DescribeMetricRuleTemplateAttributeRequest::getTemplateId() const { + return templateId_; } -std::string DescribeMetricRuleTemplateAttributeRequest::getName()const -{ - return name_; +void DescribeMetricRuleTemplateAttributeRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void DescribeMetricRuleTemplateAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeMetricRuleTemplateAttributeRequest::getName() const { + return name_; +} + +void DescribeMetricRuleTemplateAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/cms/src/model/DescribeMetricRuleTemplateListRequest.cc b/cms/src/model/DescribeMetricRuleTemplateListRequest.cc index 38b350510..7a5647f6b 100644 --- a/cms/src/model/DescribeMetricRuleTemplateListRequest.cc +++ b/cms/src/model/DescribeMetricRuleTemplateListRequest.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::Cms::Model::DescribeMetricRuleTemplateListRequest; - -DescribeMetricRuleTemplateListRequest::DescribeMetricRuleTemplateListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleTemplateList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMetricRuleTemplateListRequest::~DescribeMetricRuleTemplateListRequest() -{} - -bool DescribeMetricRuleTemplateListRequest::getHistory()const -{ - return history_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricRuleTemplateListRequest; + +DescribeMetricRuleTemplateListRequest::DescribeMetricRuleTemplateListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleTemplateList") { + setMethod(HttpRequest::Method::Post); } -void DescribeMetricRuleTemplateListRequest::setHistory(bool history) -{ - history_ = history; - setParameter("History", history ? "true" : "false"); +DescribeMetricRuleTemplateListRequest::~DescribeMetricRuleTemplateListRequest() {} + +bool DescribeMetricRuleTemplateListRequest::getHistory() const { + return history_; } -long DescribeMetricRuleTemplateListRequest::getTemplateId()const -{ - return templateId_; +void DescribeMetricRuleTemplateListRequest::setHistory(bool history) { + history_ = history; + setParameter(std::string("History"), history ? "true" : "false"); } -void DescribeMetricRuleTemplateListRequest::setTemplateId(long templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", std::to_string(templateId)); +long DescribeMetricRuleTemplateListRequest::getTemplateId() const { + return templateId_; } -long DescribeMetricRuleTemplateListRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeMetricRuleTemplateListRequest::setTemplateId(long templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), std::to_string(templateId)); } -void DescribeMetricRuleTemplateListRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeMetricRuleTemplateListRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeMetricRuleTemplateListRequest::getName()const -{ - return name_; +void DescribeMetricRuleTemplateListRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeMetricRuleTemplateListRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeMetricRuleTemplateListRequest::getName() const { + return name_; } -long DescribeMetricRuleTemplateListRequest::getPageSize()const -{ - return pageSize_; +void DescribeMetricRuleTemplateListRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeMetricRuleTemplateListRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeMetricRuleTemplateListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeMetricRuleTemplateListRequest::getKeyword()const -{ - return keyword_; +void DescribeMetricRuleTemplateListRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeMetricRuleTemplateListRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeMetricRuleTemplateListRequest::getKeyword() const { + return keyword_; +} + +void DescribeMetricRuleTemplateListRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } diff --git a/cms/src/model/DescribeMetricRuleTemplateListResult.cc b/cms/src/model/DescribeMetricRuleTemplateListResult.cc index c1b9ea993..ae8ec5261 100644 --- a/cms/src/model/DescribeMetricRuleTemplateListResult.cc +++ b/cms/src/model/DescribeMetricRuleTemplateListResult.cc @@ -43,18 +43,18 @@ void DescribeMetricRuleTemplateListResult::parse(const std::string &payload) for (auto valueTemplatesTemplate : allTemplatesNode) { _Template templatesObject; - if(!valueTemplatesTemplate["Name"].isNull()) - templatesObject.name = valueTemplatesTemplate["Name"].asString(); if(!valueTemplatesTemplate["Description"].isNull()) templatesObject.description = valueTemplatesTemplate["Description"].asString(); - if(!valueTemplatesTemplate["RestVersion"].isNull()) - templatesObject.restVersion = std::stol(valueTemplatesTemplate["RestVersion"].asString()); - if(!valueTemplatesTemplate["TemplateId"].isNull()) - templatesObject.templateId = std::stol(valueTemplatesTemplate["TemplateId"].asString()); if(!valueTemplatesTemplate["GmtCreate"].isNull()) templatesObject.gmtCreate = std::stol(valueTemplatesTemplate["GmtCreate"].asString()); + if(!valueTemplatesTemplate["Name"].isNull()) + templatesObject.name = valueTemplatesTemplate["Name"].asString(); + if(!valueTemplatesTemplate["RestVersion"].isNull()) + templatesObject.restVersion = std::stol(valueTemplatesTemplate["RestVersion"].asString()); if(!valueTemplatesTemplate["GmtModified"].isNull()) templatesObject.gmtModified = std::stol(valueTemplatesTemplate["GmtModified"].asString()); + if(!valueTemplatesTemplate["TemplateId"].isNull()) + templatesObject.templateId = std::stol(valueTemplatesTemplate["TemplateId"].asString()); auto allApplyHistoriesNode = valueTemplatesTemplate["ApplyHistories"]["ApplyHistory"]; for (auto valueTemplatesTemplateApplyHistoriesApplyHistory : allApplyHistoriesNode) { @@ -69,14 +69,14 @@ void DescribeMetricRuleTemplateListResult::parse(const std::string &payload) } templates_.push_back(templatesObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Total"].isNull()) total_ = std::stol(value["Total"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeMetricTopRequest.cc b/cms/src/model/DescribeMetricTopRequest.cc index 20df43e04..761321db5 100644 --- a/cms/src/model/DescribeMetricTopRequest.cc +++ b/cms/src/model/DescribeMetricTopRequest.cc @@ -1,139 +1,117 @@ /* * 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::Cms::Model::DescribeMetricTopRequest; - -DescribeMetricTopRequest::DescribeMetricTopRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMetricTop") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMetricTopRequest::~DescribeMetricTopRequest() -{} - -std::string DescribeMetricTopRequest::getExpress()const -{ - return express_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricTopRequest; + +DescribeMetricTopRequest::DescribeMetricTopRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMetricTop") { + setMethod(HttpRequest::Method::Post); } -void DescribeMetricTopRequest::setExpress(const std::string& express) -{ - express_ = express; - setParameter("Express", express); +DescribeMetricTopRequest::~DescribeMetricTopRequest() {} + +std::string DescribeMetricTopRequest::getExpress() const { + return express_; } -std::string DescribeMetricTopRequest::getStartTime()const -{ - return startTime_; +void DescribeMetricTopRequest::setExpress(const std::string &express) { + express_ = express; + setParameter(std::string("Express"), express); } -void DescribeMetricTopRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeMetricTopRequest::getStartTime() const { + return startTime_; } -std::string DescribeMetricTopRequest::getMetricName()const -{ - return metricName_; +void DescribeMetricTopRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeMetricTopRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeMetricTopRequest::getMetricName() const { + return metricName_; } -std::string DescribeMetricTopRequest::getPeriod()const -{ - return period_; +void DescribeMetricTopRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeMetricTopRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +std::string DescribeMetricTopRequest::getPeriod() const { + return period_; } -std::string DescribeMetricTopRequest::getLength()const -{ - return length_; +void DescribeMetricTopRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -void DescribeMetricTopRequest::setLength(const std::string& length) -{ - length_ = length; - setParameter("Length", length); +std::string DescribeMetricTopRequest::getLength() const { + return length_; } -std::string DescribeMetricTopRequest::getEndTime()const -{ - return endTime_; +void DescribeMetricTopRequest::setLength(const std::string &length) { + length_ = length; + setParameter(std::string("Length"), length); } -void DescribeMetricTopRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeMetricTopRequest::getEndTime() const { + return endTime_; } -std::string DescribeMetricTopRequest::getOrderby()const -{ - return orderby_; +void DescribeMetricTopRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeMetricTopRequest::setOrderby(const std::string& orderby) -{ - orderby_ = orderby; - setParameter("Orderby", orderby); +std::string DescribeMetricTopRequest::getOrderby() const { + return orderby_; } -std::string DescribeMetricTopRequest::getOrderDesc()const -{ - return orderDesc_; +void DescribeMetricTopRequest::setOrderby(const std::string &orderby) { + orderby_ = orderby; + setParameter(std::string("Orderby"), orderby); } -void DescribeMetricTopRequest::setOrderDesc(const std::string& orderDesc) -{ - orderDesc_ = orderDesc; - setParameter("OrderDesc", orderDesc); +std::string DescribeMetricTopRequest::getOrderDesc() const { + return orderDesc_; } -std::string DescribeMetricTopRequest::get_Namespace()const -{ - return _namespace_; +void DescribeMetricTopRequest::setOrderDesc(const std::string &orderDesc) { + orderDesc_ = orderDesc; + setParameter(std::string("OrderDesc"), orderDesc); } -void DescribeMetricTopRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string DescribeMetricTopRequest::get_Namespace() const { + return _namespace_; } -std::string DescribeMetricTopRequest::getDimensions()const -{ - return dimensions_; +void DescribeMetricTopRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -void DescribeMetricTopRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setParameter("Dimensions", dimensions); +std::string DescribeMetricTopRequest::getDimensions() const { + return dimensions_; +} + +void DescribeMetricTopRequest::setDimensions(const std::string &dimensions) { + dimensions_ = dimensions; + setParameter(std::string("Dimensions"), dimensions); } diff --git a/cms/src/model/DescribeMonitorGroupCategoriesRequest.cc b/cms/src/model/DescribeMonitorGroupCategoriesRequest.cc index 3cacf6c6e..785e4fca2 100644 --- a/cms/src/model/DescribeMonitorGroupCategoriesRequest.cc +++ b/cms/src/model/DescribeMonitorGroupCategoriesRequest.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::Cms::Model::DescribeMonitorGroupCategoriesRequest; - -DescribeMonitorGroupCategoriesRequest::DescribeMonitorGroupCategoriesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupCategories") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitorGroupCategoriesRequest::~DescribeMonitorGroupCategoriesRequest() -{} - -long DescribeMonitorGroupCategoriesRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitorGroupCategoriesRequest; + +DescribeMonitorGroupCategoriesRequest::DescribeMonitorGroupCategoriesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupCategories") { + setMethod(HttpRequest::Method::Post); } -void DescribeMonitorGroupCategoriesRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DescribeMonitorGroupCategoriesRequest::~DescribeMonitorGroupCategoriesRequest() {} + +long DescribeMonitorGroupCategoriesRequest::getGroupId() const { + return groupId_; +} + +void DescribeMonitorGroupCategoriesRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } diff --git a/cms/src/model/DescribeMonitorGroupCategoriesResult.cc b/cms/src/model/DescribeMonitorGroupCategoriesResult.cc index 386c843bb..3a9cb5777 100644 --- a/cms/src/model/DescribeMonitorGroupCategoriesResult.cc +++ b/cms/src/model/DescribeMonitorGroupCategoriesResult.cc @@ -46,18 +46,18 @@ void DescribeMonitorGroupCategoriesResult::parse(const std::string &payload) for (auto monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem : allMonitorGroupCategoryNode) { MonitorGroupCategories::CategoryItem categoryItemObject; - if(!monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem["Category"].isNull()) - categoryItemObject.category = monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem["Category"].asString(); if(!monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem["Count"].isNull()) categoryItemObject.count = std::stoi(monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem["Count"].asString()); + if(!monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem["Category"].isNull()) + categoryItemObject.category = monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem["Category"].asString(); monitorGroupCategories_.monitorGroupCategory.push_back(categoryItemObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeMonitorGroupDynamicRulesRequest.cc b/cms/src/model/DescribeMonitorGroupDynamicRulesRequest.cc index 7db2d4dbd..097f9457d 100644 --- a/cms/src/model/DescribeMonitorGroupDynamicRulesRequest.cc +++ b/cms/src/model/DescribeMonitorGroupDynamicRulesRequest.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::Cms::Model::DescribeMonitorGroupDynamicRulesRequest; - -DescribeMonitorGroupDynamicRulesRequest::DescribeMonitorGroupDynamicRulesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupDynamicRules") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitorGroupDynamicRulesRequest::~DescribeMonitorGroupDynamicRulesRequest() -{} - -long DescribeMonitorGroupDynamicRulesRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitorGroupDynamicRulesRequest; + +DescribeMonitorGroupDynamicRulesRequest::DescribeMonitorGroupDynamicRulesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupDynamicRules") { + setMethod(HttpRequest::Method::Post); } -void DescribeMonitorGroupDynamicRulesRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DescribeMonitorGroupDynamicRulesRequest::~DescribeMonitorGroupDynamicRulesRequest() {} + +long DescribeMonitorGroupDynamicRulesRequest::getGroupId() const { + return groupId_; +} + +void DescribeMonitorGroupDynamicRulesRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } diff --git a/cms/src/model/DescribeMonitorGroupDynamicRulesResult.cc b/cms/src/model/DescribeMonitorGroupDynamicRulesResult.cc index 669bd44c1..a4522ce04 100644 --- a/cms/src/model/DescribeMonitorGroupDynamicRulesResult.cc +++ b/cms/src/model/DescribeMonitorGroupDynamicRulesResult.cc @@ -51,22 +51,22 @@ void DescribeMonitorGroupDynamicRulesResult::parse(const std::string &payload) for (auto valueResourceResourceItemFiltersFilter : allFiltersNode) { ResourceItem::Filter filtersObject; + if(!valueResourceResourceItemFiltersFilter["Value"].isNull()) + filtersObject.value = valueResourceResourceItemFiltersFilter["Value"].asString(); if(!valueResourceResourceItemFiltersFilter["Function"].isNull()) filtersObject.function = valueResourceResourceItemFiltersFilter["Function"].asString(); if(!valueResourceResourceItemFiltersFilter["Name"].isNull()) filtersObject.name = valueResourceResourceItemFiltersFilter["Name"].asString(); - if(!valueResourceResourceItemFiltersFilter["Value"].isNull()) - filtersObject.value = valueResourceResourceItemFiltersFilter["Value"].asString(); resourceObject.filters.push_back(filtersObject); } resource_.push_back(resourceObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeMonitorGroupInstanceAttributeRequest.cc b/cms/src/model/DescribeMonitorGroupInstanceAttributeRequest.cc index 609f30eea..a4562e69b 100644 --- a/cms/src/model/DescribeMonitorGroupInstanceAttributeRequest.cc +++ b/cms/src/model/DescribeMonitorGroupInstanceAttributeRequest.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::Cms::Model::DescribeMonitorGroupInstanceAttributeRequest; - -DescribeMonitorGroupInstanceAttributeRequest::DescribeMonitorGroupInstanceAttributeRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupInstanceAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitorGroupInstanceAttributeRequest::~DescribeMonitorGroupInstanceAttributeRequest() -{} - -long DescribeMonitorGroupInstanceAttributeRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitorGroupInstanceAttributeRequest; + +DescribeMonitorGroupInstanceAttributeRequest::DescribeMonitorGroupInstanceAttributeRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupInstanceAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeMonitorGroupInstanceAttributeRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DescribeMonitorGroupInstanceAttributeRequest::~DescribeMonitorGroupInstanceAttributeRequest() {} + +long DescribeMonitorGroupInstanceAttributeRequest::getGroupId() const { + return groupId_; } -int DescribeMonitorGroupInstanceAttributeRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeMonitorGroupInstanceAttributeRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } -void DescribeMonitorGroupInstanceAttributeRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeMonitorGroupInstanceAttributeRequest::getPageNumber() const { + return pageNumber_; } -bool DescribeMonitorGroupInstanceAttributeRequest::getTotal()const -{ - return total_; +void DescribeMonitorGroupInstanceAttributeRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeMonitorGroupInstanceAttributeRequest::setTotal(bool total) -{ - total_ = total; - setParameter("Total", total ? "true" : "false"); +bool DescribeMonitorGroupInstanceAttributeRequest::getTotal() const { + return total_; } -std::string DescribeMonitorGroupInstanceAttributeRequest::getInstanceIds()const -{ - return instanceIds_; +void DescribeMonitorGroupInstanceAttributeRequest::setTotal(bool total) { + total_ = total; + setParameter(std::string("Total"), total ? "true" : "false"); } -void DescribeMonitorGroupInstanceAttributeRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +std::string DescribeMonitorGroupInstanceAttributeRequest::getInstanceIds() const { + return instanceIds_; } -int DescribeMonitorGroupInstanceAttributeRequest::getPageSize()const -{ - return pageSize_; +void DescribeMonitorGroupInstanceAttributeRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } -void DescribeMonitorGroupInstanceAttributeRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeMonitorGroupInstanceAttributeRequest::getPageSize() const { + return pageSize_; } -std::string DescribeMonitorGroupInstanceAttributeRequest::getCategory()const -{ - return category_; +void DescribeMonitorGroupInstanceAttributeRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeMonitorGroupInstanceAttributeRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string DescribeMonitorGroupInstanceAttributeRequest::getCategory() const { + return category_; } -std::string DescribeMonitorGroupInstanceAttributeRequest::getKeyword()const -{ - return keyword_; +void DescribeMonitorGroupInstanceAttributeRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } -void DescribeMonitorGroupInstanceAttributeRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeMonitorGroupInstanceAttributeRequest::getKeyword() const { + return keyword_; +} + +void DescribeMonitorGroupInstanceAttributeRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } diff --git a/cms/src/model/DescribeMonitorGroupInstanceAttributeResult.cc b/cms/src/model/DescribeMonitorGroupInstanceAttributeResult.cc index 523ffd549..13e931452 100644 --- a/cms/src/model/DescribeMonitorGroupInstanceAttributeResult.cc +++ b/cms/src/model/DescribeMonitorGroupInstanceAttributeResult.cc @@ -45,16 +45,16 @@ void DescribeMonitorGroupInstanceAttributeResult::parse(const std::string &paylo Resource resourcesObject; if(!valueResourcesResource["InstanceName"].isNull()) resourcesObject.instanceName = valueResourcesResource["InstanceName"].asString(); - if(!valueResourcesResource["InstanceId"].isNull()) - resourcesObject.instanceId = valueResourcesResource["InstanceId"].asString(); - if(!valueResourcesResource["Desc"].isNull()) - resourcesObject.desc = valueResourcesResource["Desc"].asString(); - if(!valueResourcesResource["NetworkType"].isNull()) - resourcesObject.networkType = valueResourcesResource["NetworkType"].asString(); - if(!valueResourcesResource["Category"].isNull()) - resourcesObject.category = valueResourcesResource["Category"].asString(); if(!valueResourcesResource["Dimension"].isNull()) resourcesObject.dimension = valueResourcesResource["Dimension"].asString(); + if(!valueResourcesResource["Category"].isNull()) + resourcesObject.category = valueResourcesResource["Category"].asString(); + if(!valueResourcesResource["InstanceId"].isNull()) + resourcesObject.instanceId = valueResourcesResource["InstanceId"].asString(); + if(!valueResourcesResource["NetworkType"].isNull()) + resourcesObject.networkType = valueResourcesResource["NetworkType"].asString(); + if(!valueResourcesResource["Desc"].isNull()) + resourcesObject.desc = valueResourcesResource["Desc"].asString(); auto allTagsNode = valueResourcesResource["Tags"]["Tag"]; for (auto valueResourcesResourceTagsTag : allTagsNode) { @@ -66,15 +66,15 @@ void DescribeMonitorGroupInstanceAttributeResult::parse(const std::string &paylo resourcesObject.tags.push_back(tagsObject); } auto regionNode = value["Region"]; - if(!regionNode["RegionId"].isNull()) - resourcesObject.region.regionId = regionNode["RegionId"].asString(); if(!regionNode["AvailabilityZone"].isNull()) resourcesObject.region.availabilityZone = regionNode["AvailabilityZone"].asString(); + if(!regionNode["RegionId"].isNull()) + resourcesObject.region.regionId = regionNode["RegionId"].asString(); auto vpcNode = value["Vpc"]; - if(!vpcNode["VpcInstanceId"].isNull()) - resourcesObject.vpc.vpcInstanceId = vpcNode["VpcInstanceId"].asString(); if(!vpcNode["VswitchInstanceId"].isNull()) resourcesObject.vpc.vswitchInstanceId = vpcNode["VswitchInstanceId"].asString(); + if(!vpcNode["VpcInstanceId"].isNull()) + resourcesObject.vpc.vpcInstanceId = vpcNode["VpcInstanceId"].asString(); resources_.push_back(resourcesObject); } if(!value["Success"].isNull()) diff --git a/cms/src/model/DescribeMonitorGroupInstancesRequest.cc b/cms/src/model/DescribeMonitorGroupInstancesRequest.cc index 162f3c3c9..8e9cadfc1 100644 --- a/cms/src/model/DescribeMonitorGroupInstancesRequest.cc +++ b/cms/src/model/DescribeMonitorGroupInstancesRequest.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::Cms::Model::DescribeMonitorGroupInstancesRequest; - -DescribeMonitorGroupInstancesRequest::DescribeMonitorGroupInstancesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitorGroupInstancesRequest::~DescribeMonitorGroupInstancesRequest() -{} - -long DescribeMonitorGroupInstancesRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitorGroupInstancesRequest; + +DescribeMonitorGroupInstancesRequest::DescribeMonitorGroupInstancesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeMonitorGroupInstancesRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +DescribeMonitorGroupInstancesRequest::~DescribeMonitorGroupInstancesRequest() {} + +long DescribeMonitorGroupInstancesRequest::getGroupId() const { + return groupId_; } -int DescribeMonitorGroupInstancesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeMonitorGroupInstancesRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } -void DescribeMonitorGroupInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeMonitorGroupInstancesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeMonitorGroupInstancesRequest::getInstanceIds()const -{ - return instanceIds_; +void DescribeMonitorGroupInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeMonitorGroupInstancesRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +std::string DescribeMonitorGroupInstancesRequest::getInstanceIds() const { + return instanceIds_; } -int DescribeMonitorGroupInstancesRequest::getPageSize()const -{ - return pageSize_; +void DescribeMonitorGroupInstancesRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } -void DescribeMonitorGroupInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeMonitorGroupInstancesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeMonitorGroupInstancesRequest::getCategory()const -{ - return category_; +void DescribeMonitorGroupInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeMonitorGroupInstancesRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string DescribeMonitorGroupInstancesRequest::getCategory() const { + return category_; } -std::string DescribeMonitorGroupInstancesRequest::getKeyword()const -{ - return keyword_; +void DescribeMonitorGroupInstancesRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } -void DescribeMonitorGroupInstancesRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeMonitorGroupInstancesRequest::getKeyword() const { + return keyword_; +} + +void DescribeMonitorGroupInstancesRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } diff --git a/cms/src/model/DescribeMonitorGroupInstancesResult.cc b/cms/src/model/DescribeMonitorGroupInstancesResult.cc index 82f67c4fa..e907ffa92 100644 --- a/cms/src/model/DescribeMonitorGroupInstancesResult.cc +++ b/cms/src/model/DescribeMonitorGroupInstancesResult.cc @@ -43,16 +43,16 @@ void DescribeMonitorGroupInstancesResult::parse(const std::string &payload) for (auto valueResourcesResource : allResourcesNode) { Resource resourcesObject; + if(!valueResourcesResource["Category"].isNull()) + resourcesObject.category = valueResourcesResource["Category"].asString(); + if(!valueResourcesResource["InstanceId"].isNull()) + resourcesObject.instanceId = valueResourcesResource["InstanceId"].asString(); + if(!valueResourcesResource["InstanceName"].isNull()) + resourcesObject.instanceName = valueResourcesResource["InstanceName"].asString(); if(!valueResourcesResource["Id"].isNull()) resourcesObject.id = std::stol(valueResourcesResource["Id"].asString()); if(!valueResourcesResource["RegionId"].isNull()) resourcesObject.regionId = valueResourcesResource["RegionId"].asString(); - if(!valueResourcesResource["InstanceId"].isNull()) - resourcesObject.instanceId = valueResourcesResource["InstanceId"].asString(); - if(!valueResourcesResource["Category"].isNull()) - resourcesObject.category = valueResourcesResource["Category"].asString(); - if(!valueResourcesResource["InstanceName"].isNull()) - resourcesObject.instanceName = valueResourcesResource["InstanceName"].asString(); resources_.push_back(resourcesObject); } if(!value["Success"].isNull()) diff --git a/cms/src/model/DescribeMonitorGroupNotifyPolicyListRequest.cc b/cms/src/model/DescribeMonitorGroupNotifyPolicyListRequest.cc index 9cc1726ed..90535de8e 100644 --- a/cms/src/model/DescribeMonitorGroupNotifyPolicyListRequest.cc +++ b/cms/src/model/DescribeMonitorGroupNotifyPolicyListRequest.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::Cms::Model::DescribeMonitorGroupNotifyPolicyListRequest; - -DescribeMonitorGroupNotifyPolicyListRequest::DescribeMonitorGroupNotifyPolicyListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupNotifyPolicyList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitorGroupNotifyPolicyListRequest::~DescribeMonitorGroupNotifyPolicyListRequest() -{} - -std::string DescribeMonitorGroupNotifyPolicyListRequest::getPolicyType()const -{ - return policyType_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitorGroupNotifyPolicyListRequest; + +DescribeMonitorGroupNotifyPolicyListRequest::DescribeMonitorGroupNotifyPolicyListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupNotifyPolicyList") { + setMethod(HttpRequest::Method::Post); } -void DescribeMonitorGroupNotifyPolicyListRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setParameter("PolicyType", policyType); +DescribeMonitorGroupNotifyPolicyListRequest::~DescribeMonitorGroupNotifyPolicyListRequest() {} + +std::string DescribeMonitorGroupNotifyPolicyListRequest::getPolicyType() const { + return policyType_; } -std::string DescribeMonitorGroupNotifyPolicyListRequest::getGroupId()const -{ - return groupId_; +void DescribeMonitorGroupNotifyPolicyListRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); } -void DescribeMonitorGroupNotifyPolicyListRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeMonitorGroupNotifyPolicyListRequest::getGroupId() const { + return groupId_; } -int DescribeMonitorGroupNotifyPolicyListRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeMonitorGroupNotifyPolicyListRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeMonitorGroupNotifyPolicyListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeMonitorGroupNotifyPolicyListRequest::getPageNumber() const { + return pageNumber_; } -int DescribeMonitorGroupNotifyPolicyListRequest::getPageSize()const -{ - return pageSize_; +void DescribeMonitorGroupNotifyPolicyListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeMonitorGroupNotifyPolicyListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeMonitorGroupNotifyPolicyListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeMonitorGroupNotifyPolicyListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/cms/src/model/DescribeMonitorGroupNotifyPolicyListResult.cc b/cms/src/model/DescribeMonitorGroupNotifyPolicyListResult.cc index 98e8ba8b6..ffd73b639 100644 --- a/cms/src/model/DescribeMonitorGroupNotifyPolicyListResult.cc +++ b/cms/src/model/DescribeMonitorGroupNotifyPolicyListResult.cc @@ -43,26 +43,26 @@ void DescribeMonitorGroupNotifyPolicyListResult::parse(const std::string &payloa for (auto valueNotifyPolicyListNotifyPolicy : allNotifyPolicyListNode) { NotifyPolicy notifyPolicyListObject; - if(!valueNotifyPolicyListNotifyPolicy["Type"].isNull()) - notifyPolicyListObject.type = valueNotifyPolicyListNotifyPolicy["Type"].asString(); - if(!valueNotifyPolicyListNotifyPolicy["Id"].isNull()) - notifyPolicyListObject.id = valueNotifyPolicyListNotifyPolicy["Id"].asString(); - if(!valueNotifyPolicyListNotifyPolicy["StartTime"].isNull()) - notifyPolicyListObject.startTime = std::stol(valueNotifyPolicyListNotifyPolicy["StartTime"].asString()); if(!valueNotifyPolicyListNotifyPolicy["EndTime"].isNull()) notifyPolicyListObject.endTime = std::stol(valueNotifyPolicyListNotifyPolicy["EndTime"].asString()); + if(!valueNotifyPolicyListNotifyPolicy["Type"].isNull()) + notifyPolicyListObject.type = valueNotifyPolicyListNotifyPolicy["Type"].asString(); + if(!valueNotifyPolicyListNotifyPolicy["StartTime"].isNull()) + notifyPolicyListObject.startTime = std::stol(valueNotifyPolicyListNotifyPolicy["StartTime"].asString()); if(!valueNotifyPolicyListNotifyPolicy["GroupId"].isNull()) notifyPolicyListObject.groupId = valueNotifyPolicyListNotifyPolicy["GroupId"].asString(); + if(!valueNotifyPolicyListNotifyPolicy["Id"].isNull()) + notifyPolicyListObject.id = valueNotifyPolicyListNotifyPolicy["Id"].asString(); notifyPolicyList_.push_back(notifyPolicyListObject); } if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); if(!value["Total"].isNull()) total_ = std::stoi(value["Total"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } diff --git a/cms/src/model/DescribeMonitorGroupsRequest.cc b/cms/src/model/DescribeMonitorGroupsRequest.cc index b94c1dd3b..0849615c1 100644 --- a/cms/src/model/DescribeMonitorGroupsRequest.cc +++ b/cms/src/model/DescribeMonitorGroupsRequest.cc @@ -1,199 +1,167 @@ /* * 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::Cms::Model::DescribeMonitorGroupsRequest; - -DescribeMonitorGroupsRequest::DescribeMonitorGroupsRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitorGroupsRequest::~DescribeMonitorGroupsRequest() -{} - -bool DescribeMonitorGroupsRequest::getSelectContactGroups()const -{ - return selectContactGroups_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitorGroupsRequest; + +DescribeMonitorGroupsRequest::DescribeMonitorGroupsRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroups") { + setMethod(HttpRequest::Method::Post); } -void DescribeMonitorGroupsRequest::setSelectContactGroups(bool selectContactGroups) -{ - selectContactGroups_ = selectContactGroups; - setParameter("SelectContactGroups", selectContactGroups ? "true" : "false"); +DescribeMonitorGroupsRequest::~DescribeMonitorGroupsRequest() {} + +bool DescribeMonitorGroupsRequest::getSelectContactGroups() const { + return selectContactGroups_; } -bool DescribeMonitorGroupsRequest::getIncludeTemplateHistory()const -{ - return includeTemplateHistory_; +void DescribeMonitorGroupsRequest::setSelectContactGroups(bool selectContactGroups) { + selectContactGroups_ = selectContactGroups; + setParameter(std::string("SelectContactGroups"), selectContactGroups ? "true" : "false"); } -void DescribeMonitorGroupsRequest::setIncludeTemplateHistory(bool includeTemplateHistory) -{ - includeTemplateHistory_ = includeTemplateHistory; - setParameter("IncludeTemplateHistory", includeTemplateHistory ? "true" : "false"); +bool DescribeMonitorGroupsRequest::getIncludeTemplateHistory() const { + return includeTemplateHistory_; } -std::string DescribeMonitorGroupsRequest::getDynamicTagRuleId()const -{ - return dynamicTagRuleId_; +void DescribeMonitorGroupsRequest::setIncludeTemplateHistory(bool includeTemplateHistory) { + includeTemplateHistory_ = includeTemplateHistory; + setParameter(std::string("IncludeTemplateHistory"), includeTemplateHistory ? "true" : "false"); } -void DescribeMonitorGroupsRequest::setDynamicTagRuleId(const std::string& dynamicTagRuleId) -{ - dynamicTagRuleId_ = dynamicTagRuleId; - setParameter("DynamicTagRuleId", dynamicTagRuleId); +std::string DescribeMonitorGroupsRequest::getDynamicTagRuleId() const { + return dynamicTagRuleId_; } -std::string DescribeMonitorGroupsRequest::getType()const -{ - return type_; +void DescribeMonitorGroupsRequest::setDynamicTagRuleId(const std::string &dynamicTagRuleId) { + dynamicTagRuleId_ = dynamicTagRuleId; + setParameter(std::string("DynamicTagRuleId"), dynamicTagRuleId); } -void DescribeMonitorGroupsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeMonitorGroupsRequest::getType() const { + return type_; } -int DescribeMonitorGroupsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeMonitorGroupsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeMonitorGroupsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeMonitorGroupsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeMonitorGroupsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeMonitorGroupsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeMonitorGroupsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeMonitorGroupsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeMonitorGroupsRequest::getGroupFounderTagKey()const -{ - return groupFounderTagKey_; +void DescribeMonitorGroupsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeMonitorGroupsRequest::setGroupFounderTagKey(const std::string& groupFounderTagKey) -{ - groupFounderTagKey_ = groupFounderTagKey; - setParameter("GroupFounderTagKey", groupFounderTagKey); +std::string DescribeMonitorGroupsRequest::getGroupFounderTagKey() const { + return groupFounderTagKey_; } -int DescribeMonitorGroupsRequest::getPageSize()const -{ - return pageSize_; +void DescribeMonitorGroupsRequest::setGroupFounderTagKey(const std::string &groupFounderTagKey) { + groupFounderTagKey_ = groupFounderTagKey; + setParameter(std::string("GroupFounderTagKey"), groupFounderTagKey); } -void DescribeMonitorGroupsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeMonitorGroupsRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeMonitorGroupsRequest::getTag()const -{ - return tag_; +void DescribeMonitorGroupsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeMonitorGroupsRequest::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 DescribeMonitorGroupsRequest::getGroupFounderTagValue() const { + return groupFounderTagValue_; } -std::string DescribeMonitorGroupsRequest::getGroupFounderTagValue()const -{ - return groupFounderTagValue_; +void DescribeMonitorGroupsRequest::setGroupFounderTagValue(const std::string &groupFounderTagValue) { + groupFounderTagValue_ = groupFounderTagValue; + setParameter(std::string("GroupFounderTagValue"), groupFounderTagValue); } -void DescribeMonitorGroupsRequest::setGroupFounderTagValue(const std::string& groupFounderTagValue) -{ - groupFounderTagValue_ = groupFounderTagValue; - setParameter("GroupFounderTagValue", groupFounderTagValue); +std::vector DescribeMonitorGroupsRequest::getTag() const { + return tag_; } -std::string DescribeMonitorGroupsRequest::getKeyword()const -{ - return keyword_; +void DescribeMonitorGroupsRequest::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); + } } -void DescribeMonitorGroupsRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeMonitorGroupsRequest::getKeyword() const { + return keyword_; } -std::string DescribeMonitorGroupsRequest::getGroupId()const -{ - return groupId_; +void DescribeMonitorGroupsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } -void DescribeMonitorGroupsRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeMonitorGroupsRequest::getGroupId() const { + return groupId_; } -std::string DescribeMonitorGroupsRequest::getGroupName()const -{ - return groupName_; +void DescribeMonitorGroupsRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeMonitorGroupsRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +std::string DescribeMonitorGroupsRequest::getGroupName() const { + return groupName_; } -std::string DescribeMonitorGroupsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeMonitorGroupsRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -void DescribeMonitorGroupsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeMonitorGroupsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeMonitorGroupsRequest::getServiceId()const -{ - return serviceId_; +void DescribeMonitorGroupsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeMonitorGroupsRequest::setServiceId(const std::string& serviceId) -{ - serviceId_ = serviceId; - setParameter("ServiceId", serviceId); +std::string DescribeMonitorGroupsRequest::getServiceId() const { + return serviceId_; +} + +void DescribeMonitorGroupsRequest::setServiceId(const std::string &serviceId) { + serviceId_ = serviceId; + setParameter(std::string("ServiceId"), serviceId); } diff --git a/cms/src/model/DescribeMonitorGroupsResult.cc b/cms/src/model/DescribeMonitorGroupsResult.cc index 1378334ca..93ca45a88 100644 --- a/cms/src/model/DescribeMonitorGroupsResult.cc +++ b/cms/src/model/DescribeMonitorGroupsResult.cc @@ -43,26 +43,26 @@ void DescribeMonitorGroupsResult::parse(const std::string &payload) for (auto valueResourcesResource : allResourcesNode) { Resource resourcesObject; - if(!valueResourcesResource["GroupId"].isNull()) - resourcesObject.groupId = std::stol(valueResourcesResource["GroupId"].asString()); - if(!valueResourcesResource["GroupName"].isNull()) - resourcesObject.groupName = valueResourcesResource["GroupName"].asString(); - if(!valueResourcesResource["ServiceId"].isNull()) - resourcesObject.serviceId = valueResourcesResource["ServiceId"].asString(); if(!valueResourcesResource["Type"].isNull()) resourcesObject.type = valueResourcesResource["Type"].asString(); - if(!valueResourcesResource["GmtModified"].isNull()) - resourcesObject.gmtModified = std::stol(valueResourcesResource["GmtModified"].asString()); - if(!valueResourcesResource["GmtCreate"].isNull()) - resourcesObject.gmtCreate = std::stol(valueResourcesResource["GmtCreate"].asString()); - if(!valueResourcesResource["BindUrl"].isNull()) - resourcesObject.bindUrl = valueResourcesResource["BindUrl"].asString(); - if(!valueResourcesResource["DynamicTagRuleId"].isNull()) - resourcesObject.dynamicTagRuleId = valueResourcesResource["DynamicTagRuleId"].asString(); - if(!valueResourcesResource["GroupFounderTagKey"].isNull()) - resourcesObject.groupFounderTagKey = valueResourcesResource["GroupFounderTagKey"].asString(); if(!valueResourcesResource["GroupFounderTagValue"].isNull()) resourcesObject.groupFounderTagValue = valueResourcesResource["GroupFounderTagValue"].asString(); + if(!valueResourcesResource["BindUrl"].isNull()) + resourcesObject.bindUrl = valueResourcesResource["BindUrl"].asString(); + if(!valueResourcesResource["GroupName"].isNull()) + resourcesObject.groupName = valueResourcesResource["GroupName"].asString(); + if(!valueResourcesResource["GroupId"].isNull()) + resourcesObject.groupId = std::stol(valueResourcesResource["GroupId"].asString()); + if(!valueResourcesResource["ServiceId"].isNull()) + resourcesObject.serviceId = valueResourcesResource["ServiceId"].asString(); + if(!valueResourcesResource["DynamicTagRuleId"].isNull()) + resourcesObject.dynamicTagRuleId = valueResourcesResource["DynamicTagRuleId"].asString(); + if(!valueResourcesResource["GmtCreate"].isNull()) + resourcesObject.gmtCreate = std::stol(valueResourcesResource["GmtCreate"].asString()); + if(!valueResourcesResource["GroupFounderTagKey"].isNull()) + resourcesObject.groupFounderTagKey = valueResourcesResource["GroupFounderTagKey"].asString(); + if(!valueResourcesResource["GmtModified"].isNull()) + resourcesObject.gmtModified = std::stol(valueResourcesResource["GmtModified"].asString()); auto allContactGroupsNode = valueResourcesResource["ContactGroups"]["ContactGroup"]; for (auto valueResourcesResourceContactGroupsContactGroup : allContactGroupsNode) { diff --git a/cms/src/model/DescribeMonitorResourceQuotaAttributeRequest.cc b/cms/src/model/DescribeMonitorResourceQuotaAttributeRequest.cc index 3e3f36fd4..8a6a37753 100644 --- a/cms/src/model/DescribeMonitorResourceQuotaAttributeRequest.cc +++ b/cms/src/model/DescribeMonitorResourceQuotaAttributeRequest.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::Cms::Model::DescribeMonitorResourceQuotaAttributeRequest; - -DescribeMonitorResourceQuotaAttributeRequest::DescribeMonitorResourceQuotaAttributeRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorResourceQuotaAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitorResourceQuotaAttributeRequest::~DescribeMonitorResourceQuotaAttributeRequest() -{} - -bool DescribeMonitorResourceQuotaAttributeRequest::getShowUsed()const -{ - return showUsed_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitorResourceQuotaAttributeRequest; + +DescribeMonitorResourceQuotaAttributeRequest::DescribeMonitorResourceQuotaAttributeRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorResourceQuotaAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeMonitorResourceQuotaAttributeRequest::setShowUsed(bool showUsed) -{ - showUsed_ = showUsed; - setParameter("ShowUsed", showUsed ? "true" : "false"); +DescribeMonitorResourceQuotaAttributeRequest::~DescribeMonitorResourceQuotaAttributeRequest() {} + +bool DescribeMonitorResourceQuotaAttributeRequest::getShowUsed() const { + return showUsed_; +} + +void DescribeMonitorResourceQuotaAttributeRequest::setShowUsed(bool showUsed) { + showUsed_ = showUsed; + setParameter(std::string("ShowUsed"), showUsed ? "true" : "false"); } diff --git a/cms/src/model/DescribeMonitoringAgentAccessKeyRequest.cc b/cms/src/model/DescribeMonitoringAgentAccessKeyRequest.cc index 8b7fd83ed..37005bdf5 100644 --- a/cms/src/model/DescribeMonitoringAgentAccessKeyRequest.cc +++ b/cms/src/model/DescribeMonitoringAgentAccessKeyRequest.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::Cms::Model::DescribeMonitoringAgentAccessKeyRequest; - -DescribeMonitoringAgentAccessKeyRequest::DescribeMonitoringAgentAccessKeyRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentAccessKey") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitoringAgentAccessKeyRequest::~DescribeMonitoringAgentAccessKeyRequest() -{} - + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitoringAgentAccessKeyRequest; + +DescribeMonitoringAgentAccessKeyRequest::DescribeMonitoringAgentAccessKeyRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentAccessKey") { + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitoringAgentAccessKeyRequest::~DescribeMonitoringAgentAccessKeyRequest() {} + diff --git a/cms/src/model/DescribeMonitoringAgentAccessKeyResult.cc b/cms/src/model/DescribeMonitoringAgentAccessKeyResult.cc index d6f08d578..66cb6d34c 100644 --- a/cms/src/model/DescribeMonitoringAgentAccessKeyResult.cc +++ b/cms/src/model/DescribeMonitoringAgentAccessKeyResult.cc @@ -39,16 +39,16 @@ void DescribeMonitoringAgentAccessKeyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["AccessKey"].isNull()) accessKey_ = value["AccessKey"].asString(); if(!value["SecretKey"].isNull()) secretKey_ = value["SecretKey"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/cms/src/model/DescribeMonitoringAgentConfigRequest.cc b/cms/src/model/DescribeMonitoringAgentConfigRequest.cc index 166060723..4a2256441 100644 --- a/cms/src/model/DescribeMonitoringAgentConfigRequest.cc +++ b/cms/src/model/DescribeMonitoringAgentConfigRequest.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::Cms::Model::DescribeMonitoringAgentConfigRequest; - -DescribeMonitoringAgentConfigRequest::DescribeMonitoringAgentConfigRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitoringAgentConfigRequest::~DescribeMonitoringAgentConfigRequest() -{} - + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitoringAgentConfigRequest; + +DescribeMonitoringAgentConfigRequest::DescribeMonitoringAgentConfigRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentConfig") { + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitoringAgentConfigRequest::~DescribeMonitoringAgentConfigRequest() {} + diff --git a/cms/src/model/DescribeMonitoringAgentConfigResult.cc b/cms/src/model/DescribeMonitoringAgentConfigResult.cc index ca7809322..9375a0242 100644 --- a/cms/src/model/DescribeMonitoringAgentConfigResult.cc +++ b/cms/src/model/DescribeMonitoringAgentConfigResult.cc @@ -39,31 +39,31 @@ void DescribeMonitoringAgentConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["EnableActiveAlert"].isNull()) + enableActiveAlert_ = value["EnableActiveAlert"].asString(); + if(!value["AutoInstall"].isNull()) + autoInstall_ = value["AutoInstall"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["EnableInstallAgentNewECS"].isNull()) + enableInstallAgentNewECS_ = value["EnableInstallAgentNewECS"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["AutoInstall"].isNull()) - autoInstall_ = value["AutoInstall"].asString() == "true"; - if(!value["EnableInstallAgentNewECS"].isNull()) - enableInstallAgentNewECS_ = value["EnableInstallAgentNewECS"].asString() == "true"; - if(!value["EnableActiveAlert"].isNull()) - enableActiveAlert_ = value["EnableActiveAlert"].asString(); } -bool DescribeMonitoringAgentConfigResult::getAutoInstall()const -{ - return autoInstall_; -} - std::string DescribeMonitoringAgentConfigResult::getEnableActiveAlert()const { return enableActiveAlert_; } +bool DescribeMonitoringAgentConfigResult::getAutoInstall()const +{ + return autoInstall_; +} + bool DescribeMonitoringAgentConfigResult::getEnableInstallAgentNewECS()const { return enableInstallAgentNewECS_; diff --git a/cms/src/model/DescribeMonitoringAgentHostsRequest.cc b/cms/src/model/DescribeMonitoringAgentHostsRequest.cc index 1d6e6d690..1f1d61322 100644 --- a/cms/src/model/DescribeMonitoringAgentHostsRequest.cc +++ b/cms/src/model/DescribeMonitoringAgentHostsRequest.cc @@ -1,128 +1,108 @@ /* * 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::Cms::Model::DescribeMonitoringAgentHostsRequest; - -DescribeMonitoringAgentHostsRequest::DescribeMonitoringAgentHostsRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentHosts") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitoringAgentHostsRequest::~DescribeMonitoringAgentHostsRequest() -{} - -std::string DescribeMonitoringAgentHostsRequest::getSerialNumbers()const -{ - return serialNumbers_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitoringAgentHostsRequest; + +DescribeMonitoringAgentHostsRequest::DescribeMonitoringAgentHostsRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentHosts") { + setMethod(HttpRequest::Method::Post); } -void DescribeMonitoringAgentHostsRequest::setSerialNumbers(const std::string& serialNumbers) -{ - serialNumbers_ = serialNumbers; - setParameter("SerialNumbers", serialNumbers); +DescribeMonitoringAgentHostsRequest::~DescribeMonitoringAgentHostsRequest() {} + +std::string DescribeMonitoringAgentHostsRequest::getSerialNumbers() const { + return serialNumbers_; } -int DescribeMonitoringAgentHostsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeMonitoringAgentHostsRequest::setSerialNumbers(const std::string &serialNumbers) { + serialNumbers_ = serialNumbers; + setParameter(std::string("SerialNumbers"), serialNumbers); } -void DescribeMonitoringAgentHostsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeMonitoringAgentHostsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeMonitoringAgentHostsRequest::getHostName()const -{ - return hostName_; +void DescribeMonitoringAgentHostsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeMonitoringAgentHostsRequest::setHostName(const std::string& hostName) -{ - hostName_ = hostName; - setParameter("HostName", hostName); +std::string DescribeMonitoringAgentHostsRequest::getHostName() const { + return hostName_; } -std::string DescribeMonitoringAgentHostsRequest::getInstanceRegionId()const -{ - return instanceRegionId_; +void DescribeMonitoringAgentHostsRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); } -void DescribeMonitoringAgentHostsRequest::setInstanceRegionId(const std::string& instanceRegionId) -{ - instanceRegionId_ = instanceRegionId; - setParameter("InstanceRegionId", instanceRegionId); +std::string DescribeMonitoringAgentHostsRequest::getInstanceRegionId() const { + return instanceRegionId_; } -int DescribeMonitoringAgentHostsRequest::getPageSize()const -{ - return pageSize_; +void DescribeMonitoringAgentHostsRequest::setInstanceRegionId(const std::string &instanceRegionId) { + instanceRegionId_ = instanceRegionId; + setParameter(std::string("InstanceRegionId"), instanceRegionId); } -void DescribeMonitoringAgentHostsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeMonitoringAgentHostsRequest::getPageSize() const { + return pageSize_; } -bool DescribeMonitoringAgentHostsRequest::getAliyunHost()const -{ - return aliyunHost_; +void DescribeMonitoringAgentHostsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeMonitoringAgentHostsRequest::setAliyunHost(bool aliyunHost) -{ - aliyunHost_ = aliyunHost; - setParameter("AliyunHost", aliyunHost ? "true" : "false"); +bool DescribeMonitoringAgentHostsRequest::getAliyunHost() const { + return aliyunHost_; } -std::string DescribeMonitoringAgentHostsRequest::getKeyWord()const -{ - return keyWord_; +void DescribeMonitoringAgentHostsRequest::setAliyunHost(bool aliyunHost) { + aliyunHost_ = aliyunHost; + setParameter(std::string("AliyunHost"), aliyunHost ? "true" : "false"); } -void DescribeMonitoringAgentHostsRequest::setKeyWord(const std::string& keyWord) -{ - keyWord_ = keyWord; - setParameter("KeyWord", keyWord); +std::string DescribeMonitoringAgentHostsRequest::getKeyWord() const { + return keyWord_; } -std::string DescribeMonitoringAgentHostsRequest::getInstanceIds()const -{ - return instanceIds_; +void DescribeMonitoringAgentHostsRequest::setKeyWord(const std::string &keyWord) { + keyWord_ = keyWord; + setParameter(std::string("KeyWord"), keyWord); } -void DescribeMonitoringAgentHostsRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +std::string DescribeMonitoringAgentHostsRequest::getInstanceIds() const { + return instanceIds_; } -std::string DescribeMonitoringAgentHostsRequest::getStatus()const -{ - return status_; +void DescribeMonitoringAgentHostsRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } -void DescribeMonitoringAgentHostsRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeMonitoringAgentHostsRequest::getStatus() const { + return status_; +} + +void DescribeMonitoringAgentHostsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/cms/src/model/DescribeMonitoringAgentHostsResult.cc b/cms/src/model/DescribeMonitoringAgentHostsResult.cc index 84fcb4311..9beadff5c 100644 --- a/cms/src/model/DescribeMonitoringAgentHostsResult.cc +++ b/cms/src/model/DescribeMonitoringAgentHostsResult.cc @@ -43,50 +43,50 @@ void DescribeMonitoringAgentHostsResult::parse(const std::string &payload) for (auto valueHostsHost : allHostsNode) { Host hostsObject; - if(!valueHostsHost["InstanceId"].isNull()) - hostsObject.instanceId = valueHostsHost["InstanceId"].asString(); if(!valueHostsHost["SerialNumber"].isNull()) hostsObject.serialNumber = valueHostsHost["SerialNumber"].asString(); + if(!valueHostsHost["NatIp"].isNull()) + hostsObject.natIp = valueHostsHost["NatIp"].asString(); if(!valueHostsHost["HostName"].isNull()) hostsObject.hostName = valueHostsHost["HostName"].asString(); if(!valueHostsHost["AliUid"].isNull()) hostsObject.aliUid = std::stol(valueHostsHost["AliUid"].asString()); - if(!valueHostsHost["OperatingSystem"].isNull()) - hostsObject.operatingSystem = valueHostsHost["OperatingSystem"].asString(); - if(!valueHostsHost["IpGroup"].isNull()) - hostsObject.ipGroup = valueHostsHost["IpGroup"].asString(); - if(!valueHostsHost["Region"].isNull()) - hostsObject.region = valueHostsHost["Region"].asString(); - if(!valueHostsHost["AgentVersion"].isNull()) - hostsObject.agentVersion = valueHostsHost["AgentVersion"].asString(); - if(!valueHostsHost["EipAddress"].isNull()) - hostsObject.eipAddress = valueHostsHost["EipAddress"].asString(); - if(!valueHostsHost["EipId"].isNull()) - hostsObject.eipId = valueHostsHost["EipId"].asString(); - if(!valueHostsHost["isAliyunHost"].isNull()) - hostsObject.isAliyunHost = valueHostsHost["isAliyunHost"].asString() == "true"; - if(!valueHostsHost["NatIp"].isNull()) - hostsObject.natIp = valueHostsHost["NatIp"].asString(); if(!valueHostsHost["NetworkType"].isNull()) hostsObject.networkType = valueHostsHost["NetworkType"].asString(); + if(!valueHostsHost["InstanceId"].isNull()) + hostsObject.instanceId = valueHostsHost["InstanceId"].asString(); + if(!valueHostsHost["isAliyunHost"].isNull()) + hostsObject.isAliyunHost = valueHostsHost["isAliyunHost"].asString() == "true"; + if(!valueHostsHost["EipAddress"].isNull()) + hostsObject.eipAddress = valueHostsHost["EipAddress"].asString(); + if(!valueHostsHost["AgentVersion"].isNull()) + hostsObject.agentVersion = valueHostsHost["AgentVersion"].asString(); + if(!valueHostsHost["IpGroup"].isNull()) + hostsObject.ipGroup = valueHostsHost["IpGroup"].asString(); + if(!valueHostsHost["EipId"].isNull()) + hostsObject.eipId = valueHostsHost["EipId"].asString(); + if(!valueHostsHost["Region"].isNull()) + hostsObject.region = valueHostsHost["Region"].asString(); if(!valueHostsHost["InstanceTypeFamily"].isNull()) hostsObject.instanceTypeFamily = valueHostsHost["InstanceTypeFamily"].asString(); + if(!valueHostsHost["OperatingSystem"].isNull()) + hostsObject.operatingSystem = valueHostsHost["OperatingSystem"].asString(); hosts_.push_back(hostsObject); } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageTotal"].isNull()) pageTotal_ = std::stoi(value["PageTotal"].asString()); if(!value["Total"].isNull()) total_ = std::stoi(value["Total"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/cms/src/model/DescribeMonitoringAgentProcessesRequest.cc b/cms/src/model/DescribeMonitoringAgentProcessesRequest.cc index 85d93095e..7d7356764 100644 --- a/cms/src/model/DescribeMonitoringAgentProcessesRequest.cc +++ b/cms/src/model/DescribeMonitoringAgentProcessesRequest.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::Cms::Model::DescribeMonitoringAgentProcessesRequest; - -DescribeMonitoringAgentProcessesRequest::DescribeMonitoringAgentProcessesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentProcesses") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitoringAgentProcessesRequest::~DescribeMonitoringAgentProcessesRequest() -{} - -std::string DescribeMonitoringAgentProcessesRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitoringAgentProcessesRequest; + +DescribeMonitoringAgentProcessesRequest::DescribeMonitoringAgentProcessesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentProcesses") { + setMethod(HttpRequest::Method::Post); } -void DescribeMonitoringAgentProcessesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeMonitoringAgentProcessesRequest::~DescribeMonitoringAgentProcessesRequest() {} + +std::string DescribeMonitoringAgentProcessesRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeMonitoringAgentProcessesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/cms/src/model/DescribeMonitoringAgentProcessesResult.cc b/cms/src/model/DescribeMonitoringAgentProcessesResult.cc index 30f4ddf18..0fd4d1c3d 100644 --- a/cms/src/model/DescribeMonitoringAgentProcessesResult.cc +++ b/cms/src/model/DescribeMonitoringAgentProcessesResult.cc @@ -43,18 +43,18 @@ void DescribeMonitoringAgentProcessesResult::parse(const std::string &payload) for (auto valueNodeProcessesNodeProcess : allNodeProcessesNode) { NodeProcess nodeProcessesObject; - if(!valueNodeProcessesNodeProcess["ProcessId"].isNull()) - nodeProcessesObject.processId = std::stol(valueNodeProcessesNodeProcess["ProcessId"].asString()); - if(!valueNodeProcessesNodeProcess["InstanceId"].isNull()) - nodeProcessesObject.instanceId = valueNodeProcessesNodeProcess["InstanceId"].asString(); if(!valueNodeProcessesNodeProcess["ProcessName"].isNull()) nodeProcessesObject.processName = valueNodeProcessesNodeProcess["ProcessName"].asString(); - if(!valueNodeProcessesNodeProcess["ProcessUser"].isNull()) - nodeProcessesObject.processUser = valueNodeProcessesNodeProcess["ProcessUser"].asString(); - if(!valueNodeProcessesNodeProcess["Command"].isNull()) - nodeProcessesObject.command = valueNodeProcessesNodeProcess["Command"].asString(); + if(!valueNodeProcessesNodeProcess["ProcessId"].isNull()) + nodeProcessesObject.processId = std::stol(valueNodeProcessesNodeProcess["ProcessId"].asString()); if(!valueNodeProcessesNodeProcess["GroupId"].isNull()) nodeProcessesObject.groupId = valueNodeProcessesNodeProcess["GroupId"].asString(); + if(!valueNodeProcessesNodeProcess["Command"].isNull()) + nodeProcessesObject.command = valueNodeProcessesNodeProcess["Command"].asString(); + if(!valueNodeProcessesNodeProcess["ProcessUser"].isNull()) + nodeProcessesObject.processUser = valueNodeProcessesNodeProcess["ProcessUser"].asString(); + if(!valueNodeProcessesNodeProcess["InstanceId"].isNull()) + nodeProcessesObject.instanceId = valueNodeProcessesNodeProcess["InstanceId"].asString(); nodeProcesses_.push_back(nodeProcessesObject); } if(!value["Code"].isNull()) diff --git a/cms/src/model/DescribeMonitoringAgentStatusesRequest.cc b/cms/src/model/DescribeMonitoringAgentStatusesRequest.cc index 42e20c73c..f298659a3 100644 --- a/cms/src/model/DescribeMonitoringAgentStatusesRequest.cc +++ b/cms/src/model/DescribeMonitoringAgentStatusesRequest.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::Cms::Model::DescribeMonitoringAgentStatusesRequest; - -DescribeMonitoringAgentStatusesRequest::DescribeMonitoringAgentStatusesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentStatuses") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitoringAgentStatusesRequest::~DescribeMonitoringAgentStatusesRequest() -{} - -std::string DescribeMonitoringAgentStatusesRequest::getInstanceIds()const -{ - return instanceIds_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitoringAgentStatusesRequest; + +DescribeMonitoringAgentStatusesRequest::DescribeMonitoringAgentStatusesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentStatuses") { + setMethod(HttpRequest::Method::Post); } -void DescribeMonitoringAgentStatusesRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +DescribeMonitoringAgentStatusesRequest::~DescribeMonitoringAgentStatusesRequest() {} + +std::string DescribeMonitoringAgentStatusesRequest::getInstanceIds() const { + return instanceIds_; +} + +void DescribeMonitoringAgentStatusesRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } diff --git a/cms/src/model/DescribeMonitoringAgentStatusesResult.cc b/cms/src/model/DescribeMonitoringAgentStatusesResult.cc index 97e31d41f..1742f7bdc 100644 --- a/cms/src/model/DescribeMonitoringAgentStatusesResult.cc +++ b/cms/src/model/DescribeMonitoringAgentStatusesResult.cc @@ -43,12 +43,12 @@ void DescribeMonitoringAgentStatusesResult::parse(const std::string &payload) for (auto valueNodeStatusListNodeStatus : allNodeStatusListNode) { NodeStatus nodeStatusListObject; + if(!valueNodeStatusListNodeStatus["Status"].isNull()) + nodeStatusListObject.status = valueNodeStatusListNodeStatus["Status"].asString(); if(!valueNodeStatusListNodeStatus["InstanceId"].isNull()) nodeStatusListObject.instanceId = valueNodeStatusListNodeStatus["InstanceId"].asString(); if(!valueNodeStatusListNodeStatus["AutoInstall"].isNull()) nodeStatusListObject.autoInstall = valueNodeStatusListNodeStatus["AutoInstall"].asString() == "true"; - if(!valueNodeStatusListNodeStatus["Status"].isNull()) - nodeStatusListObject.status = valueNodeStatusListNodeStatus["Status"].asString(); nodeStatusList_.push_back(nodeStatusListObject); } if(!value["Code"].isNull()) diff --git a/cms/src/model/DescribeMonitoringConfigRequest.cc b/cms/src/model/DescribeMonitoringConfigRequest.cc index 1b48f621c..7cd85d429 100644 --- a/cms/src/model/DescribeMonitoringConfigRequest.cc +++ b/cms/src/model/DescribeMonitoringConfigRequest.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::Cms::Model::DescribeMonitoringConfigRequest; - -DescribeMonitoringConfigRequest::DescribeMonitoringConfigRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMonitoringConfigRequest::~DescribeMonitoringConfigRequest() -{} - + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitoringConfigRequest; + +DescribeMonitoringConfigRequest::DescribeMonitoringConfigRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringConfig") { + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitoringConfigRequest::~DescribeMonitoringConfigRequest() {} + diff --git a/cms/src/model/DescribeMonitoringConfigResult.cc b/cms/src/model/DescribeMonitoringConfigResult.cc index 6267e64c4..4a411fbb7 100644 --- a/cms/src/model/DescribeMonitoringConfigResult.cc +++ b/cms/src/model/DescribeMonitoringConfigResult.cc @@ -39,16 +39,16 @@ void DescribeMonitoringConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["AutoInstall"].isNull()) + autoInstall_ = value["AutoInstall"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["EnableInstallAgentNewECS"].isNull()) + enableInstallAgentNewECS_ = value["EnableInstallAgentNewECS"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["AutoInstall"].isNull()) - autoInstall_ = value["AutoInstall"].asString() == "true"; - if(!value["EnableInstallAgentNewECS"].isNull()) - enableInstallAgentNewECS_ = value["EnableInstallAgentNewECS"].asString() == "true"; } diff --git a/cms/src/model/DescribeProductResourceTagKeyListRequest.cc b/cms/src/model/DescribeProductResourceTagKeyListRequest.cc index f5e178651..4dec35bad 100644 --- a/cms/src/model/DescribeProductResourceTagKeyListRequest.cc +++ b/cms/src/model/DescribeProductResourceTagKeyListRequest.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::Cms::Model::DescribeProductResourceTagKeyListRequest; - -DescribeProductResourceTagKeyListRequest::DescribeProductResourceTagKeyListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeProductResourceTagKeyList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeProductResourceTagKeyListRequest::~DescribeProductResourceTagKeyListRequest() -{} - -std::string DescribeProductResourceTagKeyListRequest::getNextToken()const -{ - return nextToken_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeProductResourceTagKeyListRequest; + +DescribeProductResourceTagKeyListRequest::DescribeProductResourceTagKeyListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeProductResourceTagKeyList") { + setMethod(HttpRequest::Method::Post); } -void DescribeProductResourceTagKeyListRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +DescribeProductResourceTagKeyListRequest::~DescribeProductResourceTagKeyListRequest() {} + +std::string DescribeProductResourceTagKeyListRequest::getNextToken() const { + return nextToken_; +} + +void DescribeProductResourceTagKeyListRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } diff --git a/cms/src/model/DescribeProductResourceTagKeyListResult.cc b/cms/src/model/DescribeProductResourceTagKeyListResult.cc index 0a8d5eee5..9d7f5f0e4 100644 --- a/cms/src/model/DescribeProductResourceTagKeyListResult.cc +++ b/cms/src/model/DescribeProductResourceTagKeyListResult.cc @@ -46,10 +46,10 @@ void DescribeProductResourceTagKeyListResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeProductsOfActiveMetricRuleRequest.cc b/cms/src/model/DescribeProductsOfActiveMetricRuleRequest.cc index 7af59402f..41a08c17d 100644 --- a/cms/src/model/DescribeProductsOfActiveMetricRuleRequest.cc +++ b/cms/src/model/DescribeProductsOfActiveMetricRuleRequest.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::Cms::Model::DescribeProductsOfActiveMetricRuleRequest; - -DescribeProductsOfActiveMetricRuleRequest::DescribeProductsOfActiveMetricRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeProductsOfActiveMetricRule") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeProductsOfActiveMetricRuleRequest::~DescribeProductsOfActiveMetricRuleRequest() -{} - + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeProductsOfActiveMetricRuleRequest; + +DescribeProductsOfActiveMetricRuleRequest::DescribeProductsOfActiveMetricRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeProductsOfActiveMetricRule") { + setMethod(HttpRequest::Method::Post); +} + +DescribeProductsOfActiveMetricRuleRequest::~DescribeProductsOfActiveMetricRuleRequest() {} + diff --git a/cms/src/model/DescribeProductsOfActiveMetricRuleResult.cc b/cms/src/model/DescribeProductsOfActiveMetricRuleResult.cc index febd86685..e504d1b63 100644 --- a/cms/src/model/DescribeProductsOfActiveMetricRuleResult.cc +++ b/cms/src/model/DescribeProductsOfActiveMetricRuleResult.cc @@ -49,30 +49,30 @@ void DescribeProductsOfActiveMetricRuleResult::parse(const std::string &payload) for (auto valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig : allAlertInitConfigListNode) { AllProductInitMetricRule::AlertInitConfig alertInitConfigListObject; - if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Namespace"].isNull()) - alertInitConfigListObject._namespace = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Namespace"].asString(); if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["MetricName"].isNull()) alertInitConfigListObject.metricName = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["MetricName"].asString(); - if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Statistics"].isNull()) - alertInitConfigListObject.statistics = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Statistics"].asString(); if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["EvaluationCount"].isNull()) alertInitConfigListObject.evaluationCount = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["EvaluationCount"].asString(); + if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Namespace"].isNull()) + alertInitConfigListObject._namespace = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Namespace"].asString(); if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Threshold"].isNull()) alertInitConfigListObject.threshold = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Threshold"].asString(); + if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Statistics"].isNull()) + alertInitConfigListObject.statistics = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Statistics"].asString(); if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Period"].isNull()) alertInitConfigListObject.period = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Period"].asString(); allProductInitMetricRuleListObject.alertInitConfigList.push_back(alertInitConfigListObject); } allProductInitMetricRuleList_.push_back(allProductInitMetricRuleListObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Datapoints"].isNull()) datapoints_ = value["Datapoints"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeProjectMetaRequest.cc b/cms/src/model/DescribeProjectMetaRequest.cc index 1e30489fb..447d086f3 100644 --- a/cms/src/model/DescribeProjectMetaRequest.cc +++ b/cms/src/model/DescribeProjectMetaRequest.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::Cms::Model::DescribeProjectMetaRequest; - -DescribeProjectMetaRequest::DescribeProjectMetaRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeProjectMeta") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeProjectMetaRequest::~DescribeProjectMetaRequest() -{} - -int DescribeProjectMetaRequest::getPageSize()const -{ - return pageSize_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeProjectMetaRequest; + +DescribeProjectMetaRequest::DescribeProjectMetaRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeProjectMeta") { + setMethod(HttpRequest::Method::Post); } -void DescribeProjectMetaRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +DescribeProjectMetaRequest::~DescribeProjectMetaRequest() {} + +int DescribeProjectMetaRequest::getPageSize() const { + return pageSize_; } -int DescribeProjectMetaRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeProjectMetaRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeProjectMetaRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeProjectMetaRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeProjectMetaRequest::getLabels()const -{ - return labels_; +void DescribeProjectMetaRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeProjectMetaRequest::setLabels(const std::string& labels) -{ - labels_ = labels; - setParameter("Labels", labels); +std::string DescribeProjectMetaRequest::getLabels() const { + return labels_; +} + +void DescribeProjectMetaRequest::setLabels(const std::string &labels) { + labels_ = labels; + setParameter(std::string("Labels"), labels); } diff --git a/cms/src/model/DescribeProjectMetaResult.cc b/cms/src/model/DescribeProjectMetaResult.cc index aa4d76280..cb0815f4d 100644 --- a/cms/src/model/DescribeProjectMetaResult.cc +++ b/cms/src/model/DescribeProjectMetaResult.cc @@ -57,12 +57,12 @@ void DescribeProjectMetaResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Total"].isNull()) - total_ = value["Total"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = value["PageNumber"].asString(); if(!value["PageSize"].isNull()) pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + if(!value["Total"].isNull()) + total_ = value["Total"].asString(); } diff --git a/cms/src/model/DescribeSiteMonitorAttributeRequest.cc b/cms/src/model/DescribeSiteMonitorAttributeRequest.cc index 59e81c70c..d55a955a7 100644 --- a/cms/src/model/DescribeSiteMonitorAttributeRequest.cc +++ b/cms/src/model/DescribeSiteMonitorAttributeRequest.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::Cms::Model::DescribeSiteMonitorAttributeRequest; - -DescribeSiteMonitorAttributeRequest::DescribeSiteMonitorAttributeRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSiteMonitorAttributeRequest::~DescribeSiteMonitorAttributeRequest() -{} - -bool DescribeSiteMonitorAttributeRequest::getIncludeAlert()const -{ - return includeAlert_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSiteMonitorAttributeRequest; + +DescribeSiteMonitorAttributeRequest::DescribeSiteMonitorAttributeRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeSiteMonitorAttributeRequest::setIncludeAlert(bool includeAlert) -{ - includeAlert_ = includeAlert; - setParameter("IncludeAlert", includeAlert ? "true" : "false"); +DescribeSiteMonitorAttributeRequest::~DescribeSiteMonitorAttributeRequest() {} + +bool DescribeSiteMonitorAttributeRequest::getIncludeAlert() const { + return includeAlert_; } -std::string DescribeSiteMonitorAttributeRequest::getTaskId()const -{ - return taskId_; +void DescribeSiteMonitorAttributeRequest::setIncludeAlert(bool includeAlert) { + includeAlert_ = includeAlert; + setParameter(std::string("IncludeAlert"), includeAlert ? "true" : "false"); } -void DescribeSiteMonitorAttributeRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string DescribeSiteMonitorAttributeRequest::getTaskId() const { + return taskId_; +} + +void DescribeSiteMonitorAttributeRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/cms/src/model/DescribeSiteMonitorDataRequest.cc b/cms/src/model/DescribeSiteMonitorDataRequest.cc index efa9d3547..dffbc4d13 100644 --- a/cms/src/model/DescribeSiteMonitorDataRequest.cc +++ b/cms/src/model/DescribeSiteMonitorDataRequest.cc @@ -1,117 +1,99 @@ /* * 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::Cms::Model::DescribeSiteMonitorDataRequest; - -DescribeSiteMonitorDataRequest::DescribeSiteMonitorDataRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSiteMonitorDataRequest::~DescribeSiteMonitorDataRequest() -{} - -std::string DescribeSiteMonitorDataRequest::getPeriod()const -{ - return period_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSiteMonitorDataRequest; + +DescribeSiteMonitorDataRequest::DescribeSiteMonitorDataRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorData") { + setMethod(HttpRequest::Method::Post); } -void DescribeSiteMonitorDataRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +DescribeSiteMonitorDataRequest::~DescribeSiteMonitorDataRequest() {} + +std::string DescribeSiteMonitorDataRequest::getPeriod() const { + return period_; } -int DescribeSiteMonitorDataRequest::getLength()const -{ - return length_; +void DescribeSiteMonitorDataRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -void DescribeSiteMonitorDataRequest::setLength(int length) -{ - length_ = length; - setParameter("Length", std::to_string(length)); +int DescribeSiteMonitorDataRequest::getLength() const { + return length_; } -std::string DescribeSiteMonitorDataRequest::getEndTime()const -{ - return endTime_; +void DescribeSiteMonitorDataRequest::setLength(int length) { + length_ = length; + setParameter(std::string("Length"), std::to_string(length)); } -void DescribeSiteMonitorDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeSiteMonitorDataRequest::getEndTime() const { + return endTime_; } -std::string DescribeSiteMonitorDataRequest::getStartTime()const -{ - return startTime_; +void DescribeSiteMonitorDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeSiteMonitorDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeSiteMonitorDataRequest::getStartTime() const { + return startTime_; } -std::string DescribeSiteMonitorDataRequest::getType()const -{ - return type_; +void DescribeSiteMonitorDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeSiteMonitorDataRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeSiteMonitorDataRequest::getType() const { + return type_; } -std::string DescribeSiteMonitorDataRequest::getNextToken()const -{ - return nextToken_; +void DescribeSiteMonitorDataRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeSiteMonitorDataRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeSiteMonitorDataRequest::getNextToken() const { + return nextToken_; } -std::string DescribeSiteMonitorDataRequest::getMetricName()const -{ - return metricName_; +void DescribeSiteMonitorDataRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeSiteMonitorDataRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeSiteMonitorDataRequest::getMetricName() const { + return metricName_; } -std::string DescribeSiteMonitorDataRequest::getTaskId()const -{ - return taskId_; +void DescribeSiteMonitorDataRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeSiteMonitorDataRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string DescribeSiteMonitorDataRequest::getTaskId() const { + return taskId_; +} + +void DescribeSiteMonitorDataRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/cms/src/model/DescribeSiteMonitorDataResult.cc b/cms/src/model/DescribeSiteMonitorDataResult.cc index 158087d3f..8624708e6 100644 --- a/cms/src/model/DescribeSiteMonitorDataResult.cc +++ b/cms/src/model/DescribeSiteMonitorDataResult.cc @@ -39,29 +39,29 @@ void DescribeSiteMonitorDataResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string DescribeSiteMonitorDataResult::getMessage()const -{ - return message_; -} - std::string DescribeSiteMonitorDataResult::getNextToken()const { return nextToken_; } +std::string DescribeSiteMonitorDataResult::getMessage()const +{ + return message_; +} + std::string DescribeSiteMonitorDataResult::getData()const { return data_; diff --git a/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc b/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc index e20e8616f..162ee5f62 100644 --- a/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc +++ b/cms/src/model/DescribeSiteMonitorISPCityListRequest.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::Cms::Model::DescribeSiteMonitorISPCityListRequest; - -DescribeSiteMonitorISPCityListRequest::DescribeSiteMonitorISPCityListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorISPCityList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSiteMonitorISPCityListRequest::~DescribeSiteMonitorISPCityListRequest() -{} - -std::string DescribeSiteMonitorISPCityListRequest::getCity()const -{ - return city_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSiteMonitorISPCityListRequest; + +DescribeSiteMonitorISPCityListRequest::DescribeSiteMonitorISPCityListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorISPCityList") { + setMethod(HttpRequest::Method::Post); } -void DescribeSiteMonitorISPCityListRequest::setCity(const std::string& city) -{ - city_ = city; - setParameter("City", city); +DescribeSiteMonitorISPCityListRequest::~DescribeSiteMonitorISPCityListRequest() {} + +std::string DescribeSiteMonitorISPCityListRequest::getCity() const { + return city_; } -std::string DescribeSiteMonitorISPCityListRequest::getIsp()const -{ - return isp_; +void DescribeSiteMonitorISPCityListRequest::setCity(const std::string &city) { + city_ = city; + setParameter(std::string("City"), city); } -void DescribeSiteMonitorISPCityListRequest::setIsp(const std::string& isp) -{ - isp_ = isp; - setParameter("Isp", isp); +std::string DescribeSiteMonitorISPCityListRequest::getIsp() const { + return isp_; } -bool DescribeSiteMonitorISPCityListRequest::getAPIProbe()const -{ - return aPIProbe_; +void DescribeSiteMonitorISPCityListRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); } -void DescribeSiteMonitorISPCityListRequest::setAPIProbe(bool aPIProbe) -{ - aPIProbe_ = aPIProbe; - setParameter("APIProbe", aPIProbe ? "true" : "false"); +bool DescribeSiteMonitorISPCityListRequest::getAPIProbe() const { + return aPIProbe_; } -bool DescribeSiteMonitorISPCityListRequest::getIPV4()const -{ - return iPV4_; +void DescribeSiteMonitorISPCityListRequest::setAPIProbe(bool aPIProbe) { + aPIProbe_ = aPIProbe; + setParameter(std::string("APIProbe"), aPIProbe ? "true" : "false"); } -void DescribeSiteMonitorISPCityListRequest::setIPV4(bool iPV4) -{ - iPV4_ = iPV4; - setParameter("IPV4", iPV4 ? "true" : "false"); +bool DescribeSiteMonitorISPCityListRequest::getIPV4() const { + return iPV4_; } -bool DescribeSiteMonitorISPCityListRequest::getIPV6()const -{ - return iPV6_; +void DescribeSiteMonitorISPCityListRequest::setIPV4(bool iPV4) { + iPV4_ = iPV4; + setParameter(std::string("IPV4"), iPV4 ? "true" : "false"); } -void DescribeSiteMonitorISPCityListRequest::setIPV6(bool iPV6) -{ - iPV6_ = iPV6; - setParameter("IPV6", iPV6 ? "true" : "false"); +bool DescribeSiteMonitorISPCityListRequest::getIPV6() const { + return iPV6_; +} + +void DescribeSiteMonitorISPCityListRequest::setIPV6(bool iPV6) { + iPV6_ = iPV6; + setParameter(std::string("IPV6"), iPV6 ? "true" : "false"); } diff --git a/cms/src/model/DescribeSiteMonitorListRequest.cc b/cms/src/model/DescribeSiteMonitorListRequest.cc index 836a773af..1b9523f64 100644 --- a/cms/src/model/DescribeSiteMonitorListRequest.cc +++ b/cms/src/model/DescribeSiteMonitorListRequest.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::Cms::Model::DescribeSiteMonitorListRequest; - -DescribeSiteMonitorListRequest::DescribeSiteMonitorListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSiteMonitorListRequest::~DescribeSiteMonitorListRequest() -{} - -std::string DescribeSiteMonitorListRequest::getTaskType()const -{ - return taskType_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSiteMonitorListRequest; + +DescribeSiteMonitorListRequest::DescribeSiteMonitorListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorList") { + setMethod(HttpRequest::Method::Post); } -void DescribeSiteMonitorListRequest::setTaskType(const std::string& taskType) -{ - taskType_ = taskType; - setParameter("TaskType", taskType); +DescribeSiteMonitorListRequest::~DescribeSiteMonitorListRequest() {} + +std::string DescribeSiteMonitorListRequest::getTaskType() const { + return taskType_; } -int DescribeSiteMonitorListRequest::getPageSize()const -{ - return pageSize_; +void DescribeSiteMonitorListRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); } -void DescribeSiteMonitorListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSiteMonitorListRequest::getPageSize() const { + return pageSize_; } -int DescribeSiteMonitorListRequest::getPage()const -{ - return page_; +void DescribeSiteMonitorListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSiteMonitorListRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +int DescribeSiteMonitorListRequest::getPage() const { + return page_; } -std::string DescribeSiteMonitorListRequest::getKeyword()const -{ - return keyword_; +void DescribeSiteMonitorListRequest::setPage(int page) { + page_ = page; + setParameter(std::string("Page"), std::to_string(page)); } -void DescribeSiteMonitorListRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeSiteMonitorListRequest::getKeyword() const { + return keyword_; } -std::string DescribeSiteMonitorListRequest::getTaskId()const -{ - return taskId_; +void DescribeSiteMonitorListRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } -void DescribeSiteMonitorListRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string DescribeSiteMonitorListRequest::getTaskId() const { + return taskId_; +} + +void DescribeSiteMonitorListRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/cms/src/model/DescribeSiteMonitorLogRequest.cc b/cms/src/model/DescribeSiteMonitorLogRequest.cc index 3acfef21a..a7a1c031b 100644 --- a/cms/src/model/DescribeSiteMonitorLogRequest.cc +++ b/cms/src/model/DescribeSiteMonitorLogRequest.cc @@ -1,139 +1,117 @@ /* * 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::Cms::Model::DescribeSiteMonitorLogRequest; - -DescribeSiteMonitorLogRequest::DescribeSiteMonitorLogRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorLog") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSiteMonitorLogRequest::~DescribeSiteMonitorLogRequest() -{} - -std::string DescribeSiteMonitorLogRequest::getCity()const -{ - return city_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSiteMonitorLogRequest; + +DescribeSiteMonitorLogRequest::DescribeSiteMonitorLogRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorLog") { + setMethod(HttpRequest::Method::Post); } -void DescribeSiteMonitorLogRequest::setCity(const std::string& city) -{ - city_ = city; - setParameter("City", city); +DescribeSiteMonitorLogRequest::~DescribeSiteMonitorLogRequest() {} + +std::string DescribeSiteMonitorLogRequest::getCity() const { + return city_; } -std::string DescribeSiteMonitorLogRequest::getIsp()const -{ - return isp_; +void DescribeSiteMonitorLogRequest::setCity(const std::string &city) { + city_ = city; + setParameter(std::string("City"), city); } -void DescribeSiteMonitorLogRequest::setIsp(const std::string& isp) -{ - isp_ = isp; - setParameter("Isp", isp); +std::string DescribeSiteMonitorLogRequest::getIsp() const { + return isp_; } -std::string DescribeSiteMonitorLogRequest::getStartTime()const -{ - return startTime_; +void DescribeSiteMonitorLogRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); } -void DescribeSiteMonitorLogRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeSiteMonitorLogRequest::getStartTime() const { + return startTime_; } -std::string DescribeSiteMonitorLogRequest::getTaskIds()const -{ - return taskIds_; +void DescribeSiteMonitorLogRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeSiteMonitorLogRequest::setTaskIds(const std::string& taskIds) -{ - taskIds_ = taskIds; - setParameter("TaskIds", taskIds); +std::string DescribeSiteMonitorLogRequest::getTaskIds() const { + return taskIds_; } -std::string DescribeSiteMonitorLogRequest::getNextToken()const -{ - return nextToken_; +void DescribeSiteMonitorLogRequest::setTaskIds(const std::string &taskIds) { + taskIds_ = taskIds; + setParameter(std::string("TaskIds"), taskIds); } -void DescribeSiteMonitorLogRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeSiteMonitorLogRequest::getNextToken() const { + return nextToken_; } -std::string DescribeSiteMonitorLogRequest::getMetricName()const -{ - return metricName_; +void DescribeSiteMonitorLogRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeSiteMonitorLogRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeSiteMonitorLogRequest::getMetricName() const { + return metricName_; } -int DescribeSiteMonitorLogRequest::getLength()const -{ - return length_; +void DescribeSiteMonitorLogRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeSiteMonitorLogRequest::setLength(int length) -{ - length_ = length; - setParameter("Length", std::to_string(length)); +int DescribeSiteMonitorLogRequest::getLength() const { + return length_; } -std::string DescribeSiteMonitorLogRequest::getEndTime()const -{ - return endTime_; +void DescribeSiteMonitorLogRequest::setLength(int length) { + length_ = length; + setParameter(std::string("Length"), std::to_string(length)); } -void DescribeSiteMonitorLogRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeSiteMonitorLogRequest::getEndTime() const { + return endTime_; } -std::string DescribeSiteMonitorLogRequest::getFilter()const -{ - return filter_; +void DescribeSiteMonitorLogRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeSiteMonitorLogRequest::setFilter(const std::string& filter) -{ - filter_ = filter; - setParameter("Filter", filter); +std::string DescribeSiteMonitorLogRequest::getFilter() const { + return filter_; } -std::string DescribeSiteMonitorLogRequest::getDimensions()const -{ - return dimensions_; +void DescribeSiteMonitorLogRequest::setFilter(const std::string &filter) { + filter_ = filter; + setParameter(std::string("Filter"), filter); } -void DescribeSiteMonitorLogRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setParameter("Dimensions", dimensions); +std::string DescribeSiteMonitorLogRequest::getDimensions() const { + return dimensions_; +} + +void DescribeSiteMonitorLogRequest::setDimensions(const std::string &dimensions) { + dimensions_ = dimensions; + setParameter(std::string("Dimensions"), dimensions); } diff --git a/cms/src/model/DescribeSiteMonitorQuotaRequest.cc b/cms/src/model/DescribeSiteMonitorQuotaRequest.cc index af2fcac6e..e0054ce07 100644 --- a/cms/src/model/DescribeSiteMonitorQuotaRequest.cc +++ b/cms/src/model/DescribeSiteMonitorQuotaRequest.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::Cms::Model::DescribeSiteMonitorQuotaRequest; - -DescribeSiteMonitorQuotaRequest::DescribeSiteMonitorQuotaRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorQuota") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSiteMonitorQuotaRequest::~DescribeSiteMonitorQuotaRequest() -{} - + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSiteMonitorQuotaRequest; + +DescribeSiteMonitorQuotaRequest::DescribeSiteMonitorQuotaRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorQuota") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSiteMonitorQuotaRequest::~DescribeSiteMonitorQuotaRequest() {} + diff --git a/cms/src/model/DescribeSiteMonitorQuotaResult.cc b/cms/src/model/DescribeSiteMonitorQuotaResult.cc index 63872966e..8d6b11441 100644 --- a/cms/src/model/DescribeSiteMonitorQuotaResult.cc +++ b/cms/src/model/DescribeSiteMonitorQuotaResult.cc @@ -40,18 +40,18 @@ void DescribeSiteMonitorQuotaResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["SiteMonitorIdcQuota"].isNull()) - data_.siteMonitorIdcQuota = std::stoi(dataNode["SiteMonitorIdcQuota"].asString()); if(!dataNode["SiteMonitorOperatorQuotaQuota"].isNull()) data_.siteMonitorOperatorQuotaQuota = std::stoi(dataNode["SiteMonitorOperatorQuotaQuota"].asString()); - if(!dataNode["SiteMonitorTaskQuota"].isNull()) - data_.siteMonitorTaskQuota = std::stoi(dataNode["SiteMonitorTaskQuota"].asString()); - if(!dataNode["SiteMonitorQuotaTaskUsed"].isNull()) - data_.siteMonitorQuotaTaskUsed = std::stoi(dataNode["SiteMonitorQuotaTaskUsed"].asString()); - if(!dataNode["SiteMonitorVersion"].isNull()) - data_.siteMonitorVersion = dataNode["SiteMonitorVersion"].asString(); if(!dataNode["SecondMonitor"].isNull()) data_.secondMonitor = dataNode["SecondMonitor"].asString() == "true"; + if(!dataNode["SiteMonitorQuotaTaskUsed"].isNull()) + data_.siteMonitorQuotaTaskUsed = std::stoi(dataNode["SiteMonitorQuotaTaskUsed"].asString()); + if(!dataNode["SiteMonitorTaskQuota"].isNull()) + data_.siteMonitorTaskQuota = std::stoi(dataNode["SiteMonitorTaskQuota"].asString()); + if(!dataNode["SiteMonitorVersion"].isNull()) + data_.siteMonitorVersion = dataNode["SiteMonitorVersion"].asString(); + if(!dataNode["SiteMonitorIdcQuota"].isNull()) + data_.siteMonitorIdcQuota = std::stoi(dataNode["SiteMonitorIdcQuota"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) diff --git a/cms/src/model/DescribeSiteMonitorStatisticsRequest.cc b/cms/src/model/DescribeSiteMonitorStatisticsRequest.cc index f408e702d..d3a201d16 100644 --- a/cms/src/model/DescribeSiteMonitorStatisticsRequest.cc +++ b/cms/src/model/DescribeSiteMonitorStatisticsRequest.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::Cms::Model::DescribeSiteMonitorStatisticsRequest; - -DescribeSiteMonitorStatisticsRequest::DescribeSiteMonitorStatisticsRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSiteMonitorStatisticsRequest::~DescribeSiteMonitorStatisticsRequest() -{} - -std::string DescribeSiteMonitorStatisticsRequest::getTimeRange()const -{ - return timeRange_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSiteMonitorStatisticsRequest; + +DescribeSiteMonitorStatisticsRequest::DescribeSiteMonitorStatisticsRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeSiteMonitorStatisticsRequest::setTimeRange(const std::string& timeRange) -{ - timeRange_ = timeRange; - setParameter("TimeRange", timeRange); +DescribeSiteMonitorStatisticsRequest::~DescribeSiteMonitorStatisticsRequest() {} + +std::string DescribeSiteMonitorStatisticsRequest::getTimeRange() const { + return timeRange_; } -std::string DescribeSiteMonitorStatisticsRequest::getStartTime()const -{ - return startTime_; +void DescribeSiteMonitorStatisticsRequest::setTimeRange(const std::string &timeRange) { + timeRange_ = timeRange; + setParameter(std::string("TimeRange"), timeRange); } -void DescribeSiteMonitorStatisticsRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeSiteMonitorStatisticsRequest::getStartTime() const { + return startTime_; } -std::string DescribeSiteMonitorStatisticsRequest::getMetricName()const -{ - return metricName_; +void DescribeSiteMonitorStatisticsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeSiteMonitorStatisticsRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string DescribeSiteMonitorStatisticsRequest::getMetricName() const { + return metricName_; } -std::string DescribeSiteMonitorStatisticsRequest::getTaskId()const -{ - return taskId_; +void DescribeSiteMonitorStatisticsRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void DescribeSiteMonitorStatisticsRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string DescribeSiteMonitorStatisticsRequest::getTaskId() const { + return taskId_; +} + +void DescribeSiteMonitorStatisticsRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/cms/src/model/DescribeSiteMonitorStatisticsResult.cc b/cms/src/model/DescribeSiteMonitorStatisticsResult.cc index d1b19a2e1..2ec58eabb 100644 --- a/cms/src/model/DescribeSiteMonitorStatisticsResult.cc +++ b/cms/src/model/DescribeSiteMonitorStatisticsResult.cc @@ -43,10 +43,10 @@ void DescribeSiteMonitorStatisticsResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); } diff --git a/cms/src/model/DescribeSystemEventAttributeRequest.cc b/cms/src/model/DescribeSystemEventAttributeRequest.cc index 4c8846d19..d3d09cb2a 100644 --- a/cms/src/model/DescribeSystemEventAttributeRequest.cc +++ b/cms/src/model/DescribeSystemEventAttributeRequest.cc @@ -1,150 +1,126 @@ /* * 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::Cms::Model::DescribeSystemEventAttributeRequest; - -DescribeSystemEventAttributeRequest::DescribeSystemEventAttributeRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSystemEventAttributeRequest::~DescribeSystemEventAttributeRequest() -{} - -std::string DescribeSystemEventAttributeRequest::getStartTime()const -{ - return startTime_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSystemEventAttributeRequest; + +DescribeSystemEventAttributeRequest::DescribeSystemEventAttributeRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeSystemEventAttributeRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +DescribeSystemEventAttributeRequest::~DescribeSystemEventAttributeRequest() {} + +std::string DescribeSystemEventAttributeRequest::getStartTime() const { + return startTime_; } -std::string DescribeSystemEventAttributeRequest::getSearchKeywords()const -{ - return searchKeywords_; +void DescribeSystemEventAttributeRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeSystemEventAttributeRequest::setSearchKeywords(const std::string& searchKeywords) -{ - searchKeywords_ = searchKeywords; - setParameter("SearchKeywords", searchKeywords); +std::string DescribeSystemEventAttributeRequest::getSearchKeywords() const { + return searchKeywords_; } -int DescribeSystemEventAttributeRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSystemEventAttributeRequest::setSearchKeywords(const std::string &searchKeywords) { + searchKeywords_ = searchKeywords; + setParameter(std::string("SearchKeywords"), searchKeywords); } -void DescribeSystemEventAttributeRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSystemEventAttributeRequest::getPageNumber() const { + return pageNumber_; } -int DescribeSystemEventAttributeRequest::getPageSize()const -{ - return pageSize_; +void DescribeSystemEventAttributeRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSystemEventAttributeRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSystemEventAttributeRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSystemEventAttributeRequest::getProduct()const -{ - return product_; +void DescribeSystemEventAttributeRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSystemEventAttributeRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); +std::string DescribeSystemEventAttributeRequest::getProduct() const { + return product_; } -std::string DescribeSystemEventAttributeRequest::getLevel()const -{ - return level_; +void DescribeSystemEventAttributeRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("Product"), product); } -void DescribeSystemEventAttributeRequest::setLevel(const std::string& level) -{ - level_ = level; - setParameter("Level", level); +std::string DescribeSystemEventAttributeRequest::getLevel() const { + return level_; } -std::string DescribeSystemEventAttributeRequest::getGroupId()const -{ - return groupId_; +void DescribeSystemEventAttributeRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); } -void DescribeSystemEventAttributeRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeSystemEventAttributeRequest::getGroupId() const { + return groupId_; } -std::string DescribeSystemEventAttributeRequest::getEndTime()const -{ - return endTime_; +void DescribeSystemEventAttributeRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeSystemEventAttributeRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeSystemEventAttributeRequest::getEndTime() const { + return endTime_; } -std::string DescribeSystemEventAttributeRequest::getName()const -{ - return name_; +void DescribeSystemEventAttributeRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeSystemEventAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeSystemEventAttributeRequest::getName() const { + return name_; } -std::string DescribeSystemEventAttributeRequest::getEventType()const -{ - return eventType_; +void DescribeSystemEventAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeSystemEventAttributeRequest::setEventType(const std::string& eventType) -{ - eventType_ = eventType; - setParameter("EventType", eventType); +std::string DescribeSystemEventAttributeRequest::getEventType() const { + return eventType_; } -std::string DescribeSystemEventAttributeRequest::getStatus()const -{ - return status_; +void DescribeSystemEventAttributeRequest::setEventType(const std::string &eventType) { + eventType_ = eventType; + setParameter(std::string("EventType"), eventType); } -void DescribeSystemEventAttributeRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeSystemEventAttributeRequest::getStatus() const { + return status_; +} + +void DescribeSystemEventAttributeRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/cms/src/model/DescribeSystemEventAttributeResult.cc b/cms/src/model/DescribeSystemEventAttributeResult.cc index 15bcf4e6d..e0afdb483 100644 --- a/cms/src/model/DescribeSystemEventAttributeResult.cc +++ b/cms/src/model/DescribeSystemEventAttributeResult.cc @@ -43,26 +43,26 @@ void DescribeSystemEventAttributeResult::parse(const std::string &payload) for (auto valueSystemEventsSystemEvent : allSystemEventsNode) { SystemEvent systemEventsObject; - if(!valueSystemEventsSystemEvent["Content"].isNull()) - systemEventsObject.content = valueSystemEventsSystemEvent["Content"].asString(); - if(!valueSystemEventsSystemEvent["Product"].isNull()) - systemEventsObject.product = valueSystemEventsSystemEvent["Product"].asString(); - if(!valueSystemEventsSystemEvent["Name"].isNull()) - systemEventsObject.name = valueSystemEventsSystemEvent["Name"].asString(); - if(!valueSystemEventsSystemEvent["GroupId"].isNull()) - systemEventsObject.groupId = valueSystemEventsSystemEvent["GroupId"].asString(); - if(!valueSystemEventsSystemEvent["Level"].isNull()) - systemEventsObject.level = valueSystemEventsSystemEvent["Level"].asString(); if(!valueSystemEventsSystemEvent["Status"].isNull()) systemEventsObject.status = valueSystemEventsSystemEvent["Status"].asString(); - if(!valueSystemEventsSystemEvent["ResourceId"].isNull()) - systemEventsObject.resourceId = valueSystemEventsSystemEvent["ResourceId"].asString(); - if(!valueSystemEventsSystemEvent["RegionId"].isNull()) - systemEventsObject.regionId = valueSystemEventsSystemEvent["RegionId"].asString(); - if(!valueSystemEventsSystemEvent["InstanceName"].isNull()) - systemEventsObject.instanceName = valueSystemEventsSystemEvent["InstanceName"].asString(); if(!valueSystemEventsSystemEvent["Time"].isNull()) systemEventsObject.time = std::stol(valueSystemEventsSystemEvent["Time"].asString()); + if(!valueSystemEventsSystemEvent["GroupId"].isNull()) + systemEventsObject.groupId = valueSystemEventsSystemEvent["GroupId"].asString(); + if(!valueSystemEventsSystemEvent["Product"].isNull()) + systemEventsObject.product = valueSystemEventsSystemEvent["Product"].asString(); + if(!valueSystemEventsSystemEvent["InstanceName"].isNull()) + systemEventsObject.instanceName = valueSystemEventsSystemEvent["InstanceName"].asString(); + if(!valueSystemEventsSystemEvent["ResourceId"].isNull()) + systemEventsObject.resourceId = valueSystemEventsSystemEvent["ResourceId"].asString(); + if(!valueSystemEventsSystemEvent["Name"].isNull()) + systemEventsObject.name = valueSystemEventsSystemEvent["Name"].asString(); + if(!valueSystemEventsSystemEvent["Content"].isNull()) + systemEventsObject.content = valueSystemEventsSystemEvent["Content"].asString(); + if(!valueSystemEventsSystemEvent["Level"].isNull()) + systemEventsObject.level = valueSystemEventsSystemEvent["Level"].asString(); + if(!valueSystemEventsSystemEvent["RegionId"].isNull()) + systemEventsObject.regionId = valueSystemEventsSystemEvent["RegionId"].asString(); systemEvents_.push_back(systemEventsObject); } if(!value["Code"].isNull()) diff --git a/cms/src/model/DescribeSystemEventCountRequest.cc b/cms/src/model/DescribeSystemEventCountRequest.cc index 95d421c7b..38dafa461 100644 --- a/cms/src/model/DescribeSystemEventCountRequest.cc +++ b/cms/src/model/DescribeSystemEventCountRequest.cc @@ -1,128 +1,108 @@ /* * 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::Cms::Model::DescribeSystemEventCountRequest; - -DescribeSystemEventCountRequest::DescribeSystemEventCountRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventCount") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSystemEventCountRequest::~DescribeSystemEventCountRequest() -{} - -std::string DescribeSystemEventCountRequest::getStartTime()const -{ - return startTime_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSystemEventCountRequest; + +DescribeSystemEventCountRequest::DescribeSystemEventCountRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventCount") { + setMethod(HttpRequest::Method::Post); } -void DescribeSystemEventCountRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +DescribeSystemEventCountRequest::~DescribeSystemEventCountRequest() {} + +std::string DescribeSystemEventCountRequest::getStartTime() const { + return startTime_; } -std::string DescribeSystemEventCountRequest::getSearchKeywords()const -{ - return searchKeywords_; +void DescribeSystemEventCountRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeSystemEventCountRequest::setSearchKeywords(const std::string& searchKeywords) -{ - searchKeywords_ = searchKeywords; - setParameter("SearchKeywords", searchKeywords); +std::string DescribeSystemEventCountRequest::getSearchKeywords() const { + return searchKeywords_; } -std::string DescribeSystemEventCountRequest::getProduct()const -{ - return product_; +void DescribeSystemEventCountRequest::setSearchKeywords(const std::string &searchKeywords) { + searchKeywords_ = searchKeywords; + setParameter(std::string("SearchKeywords"), searchKeywords); } -void DescribeSystemEventCountRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); +std::string DescribeSystemEventCountRequest::getProduct() const { + return product_; } -std::string DescribeSystemEventCountRequest::getLevel()const -{ - return level_; +void DescribeSystemEventCountRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("Product"), product); } -void DescribeSystemEventCountRequest::setLevel(const std::string& level) -{ - level_ = level; - setParameter("Level", level); +std::string DescribeSystemEventCountRequest::getLevel() const { + return level_; } -std::string DescribeSystemEventCountRequest::getGroupId()const -{ - return groupId_; +void DescribeSystemEventCountRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); } -void DescribeSystemEventCountRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeSystemEventCountRequest::getGroupId() const { + return groupId_; } -std::string DescribeSystemEventCountRequest::getEndTime()const -{ - return endTime_; +void DescribeSystemEventCountRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeSystemEventCountRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeSystemEventCountRequest::getEndTime() const { + return endTime_; } -std::string DescribeSystemEventCountRequest::getName()const -{ - return name_; +void DescribeSystemEventCountRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeSystemEventCountRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeSystemEventCountRequest::getName() const { + return name_; } -std::string DescribeSystemEventCountRequest::getEventType()const -{ - return eventType_; +void DescribeSystemEventCountRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeSystemEventCountRequest::setEventType(const std::string& eventType) -{ - eventType_ = eventType; - setParameter("EventType", eventType); +std::string DescribeSystemEventCountRequest::getEventType() const { + return eventType_; } -std::string DescribeSystemEventCountRequest::getStatus()const -{ - return status_; +void DescribeSystemEventCountRequest::setEventType(const std::string &eventType) { + eventType_ = eventType; + setParameter(std::string("EventType"), eventType); } -void DescribeSystemEventCountRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeSystemEventCountRequest::getStatus() const { + return status_; +} + +void DescribeSystemEventCountRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/cms/src/model/DescribeSystemEventCountResult.cc b/cms/src/model/DescribeSystemEventCountResult.cc index 4d315cc67..bf1d66acd 100644 --- a/cms/src/model/DescribeSystemEventCountResult.cc +++ b/cms/src/model/DescribeSystemEventCountResult.cc @@ -43,28 +43,28 @@ void DescribeSystemEventCountResult::parse(const std::string &payload) for (auto valueSystemEventCountsSystemEventCount : allSystemEventCountsNode) { SystemEventCount systemEventCountsObject; - if(!valueSystemEventCountsSystemEventCount["Content"].isNull()) - systemEventCountsObject.content = valueSystemEventCountsSystemEventCount["Content"].asString(); - if(!valueSystemEventCountsSystemEventCount["Product"].isNull()) - systemEventCountsObject.product = valueSystemEventCountsSystemEventCount["Product"].asString(); - if(!valueSystemEventCountsSystemEventCount["Name"].isNull()) - systemEventCountsObject.name = valueSystemEventCountsSystemEventCount["Name"].asString(); - if(!valueSystemEventCountsSystemEventCount["GroupId"].isNull()) - systemEventCountsObject.groupId = valueSystemEventCountsSystemEventCount["GroupId"].asString(); - if(!valueSystemEventCountsSystemEventCount["Num"].isNull()) - systemEventCountsObject.num = std::stol(valueSystemEventCountsSystemEventCount["Num"].asString()); - if(!valueSystemEventCountsSystemEventCount["Level"].isNull()) - systemEventCountsObject.level = valueSystemEventCountsSystemEventCount["Level"].asString(); if(!valueSystemEventCountsSystemEventCount["Status"].isNull()) systemEventCountsObject.status = valueSystemEventCountsSystemEventCount["Status"].asString(); - if(!valueSystemEventCountsSystemEventCount["ResourceId"].isNull()) - systemEventCountsObject.resourceId = valueSystemEventCountsSystemEventCount["ResourceId"].asString(); - if(!valueSystemEventCountsSystemEventCount["RegionId"].isNull()) - systemEventCountsObject.regionId = valueSystemEventCountsSystemEventCount["RegionId"].asString(); - if(!valueSystemEventCountsSystemEventCount["InstanceName"].isNull()) - systemEventCountsObject.instanceName = valueSystemEventCountsSystemEventCount["InstanceName"].asString(); if(!valueSystemEventCountsSystemEventCount["Time"].isNull()) systemEventCountsObject.time = std::stol(valueSystemEventCountsSystemEventCount["Time"].asString()); + if(!valueSystemEventCountsSystemEventCount["GroupId"].isNull()) + systemEventCountsObject.groupId = valueSystemEventCountsSystemEventCount["GroupId"].asString(); + if(!valueSystemEventCountsSystemEventCount["Product"].isNull()) + systemEventCountsObject.product = valueSystemEventCountsSystemEventCount["Product"].asString(); + if(!valueSystemEventCountsSystemEventCount["InstanceName"].isNull()) + systemEventCountsObject.instanceName = valueSystemEventCountsSystemEventCount["InstanceName"].asString(); + if(!valueSystemEventCountsSystemEventCount["Num"].isNull()) + systemEventCountsObject.num = std::stol(valueSystemEventCountsSystemEventCount["Num"].asString()); + if(!valueSystemEventCountsSystemEventCount["ResourceId"].isNull()) + systemEventCountsObject.resourceId = valueSystemEventCountsSystemEventCount["ResourceId"].asString(); + if(!valueSystemEventCountsSystemEventCount["Name"].isNull()) + systemEventCountsObject.name = valueSystemEventCountsSystemEventCount["Name"].asString(); + if(!valueSystemEventCountsSystemEventCount["Content"].isNull()) + systemEventCountsObject.content = valueSystemEventCountsSystemEventCount["Content"].asString(); + if(!valueSystemEventCountsSystemEventCount["Level"].isNull()) + systemEventCountsObject.level = valueSystemEventCountsSystemEventCount["Level"].asString(); + if(!valueSystemEventCountsSystemEventCount["RegionId"].isNull()) + systemEventCountsObject.regionId = valueSystemEventCountsSystemEventCount["RegionId"].asString(); systemEventCounts_.push_back(systemEventCountsObject); } if(!value["Code"].isNull()) diff --git a/cms/src/model/DescribeSystemEventHistogramRequest.cc b/cms/src/model/DescribeSystemEventHistogramRequest.cc index a2aaee597..a76722a65 100644 --- a/cms/src/model/DescribeSystemEventHistogramRequest.cc +++ b/cms/src/model/DescribeSystemEventHistogramRequest.cc @@ -1,128 +1,108 @@ /* * 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::Cms::Model::DescribeSystemEventHistogramRequest; - -DescribeSystemEventHistogramRequest::DescribeSystemEventHistogramRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventHistogram") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSystemEventHistogramRequest::~DescribeSystemEventHistogramRequest() -{} - -std::string DescribeSystemEventHistogramRequest::getStartTime()const -{ - return startTime_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSystemEventHistogramRequest; + +DescribeSystemEventHistogramRequest::DescribeSystemEventHistogramRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventHistogram") { + setMethod(HttpRequest::Method::Post); } -void DescribeSystemEventHistogramRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +DescribeSystemEventHistogramRequest::~DescribeSystemEventHistogramRequest() {} + +std::string DescribeSystemEventHistogramRequest::getStartTime() const { + return startTime_; } -std::string DescribeSystemEventHistogramRequest::getSearchKeywords()const -{ - return searchKeywords_; +void DescribeSystemEventHistogramRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeSystemEventHistogramRequest::setSearchKeywords(const std::string& searchKeywords) -{ - searchKeywords_ = searchKeywords; - setParameter("SearchKeywords", searchKeywords); +std::string DescribeSystemEventHistogramRequest::getSearchKeywords() const { + return searchKeywords_; } -std::string DescribeSystemEventHistogramRequest::getProduct()const -{ - return product_; +void DescribeSystemEventHistogramRequest::setSearchKeywords(const std::string &searchKeywords) { + searchKeywords_ = searchKeywords; + setParameter(std::string("SearchKeywords"), searchKeywords); } -void DescribeSystemEventHistogramRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); +std::string DescribeSystemEventHistogramRequest::getProduct() const { + return product_; } -std::string DescribeSystemEventHistogramRequest::getLevel()const -{ - return level_; +void DescribeSystemEventHistogramRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("Product"), product); } -void DescribeSystemEventHistogramRequest::setLevel(const std::string& level) -{ - level_ = level; - setParameter("Level", level); +std::string DescribeSystemEventHistogramRequest::getLevel() const { + return level_; } -std::string DescribeSystemEventHistogramRequest::getGroupId()const -{ - return groupId_; +void DescribeSystemEventHistogramRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); } -void DescribeSystemEventHistogramRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeSystemEventHistogramRequest::getGroupId() const { + return groupId_; } -std::string DescribeSystemEventHistogramRequest::getEndTime()const -{ - return endTime_; +void DescribeSystemEventHistogramRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeSystemEventHistogramRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeSystemEventHistogramRequest::getEndTime() const { + return endTime_; } -std::string DescribeSystemEventHistogramRequest::getName()const -{ - return name_; +void DescribeSystemEventHistogramRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeSystemEventHistogramRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeSystemEventHistogramRequest::getName() const { + return name_; } -std::string DescribeSystemEventHistogramRequest::getEventType()const -{ - return eventType_; +void DescribeSystemEventHistogramRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeSystemEventHistogramRequest::setEventType(const std::string& eventType) -{ - eventType_ = eventType; - setParameter("EventType", eventType); +std::string DescribeSystemEventHistogramRequest::getEventType() const { + return eventType_; } -std::string DescribeSystemEventHistogramRequest::getStatus()const -{ - return status_; +void DescribeSystemEventHistogramRequest::setEventType(const std::string &eventType) { + eventType_ = eventType; + setParameter(std::string("EventType"), eventType); } -void DescribeSystemEventHistogramRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeSystemEventHistogramRequest::getStatus() const { + return status_; +} + +void DescribeSystemEventHistogramRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/cms/src/model/DescribeSystemEventHistogramResult.cc b/cms/src/model/DescribeSystemEventHistogramResult.cc index 449aa6394..88b58156b 100644 --- a/cms/src/model/DescribeSystemEventHistogramResult.cc +++ b/cms/src/model/DescribeSystemEventHistogramResult.cc @@ -43,12 +43,12 @@ void DescribeSystemEventHistogramResult::parse(const std::string &payload) for (auto valueSystemEventHistogramsSystemEventHistogram : allSystemEventHistogramsNode) { SystemEventHistogram systemEventHistogramsObject; - if(!valueSystemEventHistogramsSystemEventHistogram["Count"].isNull()) - systemEventHistogramsObject.count = std::stol(valueSystemEventHistogramsSystemEventHistogram["Count"].asString()); - if(!valueSystemEventHistogramsSystemEventHistogram["StartTime"].isNull()) - systemEventHistogramsObject.startTime = std::stol(valueSystemEventHistogramsSystemEventHistogram["StartTime"].asString()); if(!valueSystemEventHistogramsSystemEventHistogram["EndTime"].isNull()) systemEventHistogramsObject.endTime = std::stol(valueSystemEventHistogramsSystemEventHistogram["EndTime"].asString()); + if(!valueSystemEventHistogramsSystemEventHistogram["StartTime"].isNull()) + systemEventHistogramsObject.startTime = std::stol(valueSystemEventHistogramsSystemEventHistogram["StartTime"].asString()); + if(!valueSystemEventHistogramsSystemEventHistogram["Count"].isNull()) + systemEventHistogramsObject.count = std::stol(valueSystemEventHistogramsSystemEventHistogram["Count"].asString()); systemEventHistograms_.push_back(systemEventHistogramsObject); } if(!value["Code"].isNull()) diff --git a/cms/src/model/DescribeSystemEventMetaListRequest.cc b/cms/src/model/DescribeSystemEventMetaListRequest.cc index 8eb0932a6..3c99f6b46 100644 --- a/cms/src/model/DescribeSystemEventMetaListRequest.cc +++ b/cms/src/model/DescribeSystemEventMetaListRequest.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::Cms::Model::DescribeSystemEventMetaListRequest; - -DescribeSystemEventMetaListRequest::DescribeSystemEventMetaListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventMetaList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSystemEventMetaListRequest::~DescribeSystemEventMetaListRequest() -{} - + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSystemEventMetaListRequest; + +DescribeSystemEventMetaListRequest::DescribeSystemEventMetaListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventMetaList") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSystemEventMetaListRequest::~DescribeSystemEventMetaListRequest() {} + diff --git a/cms/src/model/DescribeSystemEventMetaListResult.cc b/cms/src/model/DescribeSystemEventMetaListResult.cc index 1146cbdfa..09e5204fd 100644 --- a/cms/src/model/DescribeSystemEventMetaListResult.cc +++ b/cms/src/model/DescribeSystemEventMetaListResult.cc @@ -43,30 +43,30 @@ void DescribeSystemEventMetaListResult::parse(const std::string &payload) for (auto valueDataResource : allDataNode) { Resource dataObject; + if(!valueDataResource["Status"].isNull()) + dataObject.status = valueDataResource["Status"].asString(); + if(!valueDataResource["EventType"].isNull()) + dataObject.eventType = valueDataResource["EventType"].asString(); if(!valueDataResource["Product"].isNull()) dataObject.product = valueDataResource["Product"].asString(); - if(!valueDataResource["Name"].isNull()) - dataObject.name = valueDataResource["Name"].asString(); if(!valueDataResource["NameDesc"].isNull()) dataObject.nameDesc = valueDataResource["NameDesc"].asString(); if(!valueDataResource["NameDesc.En"].isNull()) dataObject.nameDescEn = valueDataResource["NameDesc.En"].asString(); - if(!valueDataResource["Level"].isNull()) - dataObject.level = valueDataResource["Level"].asString(); - if(!valueDataResource["Status"].isNull()) - dataObject.status = valueDataResource["Status"].asString(); + if(!valueDataResource["Name"].isNull()) + dataObject.name = valueDataResource["Name"].asString(); if(!valueDataResource["StatusDesc"].isNull()) dataObject.statusDesc = valueDataResource["StatusDesc"].asString(); - if(!valueDataResource["EventType"].isNull()) - dataObject.eventType = valueDataResource["EventType"].asString(); + if(!valueDataResource["Level"].isNull()) + dataObject.level = valueDataResource["Level"].asString(); data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DescribeTagKeyListRequest.cc b/cms/src/model/DescribeTagKeyListRequest.cc index be862ce70..daac3b28b 100644 --- a/cms/src/model/DescribeTagKeyListRequest.cc +++ b/cms/src/model/DescribeTagKeyListRequest.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::Cms::Model::DescribeTagKeyListRequest; - -DescribeTagKeyListRequest::DescribeTagKeyListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeTagKeyList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTagKeyListRequest::~DescribeTagKeyListRequest() -{} - -int DescribeTagKeyListRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeTagKeyListRequest; + +DescribeTagKeyListRequest::DescribeTagKeyListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeTagKeyList") { + setMethod(HttpRequest::Method::Post); } -void DescribeTagKeyListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeTagKeyListRequest::~DescribeTagKeyListRequest() {} + +int DescribeTagKeyListRequest::getPageNumber() const { + return pageNumber_; } -int DescribeTagKeyListRequest::getPageSize()const -{ - return pageSize_; +void DescribeTagKeyListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeTagKeyListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeTagKeyListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeTagKeyListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/cms/src/model/DescribeTagValueListRequest.cc b/cms/src/model/DescribeTagValueListRequest.cc index 1bc1b40e7..14b1a9bc9 100644 --- a/cms/src/model/DescribeTagValueListRequest.cc +++ b/cms/src/model/DescribeTagValueListRequest.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::Cms::Model::DescribeTagValueListRequest; - -DescribeTagValueListRequest::DescribeTagValueListRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeTagValueList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTagValueListRequest::~DescribeTagValueListRequest() -{} - -int DescribeTagValueListRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeTagValueListRequest; + +DescribeTagValueListRequest::DescribeTagValueListRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeTagValueList") { + setMethod(HttpRequest::Method::Post); } -void DescribeTagValueListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeTagValueListRequest::~DescribeTagValueListRequest() {} + +int DescribeTagValueListRequest::getPageNumber() const { + return pageNumber_; } -int DescribeTagValueListRequest::getPageSize()const -{ - return pageSize_; +void DescribeTagValueListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeTagValueListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeTagValueListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeTagValueListRequest::getTagKey()const -{ - return tagKey_; +void DescribeTagValueListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeTagValueListRequest::setTagKey(const std::string& tagKey) -{ - tagKey_ = tagKey; - setParameter("TagKey", tagKey); +std::string DescribeTagValueListRequest::getTagKey() const { + return tagKey_; +} + +void DescribeTagValueListRequest::setTagKey(const std::string &tagKey) { + tagKey_ = tagKey; + setParameter(std::string("TagKey"), tagKey); } diff --git a/cms/src/model/DescribeUnhealthyHostAvailabilityRequest.cc b/cms/src/model/DescribeUnhealthyHostAvailabilityRequest.cc index db64f7ec6..831876e15 100644 --- a/cms/src/model/DescribeUnhealthyHostAvailabilityRequest.cc +++ b/cms/src/model/DescribeUnhealthyHostAvailabilityRequest.cc @@ -1,42 +1,35 @@ /* * 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::Cms::Model::DescribeUnhealthyHostAvailabilityRequest; - -DescribeUnhealthyHostAvailabilityRequest::DescribeUnhealthyHostAvailabilityRequest() : - RpcServiceRequest("cms", "2019-01-01", "DescribeUnhealthyHostAvailability") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeUnhealthyHostAvailabilityRequest::~DescribeUnhealthyHostAvailabilityRequest() -{} - -std::vector DescribeUnhealthyHostAvailabilityRequest::getId()const -{ - return id_; + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeUnhealthyHostAvailabilityRequest; + +DescribeUnhealthyHostAvailabilityRequest::DescribeUnhealthyHostAvailabilityRequest() + : RpcServiceRequest("cms", "2019-01-01", "DescribeUnhealthyHostAvailability") { + setMethod(HttpRequest::Method::Post); } -void DescribeUnhealthyHostAvailabilityRequest::setId(const std::vector& id) -{ - id_ = id; - for(int dep1 = 0; dep1!= id.size(); dep1++) { - setParameter("Id."+ std::to_string(dep1), std::to_string(id.at(dep1))); - } +DescribeUnhealthyHostAvailabilityRequest::~DescribeUnhealthyHostAvailabilityRequest() {} + +std::vector DescribeUnhealthyHostAvailabilityRequest::getId() const { + return id_; +} + +void DescribeUnhealthyHostAvailabilityRequest::setId(const std::vector &id) { + id_ = id; } diff --git a/cms/src/model/DisableActiveMetricRuleRequest.cc b/cms/src/model/DisableActiveMetricRuleRequest.cc index e570f4c91..d1907bf3f 100644 --- a/cms/src/model/DisableActiveMetricRuleRequest.cc +++ b/cms/src/model/DisableActiveMetricRuleRequest.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::Cms::Model::DisableActiveMetricRuleRequest; - -DisableActiveMetricRuleRequest::DisableActiveMetricRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "DisableActiveMetricRule") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableActiveMetricRuleRequest::~DisableActiveMetricRuleRequest() -{} - -std::string DisableActiveMetricRuleRequest::getProduct()const -{ - return product_; + */ + +#include + +using AlibabaCloud::Cms::Model::DisableActiveMetricRuleRequest; + +DisableActiveMetricRuleRequest::DisableActiveMetricRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "DisableActiveMetricRule") { + setMethod(HttpRequest::Method::Post); } -void DisableActiveMetricRuleRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); +DisableActiveMetricRuleRequest::~DisableActiveMetricRuleRequest() {} + +std::string DisableActiveMetricRuleRequest::getProduct() const { + return product_; +} + +void DisableActiveMetricRuleRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("Product"), product); } diff --git a/cms/src/model/DisableActiveMetricRuleResult.cc b/cms/src/model/DisableActiveMetricRuleResult.cc index b11aef9a6..20a297439 100644 --- a/cms/src/model/DisableActiveMetricRuleResult.cc +++ b/cms/src/model/DisableActiveMetricRuleResult.cc @@ -39,12 +39,12 @@ void DisableActiveMetricRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DisableEventRulesRequest.cc b/cms/src/model/DisableEventRulesRequest.cc index ea03d60fa..eccf62ffb 100644 --- a/cms/src/model/DisableEventRulesRequest.cc +++ b/cms/src/model/DisableEventRulesRequest.cc @@ -1,42 +1,35 @@ /* * 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::Cms::Model::DisableEventRulesRequest; - -DisableEventRulesRequest::DisableEventRulesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DisableEventRules") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableEventRulesRequest::~DisableEventRulesRequest() -{} - -std::vector DisableEventRulesRequest::getRuleNames()const -{ - return ruleNames_; + */ + +#include + +using AlibabaCloud::Cms::Model::DisableEventRulesRequest; + +DisableEventRulesRequest::DisableEventRulesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DisableEventRules") { + setMethod(HttpRequest::Method::Post); } -void DisableEventRulesRequest::setRuleNames(const std::vector& ruleNames) -{ - ruleNames_ = ruleNames; - for(int dep1 = 0; dep1!= ruleNames.size(); dep1++) { - setParameter("RuleNames."+ std::to_string(dep1), ruleNames.at(dep1)); - } +DisableEventRulesRequest::~DisableEventRulesRequest() {} + +std::vector DisableEventRulesRequest::getRuleNames() const { + return ruleNames_; +} + +void DisableEventRulesRequest::setRuleNames(const std::vector &ruleNames) { + ruleNames_ = ruleNames; } diff --git a/cms/src/model/DisableEventRulesResult.cc b/cms/src/model/DisableEventRulesResult.cc index 6011e6ab1..219f02888 100644 --- a/cms/src/model/DisableEventRulesResult.cc +++ b/cms/src/model/DisableEventRulesResult.cc @@ -39,12 +39,12 @@ void DisableEventRulesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DisableHostAvailabilityRequest.cc b/cms/src/model/DisableHostAvailabilityRequest.cc index e5a0941af..cc52c10af 100644 --- a/cms/src/model/DisableHostAvailabilityRequest.cc +++ b/cms/src/model/DisableHostAvailabilityRequest.cc @@ -1,42 +1,35 @@ /* * 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::Cms::Model::DisableHostAvailabilityRequest; - -DisableHostAvailabilityRequest::DisableHostAvailabilityRequest() : - RpcServiceRequest("cms", "2019-01-01", "DisableHostAvailability") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableHostAvailabilityRequest::~DisableHostAvailabilityRequest() -{} - -std::vector DisableHostAvailabilityRequest::getId()const -{ - return id_; + */ + +#include + +using AlibabaCloud::Cms::Model::DisableHostAvailabilityRequest; + +DisableHostAvailabilityRequest::DisableHostAvailabilityRequest() + : RpcServiceRequest("cms", "2019-01-01", "DisableHostAvailability") { + setMethod(HttpRequest::Method::Post); } -void DisableHostAvailabilityRequest::setId(const std::vector& id) -{ - id_ = id; - for(int dep1 = 0; dep1!= id.size(); dep1++) { - setParameter("Id."+ std::to_string(dep1), std::to_string(id.at(dep1))); - } +DisableHostAvailabilityRequest::~DisableHostAvailabilityRequest() {} + +std::vector DisableHostAvailabilityRequest::getId() const { + return id_; +} + +void DisableHostAvailabilityRequest::setId(const std::vector &id) { + id_ = id; } diff --git a/cms/src/model/DisableMetricRulesRequest.cc b/cms/src/model/DisableMetricRulesRequest.cc index 23a5a908d..b33135077 100644 --- a/cms/src/model/DisableMetricRulesRequest.cc +++ b/cms/src/model/DisableMetricRulesRequest.cc @@ -1,42 +1,35 @@ /* * 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::Cms::Model::DisableMetricRulesRequest; - -DisableMetricRulesRequest::DisableMetricRulesRequest() : - RpcServiceRequest("cms", "2019-01-01", "DisableMetricRules") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableMetricRulesRequest::~DisableMetricRulesRequest() -{} - -std::vector DisableMetricRulesRequest::getRuleId()const -{ - return ruleId_; + */ + +#include + +using AlibabaCloud::Cms::Model::DisableMetricRulesRequest; + +DisableMetricRulesRequest::DisableMetricRulesRequest() + : RpcServiceRequest("cms", "2019-01-01", "DisableMetricRules") { + setMethod(HttpRequest::Method::Post); } -void DisableMetricRulesRequest::setRuleId(const std::vector& ruleId) -{ - ruleId_ = ruleId; - for(int dep1 = 0; dep1!= ruleId.size(); dep1++) { - setParameter("RuleId."+ std::to_string(dep1), ruleId.at(dep1)); - } +DisableMetricRulesRequest::~DisableMetricRulesRequest() {} + +std::vector DisableMetricRulesRequest::getRuleId() const { + return ruleId_; +} + +void DisableMetricRulesRequest::setRuleId(const std::vector &ruleId) { + ruleId_ = ruleId; } diff --git a/cms/src/model/DisableMetricRulesResult.cc b/cms/src/model/DisableMetricRulesResult.cc index c72333686..a4c606cb9 100644 --- a/cms/src/model/DisableMetricRulesResult.cc +++ b/cms/src/model/DisableMetricRulesResult.cc @@ -39,12 +39,12 @@ void DisableMetricRulesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/DisableSiteMonitorsRequest.cc b/cms/src/model/DisableSiteMonitorsRequest.cc index 0fa80db59..70918fb79 100644 --- a/cms/src/model/DisableSiteMonitorsRequest.cc +++ b/cms/src/model/DisableSiteMonitorsRequest.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::Cms::Model::DisableSiteMonitorsRequest; - -DisableSiteMonitorsRequest::DisableSiteMonitorsRequest() : - RpcServiceRequest("cms", "2019-01-01", "DisableSiteMonitors") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableSiteMonitorsRequest::~DisableSiteMonitorsRequest() -{} - -std::string DisableSiteMonitorsRequest::getTaskIds()const -{ - return taskIds_; + */ + +#include + +using AlibabaCloud::Cms::Model::DisableSiteMonitorsRequest; + +DisableSiteMonitorsRequest::DisableSiteMonitorsRequest() + : RpcServiceRequest("cms", "2019-01-01", "DisableSiteMonitors") { + setMethod(HttpRequest::Method::Post); } -void DisableSiteMonitorsRequest::setTaskIds(const std::string& taskIds) -{ - taskIds_ = taskIds; - setParameter("TaskIds", taskIds); +DisableSiteMonitorsRequest::~DisableSiteMonitorsRequest() {} + +std::string DisableSiteMonitorsRequest::getTaskIds() const { + return taskIds_; +} + +void DisableSiteMonitorsRequest::setTaskIds(const std::string &taskIds) { + taskIds_ = taskIds; + setParameter(std::string("TaskIds"), taskIds); } diff --git a/cms/src/model/EnableActiveMetricRuleRequest.cc b/cms/src/model/EnableActiveMetricRuleRequest.cc index 31f41ca4a..f76d3cc19 100644 --- a/cms/src/model/EnableActiveMetricRuleRequest.cc +++ b/cms/src/model/EnableActiveMetricRuleRequest.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::Cms::Model::EnableActiveMetricRuleRequest; - -EnableActiveMetricRuleRequest::EnableActiveMetricRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "EnableActiveMetricRule") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableActiveMetricRuleRequest::~EnableActiveMetricRuleRequest() -{} - -std::string EnableActiveMetricRuleRequest::getProduct()const -{ - return product_; + */ + +#include + +using AlibabaCloud::Cms::Model::EnableActiveMetricRuleRequest; + +EnableActiveMetricRuleRequest::EnableActiveMetricRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "EnableActiveMetricRule") { + setMethod(HttpRequest::Method::Post); } -void EnableActiveMetricRuleRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); +EnableActiveMetricRuleRequest::~EnableActiveMetricRuleRequest() {} + +std::string EnableActiveMetricRuleRequest::getProduct() const { + return product_; +} + +void EnableActiveMetricRuleRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("Product"), product); } diff --git a/cms/src/model/EnableActiveMetricRuleResult.cc b/cms/src/model/EnableActiveMetricRuleResult.cc index 6582053b1..a1fc189ee 100644 --- a/cms/src/model/EnableActiveMetricRuleResult.cc +++ b/cms/src/model/EnableActiveMetricRuleResult.cc @@ -39,12 +39,12 @@ void EnableActiveMetricRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/EnableEventRulesRequest.cc b/cms/src/model/EnableEventRulesRequest.cc index 7ba44861e..682527b2f 100644 --- a/cms/src/model/EnableEventRulesRequest.cc +++ b/cms/src/model/EnableEventRulesRequest.cc @@ -1,42 +1,35 @@ /* * 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::Cms::Model::EnableEventRulesRequest; - -EnableEventRulesRequest::EnableEventRulesRequest() : - RpcServiceRequest("cms", "2019-01-01", "EnableEventRules") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableEventRulesRequest::~EnableEventRulesRequest() -{} - -std::vector EnableEventRulesRequest::getRuleNames()const -{ - return ruleNames_; + */ + +#include + +using AlibabaCloud::Cms::Model::EnableEventRulesRequest; + +EnableEventRulesRequest::EnableEventRulesRequest() + : RpcServiceRequest("cms", "2019-01-01", "EnableEventRules") { + setMethod(HttpRequest::Method::Post); } -void EnableEventRulesRequest::setRuleNames(const std::vector& ruleNames) -{ - ruleNames_ = ruleNames; - for(int dep1 = 0; dep1!= ruleNames.size(); dep1++) { - setParameter("RuleNames."+ std::to_string(dep1), ruleNames.at(dep1)); - } +EnableEventRulesRequest::~EnableEventRulesRequest() {} + +std::vector EnableEventRulesRequest::getRuleNames() const { + return ruleNames_; +} + +void EnableEventRulesRequest::setRuleNames(const std::vector &ruleNames) { + ruleNames_ = ruleNames; } diff --git a/cms/src/model/EnableEventRulesResult.cc b/cms/src/model/EnableEventRulesResult.cc index c6e6b140a..27b33869a 100644 --- a/cms/src/model/EnableEventRulesResult.cc +++ b/cms/src/model/EnableEventRulesResult.cc @@ -39,12 +39,12 @@ void EnableEventRulesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/EnableHostAvailabilityRequest.cc b/cms/src/model/EnableHostAvailabilityRequest.cc index 5c37ddee1..04dc0b9bb 100644 --- a/cms/src/model/EnableHostAvailabilityRequest.cc +++ b/cms/src/model/EnableHostAvailabilityRequest.cc @@ -1,42 +1,35 @@ /* * 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::Cms::Model::EnableHostAvailabilityRequest; - -EnableHostAvailabilityRequest::EnableHostAvailabilityRequest() : - RpcServiceRequest("cms", "2019-01-01", "EnableHostAvailability") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableHostAvailabilityRequest::~EnableHostAvailabilityRequest() -{} - -std::vector EnableHostAvailabilityRequest::getId()const -{ - return id_; + */ + +#include + +using AlibabaCloud::Cms::Model::EnableHostAvailabilityRequest; + +EnableHostAvailabilityRequest::EnableHostAvailabilityRequest() + : RpcServiceRequest("cms", "2019-01-01", "EnableHostAvailability") { + setMethod(HttpRequest::Method::Post); } -void EnableHostAvailabilityRequest::setId(const std::vector& id) -{ - id_ = id; - for(int dep1 = 0; dep1!= id.size(); dep1++) { - setParameter("Id."+ std::to_string(dep1), std::to_string(id.at(dep1))); - } +EnableHostAvailabilityRequest::~EnableHostAvailabilityRequest() {} + +std::vector EnableHostAvailabilityRequest::getId() const { + return id_; +} + +void EnableHostAvailabilityRequest::setId(const std::vector &id) { + id_ = id; } diff --git a/cms/src/model/EnableMetricRulesRequest.cc b/cms/src/model/EnableMetricRulesRequest.cc index f2ffc99de..3de08c664 100644 --- a/cms/src/model/EnableMetricRulesRequest.cc +++ b/cms/src/model/EnableMetricRulesRequest.cc @@ -1,42 +1,35 @@ /* * 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::Cms::Model::EnableMetricRulesRequest; - -EnableMetricRulesRequest::EnableMetricRulesRequest() : - RpcServiceRequest("cms", "2019-01-01", "EnableMetricRules") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableMetricRulesRequest::~EnableMetricRulesRequest() -{} - -std::vector EnableMetricRulesRequest::getRuleId()const -{ - return ruleId_; + */ + +#include + +using AlibabaCloud::Cms::Model::EnableMetricRulesRequest; + +EnableMetricRulesRequest::EnableMetricRulesRequest() + : RpcServiceRequest("cms", "2019-01-01", "EnableMetricRules") { + setMethod(HttpRequest::Method::Post); } -void EnableMetricRulesRequest::setRuleId(const std::vector& ruleId) -{ - ruleId_ = ruleId; - for(int dep1 = 0; dep1!= ruleId.size(); dep1++) { - setParameter("RuleId."+ std::to_string(dep1), ruleId.at(dep1)); - } +EnableMetricRulesRequest::~EnableMetricRulesRequest() {} + +std::vector EnableMetricRulesRequest::getRuleId() const { + return ruleId_; +} + +void EnableMetricRulesRequest::setRuleId(const std::vector &ruleId) { + ruleId_ = ruleId; } diff --git a/cms/src/model/EnableMetricRulesResult.cc b/cms/src/model/EnableMetricRulesResult.cc index c733779bd..812ead379 100644 --- a/cms/src/model/EnableMetricRulesResult.cc +++ b/cms/src/model/EnableMetricRulesResult.cc @@ -39,12 +39,12 @@ void EnableMetricRulesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/EnableSiteMonitorsRequest.cc b/cms/src/model/EnableSiteMonitorsRequest.cc index ed661cc88..070312fad 100644 --- a/cms/src/model/EnableSiteMonitorsRequest.cc +++ b/cms/src/model/EnableSiteMonitorsRequest.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::Cms::Model::EnableSiteMonitorsRequest; - -EnableSiteMonitorsRequest::EnableSiteMonitorsRequest() : - RpcServiceRequest("cms", "2019-01-01", "EnableSiteMonitors") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableSiteMonitorsRequest::~EnableSiteMonitorsRequest() -{} - -std::string EnableSiteMonitorsRequest::getTaskIds()const -{ - return taskIds_; + */ + +#include + +using AlibabaCloud::Cms::Model::EnableSiteMonitorsRequest; + +EnableSiteMonitorsRequest::EnableSiteMonitorsRequest() + : RpcServiceRequest("cms", "2019-01-01", "EnableSiteMonitors") { + setMethod(HttpRequest::Method::Post); } -void EnableSiteMonitorsRequest::setTaskIds(const std::string& taskIds) -{ - taskIds_ = taskIds; - setParameter("TaskIds", taskIds); +EnableSiteMonitorsRequest::~EnableSiteMonitorsRequest() {} + +std::string EnableSiteMonitorsRequest::getTaskIds() const { + return taskIds_; +} + +void EnableSiteMonitorsRequest::setTaskIds(const std::string &taskIds) { + taskIds_ = taskIds; + setParameter(std::string("TaskIds"), taskIds); } diff --git a/cms/src/model/InstallMonitoringAgentRequest.cc b/cms/src/model/InstallMonitoringAgentRequest.cc index 0bc8a1695..ae7989c50 100644 --- a/cms/src/model/InstallMonitoringAgentRequest.cc +++ b/cms/src/model/InstallMonitoringAgentRequest.cc @@ -1,64 +1,53 @@ /* * 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::Cms::Model::InstallMonitoringAgentRequest; - -InstallMonitoringAgentRequest::InstallMonitoringAgentRequest() : - RpcServiceRequest("cms", "2019-01-01", "InstallMonitoringAgent") -{ - setMethod(HttpRequest::Method::Post); -} - -InstallMonitoringAgentRequest::~InstallMonitoringAgentRequest() -{} - -std::vector InstallMonitoringAgentRequest::getInstanceIds()const -{ - return instanceIds_; + */ + +#include + +using AlibabaCloud::Cms::Model::InstallMonitoringAgentRequest; + +InstallMonitoringAgentRequest::InstallMonitoringAgentRequest() + : RpcServiceRequest("cms", "2019-01-01", "InstallMonitoringAgent") { + setMethod(HttpRequest::Method::Post); } -void InstallMonitoringAgentRequest::setInstanceIds(const std::vector& instanceIds) -{ - instanceIds_ = instanceIds; - for(int dep1 = 0; dep1!= instanceIds.size(); dep1++) { - setParameter("InstanceIds."+ std::to_string(dep1), instanceIds.at(dep1)); - } +InstallMonitoringAgentRequest::~InstallMonitoringAgentRequest() {} + +std::vector InstallMonitoringAgentRequest::getInstanceIds() const { + return instanceIds_; } -bool InstallMonitoringAgentRequest::getForce()const -{ - return force_; +void InstallMonitoringAgentRequest::setInstanceIds(const std::vector &instanceIds) { + instanceIds_ = instanceIds; } -void InstallMonitoringAgentRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +bool InstallMonitoringAgentRequest::getForce() const { + return force_; } -std::string InstallMonitoringAgentRequest::getInstallCommand()const -{ - return installCommand_; +void InstallMonitoringAgentRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); } -void InstallMonitoringAgentRequest::setInstallCommand(const std::string& installCommand) -{ - installCommand_ = installCommand; - setParameter("InstallCommand", installCommand); +std::string InstallMonitoringAgentRequest::getInstallCommand() const { + return installCommand_; +} + +void InstallMonitoringAgentRequest::setInstallCommand(const std::string &installCommand) { + installCommand_ = installCommand; + setParameter(std::string("InstallCommand"), installCommand); } diff --git a/cms/src/model/ModifyGroupMonitoringAgentProcessRequest.cc b/cms/src/model/ModifyGroupMonitoringAgentProcessRequest.cc index 694271e4c..f625e03d3 100644 --- a/cms/src/model/ModifyGroupMonitoringAgentProcessRequest.cc +++ b/cms/src/model/ModifyGroupMonitoringAgentProcessRequest.cc @@ -1,85 +1,75 @@ /* * 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::Cms::Model::ModifyGroupMonitoringAgentProcessRequest; - -ModifyGroupMonitoringAgentProcessRequest::ModifyGroupMonitoringAgentProcessRequest() : - RpcServiceRequest("cms", "2019-01-01", "ModifyGroupMonitoringAgentProcess") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyGroupMonitoringAgentProcessRequest::~ModifyGroupMonitoringAgentProcessRequest() -{} - -std::vector ModifyGroupMonitoringAgentProcessRequest::getAlertConfig()const -{ - return alertConfig_; + */ + +#include + +using AlibabaCloud::Cms::Model::ModifyGroupMonitoringAgentProcessRequest; + +ModifyGroupMonitoringAgentProcessRequest::ModifyGroupMonitoringAgentProcessRequest() + : RpcServiceRequest("cms", "2019-01-01", "ModifyGroupMonitoringAgentProcess") { + setMethod(HttpRequest::Method::Post); } -void ModifyGroupMonitoringAgentProcessRequest::setAlertConfig(const std::vector& alertConfig) -{ - alertConfig_ = alertConfig; - for(int dep1 = 0; dep1!= alertConfig.size(); dep1++) { - auto alertConfigObj = alertConfig.at(dep1); - std::string alertConfigObjStr = "AlertConfig." + std::to_string(dep1 + 1); - setParameter(alertConfigObjStr + ".Times", alertConfigObj.times); - setParameter(alertConfigObjStr + ".NoEffectiveInterval", alertConfigObj.noEffectiveInterval); - setParameter(alertConfigObjStr + ".Webhook", alertConfigObj.webhook); - setParameter(alertConfigObjStr + ".SilenceTime", alertConfigObj.silenceTime); - setParameter(alertConfigObjStr + ".Threshold", alertConfigObj.threshold); - setParameter(alertConfigObjStr + ".EffectiveInterval", alertConfigObj.effectiveInterval); - setParameter(alertConfigObjStr + ".ComparisonOperator", alertConfigObj.comparisonOperator); - setParameter(alertConfigObjStr + ".EscalationsLevel", alertConfigObj.escalationsLevel); - setParameter(alertConfigObjStr + ".Statistics", alertConfigObj.statistics); - } +ModifyGroupMonitoringAgentProcessRequest::~ModifyGroupMonitoringAgentProcessRequest() {} + +std::vector ModifyGroupMonitoringAgentProcessRequest::getAlertConfig() const { + return alertConfig_; } -std::string ModifyGroupMonitoringAgentProcessRequest::getGroupId()const -{ - return groupId_; +void ModifyGroupMonitoringAgentProcessRequest::setAlertConfig(const std::vector &alertConfig) { + alertConfig_ = alertConfig; + for(int dep1 = 0; dep1 != alertConfig.size(); dep1++) { + auto alertConfigObj = alertConfig.at(dep1); + std::string alertConfigObjStr = std::string("AlertConfig") + "." + std::to_string(dep1 + 1); + setParameter(alertConfigObjStr + ".Times", alertConfigObj.times); + setParameter(alertConfigObjStr + ".Webhook", alertConfigObj.webhook); + setParameter(alertConfigObjStr + ".NoEffectiveInterval", alertConfigObj.noEffectiveInterval); + setParameter(alertConfigObjStr + ".SilenceTime", alertConfigObj.silenceTime); + setParameter(alertConfigObjStr + ".Threshold", alertConfigObj.threshold); + setParameter(alertConfigObjStr + ".ComparisonOperator", alertConfigObj.comparisonOperator); + setParameter(alertConfigObjStr + ".EffectiveInterval", alertConfigObj.effectiveInterval); + setParameter(alertConfigObjStr + ".EscalationsLevel", alertConfigObj.escalationsLevel); + setParameter(alertConfigObjStr + ".Statistics", alertConfigObj.statistics); + } } -void ModifyGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string ModifyGroupMonitoringAgentProcessRequest::getGroupId() const { + return groupId_; } -std::string ModifyGroupMonitoringAgentProcessRequest::getMatchExpressFilterRelation()const -{ - return matchExpressFilterRelation_; +void ModifyGroupMonitoringAgentProcessRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void ModifyGroupMonitoringAgentProcessRequest::setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation) -{ - matchExpressFilterRelation_ = matchExpressFilterRelation; - setParameter("MatchExpressFilterRelation", matchExpressFilterRelation); +std::string ModifyGroupMonitoringAgentProcessRequest::getMatchExpressFilterRelation() const { + return matchExpressFilterRelation_; } -std::string ModifyGroupMonitoringAgentProcessRequest::getId()const -{ - return id_; +void ModifyGroupMonitoringAgentProcessRequest::setMatchExpressFilterRelation(const std::string &matchExpressFilterRelation) { + matchExpressFilterRelation_ = matchExpressFilterRelation; + setParameter(std::string("MatchExpressFilterRelation"), matchExpressFilterRelation); } -void ModifyGroupMonitoringAgentProcessRequest::setId(const std::string& id) -{ - id_ = id; - setParameter("Id", id); +std::string ModifyGroupMonitoringAgentProcessRequest::getId() const { + return id_; +} + +void ModifyGroupMonitoringAgentProcessRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("Id"), id); } diff --git a/cms/src/model/ModifyHostAvailabilityRequest.cc b/cms/src/model/ModifyHostAvailabilityRequest.cc index 3de74003b..7fcf7d4cf 100644 --- a/cms/src/model/ModifyHostAvailabilityRequest.cc +++ b/cms/src/model/ModifyHostAvailabilityRequest.cc @@ -1,259 +1,214 @@ /* * 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::Cms::Model::ModifyHostAvailabilityRequest; - -ModifyHostAvailabilityRequest::ModifyHostAvailabilityRequest() : - RpcServiceRequest("cms", "2019-01-01", "ModifyHostAvailability") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyHostAvailabilityRequest::~ModifyHostAvailabilityRequest() -{} - -std::string ModifyHostAvailabilityRequest::getTaskOptionHttpMethod()const -{ - return taskOptionHttpMethod_; + */ + +#include + +using AlibabaCloud::Cms::Model::ModifyHostAvailabilityRequest; + +ModifyHostAvailabilityRequest::ModifyHostAvailabilityRequest() + : RpcServiceRequest("cms", "2019-01-01", "ModifyHostAvailability") { + setMethod(HttpRequest::Method::Post); } -void ModifyHostAvailabilityRequest::setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod) -{ - taskOptionHttpMethod_ = taskOptionHttpMethod; - setParameter("TaskOptionHttpMethod", taskOptionHttpMethod); +ModifyHostAvailabilityRequest::~ModifyHostAvailabilityRequest() {} + +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpMethod() const { + return taskOptionHttpMethod_; } -std::string ModifyHostAvailabilityRequest::getTaskOptionHttpHeader()const -{ - return taskOptionHttpHeader_; +void ModifyHostAvailabilityRequest::setTaskOptionHttpMethod(const std::string &taskOptionHttpMethod) { + taskOptionHttpMethod_ = taskOptionHttpMethod; + setParameter(std::string("TaskOption.HttpMethod"), taskOptionHttpMethod); } -void ModifyHostAvailabilityRequest::setTaskOptionHttpHeader(const std::string& taskOptionHttpHeader) -{ - taskOptionHttpHeader_ = taskOptionHttpHeader; - setParameter("TaskOptionHttpHeader", taskOptionHttpHeader); +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpHeader() const { + return taskOptionHttpHeader_; } -std::vector ModifyHostAvailabilityRequest::getAlertConfigEscalationList()const -{ - return alertConfigEscalationList_; +void ModifyHostAvailabilityRequest::setTaskOptionHttpHeader(const std::string &taskOptionHttpHeader) { + taskOptionHttpHeader_ = taskOptionHttpHeader; + setParameter(std::string("TaskOption.HttpHeader"), taskOptionHttpHeader); } -void ModifyHostAvailabilityRequest::setAlertConfigEscalationList(const std::vector& alertConfigEscalationList) -{ - alertConfigEscalationList_ = alertConfigEscalationList; - for(int dep1 = 0; dep1!= alertConfigEscalationList.size(); dep1++) { - auto alertConfigEscalationListObj = alertConfigEscalationList.at(dep1); - std::string alertConfigEscalationListObjStr = "AlertConfigEscalationList." + std::to_string(dep1 + 1); - setParameter(alertConfigEscalationListObjStr + ".Times", std::to_string(alertConfigEscalationListObj.times)); - setParameter(alertConfigEscalationListObjStr + ".MetricName", alertConfigEscalationListObj.metricName); - setParameter(alertConfigEscalationListObjStr + ".Value", alertConfigEscalationListObj.value); - setParameter(alertConfigEscalationListObjStr + "._Operator", alertConfigEscalationListObj._operator); - setParameter(alertConfigEscalationListObjStr + ".Aggregate", alertConfigEscalationListObj.aggregate); - } +std::vector ModifyHostAvailabilityRequest::getAlertConfigEscalationList() const { + return alertConfigEscalationList_; } -std::string ModifyHostAvailabilityRequest::getTaskName()const -{ - return taskName_; +void ModifyHostAvailabilityRequest::setAlertConfigEscalationList(const std::vector &alertConfigEscalationList) { + alertConfigEscalationList_ = alertConfigEscalationList; + for(int dep1 = 0; dep1 != alertConfigEscalationList.size(); dep1++) { + auto alertConfigEscalationListObj = alertConfigEscalationList.at(dep1); + std::string alertConfigEscalationListObjStr = std::string("AlertConfigEscalationList") + "." + std::to_string(dep1 + 1); + setParameter(alertConfigEscalationListObjStr + ".Times", std::to_string(alertConfigEscalationListObj.times)); + setParameter(alertConfigEscalationListObjStr + ".MetricName", alertConfigEscalationListObj.metricName); + setParameter(alertConfigEscalationListObjStr + ".Value", alertConfigEscalationListObj.value); + setParameter(alertConfigEscalationListObjStr + ".Operator", alertConfigEscalationListObj._operator); + setParameter(alertConfigEscalationListObjStr + ".Aggregate", alertConfigEscalationListObj.aggregate); + } } -void ModifyHostAvailabilityRequest::setTaskName(const std::string& taskName) -{ - taskName_ = taskName; - setParameter("TaskName", taskName); +std::string ModifyHostAvailabilityRequest::getTaskName() const { + return taskName_; } -int ModifyHostAvailabilityRequest::getAlertConfigSilenceTime()const -{ - return alertConfigSilenceTime_; +void ModifyHostAvailabilityRequest::setTaskName(const std::string &taskName) { + taskName_ = taskName; + setParameter(std::string("TaskName"), taskName); } -void ModifyHostAvailabilityRequest::setAlertConfigSilenceTime(int alertConfigSilenceTime) -{ - alertConfigSilenceTime_ = alertConfigSilenceTime; - setParameter("AlertConfigSilenceTime", std::to_string(alertConfigSilenceTime)); +int ModifyHostAvailabilityRequest::getAlertConfigSilenceTime() const { + return alertConfigSilenceTime_; } -std::string ModifyHostAvailabilityRequest::getTaskOptionHttpResponseCharset()const -{ - return taskOptionHttpResponseCharset_; +void ModifyHostAvailabilityRequest::setAlertConfigSilenceTime(int alertConfigSilenceTime) { + alertConfigSilenceTime_ = alertConfigSilenceTime; + setParameter(std::string("AlertConfig.SilenceTime"), std::to_string(alertConfigSilenceTime)); } -void ModifyHostAvailabilityRequest::setTaskOptionHttpResponseCharset(const std::string& taskOptionHttpResponseCharset) -{ - taskOptionHttpResponseCharset_ = taskOptionHttpResponseCharset; - setParameter("TaskOptionHttpResponseCharset", taskOptionHttpResponseCharset); +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpResponseCharset() const { + return taskOptionHttpResponseCharset_; } -bool ModifyHostAvailabilityRequest::getTaskOptionHttpNegative()const -{ - return taskOptionHttpNegative_; +void ModifyHostAvailabilityRequest::setTaskOptionHttpResponseCharset(const std::string &taskOptionHttpResponseCharset) { + taskOptionHttpResponseCharset_ = taskOptionHttpResponseCharset; + setParameter(std::string("TaskOption.HttpResponseCharset"), taskOptionHttpResponseCharset); } -void ModifyHostAvailabilityRequest::setTaskOptionHttpNegative(bool taskOptionHttpNegative) -{ - taskOptionHttpNegative_ = taskOptionHttpNegative; - setParameter("TaskOptionHttpNegative", taskOptionHttpNegative ? "true" : "false"); +bool ModifyHostAvailabilityRequest::getTaskOptionHttpNegative() const { + return taskOptionHttpNegative_; } -int ModifyHostAvailabilityRequest::getTaskOptionInterval()const -{ - return taskOptionInterval_; +void ModifyHostAvailabilityRequest::setTaskOptionHttpNegative(bool taskOptionHttpNegative) { + taskOptionHttpNegative_ = taskOptionHttpNegative; + setParameter(std::string("TaskOption.HttpNegative"), taskOptionHttpNegative ? "true" : "false"); } -void ModifyHostAvailabilityRequest::setTaskOptionInterval(int taskOptionInterval) -{ - taskOptionInterval_ = taskOptionInterval; - setParameter("TaskOptionInterval", std::to_string(taskOptionInterval)); +int ModifyHostAvailabilityRequest::getTaskOptionInterval() const { + return taskOptionInterval_; } -int ModifyHostAvailabilityRequest::getAlertConfigNotifyType()const -{ - return alertConfigNotifyType_; +void ModifyHostAvailabilityRequest::setTaskOptionInterval(int taskOptionInterval) { + taskOptionInterval_ = taskOptionInterval; + setParameter(std::string("TaskOption.Interval"), std::to_string(taskOptionInterval)); } -void ModifyHostAvailabilityRequest::setAlertConfigNotifyType(int alertConfigNotifyType) -{ - alertConfigNotifyType_ = alertConfigNotifyType; - setParameter("AlertConfigNotifyType", std::to_string(alertConfigNotifyType)); +int ModifyHostAvailabilityRequest::getAlertConfigNotifyType() const { + return alertConfigNotifyType_; } -std::string ModifyHostAvailabilityRequest::getTaskOptionTelnetOrPingHost()const -{ - return taskOptionTelnetOrPingHost_; +void ModifyHostAvailabilityRequest::setAlertConfigNotifyType(int alertConfigNotifyType) { + alertConfigNotifyType_ = alertConfigNotifyType; + setParameter(std::string("AlertConfig.NotifyType"), std::to_string(alertConfigNotifyType)); } -void ModifyHostAvailabilityRequest::setTaskOptionTelnetOrPingHost(const std::string& taskOptionTelnetOrPingHost) -{ - taskOptionTelnetOrPingHost_ = taskOptionTelnetOrPingHost; - setParameter("TaskOptionTelnetOrPingHost", taskOptionTelnetOrPingHost); +std::string ModifyHostAvailabilityRequest::getTaskOptionTelnetOrPingHost() const { + return taskOptionTelnetOrPingHost_; } -std::string ModifyHostAvailabilityRequest::getTaskOptionHttpResponseMatchContent()const -{ - return taskOptionHttpResponseMatchContent_; +void ModifyHostAvailabilityRequest::setTaskOptionTelnetOrPingHost(const std::string &taskOptionTelnetOrPingHost) { + taskOptionTelnetOrPingHost_ = taskOptionTelnetOrPingHost; + setParameter(std::string("TaskOption.TelnetOrPingHost"), taskOptionTelnetOrPingHost); } -void ModifyHostAvailabilityRequest::setTaskOptionHttpResponseMatchContent(const std::string& taskOptionHttpResponseMatchContent) -{ - taskOptionHttpResponseMatchContent_ = taskOptionHttpResponseMatchContent; - setParameter("TaskOptionHttpResponseMatchContent", taskOptionHttpResponseMatchContent); +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpResponseMatchContent() const { + return taskOptionHttpResponseMatchContent_; } -long ModifyHostAvailabilityRequest::getId()const -{ - return id_; +void ModifyHostAvailabilityRequest::setTaskOptionHttpResponseMatchContent(const std::string &taskOptionHttpResponseMatchContent) { + taskOptionHttpResponseMatchContent_ = taskOptionHttpResponseMatchContent; + setParameter(std::string("TaskOption.HttpResponseMatchContent"), taskOptionHttpResponseMatchContent); } -void ModifyHostAvailabilityRequest::setId(long id) -{ - id_ = id; - setParameter("Id", std::to_string(id)); +long ModifyHostAvailabilityRequest::getId() const { + return id_; } -std::vector ModifyHostAvailabilityRequest::getInstanceList()const -{ - return instanceList_; +void ModifyHostAvailabilityRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); } -void ModifyHostAvailabilityRequest::setInstanceList(const std::vector& instanceList) -{ - instanceList_ = instanceList; - for(int dep1 = 0; dep1!= instanceList.size(); dep1++) { - setParameter("InstanceList."+ std::to_string(dep1), instanceList.at(dep1)); - } +std::vector ModifyHostAvailabilityRequest::getInstanceList() const { + return instanceList_; } -long ModifyHostAvailabilityRequest::getGroupId()const -{ - return groupId_; +void ModifyHostAvailabilityRequest::setInstanceList(const std::vector &instanceList) { + instanceList_ = instanceList; } -void ModifyHostAvailabilityRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +long ModifyHostAvailabilityRequest::getGroupId() const { + return groupId_; } -int ModifyHostAvailabilityRequest::getAlertConfigEndTime()const -{ - return alertConfigEndTime_; +void ModifyHostAvailabilityRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } -void ModifyHostAvailabilityRequest::setAlertConfigEndTime(int alertConfigEndTime) -{ - alertConfigEndTime_ = alertConfigEndTime; - setParameter("AlertConfigEndTime", std::to_string(alertConfigEndTime)); +int ModifyHostAvailabilityRequest::getAlertConfigEndTime() const { + return alertConfigEndTime_; } -std::string ModifyHostAvailabilityRequest::getTaskOptionHttpURI()const -{ - return taskOptionHttpURI_; +void ModifyHostAvailabilityRequest::setAlertConfigEndTime(int alertConfigEndTime) { + alertConfigEndTime_ = alertConfigEndTime; + setParameter(std::string("AlertConfig.EndTime"), std::to_string(alertConfigEndTime)); } -void ModifyHostAvailabilityRequest::setTaskOptionHttpURI(const std::string& taskOptionHttpURI) -{ - taskOptionHttpURI_ = taskOptionHttpURI; - setParameter("TaskOptionHttpURI", taskOptionHttpURI); +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpURI() const { + return taskOptionHttpURI_; } -std::string ModifyHostAvailabilityRequest::getTaskScope()const -{ - return taskScope_; +void ModifyHostAvailabilityRequest::setTaskOptionHttpURI(const std::string &taskOptionHttpURI) { + taskOptionHttpURI_ = taskOptionHttpURI; + setParameter(std::string("TaskOption.HttpURI"), taskOptionHttpURI); } -void ModifyHostAvailabilityRequest::setTaskScope(const std::string& taskScope) -{ - taskScope_ = taskScope; - setParameter("TaskScope", taskScope); +std::string ModifyHostAvailabilityRequest::getTaskScope() const { + return taskScope_; } -std::string ModifyHostAvailabilityRequest::getTaskOptionHttpPostContent()const -{ - return taskOptionHttpPostContent_; +void ModifyHostAvailabilityRequest::setTaskScope(const std::string &taskScope) { + taskScope_ = taskScope; + setParameter(std::string("TaskScope"), taskScope); } -void ModifyHostAvailabilityRequest::setTaskOptionHttpPostContent(const std::string& taskOptionHttpPostContent) -{ - taskOptionHttpPostContent_ = taskOptionHttpPostContent; - setParameter("TaskOptionHttpPostContent", taskOptionHttpPostContent); +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpPostContent() const { + return taskOptionHttpPostContent_; } -int ModifyHostAvailabilityRequest::getAlertConfigStartTime()const -{ - return alertConfigStartTime_; +void ModifyHostAvailabilityRequest::setTaskOptionHttpPostContent(const std::string &taskOptionHttpPostContent) { + taskOptionHttpPostContent_ = taskOptionHttpPostContent; + setParameter(std::string("TaskOption.HttpPostContent"), taskOptionHttpPostContent); } -void ModifyHostAvailabilityRequest::setAlertConfigStartTime(int alertConfigStartTime) -{ - alertConfigStartTime_ = alertConfigStartTime; - setParameter("AlertConfigStartTime", std::to_string(alertConfigStartTime)); +int ModifyHostAvailabilityRequest::getAlertConfigStartTime() const { + return alertConfigStartTime_; } -std::string ModifyHostAvailabilityRequest::getAlertConfigWebHook()const -{ - return alertConfigWebHook_; +void ModifyHostAvailabilityRequest::setAlertConfigStartTime(int alertConfigStartTime) { + alertConfigStartTime_ = alertConfigStartTime; + setParameter(std::string("AlertConfig.StartTime"), std::to_string(alertConfigStartTime)); } -void ModifyHostAvailabilityRequest::setAlertConfigWebHook(const std::string& alertConfigWebHook) -{ - alertConfigWebHook_ = alertConfigWebHook; - setParameter("AlertConfigWebHook", alertConfigWebHook); +std::string ModifyHostAvailabilityRequest::getAlertConfigWebHook() const { + return alertConfigWebHook_; +} + +void ModifyHostAvailabilityRequest::setAlertConfigWebHook(const std::string &alertConfigWebHook) { + alertConfigWebHook_ = alertConfigWebHook; + setParameter(std::string("AlertConfig.WebHook"), alertConfigWebHook); } diff --git a/cms/src/model/ModifyHostInfoRequest.cc b/cms/src/model/ModifyHostInfoRequest.cc index 13844b1a3..ff88db3b9 100644 --- a/cms/src/model/ModifyHostInfoRequest.cc +++ b/cms/src/model/ModifyHostInfoRequest.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::Cms::Model::ModifyHostInfoRequest; - -ModifyHostInfoRequest::ModifyHostInfoRequest() : - RpcServiceRequest("cms", "2019-01-01", "ModifyHostInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyHostInfoRequest::~ModifyHostInfoRequest() -{} - -std::string ModifyHostInfoRequest::getHostName()const -{ - return hostName_; + */ + +#include + +using AlibabaCloud::Cms::Model::ModifyHostInfoRequest; + +ModifyHostInfoRequest::ModifyHostInfoRequest() + : RpcServiceRequest("cms", "2019-01-01", "ModifyHostInfo") { + setMethod(HttpRequest::Method::Post); } -void ModifyHostInfoRequest::setHostName(const std::string& hostName) -{ - hostName_ = hostName; - setParameter("HostName", hostName); +ModifyHostInfoRequest::~ModifyHostInfoRequest() {} + +std::string ModifyHostInfoRequest::getHostName() const { + return hostName_; } -std::string ModifyHostInfoRequest::getInstanceId()const -{ - return instanceId_; +void ModifyHostInfoRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); } -void ModifyHostInfoRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyHostInfoRequest::getInstanceId() const { + return instanceId_; +} + +void ModifyHostInfoRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/cms/src/model/ModifyMetricRuleTemplateRequest.cc b/cms/src/model/ModifyMetricRuleTemplateRequest.cc index 388e1329c..3bbf32a07 100644 --- a/cms/src/model/ModifyMetricRuleTemplateRequest.cc +++ b/cms/src/model/ModifyMetricRuleTemplateRequest.cc @@ -1,106 +1,94 @@ /* * 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::Cms::Model::ModifyMetricRuleTemplateRequest; - -ModifyMetricRuleTemplateRequest::ModifyMetricRuleTemplateRequest() : - RpcServiceRequest("cms", "2019-01-01", "ModifyMetricRuleTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyMetricRuleTemplateRequest::~ModifyMetricRuleTemplateRequest() -{} - -long ModifyMetricRuleTemplateRequest::getRestVersion()const -{ - return restVersion_; + */ + +#include + +using AlibabaCloud::Cms::Model::ModifyMetricRuleTemplateRequest; + +ModifyMetricRuleTemplateRequest::ModifyMetricRuleTemplateRequest() + : RpcServiceRequest("cms", "2019-01-01", "ModifyMetricRuleTemplate") { + setMethod(HttpRequest::Method::Post); } -void ModifyMetricRuleTemplateRequest::setRestVersion(long restVersion) -{ - restVersion_ = restVersion; - setParameter("RestVersion", std::to_string(restVersion)); +ModifyMetricRuleTemplateRequest::~ModifyMetricRuleTemplateRequest() {} + +long ModifyMetricRuleTemplateRequest::getRestVersion() const { + return restVersion_; } -std::string ModifyMetricRuleTemplateRequest::getDescription()const -{ - return description_; +void ModifyMetricRuleTemplateRequest::setRestVersion(long restVersion) { + restVersion_ = restVersion; + setParameter(std::string("RestVersion"), std::to_string(restVersion)); } -void ModifyMetricRuleTemplateRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyMetricRuleTemplateRequest::getDescription() const { + return description_; } -long ModifyMetricRuleTemplateRequest::getTemplateId()const -{ - return templateId_; +void ModifyMetricRuleTemplateRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyMetricRuleTemplateRequest::setTemplateId(long templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", std::to_string(templateId)); +long ModifyMetricRuleTemplateRequest::getTemplateId() const { + return templateId_; } -std::string ModifyMetricRuleTemplateRequest::getName()const -{ - return name_; +void ModifyMetricRuleTemplateRequest::setTemplateId(long templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), std::to_string(templateId)); } -void ModifyMetricRuleTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyMetricRuleTemplateRequest::getName() const { + return name_; } -std::vector ModifyMetricRuleTemplateRequest::getAlertTemplates()const -{ - return alertTemplates_; +void ModifyMetricRuleTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void ModifyMetricRuleTemplateRequest::setAlertTemplates(const std::vector& alertTemplates) -{ - alertTemplates_ = alertTemplates; - for(int dep1 = 0; dep1!= alertTemplates.size(); dep1++) { - auto alertTemplatesObj = alertTemplates.at(dep1); - std::string alertTemplatesObjStr = "AlertTemplates." + std::to_string(dep1 + 1); - setParameter(alertTemplatesObjStr + ".Period", std::to_string(alertTemplatesObj.period)); - setParameter(alertTemplatesObjStr + ".EscalationsWarnThreshold", alertTemplatesObj.escalationsWarnThreshold); - setParameter(alertTemplatesObjStr + ".Webhook", alertTemplatesObj.webhook); - setParameter(alertTemplatesObjStr + ".EscalationsWarnComparisonOperator", alertTemplatesObj.escalationsWarnComparisonOperator); - setParameter(alertTemplatesObjStr + ".EscalationsCriticalStatistics", alertTemplatesObj.escalationsCriticalStatistics); - setParameter(alertTemplatesObjStr + ".EscalationsInfoTimes", std::to_string(alertTemplatesObj.escalationsInfoTimes)); - setParameter(alertTemplatesObjStr + ".RuleName", alertTemplatesObj.ruleName); - setParameter(alertTemplatesObjStr + ".EscalationsInfoStatistics", alertTemplatesObj.escalationsInfoStatistics); - setParameter(alertTemplatesObjStr + ".EscalationsCriticalTimes", std::to_string(alertTemplatesObj.escalationsCriticalTimes)); - setParameter(alertTemplatesObjStr + ".EscalationsInfoComparisonOperator", alertTemplatesObj.escalationsInfoComparisonOperator); - setParameter(alertTemplatesObjStr + ".EscalationsWarnStatistics", alertTemplatesObj.escalationsWarnStatistics); - setParameter(alertTemplatesObjStr + ".EscalationsInfoThreshold", alertTemplatesObj.escalationsInfoThreshold); - setParameter(alertTemplatesObjStr + "._Namespace", alertTemplatesObj._namespace); - setParameter(alertTemplatesObjStr + ".Selector", alertTemplatesObj.selector); - setParameter(alertTemplatesObjStr + ".MetricName", alertTemplatesObj.metricName); - setParameter(alertTemplatesObjStr + ".Category", alertTemplatesObj.category); - setParameter(alertTemplatesObjStr + ".EscalationsCriticalComparisonOperator", alertTemplatesObj.escalationsCriticalComparisonOperator); - setParameter(alertTemplatesObjStr + ".EscalationsWarnTimes", std::to_string(alertTemplatesObj.escalationsWarnTimes)); - setParameter(alertTemplatesObjStr + ".EscalationsCriticalThreshold", alertTemplatesObj.escalationsCriticalThreshold); - } +std::vector ModifyMetricRuleTemplateRequest::getAlertTemplates() const { + return alertTemplates_; +} + +void ModifyMetricRuleTemplateRequest::setAlertTemplates(const std::vector &alertTemplates) { + alertTemplates_ = alertTemplates; + for(int dep1 = 0; dep1 != alertTemplates.size(); dep1++) { + auto alertTemplatesObj = alertTemplates.at(dep1); + std::string alertTemplatesObjStr = std::string("AlertTemplates") + "." + std::to_string(dep1 + 1); + setParameter(alertTemplatesObjStr + ".Escalations.Warn.Threshold", alertTemplatesObj.escalationsWarnThreshold); + setParameter(alertTemplatesObjStr + ".Period", std::to_string(alertTemplatesObj.period)); + setParameter(alertTemplatesObjStr + ".Webhook", alertTemplatesObj.webhook); + setParameter(alertTemplatesObjStr + ".Escalations.Warn.ComparisonOperator", alertTemplatesObj.escalationsWarnComparisonOperator); + setParameter(alertTemplatesObjStr + ".Escalations.Critical.Statistics", alertTemplatesObj.escalationsCriticalStatistics); + setParameter(alertTemplatesObjStr + ".Escalations.Info.Times", std::to_string(alertTemplatesObj.escalationsInfoTimes)); + setParameter(alertTemplatesObjStr + ".RuleName", alertTemplatesObj.ruleName); + setParameter(alertTemplatesObjStr + ".Escalations.Info.Statistics", alertTemplatesObj.escalationsInfoStatistics); + setParameter(alertTemplatesObjStr + ".Escalations.Critical.Times", std::to_string(alertTemplatesObj.escalationsCriticalTimes)); + setParameter(alertTemplatesObjStr + ".Escalations.Info.ComparisonOperator", alertTemplatesObj.escalationsInfoComparisonOperator); + setParameter(alertTemplatesObjStr + ".Escalations.Info.Threshold", alertTemplatesObj.escalationsInfoThreshold); + setParameter(alertTemplatesObjStr + ".Escalations.Warn.Statistics", alertTemplatesObj.escalationsWarnStatistics); + setParameter(alertTemplatesObjStr + ".Namespace", alertTemplatesObj._namespace); + setParameter(alertTemplatesObjStr + ".Selector", alertTemplatesObj.selector); + setParameter(alertTemplatesObjStr + ".MetricName", alertTemplatesObj.metricName); + setParameter(alertTemplatesObjStr + ".Escalations.Warn.Times", std::to_string(alertTemplatesObj.escalationsWarnTimes)); + setParameter(alertTemplatesObjStr + ".Category", alertTemplatesObj.category); + setParameter(alertTemplatesObjStr + ".Escalations.Critical.ComparisonOperator", alertTemplatesObj.escalationsCriticalComparisonOperator); + setParameter(alertTemplatesObjStr + ".Escalations.Critical.Threshold", alertTemplatesObj.escalationsCriticalThreshold); + } } diff --git a/cms/src/model/ModifyMetricRuleTemplateResult.cc b/cms/src/model/ModifyMetricRuleTemplateResult.cc index a6e872640..54eead443 100644 --- a/cms/src/model/ModifyMetricRuleTemplateResult.cc +++ b/cms/src/model/ModifyMetricRuleTemplateResult.cc @@ -39,12 +39,12 @@ void ModifyMetricRuleTemplateResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/ModifyMonitorGroupInstancesRequest.cc b/cms/src/model/ModifyMonitorGroupInstancesRequest.cc index 8bafa0be7..1dafa55d3 100644 --- a/cms/src/model/ModifyMonitorGroupInstancesRequest.cc +++ b/cms/src/model/ModifyMonitorGroupInstancesRequest.cc @@ -1,58 +1,52 @@ /* * 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::Cms::Model::ModifyMonitorGroupInstancesRequest; - -ModifyMonitorGroupInstancesRequest::ModifyMonitorGroupInstancesRequest() : - RpcServiceRequest("cms", "2019-01-01", "ModifyMonitorGroupInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyMonitorGroupInstancesRequest::~ModifyMonitorGroupInstancesRequest() -{} - -std::vector ModifyMonitorGroupInstancesRequest::getInstances()const -{ - return instances_; + */ + +#include + +using AlibabaCloud::Cms::Model::ModifyMonitorGroupInstancesRequest; + +ModifyMonitorGroupInstancesRequest::ModifyMonitorGroupInstancesRequest() + : RpcServiceRequest("cms", "2019-01-01", "ModifyMonitorGroupInstances") { + setMethod(HttpRequest::Method::Post); } -void ModifyMonitorGroupInstancesRequest::setInstances(const std::vector& instances) -{ - instances_ = instances; - for(int dep1 = 0; dep1!= instances.size(); dep1++) { - auto instancesObj = instances.at(dep1); - std::string instancesObjStr = "Instances." + std::to_string(dep1 + 1); - setParameter(instancesObjStr + ".InstanceId", instancesObj.instanceId); - setParameter(instancesObjStr + ".InstanceName", instancesObj.instanceName); - setParameter(instancesObjStr + ".RegionId", instancesObj.regionId); - setParameter(instancesObjStr + ".Category", instancesObj.category); - } +ModifyMonitorGroupInstancesRequest::~ModifyMonitorGroupInstancesRequest() {} + +std::vector ModifyMonitorGroupInstancesRequest::getInstances() const { + return instances_; } -long ModifyMonitorGroupInstancesRequest::getGroupId()const -{ - return groupId_; +void ModifyMonitorGroupInstancesRequest::setInstances(const std::vector &instances) { + instances_ = instances; + for(int dep1 = 0; dep1 != instances.size(); dep1++) { + auto instancesObj = instances.at(dep1); + std::string instancesObjStr = std::string("Instances") + "." + std::to_string(dep1 + 1); + setParameter(instancesObjStr + ".InstanceName", instancesObj.instanceName); + setParameter(instancesObjStr + ".InstanceId", instancesObj.instanceId); + setParameter(instancesObjStr + ".RegionId", instancesObj.regionId); + setParameter(instancesObjStr + ".Category", instancesObj.category); + } } -void ModifyMonitorGroupInstancesRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +long ModifyMonitorGroupInstancesRequest::getGroupId() const { + return groupId_; +} + +void ModifyMonitorGroupInstancesRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } diff --git a/cms/src/model/ModifyMonitorGroupInstancesResult.cc b/cms/src/model/ModifyMonitorGroupInstancesResult.cc index a87ae86f8..29bbc881a 100644 --- a/cms/src/model/ModifyMonitorGroupInstancesResult.cc +++ b/cms/src/model/ModifyMonitorGroupInstancesResult.cc @@ -39,12 +39,12 @@ void ModifyMonitorGroupInstancesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/ModifyMonitorGroupRequest.cc b/cms/src/model/ModifyMonitorGroupRequest.cc index ffb01915c..a1f7ecfdf 100644 --- a/cms/src/model/ModifyMonitorGroupRequest.cc +++ b/cms/src/model/ModifyMonitorGroupRequest.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::Cms::Model::ModifyMonitorGroupRequest; - -ModifyMonitorGroupRequest::ModifyMonitorGroupRequest() : - RpcServiceRequest("cms", "2019-01-01", "ModifyMonitorGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyMonitorGroupRequest::~ModifyMonitorGroupRequest() -{} - -std::string ModifyMonitorGroupRequest::getContactGroups()const -{ - return contactGroups_; + */ + +#include + +using AlibabaCloud::Cms::Model::ModifyMonitorGroupRequest; + +ModifyMonitorGroupRequest::ModifyMonitorGroupRequest() + : RpcServiceRequest("cms", "2019-01-01", "ModifyMonitorGroup") { + setMethod(HttpRequest::Method::Post); } -void ModifyMonitorGroupRequest::setContactGroups(const std::string& contactGroups) -{ - contactGroups_ = contactGroups; - setParameter("ContactGroups", contactGroups); +ModifyMonitorGroupRequest::~ModifyMonitorGroupRequest() {} + +std::string ModifyMonitorGroupRequest::getContactGroups() const { + return contactGroups_; } -std::string ModifyMonitorGroupRequest::getGroupId()const -{ - return groupId_; +void ModifyMonitorGroupRequest::setContactGroups(const std::string &contactGroups) { + contactGroups_ = contactGroups; + setParameter(std::string("ContactGroups"), contactGroups); } -void ModifyMonitorGroupRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string ModifyMonitorGroupRequest::getGroupId() const { + return groupId_; } -std::string ModifyMonitorGroupRequest::getGroupName()const -{ - return groupName_; +void ModifyMonitorGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void ModifyMonitorGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +std::string ModifyMonitorGroupRequest::getGroupName() const { + return groupName_; } -std::string ModifyMonitorGroupRequest::getBindUrls()const -{ - return bindUrls_; +void ModifyMonitorGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -void ModifyMonitorGroupRequest::setBindUrls(const std::string& bindUrls) -{ - bindUrls_ = bindUrls; - setParameter("BindUrls", bindUrls); +std::string ModifyMonitorGroupRequest::getBindUrls() const { + return bindUrls_; } -long ModifyMonitorGroupRequest::getServiceId()const -{ - return serviceId_; +void ModifyMonitorGroupRequest::setBindUrls(const std::string &bindUrls) { + bindUrls_ = bindUrls; + setParameter(std::string("BindUrls"), bindUrls); } -void ModifyMonitorGroupRequest::setServiceId(long serviceId) -{ - serviceId_ = serviceId; - setParameter("ServiceId", std::to_string(serviceId)); +long ModifyMonitorGroupRequest::getServiceId() const { + return serviceId_; +} + +void ModifyMonitorGroupRequest::setServiceId(long serviceId) { + serviceId_ = serviceId; + setParameter(std::string("ServiceId"), std::to_string(serviceId)); } diff --git a/cms/src/model/ModifyMonitorGroupResult.cc b/cms/src/model/ModifyMonitorGroupResult.cc index 00e9ab896..60802c380 100644 --- a/cms/src/model/ModifyMonitorGroupResult.cc +++ b/cms/src/model/ModifyMonitorGroupResult.cc @@ -39,12 +39,12 @@ void ModifyMonitorGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/ModifySiteMonitorRequest.cc b/cms/src/model/ModifySiteMonitorRequest.cc index c8bc2cffa..4244e63d7 100644 --- a/cms/src/model/ModifySiteMonitorRequest.cc +++ b/cms/src/model/ModifySiteMonitorRequest.cc @@ -1,117 +1,99 @@ /* * 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::Cms::Model::ModifySiteMonitorRequest; - -ModifySiteMonitorRequest::ModifySiteMonitorRequest() : - RpcServiceRequest("cms", "2019-01-01", "ModifySiteMonitor") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySiteMonitorRequest::~ModifySiteMonitorRequest() -{} - -std::string ModifySiteMonitorRequest::getAddress()const -{ - return address_; + */ + +#include + +using AlibabaCloud::Cms::Model::ModifySiteMonitorRequest; + +ModifySiteMonitorRequest::ModifySiteMonitorRequest() + : RpcServiceRequest("cms", "2019-01-01", "ModifySiteMonitor") { + setMethod(HttpRequest::Method::Post); } -void ModifySiteMonitorRequest::setAddress(const std::string& address) -{ - address_ = address; - setParameter("Address", address); +ModifySiteMonitorRequest::~ModifySiteMonitorRequest() {} + +std::string ModifySiteMonitorRequest::getAddress() const { + return address_; } -std::string ModifySiteMonitorRequest::getTaskName()const -{ - return taskName_; +void ModifySiteMonitorRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); } -void ModifySiteMonitorRequest::setTaskName(const std::string& taskName) -{ - taskName_ = taskName; - setParameter("TaskName", taskName); +std::string ModifySiteMonitorRequest::getTaskName() const { + return taskName_; } -std::string ModifySiteMonitorRequest::getIspCities()const -{ - return ispCities_; +void ModifySiteMonitorRequest::setTaskName(const std::string &taskName) { + taskName_ = taskName; + setParameter(std::string("TaskName"), taskName); } -void ModifySiteMonitorRequest::setIspCities(const std::string& ispCities) -{ - ispCities_ = ispCities; - setParameter("IspCities", ispCities); +std::string ModifySiteMonitorRequest::getIspCities() const { + return ispCities_; } -std::string ModifySiteMonitorRequest::getOptionsJson()const -{ - return optionsJson_; +void ModifySiteMonitorRequest::setIspCities(const std::string &ispCities) { + ispCities_ = ispCities; + setParameter(std::string("IspCities"), ispCities); } -void ModifySiteMonitorRequest::setOptionsJson(const std::string& optionsJson) -{ - optionsJson_ = optionsJson; - setParameter("OptionsJson", optionsJson); +std::string ModifySiteMonitorRequest::getOptionsJson() const { + return optionsJson_; } -std::string ModifySiteMonitorRequest::getAlertIds()const -{ - return alertIds_; +void ModifySiteMonitorRequest::setOptionsJson(const std::string &optionsJson) { + optionsJson_ = optionsJson; + setParameter(std::string("OptionsJson"), optionsJson); } -void ModifySiteMonitorRequest::setAlertIds(const std::string& alertIds) -{ - alertIds_ = alertIds; - setParameter("AlertIds", alertIds); +std::string ModifySiteMonitorRequest::getAlertIds() const { + return alertIds_; } -std::string ModifySiteMonitorRequest::getIntervalUnit()const -{ - return intervalUnit_; +void ModifySiteMonitorRequest::setAlertIds(const std::string &alertIds) { + alertIds_ = alertIds; + setParameter(std::string("AlertIds"), alertIds); } -void ModifySiteMonitorRequest::setIntervalUnit(const std::string& intervalUnit) -{ - intervalUnit_ = intervalUnit; - setParameter("IntervalUnit", intervalUnit); +std::string ModifySiteMonitorRequest::getIntervalUnit() const { + return intervalUnit_; } -std::string ModifySiteMonitorRequest::getInterval()const -{ - return interval_; +void ModifySiteMonitorRequest::setIntervalUnit(const std::string &intervalUnit) { + intervalUnit_ = intervalUnit; + setParameter(std::string("IntervalUnit"), intervalUnit); } -void ModifySiteMonitorRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); +std::string ModifySiteMonitorRequest::getInterval() const { + return interval_; } -std::string ModifySiteMonitorRequest::getTaskId()const -{ - return taskId_; +void ModifySiteMonitorRequest::setInterval(const std::string &interval) { + interval_ = interval; + setParameter(std::string("Interval"), interval); } -void ModifySiteMonitorRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string ModifySiteMonitorRequest::getTaskId() const { + return taskId_; +} + +void ModifySiteMonitorRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/cms/src/model/OpenCmsServiceRequest.cc b/cms/src/model/OpenCmsServiceRequest.cc index 3c80fee64..a84d6c143 100644 --- a/cms/src/model/OpenCmsServiceRequest.cc +++ b/cms/src/model/OpenCmsServiceRequest.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::Cms::Model::OpenCmsServiceRequest; - -OpenCmsServiceRequest::OpenCmsServiceRequest() : - RpcServiceRequest("cms", "2019-01-01", "OpenCmsService") -{ - setMethod(HttpRequest::Method::Post); -} - -OpenCmsServiceRequest::~OpenCmsServiceRequest() -{} - + */ + +#include + +using AlibabaCloud::Cms::Model::OpenCmsServiceRequest; + +OpenCmsServiceRequest::OpenCmsServiceRequest() + : RpcServiceRequest("cms", "2019-01-01", "OpenCmsService") { + setMethod(HttpRequest::Method::Post); +} + +OpenCmsServiceRequest::~OpenCmsServiceRequest() {} + diff --git a/cms/src/model/PutContactGroupRequest.cc b/cms/src/model/PutContactGroupRequest.cc index b788af5e2..e116b82c4 100644 --- a/cms/src/model/PutContactGroupRequest.cc +++ b/cms/src/model/PutContactGroupRequest.cc @@ -1,75 +1,62 @@ /* * 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::Cms::Model::PutContactGroupRequest; - -PutContactGroupRequest::PutContactGroupRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutContactGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -PutContactGroupRequest::~PutContactGroupRequest() -{} - -bool PutContactGroupRequest::getEnableSubscribed()const -{ - return enableSubscribed_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutContactGroupRequest; + +PutContactGroupRequest::PutContactGroupRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutContactGroup") { + setMethod(HttpRequest::Method::Post); } -void PutContactGroupRequest::setEnableSubscribed(bool enableSubscribed) -{ - enableSubscribed_ = enableSubscribed; - setParameter("EnableSubscribed", enableSubscribed ? "true" : "false"); +PutContactGroupRequest::~PutContactGroupRequest() {} + +bool PutContactGroupRequest::getEnableSubscribed() const { + return enableSubscribed_; } -std::string PutContactGroupRequest::getContactGroupName()const -{ - return contactGroupName_; +void PutContactGroupRequest::setEnableSubscribed(bool enableSubscribed) { + enableSubscribed_ = enableSubscribed; + setParameter(std::string("EnableSubscribed"), enableSubscribed ? "true" : "false"); } -void PutContactGroupRequest::setContactGroupName(const std::string& contactGroupName) -{ - contactGroupName_ = contactGroupName; - setParameter("ContactGroupName", contactGroupName); +std::string PutContactGroupRequest::getContactGroupName() const { + return contactGroupName_; } -std::string PutContactGroupRequest::getDescribe()const -{ - return describe_; +void PutContactGroupRequest::setContactGroupName(const std::string &contactGroupName) { + contactGroupName_ = contactGroupName; + setParameter(std::string("ContactGroupName"), contactGroupName); } -void PutContactGroupRequest::setDescribe(const std::string& describe) -{ - describe_ = describe; - setParameter("Describe", describe); +std::string PutContactGroupRequest::getDescribe() const { + return describe_; } -std::vector PutContactGroupRequest::getContactNames()const -{ - return contactNames_; +void PutContactGroupRequest::setDescribe(const std::string &describe) { + describe_ = describe; + setParameter(std::string("Describe"), describe); } -void PutContactGroupRequest::setContactNames(const std::vector& contactNames) -{ - contactNames_ = contactNames; - for(int dep1 = 0; dep1!= contactNames.size(); dep1++) { - setParameter("ContactNames."+ std::to_string(dep1), contactNames.at(dep1)); - } +std::vector PutContactGroupRequest::getContactNames() const { + return contactNames_; +} + +void PutContactGroupRequest::setContactNames(const std::vector &contactNames) { + contactNames_ = contactNames; } diff --git a/cms/src/model/PutContactRequest.cc b/cms/src/model/PutContactRequest.cc index a12a20e36..1df866c5f 100644 --- a/cms/src/model/PutContactRequest.cc +++ b/cms/src/model/PutContactRequest.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::Cms::Model::PutContactRequest; - -PutContactRequest::PutContactRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutContact") -{ - setMethod(HttpRequest::Method::Post); -} - -PutContactRequest::~PutContactRequest() -{} - -std::string PutContactRequest::getChannelsDingWebHook()const -{ - return channelsDingWebHook_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutContactRequest; + +PutContactRequest::PutContactRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutContact") { + setMethod(HttpRequest::Method::Post); } -void PutContactRequest::setChannelsDingWebHook(const std::string& channelsDingWebHook) -{ - channelsDingWebHook_ = channelsDingWebHook; - setParameter("ChannelsDingWebHook", channelsDingWebHook); +PutContactRequest::~PutContactRequest() {} + +std::string PutContactRequest::getChannelsDingWebHook() const { + return channelsDingWebHook_; } -std::string PutContactRequest::getContactName()const -{ - return contactName_; +void PutContactRequest::setChannelsDingWebHook(const std::string &channelsDingWebHook) { + channelsDingWebHook_ = channelsDingWebHook; + setParameter(std::string("Channels.DingWebHook"), channelsDingWebHook); } -void PutContactRequest::setContactName(const std::string& contactName) -{ - contactName_ = contactName; - setParameter("ContactName", contactName); +std::string PutContactRequest::getContactName() const { + return contactName_; } -std::string PutContactRequest::getChannelsMail()const -{ - return channelsMail_; +void PutContactRequest::setContactName(const std::string &contactName) { + contactName_ = contactName; + setParameter(std::string("ContactName"), contactName); } -void PutContactRequest::setChannelsMail(const std::string& channelsMail) -{ - channelsMail_ = channelsMail; - setParameter("ChannelsMail", channelsMail); +std::string PutContactRequest::getChannelsMail() const { + return channelsMail_; } -std::string PutContactRequest::getChannelsAliIM()const -{ - return channelsAliIM_; +void PutContactRequest::setChannelsMail(const std::string &channelsMail) { + channelsMail_ = channelsMail; + setParameter(std::string("Channels.Mail"), channelsMail); } -void PutContactRequest::setChannelsAliIM(const std::string& channelsAliIM) -{ - channelsAliIM_ = channelsAliIM; - setParameter("ChannelsAliIM", channelsAliIM); +std::string PutContactRequest::getChannelsAliIM() const { + return channelsAliIM_; } -std::string PutContactRequest::getDescribe()const -{ - return describe_; +void PutContactRequest::setChannelsAliIM(const std::string &channelsAliIM) { + channelsAliIM_ = channelsAliIM; + setParameter(std::string("Channels.AliIM"), channelsAliIM); } -void PutContactRequest::setDescribe(const std::string& describe) -{ - describe_ = describe; - setParameter("Describe", describe); +std::string PutContactRequest::getDescribe() const { + return describe_; } -std::string PutContactRequest::getLang()const -{ - return lang_; +void PutContactRequest::setDescribe(const std::string &describe) { + describe_ = describe; + setParameter(std::string("Describe"), describe); } -void PutContactRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string PutContactRequest::getLang() const { + return lang_; } -std::string PutContactRequest::getChannelsSMS()const -{ - return channelsSMS_; +void PutContactRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void PutContactRequest::setChannelsSMS(const std::string& channelsSMS) -{ - channelsSMS_ = channelsSMS; - setParameter("ChannelsSMS", channelsSMS); +std::string PutContactRequest::getChannelsSMS() const { + return channelsSMS_; +} + +void PutContactRequest::setChannelsSMS(const std::string &channelsSMS) { + channelsSMS_ = channelsSMS; + setParameter(std::string("Channels.SMS"), channelsSMS); } diff --git a/cms/src/model/PutCustomEventRequest.cc b/cms/src/model/PutCustomEventRequest.cc index eabf1bdf1..d09369f34 100644 --- a/cms/src/model/PutCustomEventRequest.cc +++ b/cms/src/model/PutCustomEventRequest.cc @@ -1,47 +1,43 @@ /* * 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::Cms::Model::PutCustomEventRequest; - -PutCustomEventRequest::PutCustomEventRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutCustomEvent") -{ - setMethod(HttpRequest::Method::Post); -} - -PutCustomEventRequest::~PutCustomEventRequest() -{} - -std::vector PutCustomEventRequest::getEventInfo()const -{ - return eventInfo_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutCustomEventRequest; + +PutCustomEventRequest::PutCustomEventRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutCustomEvent") { + setMethod(HttpRequest::Method::Post); } -void PutCustomEventRequest::setEventInfo(const std::vector& eventInfo) -{ - eventInfo_ = eventInfo; - for(int dep1 = 0; dep1!= eventInfo.size(); dep1++) { - auto eventInfoObj = eventInfo.at(dep1); - std::string eventInfoObjStr = "EventInfo." + std::to_string(dep1 + 1); - setParameter(eventInfoObjStr + ".GroupId", eventInfoObj.groupId); - setParameter(eventInfoObjStr + ".Time", eventInfoObj.time); - setParameter(eventInfoObjStr + ".EventName", eventInfoObj.eventName); - setParameter(eventInfoObjStr + ".Content", eventInfoObj.content); - } +PutCustomEventRequest::~PutCustomEventRequest() {} + +std::vector PutCustomEventRequest::getEventInfo() const { + return eventInfo_; +} + +void PutCustomEventRequest::setEventInfo(const std::vector &eventInfo) { + eventInfo_ = eventInfo; + for(int dep1 = 0; dep1 != eventInfo.size(); dep1++) { + auto eventInfoObj = eventInfo.at(dep1); + std::string eventInfoObjStr = std::string("EventInfo") + "." + std::to_string(dep1 + 1); + setParameter(eventInfoObjStr + ".GroupId", eventInfoObj.groupId); + setParameter(eventInfoObjStr + ".Time", eventInfoObj.time); + setParameter(eventInfoObjStr + ".EventName", eventInfoObj.eventName); + setParameter(eventInfoObjStr + ".Content", eventInfoObj.content); + } } diff --git a/cms/src/model/PutCustomEventRuleRequest.cc b/cms/src/model/PutCustomEventRuleRequest.cc index a50a6f26f..afac261b5 100644 --- a/cms/src/model/PutCustomEventRuleRequest.cc +++ b/cms/src/model/PutCustomEventRuleRequest.cc @@ -1,161 +1,135 @@ /* * 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::Cms::Model::PutCustomEventRuleRequest; - -PutCustomEventRuleRequest::PutCustomEventRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutCustomEventRule") -{ - setMethod(HttpRequest::Method::Post); -} - -PutCustomEventRuleRequest::~PutCustomEventRuleRequest() -{} - -std::string PutCustomEventRuleRequest::getWebhook()const -{ - return webhook_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutCustomEventRuleRequest; + +PutCustomEventRuleRequest::PutCustomEventRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutCustomEventRule") { + setMethod(HttpRequest::Method::Post); } -void PutCustomEventRuleRequest::setWebhook(const std::string& webhook) -{ - webhook_ = webhook; - setParameter("Webhook", webhook); +PutCustomEventRuleRequest::~PutCustomEventRuleRequest() {} + +std::string PutCustomEventRuleRequest::getWebhook() const { + return webhook_; } -std::string PutCustomEventRuleRequest::getRuleName()const -{ - return ruleName_; +void PutCustomEventRuleRequest::setWebhook(const std::string &webhook) { + webhook_ = webhook; + setParameter(std::string("Webhook"), webhook); } -void PutCustomEventRuleRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +std::string PutCustomEventRuleRequest::getRuleName() const { + return ruleName_; } -std::string PutCustomEventRuleRequest::getThreshold()const -{ - return threshold_; +void PutCustomEventRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void PutCustomEventRuleRequest::setThreshold(const std::string& threshold) -{ - threshold_ = threshold; - setParameter("Threshold", threshold); +std::string PutCustomEventRuleRequest::getThreshold() const { + return threshold_; } -std::string PutCustomEventRuleRequest::getEffectiveInterval()const -{ - return effectiveInterval_; +void PutCustomEventRuleRequest::setThreshold(const std::string &threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), threshold); } -void PutCustomEventRuleRequest::setEffectiveInterval(const std::string& effectiveInterval) -{ - effectiveInterval_ = effectiveInterval; - setParameter("EffectiveInterval", effectiveInterval); +std::string PutCustomEventRuleRequest::getEffectiveInterval() const { + return effectiveInterval_; } -std::string PutCustomEventRuleRequest::getEventName()const -{ - return eventName_; +void PutCustomEventRuleRequest::setEffectiveInterval(const std::string &effectiveInterval) { + effectiveInterval_ = effectiveInterval; + setParameter(std::string("EffectiveInterval"), effectiveInterval); } -void PutCustomEventRuleRequest::setEventName(const std::string& eventName) -{ - eventName_ = eventName; - setParameter("EventName", eventName); +std::string PutCustomEventRuleRequest::getEventName() const { + return eventName_; } -std::string PutCustomEventRuleRequest::getEmailSubject()const -{ - return emailSubject_; +void PutCustomEventRuleRequest::setEventName(const std::string &eventName) { + eventName_ = eventName; + setParameter(std::string("EventName"), eventName); } -void PutCustomEventRuleRequest::setEmailSubject(const std::string& emailSubject) -{ - emailSubject_ = emailSubject; - setParameter("EmailSubject", emailSubject); +std::string PutCustomEventRuleRequest::getEmailSubject() const { + return emailSubject_; } -std::string PutCustomEventRuleRequest::getMetricName()const -{ - return metricName_; +void PutCustomEventRuleRequest::setEmailSubject(const std::string &emailSubject) { + emailSubject_ = emailSubject; + setParameter(std::string("EmailSubject"), emailSubject); } -void PutCustomEventRuleRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string PutCustomEventRuleRequest::getMetricName() const { + return metricName_; } -std::string PutCustomEventRuleRequest::getPeriod()const -{ - return period_; +void PutCustomEventRuleRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void PutCustomEventRuleRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +std::string PutCustomEventRuleRequest::getPeriod() const { + return period_; } -std::string PutCustomEventRuleRequest::getContactGroups()const -{ - return contactGroups_; +void PutCustomEventRuleRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -void PutCustomEventRuleRequest::setContactGroups(const std::string& contactGroups) -{ - contactGroups_ = contactGroups; - setParameter("ContactGroups", contactGroups); +std::string PutCustomEventRuleRequest::getContactGroups() const { + return contactGroups_; } -std::string PutCustomEventRuleRequest::getLevel()const -{ - return level_; +void PutCustomEventRuleRequest::setContactGroups(const std::string &contactGroups) { + contactGroups_ = contactGroups; + setParameter(std::string("ContactGroups"), contactGroups); } -void PutCustomEventRuleRequest::setLevel(const std::string& level) -{ - level_ = level; - setParameter("Level", level); +std::string PutCustomEventRuleRequest::getLevel() const { + return level_; } -std::string PutCustomEventRuleRequest::getGroupId()const -{ - return groupId_; +void PutCustomEventRuleRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); } -void PutCustomEventRuleRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string PutCustomEventRuleRequest::getGroupId() const { + return groupId_; } -std::string PutCustomEventRuleRequest::getRuleId()const -{ - return ruleId_; +void PutCustomEventRuleRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void PutCustomEventRuleRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); +std::string PutCustomEventRuleRequest::getRuleId() const { + return ruleId_; +} + +void PutCustomEventRuleRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } diff --git a/cms/src/model/PutCustomMetricRequest.cc b/cms/src/model/PutCustomMetricRequest.cc index f85f58f6c..8e19c1dc9 100644 --- a/cms/src/model/PutCustomMetricRequest.cc +++ b/cms/src/model/PutCustomMetricRequest.cc @@ -1,50 +1,46 @@ /* * 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::Cms::Model::PutCustomMetricRequest; - -PutCustomMetricRequest::PutCustomMetricRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutCustomMetric") -{ - setMethod(HttpRequest::Method::Post); -} - -PutCustomMetricRequest::~PutCustomMetricRequest() -{} - -std::vector PutCustomMetricRequest::getMetricList()const -{ - return metricList_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutCustomMetricRequest; + +PutCustomMetricRequest::PutCustomMetricRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutCustomMetric") { + setMethod(HttpRequest::Method::Post); } -void PutCustomMetricRequest::setMetricList(const std::vector& metricList) -{ - metricList_ = metricList; - for(int dep1 = 0; dep1!= metricList.size(); dep1++) { - auto metricListObj = metricList.at(dep1); - std::string metricListObjStr = "MetricList." + std::to_string(dep1 + 1); - setParameter(metricListObjStr + ".Period", metricListObj.period); - setParameter(metricListObjStr + ".GroupId", metricListObj.groupId); - setParameter(metricListObjStr + ".Values", metricListObj.values); - setParameter(metricListObjStr + ".Time", metricListObj.time); - setParameter(metricListObjStr + ".MetricName", metricListObj.metricName); - setParameter(metricListObjStr + ".Type", metricListObj.type); - setParameter(metricListObjStr + ".Dimensions", metricListObj.dimensions); - } +PutCustomMetricRequest::~PutCustomMetricRequest() {} + +std::vector PutCustomMetricRequest::getMetricList() const { + return metricList_; +} + +void PutCustomMetricRequest::setMetricList(const std::vector &metricList) { + metricList_ = metricList; + for(int dep1 = 0; dep1 != metricList.size(); dep1++) { + auto metricListObj = metricList.at(dep1); + std::string metricListObjStr = std::string("MetricList") + "." + std::to_string(dep1 + 1); + setParameter(metricListObjStr + ".Period", metricListObj.period); + setParameter(metricListObjStr + ".GroupId", metricListObj.groupId); + setParameter(metricListObjStr + ".Values", metricListObj.values); + setParameter(metricListObjStr + ".Time", metricListObj.time); + setParameter(metricListObjStr + ".Type", metricListObj.type); + setParameter(metricListObjStr + ".MetricName", metricListObj.metricName); + setParameter(metricListObjStr + ".Dimensions", metricListObj.dimensions); + } } diff --git a/cms/src/model/PutCustomMetricRuleRequest.cc b/cms/src/model/PutCustomMetricRuleRequest.cc index ef1ee08d6..ffa7d7ed5 100644 --- a/cms/src/model/PutCustomMetricRuleRequest.cc +++ b/cms/src/model/PutCustomMetricRuleRequest.cc @@ -1,205 +1,171 @@ /* * 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::Cms::Model::PutCustomMetricRuleRequest; - -PutCustomMetricRuleRequest::PutCustomMetricRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutCustomMetricRule") -{ - setMethod(HttpRequest::Method::Post); -} - -PutCustomMetricRuleRequest::~PutCustomMetricRuleRequest() -{} - -std::string PutCustomMetricRuleRequest::getWebhook()const -{ - return webhook_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutCustomMetricRuleRequest; + +PutCustomMetricRuleRequest::PutCustomMetricRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutCustomMetricRule") { + setMethod(HttpRequest::Method::Post); } -void PutCustomMetricRuleRequest::setWebhook(const std::string& webhook) -{ - webhook_ = webhook; - setParameter("Webhook", webhook); +PutCustomMetricRuleRequest::~PutCustomMetricRuleRequest() {} + +std::string PutCustomMetricRuleRequest::getWebhook() const { + return webhook_; } -std::string PutCustomMetricRuleRequest::getRuleName()const -{ - return ruleName_; +void PutCustomMetricRuleRequest::setWebhook(const std::string &webhook) { + webhook_ = webhook; + setParameter(std::string("Webhook"), webhook); } -void PutCustomMetricRuleRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +std::string PutCustomMetricRuleRequest::getRuleName() const { + return ruleName_; } -std::string PutCustomMetricRuleRequest::getThreshold()const -{ - return threshold_; +void PutCustomMetricRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void PutCustomMetricRuleRequest::setThreshold(const std::string& threshold) -{ - threshold_ = threshold; - setParameter("Threshold", threshold); +std::string PutCustomMetricRuleRequest::getThreshold() const { + return threshold_; } -std::string PutCustomMetricRuleRequest::getEffectiveInterval()const -{ - return effectiveInterval_; +void PutCustomMetricRuleRequest::setThreshold(const std::string &threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), threshold); } -void PutCustomMetricRuleRequest::setEffectiveInterval(const std::string& effectiveInterval) -{ - effectiveInterval_ = effectiveInterval; - setParameter("EffectiveInterval", effectiveInterval); +std::string PutCustomMetricRuleRequest::getEffectiveInterval() const { + return effectiveInterval_; } -std::string PutCustomMetricRuleRequest::getEmailSubject()const -{ - return emailSubject_; +void PutCustomMetricRuleRequest::setEffectiveInterval(const std::string &effectiveInterval) { + effectiveInterval_ = effectiveInterval; + setParameter(std::string("EffectiveInterval"), effectiveInterval); } -void PutCustomMetricRuleRequest::setEmailSubject(const std::string& emailSubject) -{ - emailSubject_ = emailSubject; - setParameter("EmailSubject", emailSubject); +std::string PutCustomMetricRuleRequest::getEmailSubject() const { + return emailSubject_; } -int PutCustomMetricRuleRequest::getEvaluationCount()const -{ - return evaluationCount_; +void PutCustomMetricRuleRequest::setEmailSubject(const std::string &emailSubject) { + emailSubject_ = emailSubject; + setParameter(std::string("EmailSubject"), emailSubject); } -void PutCustomMetricRuleRequest::setEvaluationCount(int evaluationCount) -{ - evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); +int PutCustomMetricRuleRequest::getEvaluationCount() const { + return evaluationCount_; } -int PutCustomMetricRuleRequest::getSilenceTime()const -{ - return silenceTime_; +void PutCustomMetricRuleRequest::setEvaluationCount(int evaluationCount) { + evaluationCount_ = evaluationCount; + setParameter(std::string("EvaluationCount"), std::to_string(evaluationCount)); } -void PutCustomMetricRuleRequest::setSilenceTime(int silenceTime) -{ - silenceTime_ = silenceTime; - setParameter("SilenceTime", std::to_string(silenceTime)); +int PutCustomMetricRuleRequest::getSilenceTime() const { + return silenceTime_; } -std::string PutCustomMetricRuleRequest::getMetricName()const -{ - return metricName_; +void PutCustomMetricRuleRequest::setSilenceTime(int silenceTime) { + silenceTime_ = silenceTime; + setParameter(std::string("SilenceTime"), std::to_string(silenceTime)); } -void PutCustomMetricRuleRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string PutCustomMetricRuleRequest::getMetricName() const { + return metricName_; } -std::string PutCustomMetricRuleRequest::getPeriod()const -{ - return period_; +void PutCustomMetricRuleRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void PutCustomMetricRuleRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +std::string PutCustomMetricRuleRequest::getPeriod() const { + return period_; } -std::string PutCustomMetricRuleRequest::getContactGroups()const -{ - return contactGroups_; +void PutCustomMetricRuleRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -void PutCustomMetricRuleRequest::setContactGroups(const std::string& contactGroups) -{ - contactGroups_ = contactGroups; - setParameter("ContactGroups", contactGroups); +std::string PutCustomMetricRuleRequest::getContactGroups() const { + return contactGroups_; } -std::string PutCustomMetricRuleRequest::getLevel()const -{ - return level_; +void PutCustomMetricRuleRequest::setContactGroups(const std::string &contactGroups) { + contactGroups_ = contactGroups; + setParameter(std::string("ContactGroups"), contactGroups); } -void PutCustomMetricRuleRequest::setLevel(const std::string& level) -{ - level_ = level; - setParameter("Level", level); +std::string PutCustomMetricRuleRequest::getLevel() const { + return level_; } -std::string PutCustomMetricRuleRequest::getGroupId()const -{ - return groupId_; +void PutCustomMetricRuleRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); } -void PutCustomMetricRuleRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string PutCustomMetricRuleRequest::getGroupId() const { + return groupId_; } -std::string PutCustomMetricRuleRequest::getResources()const -{ - return resources_; +void PutCustomMetricRuleRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void PutCustomMetricRuleRequest::setResources(const std::string& resources) -{ - resources_ = resources; - setParameter("Resources", resources); +std::string PutCustomMetricRuleRequest::getResources() const { + return resources_; } -std::string PutCustomMetricRuleRequest::getRuleId()const -{ - return ruleId_; +void PutCustomMetricRuleRequest::setResources(const std::string &resources) { + resources_ = resources; + setParameter(std::string("Resources"), resources); } -void PutCustomMetricRuleRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); +std::string PutCustomMetricRuleRequest::getRuleId() const { + return ruleId_; } -std::string PutCustomMetricRuleRequest::getComparisonOperator()const -{ - return comparisonOperator_; +void PutCustomMetricRuleRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } -void PutCustomMetricRuleRequest::setComparisonOperator(const std::string& comparisonOperator) -{ - comparisonOperator_ = comparisonOperator; - setParameter("ComparisonOperator", comparisonOperator); +std::string PutCustomMetricRuleRequest::getComparisonOperator() const { + return comparisonOperator_; } -std::string PutCustomMetricRuleRequest::getStatistics()const -{ - return statistics_; +void PutCustomMetricRuleRequest::setComparisonOperator(const std::string &comparisonOperator) { + comparisonOperator_ = comparisonOperator; + setParameter(std::string("ComparisonOperator"), comparisonOperator); } -void PutCustomMetricRuleRequest::setStatistics(const std::string& statistics) -{ - statistics_ = statistics; - setParameter("Statistics", statistics); +std::string PutCustomMetricRuleRequest::getStatistics() const { + return statistics_; +} + +void PutCustomMetricRuleRequest::setStatistics(const std::string &statistics) { + statistics_ = statistics; + setParameter(std::string("Statistics"), statistics); } diff --git a/cms/src/model/PutCustomMetricRuleResult.cc b/cms/src/model/PutCustomMetricRuleResult.cc index eb71275d5..d834d3f29 100644 --- a/cms/src/model/PutCustomMetricRuleResult.cc +++ b/cms/src/model/PutCustomMetricRuleResult.cc @@ -39,12 +39,12 @@ void PutCustomMetricRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/PutEventRuleRequest.cc b/cms/src/model/PutEventRuleRequest.cc index 5a06e2465..03135a54a 100644 --- a/cms/src/model/PutEventRuleRequest.cc +++ b/cms/src/model/PutEventRuleRequest.cc @@ -1,112 +1,97 @@ /* * 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::Cms::Model::PutEventRuleRequest; - -PutEventRuleRequest::PutEventRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutEventRule") -{ - setMethod(HttpRequest::Method::Post); -} - -PutEventRuleRequest::~PutEventRuleRequest() -{} - -std::string PutEventRuleRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutEventRuleRequest; + +PutEventRuleRequest::PutEventRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutEventRule") { + setMethod(HttpRequest::Method::Post); } -void PutEventRuleRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +PutEventRuleRequest::~PutEventRuleRequest() {} + +std::string PutEventRuleRequest::getDescription() const { + return description_; } -std::string PutEventRuleRequest::getDescription()const -{ - return description_; +void PutEventRuleRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void PutEventRuleRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string PutEventRuleRequest::getRuleName() const { + return ruleName_; } -std::string PutEventRuleRequest::getRuleName()const -{ - return ruleName_; +void PutEventRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void PutEventRuleRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +long PutEventRuleRequest::getSilenceTime() const { + return silenceTime_; } -std::vector PutEventRuleRequest::getEventPattern()const -{ - return eventPattern_; +void PutEventRuleRequest::setSilenceTime(long silenceTime) { + silenceTime_ = silenceTime; + setParameter(std::string("SilenceTime"), std::to_string(silenceTime)); } -void PutEventRuleRequest::setEventPattern(const std::vector& eventPattern) -{ - eventPattern_ = eventPattern; - for(int dep1 = 0; dep1!= eventPattern.size(); dep1++) { - auto eventPatternObj = eventPattern.at(dep1); - std::string eventPatternObjStr = "EventPattern." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= eventPatternObj.levelList.size(); dep2++) { - setParameter(eventPatternObjStr + ".LevelList."+ std::to_string(dep2), eventPatternObj.levelList.at(dep2)); - } - setParameter(eventPatternObjStr + ".KeywordFilter", std::to_string(eventPatternObj.keywordFilter)); - setParameter(eventPatternObjStr + ".Product", eventPatternObj.product); - for(int dep2 = 0; dep2!= eventPatternObj.statusList.size(); dep2++) { - setParameter(eventPatternObjStr + ".StatusList."+ std::to_string(dep2), eventPatternObj.statusList.at(dep2)); - } - for(int dep2 = 0; dep2!= eventPatternObj.nameList.size(); dep2++) { - setParameter(eventPatternObjStr + ".NameList."+ std::to_string(dep2), eventPatternObj.nameList.at(dep2)); - } - for(int dep2 = 0; dep2!= eventPatternObj.eventTypeList.size(); dep2++) { - setParameter(eventPatternObjStr + ".EventTypeList."+ std::to_string(dep2), eventPatternObj.eventTypeList.at(dep2)); - } - } +std::string PutEventRuleRequest::getState() const { + return state_; } -std::string PutEventRuleRequest::getEventType()const -{ - return eventType_; +void PutEventRuleRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void PutEventRuleRequest::setEventType(const std::string& eventType) -{ - eventType_ = eventType; - setParameter("EventType", eventType); +std::string PutEventRuleRequest::getGroupId() const { + return groupId_; } -std::string PutEventRuleRequest::getState()const -{ - return state_; +void PutEventRuleRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void PutEventRuleRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::vector PutEventRuleRequest::getEventPattern() const { + return eventPattern_; +} + +void PutEventRuleRequest::setEventPattern(const std::vector &eventPattern) { + eventPattern_ = eventPattern; + for(int dep1 = 0; dep1 != eventPattern.size(); dep1++) { + auto eventPatternObj = eventPattern.at(dep1); + std::string eventPatternObjStr = std::string("EventPattern") + "." + std::to_string(dep1 + 1); + setParameter(eventPatternObjStr + ".KeywordFilter.Relation", eventPatternObj.keywordFilter.relation); + setParameter(eventPatternObjStr + ".Product", eventPatternObj.product); + setParameter(eventPatternObjStr + ".CustomFilters", eventPatternObj.customFilters); + setParameter(eventPatternObjStr + ".SQLFilter", eventPatternObj.sQLFilter); + } +} + +std::string PutEventRuleRequest::getEventType() const { + return eventType_; +} + +void PutEventRuleRequest::setEventType(const std::string &eventType) { + eventType_ = eventType; + setParameter(std::string("EventType"), eventType); } diff --git a/cms/src/model/PutEventRuleTargetsRequest.cc b/cms/src/model/PutEventRuleTargetsRequest.cc index 7cb263f3b..45389a167 100644 --- a/cms/src/model/PutEventRuleTargetsRequest.cc +++ b/cms/src/model/PutEventRuleTargetsRequest.cc @@ -1,128 +1,133 @@ /* * 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::Cms::Model::PutEventRuleTargetsRequest; - -PutEventRuleTargetsRequest::PutEventRuleTargetsRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutEventRuleTargets") -{ - setMethod(HttpRequest::Method::Post); -} - -PutEventRuleTargetsRequest::~PutEventRuleTargetsRequest() -{} - -std::vector PutEventRuleTargetsRequest::getWebhookParameters()const -{ - return webhookParameters_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutEventRuleTargetsRequest; + +PutEventRuleTargetsRequest::PutEventRuleTargetsRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutEventRuleTargets") { + setMethod(HttpRequest::Method::Post); } -void PutEventRuleTargetsRequest::setWebhookParameters(const std::vector& webhookParameters) -{ - webhookParameters_ = webhookParameters; - for(int dep1 = 0; dep1!= webhookParameters.size(); dep1++) { - auto webhookParametersObj = webhookParameters.at(dep1); - std::string webhookParametersObjStr = "WebhookParameters." + std::to_string(dep1 + 1); - setParameter(webhookParametersObjStr + ".Protocol", webhookParametersObj.protocol); - setParameter(webhookParametersObjStr + ".Method", webhookParametersObj.method); - setParameter(webhookParametersObjStr + ".Id", webhookParametersObj.id); - setParameter(webhookParametersObjStr + ".Url", webhookParametersObj.url); - } +PutEventRuleTargetsRequest::~PutEventRuleTargetsRequest() {} + +std::vector PutEventRuleTargetsRequest::getWebhookParameters() const { + return webhookParameters_; } -std::vector PutEventRuleTargetsRequest::getContactParameters()const -{ - return contactParameters_; +void PutEventRuleTargetsRequest::setWebhookParameters(const std::vector &webhookParameters) { + webhookParameters_ = webhookParameters; + for(int dep1 = 0; dep1 != webhookParameters.size(); dep1++) { + auto webhookParametersObj = webhookParameters.at(dep1); + std::string webhookParametersObjStr = std::string("WebhookParameters") + "." + std::to_string(dep1 + 1); + setParameter(webhookParametersObjStr + ".Protocol", webhookParametersObj.protocol); + setParameter(webhookParametersObjStr + ".Method", webhookParametersObj.method); + setParameter(webhookParametersObjStr + ".Id", webhookParametersObj.id); + setParameter(webhookParametersObjStr + ".Url", webhookParametersObj.url); + } } -void PutEventRuleTargetsRequest::setContactParameters(const std::vector& contactParameters) -{ - contactParameters_ = contactParameters; - for(int dep1 = 0; dep1!= contactParameters.size(); dep1++) { - auto contactParametersObj = contactParameters.at(dep1); - std::string contactParametersObjStr = "ContactParameters." + std::to_string(dep1 + 1); - setParameter(contactParametersObjStr + ".Level", contactParametersObj.level); - setParameter(contactParametersObjStr + ".Id", contactParametersObj.id); - setParameter(contactParametersObjStr + ".ContactGroupName", contactParametersObj.contactGroupName); - } +std::vector PutEventRuleTargetsRequest::getContactParameters() const { + return contactParameters_; } -std::vector PutEventRuleTargetsRequest::getSlsParameters()const -{ - return slsParameters_; +void PutEventRuleTargetsRequest::setContactParameters(const std::vector &contactParameters) { + contactParameters_ = contactParameters; + for(int dep1 = 0; dep1 != contactParameters.size(); dep1++) { + auto contactParametersObj = contactParameters.at(dep1); + std::string contactParametersObjStr = std::string("ContactParameters") + "." + std::to_string(dep1 + 1); + setParameter(contactParametersObjStr + ".Level", contactParametersObj.level); + setParameter(contactParametersObjStr + ".Id", contactParametersObj.id); + setParameter(contactParametersObjStr + ".ContactGroupName", contactParametersObj.contactGroupName); + } } -void PutEventRuleTargetsRequest::setSlsParameters(const std::vector& slsParameters) -{ - slsParameters_ = slsParameters; - for(int dep1 = 0; dep1!= slsParameters.size(); dep1++) { - auto slsParametersObj = slsParameters.at(dep1); - std::string slsParametersObjStr = "SlsParameters." + std::to_string(dep1 + 1); - setParameter(slsParametersObjStr + ".Project", slsParametersObj.project); - setParameter(slsParametersObjStr + ".Id", slsParametersObj.id); - setParameter(slsParametersObjStr + ".Region", slsParametersObj.region); - setParameter(slsParametersObjStr + ".LogStore", slsParametersObj.logStore); - } +std::vector PutEventRuleTargetsRequest::getSlsParameters() const { + return slsParameters_; } -std::string PutEventRuleTargetsRequest::getRuleName()const -{ - return ruleName_; +void PutEventRuleTargetsRequest::setSlsParameters(const std::vector &slsParameters) { + slsParameters_ = slsParameters; + for(int dep1 = 0; dep1 != slsParameters.size(); dep1++) { + auto slsParametersObj = slsParameters.at(dep1); + std::string slsParametersObjStr = std::string("SlsParameters") + "." + std::to_string(dep1 + 1); + setParameter(slsParametersObjStr + ".Project", slsParametersObj.project); + setParameter(slsParametersObjStr + ".Id", slsParametersObj.id); + setParameter(slsParametersObjStr + ".Region", slsParametersObj.region); + setParameter(slsParametersObjStr + ".LogStore", slsParametersObj.logStore); + } } -void PutEventRuleTargetsRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +std::string PutEventRuleTargetsRequest::getRuleName() const { + return ruleName_; } -std::vector PutEventRuleTargetsRequest::getMnsParameters()const -{ - return mnsParameters_; +void PutEventRuleTargetsRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void PutEventRuleTargetsRequest::setMnsParameters(const std::vector& mnsParameters) -{ - mnsParameters_ = mnsParameters; - for(int dep1 = 0; dep1!= mnsParameters.size(); dep1++) { - auto mnsParametersObj = mnsParameters.at(dep1); - std::string mnsParametersObjStr = "MnsParameters." + std::to_string(dep1 + 1); - setParameter(mnsParametersObjStr + ".Id", mnsParametersObj.id); - setParameter(mnsParametersObjStr + ".Region", mnsParametersObj.region); - setParameter(mnsParametersObjStr + ".Queue", mnsParametersObj.queue); - } +std::vector PutEventRuleTargetsRequest::getOpenApiParameters() const { + return openApiParameters_; } -std::vector PutEventRuleTargetsRequest::getFcParameters()const -{ - return fcParameters_; +void PutEventRuleTargetsRequest::setOpenApiParameters(const std::vector &openApiParameters) { + openApiParameters_ = openApiParameters; + for(int dep1 = 0; dep1 != openApiParameters.size(); dep1++) { + auto openApiParametersObj = openApiParameters.at(dep1); + std::string openApiParametersObjStr = std::string("OpenApiParameters") + "." + std::to_string(dep1 + 1); + setParameter(openApiParametersObjStr + ".Product", openApiParametersObj.product); + setParameter(openApiParametersObjStr + ".Role", openApiParametersObj.role); + setParameter(openApiParametersObjStr + ".Action", openApiParametersObj.action); + setParameter(openApiParametersObjStr + ".Id", openApiParametersObj.id); + setParameter(openApiParametersObjStr + ".Arn", openApiParametersObj.arn); + setParameter(openApiParametersObjStr + ".Region", openApiParametersObj.region); + setParameter(openApiParametersObjStr + ".Version", openApiParametersObj.version); + } } -void PutEventRuleTargetsRequest::setFcParameters(const std::vector& fcParameters) -{ - fcParameters_ = fcParameters; - for(int dep1 = 0; dep1!= fcParameters.size(); dep1++) { - auto fcParametersObj = fcParameters.at(dep1); - std::string fcParametersObjStr = "FcParameters." + std::to_string(dep1 + 1); - setParameter(fcParametersObjStr + ".FunctionName", fcParametersObj.functionName); - setParameter(fcParametersObjStr + ".ServiceName", fcParametersObj.serviceName); - setParameter(fcParametersObjStr + ".Id", fcParametersObj.id); - setParameter(fcParametersObjStr + ".Region", fcParametersObj.region); - } +std::vector PutEventRuleTargetsRequest::getMnsParameters() const { + return mnsParameters_; +} + +void PutEventRuleTargetsRequest::setMnsParameters(const std::vector &mnsParameters) { + mnsParameters_ = mnsParameters; + for(int dep1 = 0; dep1 != mnsParameters.size(); dep1++) { + auto mnsParametersObj = mnsParameters.at(dep1); + std::string mnsParametersObjStr = std::string("MnsParameters") + "." + std::to_string(dep1 + 1); + setParameter(mnsParametersObjStr + ".Id", mnsParametersObj.id); + setParameter(mnsParametersObjStr + ".Region", mnsParametersObj.region); + setParameter(mnsParametersObjStr + ".Queue", mnsParametersObj.queue); + } +} + +std::vector PutEventRuleTargetsRequest::getFcParameters() const { + return fcParameters_; +} + +void PutEventRuleTargetsRequest::setFcParameters(const std::vector &fcParameters) { + fcParameters_ = fcParameters; + for(int dep1 = 0; dep1 != fcParameters.size(); dep1++) { + auto fcParametersObj = fcParameters.at(dep1); + std::string fcParametersObjStr = std::string("FcParameters") + "." + std::to_string(dep1 + 1); + setParameter(fcParametersObjStr + ".FunctionName", fcParametersObj.functionName); + setParameter(fcParametersObjStr + ".ServiceName", fcParametersObj.serviceName); + setParameter(fcParametersObjStr + ".Id", fcParametersObj.id); + setParameter(fcParametersObjStr + ".Region", fcParametersObj.region); + } } diff --git a/cms/src/model/PutEventRuleTargetsResult.cc b/cms/src/model/PutEventRuleTargetsResult.cc index 70662c250..b793f9e09 100644 --- a/cms/src/model/PutEventRuleTargetsResult.cc +++ b/cms/src/model/PutEventRuleTargetsResult.cc @@ -43,10 +43,10 @@ void PutEventRuleTargetsResult::parse(const std::string &payload) for (auto valueFailedContactParametersContactParameter : allFailedContactParametersNode) { ContactParameter failedContactParametersObject; - if(!valueFailedContactParametersContactParameter["Id"].isNull()) - failedContactParametersObject.id = std::stoi(valueFailedContactParametersContactParameter["Id"].asString()); if(!valueFailedContactParametersContactParameter["ContactGroupName"].isNull()) failedContactParametersObject.contactGroupName = valueFailedContactParametersContactParameter["ContactGroupName"].asString(); + if(!valueFailedContactParametersContactParameter["Id"].isNull()) + failedContactParametersObject.id = std::stoi(valueFailedContactParametersContactParameter["Id"].asString()); if(!valueFailedContactParametersContactParameter["Level"].isNull()) failedContactParametersObject.level = valueFailedContactParametersContactParameter["Level"].asString(); failedContactParameters_.push_back(failedContactParametersObject); @@ -55,34 +55,34 @@ void PutEventRuleTargetsResult::parse(const std::string &payload) for (auto valueFailedMnsParametersMnsParameter : allFailedMnsParametersNode) { MnsParameter failedMnsParametersObject; + if(!valueFailedMnsParametersMnsParameter["Queue"].isNull()) + failedMnsParametersObject.queue = valueFailedMnsParametersMnsParameter["Queue"].asString(); if(!valueFailedMnsParametersMnsParameter["Id"].isNull()) failedMnsParametersObject.id = std::stoi(valueFailedMnsParametersMnsParameter["Id"].asString()); if(!valueFailedMnsParametersMnsParameter["Region"].isNull()) failedMnsParametersObject.region = valueFailedMnsParametersMnsParameter["Region"].asString(); - if(!valueFailedMnsParametersMnsParameter["Queue"].isNull()) - failedMnsParametersObject.queue = valueFailedMnsParametersMnsParameter["Queue"].asString(); failedMnsParameters_.push_back(failedMnsParametersObject); } auto allFailedFcParametersNode = value["FailedFcParameters"]["FcParameter"]; for (auto valueFailedFcParametersFcParameter : allFailedFcParametersNode) { FcParameter failedFcParametersObject; - if(!valueFailedFcParametersFcParameter["Id"].isNull()) - failedFcParametersObject.id = std::stoi(valueFailedFcParametersFcParameter["Id"].asString()); - if(!valueFailedFcParametersFcParameter["Region"].isNull()) - failedFcParametersObject.region = valueFailedFcParametersFcParameter["Region"].asString(); if(!valueFailedFcParametersFcParameter["ServiceName"].isNull()) failedFcParametersObject.serviceName = valueFailedFcParametersFcParameter["ServiceName"].asString(); if(!valueFailedFcParametersFcParameter["FunctionName"].isNull()) failedFcParametersObject.functionName = valueFailedFcParametersFcParameter["FunctionName"].asString(); + if(!valueFailedFcParametersFcParameter["Id"].isNull()) + failedFcParametersObject.id = std::stoi(valueFailedFcParametersFcParameter["Id"].asString()); + if(!valueFailedFcParametersFcParameter["Region"].isNull()) + failedFcParametersObject.region = valueFailedFcParametersFcParameter["Region"].asString(); failedFcParameters_.push_back(failedFcParametersObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["FailedParameterCount"].isNull()) failedParameterCount_ = value["FailedParameterCount"].asString(); diff --git a/cms/src/model/PutExporterOutputRequest.cc b/cms/src/model/PutExporterOutputRequest.cc index 7a7e89634..626d755ca 100644 --- a/cms/src/model/PutExporterOutputRequest.cc +++ b/cms/src/model/PutExporterOutputRequest.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::Cms::Model::PutExporterOutputRequest; - -PutExporterOutputRequest::PutExporterOutputRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutExporterOutput") -{ - setMethod(HttpRequest::Method::Post); -} - -PutExporterOutputRequest::~PutExporterOutputRequest() -{} - -std::string PutExporterOutputRequest::getDestName()const -{ - return destName_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutExporterOutputRequest; + +PutExporterOutputRequest::PutExporterOutputRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutExporterOutput") { + setMethod(HttpRequest::Method::Post); } -void PutExporterOutputRequest::setDestName(const std::string& destName) -{ - destName_ = destName; - setParameter("DestName", destName); +PutExporterOutputRequest::~PutExporterOutputRequest() {} + +std::string PutExporterOutputRequest::getDestName() const { + return destName_; } -std::string PutExporterOutputRequest::getConfigJson()const -{ - return configJson_; +void PutExporterOutputRequest::setDestName(const std::string &destName) { + destName_ = destName; + setParameter(std::string("DestName"), destName); } -void PutExporterOutputRequest::setConfigJson(const std::string& configJson) -{ - configJson_ = configJson; - setParameter("ConfigJson", configJson); +std::string PutExporterOutputRequest::getConfigJson() const { + return configJson_; } -std::string PutExporterOutputRequest::getDestType()const -{ - return destType_; +void PutExporterOutputRequest::setConfigJson(const std::string &configJson) { + configJson_ = configJson; + setParameter(std::string("ConfigJson"), configJson); } -void PutExporterOutputRequest::setDestType(const std::string& destType) -{ - destType_ = destType; - setParameter("DestType", destType); +std::string PutExporterOutputRequest::getDestType() const { + return destType_; } -std::string PutExporterOutputRequest::getDesc()const -{ - return desc_; +void PutExporterOutputRequest::setDestType(const std::string &destType) { + destType_ = destType; + setParameter(std::string("DestType"), destType); } -void PutExporterOutputRequest::setDesc(const std::string& desc) -{ - desc_ = desc; - setParameter("Desc", desc); +std::string PutExporterOutputRequest::getDesc() const { + return desc_; +} + +void PutExporterOutputRequest::setDesc(const std::string &desc) { + desc_ = desc; + setParameter(std::string("Desc"), desc); } diff --git a/cms/src/model/PutExporterRuleRequest.cc b/cms/src/model/PutExporterRuleRequest.cc index 8135c04ce..fac06d7e7 100644 --- a/cms/src/model/PutExporterRuleRequest.cc +++ b/cms/src/model/PutExporterRuleRequest.cc @@ -1,97 +1,80 @@ /* * 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::Cms::Model::PutExporterRuleRequest; - -PutExporterRuleRequest::PutExporterRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutExporterRule") -{ - setMethod(HttpRequest::Method::Post); -} - -PutExporterRuleRequest::~PutExporterRuleRequest() -{} - -std::string PutExporterRuleRequest::getRuleName()const -{ - return ruleName_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutExporterRuleRequest; + +PutExporterRuleRequest::PutExporterRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutExporterRule") { + setMethod(HttpRequest::Method::Post); } -void PutExporterRuleRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +PutExporterRuleRequest::~PutExporterRuleRequest() {} + +std::string PutExporterRuleRequest::getRuleName() const { + return ruleName_; } -std::vector PutExporterRuleRequest::getDstNames()const -{ - return dstNames_; +void PutExporterRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void PutExporterRuleRequest::setDstNames(const std::vector& dstNames) -{ - dstNames_ = dstNames; - for(int dep1 = 0; dep1!= dstNames.size(); dep1++) { - setParameter("DstNames."+ std::to_string(dep1), dstNames.at(dep1)); - } +std::vector PutExporterRuleRequest::getDstNames() const { + return dstNames_; } -std::string PutExporterRuleRequest::get_Namespace()const -{ - return _namespace_; +void PutExporterRuleRequest::setDstNames(const std::vector &dstNames) { + dstNames_ = dstNames; } -void PutExporterRuleRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string PutExporterRuleRequest::get_Namespace() const { + return _namespace_; } -std::string PutExporterRuleRequest::getTargetWindows()const -{ - return targetWindows_; +void PutExporterRuleRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -void PutExporterRuleRequest::setTargetWindows(const std::string& targetWindows) -{ - targetWindows_ = targetWindows; - setParameter("TargetWindows", targetWindows); +std::string PutExporterRuleRequest::getTargetWindows() const { + return targetWindows_; } -std::string PutExporterRuleRequest::getDescribe()const -{ - return describe_; +void PutExporterRuleRequest::setTargetWindows(const std::string &targetWindows) { + targetWindows_ = targetWindows; + setParameter(std::string("TargetWindows"), targetWindows); } -void PutExporterRuleRequest::setDescribe(const std::string& describe) -{ - describe_ = describe; - setParameter("Describe", describe); +std::string PutExporterRuleRequest::getDescribe() const { + return describe_; } -std::string PutExporterRuleRequest::getMetricName()const -{ - return metricName_; +void PutExporterRuleRequest::setDescribe(const std::string &describe) { + describe_ = describe; + setParameter(std::string("Describe"), describe); } -void PutExporterRuleRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string PutExporterRuleRequest::getMetricName() const { + return metricName_; +} + +void PutExporterRuleRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } diff --git a/cms/src/model/PutGroupMetricRuleRequest.cc b/cms/src/model/PutGroupMetricRuleRequest.cc index de90bb6ac..a60cc56da 100644 --- a/cms/src/model/PutGroupMetricRuleRequest.cc +++ b/cms/src/model/PutGroupMetricRuleRequest.cc @@ -1,359 +1,308 @@ /* * 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::Cms::Model::PutGroupMetricRuleRequest; - -PutGroupMetricRuleRequest::PutGroupMetricRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutGroupMetricRule") -{ - setMethod(HttpRequest::Method::Post); -} - -PutGroupMetricRuleRequest::~PutGroupMetricRuleRequest() -{} - -std::string PutGroupMetricRuleRequest::getWebhook()const -{ - return webhook_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutGroupMetricRuleRequest; + +PutGroupMetricRuleRequest::PutGroupMetricRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutGroupMetricRule") { + setMethod(HttpRequest::Method::Post); } -void PutGroupMetricRuleRequest::setWebhook(const std::string& webhook) -{ - webhook_ = webhook; - setParameter("Webhook", webhook); +PutGroupMetricRuleRequest::~PutGroupMetricRuleRequest() {} + +std::string PutGroupMetricRuleRequest::getWebhook() const { + return webhook_; } -std::string PutGroupMetricRuleRequest::getEscalationsWarnComparisonOperator()const -{ - return escalationsWarnComparisonOperator_; +void PutGroupMetricRuleRequest::setWebhook(const std::string &webhook) { + webhook_ = webhook; + setParameter(std::string("Webhook"), webhook); } -void PutGroupMetricRuleRequest::setEscalationsWarnComparisonOperator(const std::string& escalationsWarnComparisonOperator) -{ - escalationsWarnComparisonOperator_ = escalationsWarnComparisonOperator; - setParameter("EscalationsWarnComparisonOperator", escalationsWarnComparisonOperator); +std::string PutGroupMetricRuleRequest::getEscalationsWarnComparisonOperator() const { + return escalationsWarnComparisonOperator_; } -std::string PutGroupMetricRuleRequest::getRuleName()const -{ - return ruleName_; +void PutGroupMetricRuleRequest::setEscalationsWarnComparisonOperator(const std::string &escalationsWarnComparisonOperator) { + escalationsWarnComparisonOperator_ = escalationsWarnComparisonOperator; + setParameter(std::string("Escalations.Warn.ComparisonOperator"), escalationsWarnComparisonOperator); } -void PutGroupMetricRuleRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +std::string PutGroupMetricRuleRequest::getRuleName() const { + return ruleName_; } -std::string PutGroupMetricRuleRequest::getEscalationsInfoStatistics()const -{ - return escalationsInfoStatistics_; +void PutGroupMetricRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -void PutGroupMetricRuleRequest::setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics) -{ - escalationsInfoStatistics_ = escalationsInfoStatistics; - setParameter("EscalationsInfoStatistics", escalationsInfoStatistics); +std::string PutGroupMetricRuleRequest::getEscalationsInfoStatistics() const { + return escalationsInfoStatistics_; } -std::string PutGroupMetricRuleRequest::getEffectiveInterval()const -{ - return effectiveInterval_; +void PutGroupMetricRuleRequest::setEscalationsInfoStatistics(const std::string &escalationsInfoStatistics) { + escalationsInfoStatistics_ = escalationsInfoStatistics; + setParameter(std::string("Escalations.Info.Statistics"), escalationsInfoStatistics); } -void PutGroupMetricRuleRequest::setEffectiveInterval(const std::string& effectiveInterval) -{ - effectiveInterval_ = effectiveInterval; - setParameter("EffectiveInterval", effectiveInterval); +std::string PutGroupMetricRuleRequest::getEffectiveInterval() const { + return effectiveInterval_; } -std::string PutGroupMetricRuleRequest::getEscalationsInfoComparisonOperator()const -{ - return escalationsInfoComparisonOperator_; +void PutGroupMetricRuleRequest::setEffectiveInterval(const std::string &effectiveInterval) { + effectiveInterval_ = effectiveInterval; + setParameter(std::string("EffectiveInterval"), effectiveInterval); } -void PutGroupMetricRuleRequest::setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator) -{ - escalationsInfoComparisonOperator_ = escalationsInfoComparisonOperator; - setParameter("EscalationsInfoComparisonOperator", escalationsInfoComparisonOperator); +std::string PutGroupMetricRuleRequest::getEscalationsInfoComparisonOperator() const { + return escalationsInfoComparisonOperator_; } -std::string PutGroupMetricRuleRequest::getNoDataPolicy()const -{ - return noDataPolicy_; +void PutGroupMetricRuleRequest::setEscalationsInfoComparisonOperator(const std::string &escalationsInfoComparisonOperator) { + escalationsInfoComparisonOperator_ = escalationsInfoComparisonOperator; + setParameter(std::string("Escalations.Info.ComparisonOperator"), escalationsInfoComparisonOperator); } -void PutGroupMetricRuleRequest::setNoDataPolicy(const std::string& noDataPolicy) -{ - noDataPolicy_ = noDataPolicy; - setParameter("NoDataPolicy", noDataPolicy); +std::string PutGroupMetricRuleRequest::getNoDataPolicy() const { + return noDataPolicy_; } -std::string PutGroupMetricRuleRequest::getNoEffectiveInterval()const -{ - return noEffectiveInterval_; +void PutGroupMetricRuleRequest::setNoDataPolicy(const std::string &noDataPolicy) { + noDataPolicy_ = noDataPolicy; + setParameter(std::string("NoDataPolicy"), noDataPolicy); } -void PutGroupMetricRuleRequest::setNoEffectiveInterval(const std::string& noEffectiveInterval) -{ - noEffectiveInterval_ = noEffectiveInterval; - setParameter("NoEffectiveInterval", noEffectiveInterval); +std::string PutGroupMetricRuleRequest::getNoEffectiveInterval() const { + return noEffectiveInterval_; } -std::string PutGroupMetricRuleRequest::getEmailSubject()const -{ - return emailSubject_; +void PutGroupMetricRuleRequest::setNoEffectiveInterval(const std::string &noEffectiveInterval) { + noEffectiveInterval_ = noEffectiveInterval; + setParameter(std::string("NoEffectiveInterval"), noEffectiveInterval); } -void PutGroupMetricRuleRequest::setEmailSubject(const std::string& emailSubject) -{ - emailSubject_ = emailSubject; - setParameter("EmailSubject", emailSubject); +std::string PutGroupMetricRuleRequest::getEmailSubject() const { + return emailSubject_; } -int PutGroupMetricRuleRequest::getSilenceTime()const -{ - return silenceTime_; +void PutGroupMetricRuleRequest::setEmailSubject(const std::string &emailSubject) { + emailSubject_ = emailSubject; + setParameter(std::string("EmailSubject"), emailSubject); } -void PutGroupMetricRuleRequest::setSilenceTime(int silenceTime) -{ - silenceTime_ = silenceTime; - setParameter("SilenceTime", std::to_string(silenceTime)); +int PutGroupMetricRuleRequest::getSilenceTime() const { + return silenceTime_; } -std::string PutGroupMetricRuleRequest::getMetricName()const -{ - return metricName_; +void PutGroupMetricRuleRequest::setSilenceTime(int silenceTime) { + silenceTime_ = silenceTime; + setParameter(std::string("SilenceTime"), std::to_string(silenceTime)); } -void PutGroupMetricRuleRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string PutGroupMetricRuleRequest::getMetricName() const { + return metricName_; } -int PutGroupMetricRuleRequest::getEscalationsWarnTimes()const -{ - return escalationsWarnTimes_; +void PutGroupMetricRuleRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void PutGroupMetricRuleRequest::setEscalationsWarnTimes(int escalationsWarnTimes) -{ - escalationsWarnTimes_ = escalationsWarnTimes; - setParameter("EscalationsWarnTimes", std::to_string(escalationsWarnTimes)); +int PutGroupMetricRuleRequest::getEscalationsWarnTimes() const { + return escalationsWarnTimes_; } -Struct PutGroupMetricRuleRequest::getCompositeExpression()const -{ - return compositeExpression_; +void PutGroupMetricRuleRequest::setEscalationsWarnTimes(int escalationsWarnTimes) { + escalationsWarnTimes_ = escalationsWarnTimes; + setParameter(std::string("Escalations.Warn.Times"), std::to_string(escalationsWarnTimes)); } -void PutGroupMetricRuleRequest::setCompositeExpression(const Struct& compositeExpression) -{ - compositeExpression_ = compositeExpression; - setParameter("CompositeExpression", std::to_string(compositeExpression)); +PutGroupMetricRuleRequest::CompositeExpression PutGroupMetricRuleRequest::getCompositeExpression() const { + return compositeExpression_; } -std::string PutGroupMetricRuleRequest::getPeriod()const -{ - return period_; +void PutGroupMetricRuleRequest::setCompositeExpression(const PutGroupMetricRuleRequest::CompositeExpression &compositeExpression) { + compositeExpression_ = compositeExpression; + setParameter(std::string("CompositeExpression") + ".Times", std::to_string(compositeExpression.times)); + for(int dep1 = 0; dep1 != compositeExpression.expressionList.size(); dep1++) { + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".Period", compositeExpression.expressionList[dep1].period); + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".Threshold", compositeExpression.expressionList[dep1].threshold); + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".Id", compositeExpression.expressionList[dep1].id); + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".MetricName", compositeExpression.expressionList[dep1].metricName); + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".ComparisonOperator", compositeExpression.expressionList[dep1].comparisonOperator); + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".Statistics", compositeExpression.expressionList[dep1].statistics); + } + setParameter(std::string("CompositeExpression") + ".Level", compositeExpression.level); + setParameter(std::string("CompositeExpression") + ".ExpressionRaw", compositeExpression.expressionRaw); + setParameter(std::string("CompositeExpression") + ".ExpressionListJoin", compositeExpression.expressionListJoin); } -void PutGroupMetricRuleRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +std::string PutGroupMetricRuleRequest::getPeriod() const { + return period_; } -std::string PutGroupMetricRuleRequest::getEscalationsWarnThreshold()const -{ - return escalationsWarnThreshold_; +void PutGroupMetricRuleRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -void PutGroupMetricRuleRequest::setEscalationsWarnThreshold(const std::string& escalationsWarnThreshold) -{ - escalationsWarnThreshold_ = escalationsWarnThreshold; - setParameter("EscalationsWarnThreshold", escalationsWarnThreshold); +std::string PutGroupMetricRuleRequest::getEscalationsWarnThreshold() const { + return escalationsWarnThreshold_; } -std::string PutGroupMetricRuleRequest::getContactGroups()const -{ - return contactGroups_; +void PutGroupMetricRuleRequest::setEscalationsWarnThreshold(const std::string &escalationsWarnThreshold) { + escalationsWarnThreshold_ = escalationsWarnThreshold; + setParameter(std::string("Escalations.Warn.Threshold"), escalationsWarnThreshold); } -void PutGroupMetricRuleRequest::setContactGroups(const std::string& contactGroups) -{ - contactGroups_ = contactGroups; - setParameter("ContactGroups", contactGroups); +std::string PutGroupMetricRuleRequest::getContactGroups() const { + return contactGroups_; } -std::string PutGroupMetricRuleRequest::getEscalationsCriticalStatistics()const -{ - return escalationsCriticalStatistics_; +void PutGroupMetricRuleRequest::setContactGroups(const std::string &contactGroups) { + contactGroups_ = contactGroups; + setParameter(std::string("ContactGroups"), contactGroups); } -void PutGroupMetricRuleRequest::setEscalationsCriticalStatistics(const std::string& escalationsCriticalStatistics) -{ - escalationsCriticalStatistics_ = escalationsCriticalStatistics; - setParameter("EscalationsCriticalStatistics", escalationsCriticalStatistics); +std::string PutGroupMetricRuleRequest::getEscalationsCriticalStatistics() const { + return escalationsCriticalStatistics_; } -std::string PutGroupMetricRuleRequest::getGroupId()const -{ - return groupId_; +void PutGroupMetricRuleRequest::setEscalationsCriticalStatistics(const std::string &escalationsCriticalStatistics) { + escalationsCriticalStatistics_ = escalationsCriticalStatistics; + setParameter(std::string("Escalations.Critical.Statistics"), escalationsCriticalStatistics); } -void PutGroupMetricRuleRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string PutGroupMetricRuleRequest::getGroupId() const { + return groupId_; } -int PutGroupMetricRuleRequest::getEscalationsInfoTimes()const -{ - return escalationsInfoTimes_; +void PutGroupMetricRuleRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void PutGroupMetricRuleRequest::setEscalationsInfoTimes(int escalationsInfoTimes) -{ - escalationsInfoTimes_ = escalationsInfoTimes; - setParameter("EscalationsInfoTimes", std::to_string(escalationsInfoTimes)); +int PutGroupMetricRuleRequest::getEscalationsInfoTimes() const { + return escalationsInfoTimes_; } -std::string PutGroupMetricRuleRequest::getExtraDimensionJson()const -{ - return extraDimensionJson_; +void PutGroupMetricRuleRequest::setEscalationsInfoTimes(int escalationsInfoTimes) { + escalationsInfoTimes_ = escalationsInfoTimes; + setParameter(std::string("Escalations.Info.Times"), std::to_string(escalationsInfoTimes)); } -void PutGroupMetricRuleRequest::setExtraDimensionJson(const std::string& extraDimensionJson) -{ - extraDimensionJson_ = extraDimensionJson; - setParameter("ExtraDimensionJson", extraDimensionJson); +std::string PutGroupMetricRuleRequest::getExtraDimensionJson() const { + return extraDimensionJson_; } -int PutGroupMetricRuleRequest::getEscalationsCriticalTimes()const -{ - return escalationsCriticalTimes_; +void PutGroupMetricRuleRequest::setExtraDimensionJson(const std::string &extraDimensionJson) { + extraDimensionJson_ = extraDimensionJson; + setParameter(std::string("ExtraDimensionJson"), extraDimensionJson); } -void PutGroupMetricRuleRequest::setEscalationsCriticalTimes(int escalationsCriticalTimes) -{ - escalationsCriticalTimes_ = escalationsCriticalTimes; - setParameter("EscalationsCriticalTimes", std::to_string(escalationsCriticalTimes)); +int PutGroupMetricRuleRequest::getEscalationsCriticalTimes() const { + return escalationsCriticalTimes_; } -std::string PutGroupMetricRuleRequest::getEscalationsWarnStatistics()const -{ - return escalationsWarnStatistics_; +void PutGroupMetricRuleRequest::setEscalationsCriticalTimes(int escalationsCriticalTimes) { + escalationsCriticalTimes_ = escalationsCriticalTimes; + setParameter(std::string("Escalations.Critical.Times"), std::to_string(escalationsCriticalTimes)); } -void PutGroupMetricRuleRequest::setEscalationsWarnStatistics(const std::string& escalationsWarnStatistics) -{ - escalationsWarnStatistics_ = escalationsWarnStatistics; - setParameter("EscalationsWarnStatistics", escalationsWarnStatistics); +std::string PutGroupMetricRuleRequest::getEscalationsWarnStatistics() const { + return escalationsWarnStatistics_; } -std::string PutGroupMetricRuleRequest::getEscalationsInfoThreshold()const -{ - return escalationsInfoThreshold_; +void PutGroupMetricRuleRequest::setEscalationsWarnStatistics(const std::string &escalationsWarnStatistics) { + escalationsWarnStatistics_ = escalationsWarnStatistics; + setParameter(std::string("Escalations.Warn.Statistics"), escalationsWarnStatistics); } -void PutGroupMetricRuleRequest::setEscalationsInfoThreshold(const std::string& escalationsInfoThreshold) -{ - escalationsInfoThreshold_ = escalationsInfoThreshold; - setParameter("EscalationsInfoThreshold", escalationsInfoThreshold); +std::string PutGroupMetricRuleRequest::getEscalationsInfoThreshold() const { + return escalationsInfoThreshold_; } -std::string PutGroupMetricRuleRequest::get_Namespace()const -{ - return _namespace_; +void PutGroupMetricRuleRequest::setEscalationsInfoThreshold(const std::string &escalationsInfoThreshold) { + escalationsInfoThreshold_ = escalationsInfoThreshold; + setParameter(std::string("Escalations.Info.Threshold"), escalationsInfoThreshold); } -void PutGroupMetricRuleRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +std::string PutGroupMetricRuleRequest::get_Namespace() const { + return _namespace_; } -std::string PutGroupMetricRuleRequest::getInterval()const -{ - return interval_; +void PutGroupMetricRuleRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -void PutGroupMetricRuleRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); +std::string PutGroupMetricRuleRequest::getInterval() const { + return interval_; } -std::string PutGroupMetricRuleRequest::getRuleId()const -{ - return ruleId_; +void PutGroupMetricRuleRequest::setInterval(const std::string &interval) { + interval_ = interval; + setParameter(std::string("Interval"), interval); } -void PutGroupMetricRuleRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); +std::string PutGroupMetricRuleRequest::getRuleId() const { + return ruleId_; } -std::string PutGroupMetricRuleRequest::getCategory()const -{ - return category_; +void PutGroupMetricRuleRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } -void PutGroupMetricRuleRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string PutGroupMetricRuleRequest::getCategory() const { + return category_; } -std::string PutGroupMetricRuleRequest::getEscalationsCriticalComparisonOperator()const -{ - return escalationsCriticalComparisonOperator_; +void PutGroupMetricRuleRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } -void PutGroupMetricRuleRequest::setEscalationsCriticalComparisonOperator(const std::string& escalationsCriticalComparisonOperator) -{ - escalationsCriticalComparisonOperator_ = escalationsCriticalComparisonOperator; - setParameter("EscalationsCriticalComparisonOperator", escalationsCriticalComparisonOperator); +std::string PutGroupMetricRuleRequest::getEscalationsCriticalComparisonOperator() const { + return escalationsCriticalComparisonOperator_; } -std::string PutGroupMetricRuleRequest::getEscalationsCriticalThreshold()const -{ - return escalationsCriticalThreshold_; +void PutGroupMetricRuleRequest::setEscalationsCriticalComparisonOperator(const std::string &escalationsCriticalComparisonOperator) { + escalationsCriticalComparisonOperator_ = escalationsCriticalComparisonOperator; + setParameter(std::string("Escalations.Critical.ComparisonOperator"), escalationsCriticalComparisonOperator); } -void PutGroupMetricRuleRequest::setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold) -{ - escalationsCriticalThreshold_ = escalationsCriticalThreshold; - setParameter("EscalationsCriticalThreshold", escalationsCriticalThreshold); +std::string PutGroupMetricRuleRequest::getEscalationsCriticalThreshold() const { + return escalationsCriticalThreshold_; } -std::string PutGroupMetricRuleRequest::getDimensions()const -{ - return dimensions_; +void PutGroupMetricRuleRequest::setEscalationsCriticalThreshold(const std::string &escalationsCriticalThreshold) { + escalationsCriticalThreshold_ = escalationsCriticalThreshold; + setParameter(std::string("Escalations.Critical.Threshold"), escalationsCriticalThreshold); } -void PutGroupMetricRuleRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setParameter("Dimensions", dimensions); +std::string PutGroupMetricRuleRequest::getDimensions() const { + return dimensions_; +} + +void PutGroupMetricRuleRequest::setDimensions(const std::string &dimensions) { + dimensions_ = dimensions; + setParameter(std::string("Dimensions"), dimensions); } diff --git a/cms/src/model/PutHybridMonitorMetricDataRequest.cc b/cms/src/model/PutHybridMonitorMetricDataRequest.cc new file mode 100644 index 000000000..5575e22ee --- /dev/null +++ b/cms/src/model/PutHybridMonitorMetricDataRequest.cc @@ -0,0 +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. + */ + +#include + +using AlibabaCloud::Cms::Model::PutHybridMonitorMetricDataRequest; + +PutHybridMonitorMetricDataRequest::PutHybridMonitorMetricDataRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutHybridMonitorMetricData") { + setMethod(HttpRequest::Method::Post); +} + +PutHybridMonitorMetricDataRequest::~PutHybridMonitorMetricDataRequest() {} + +std::vector PutHybridMonitorMetricDataRequest::getMetricList() const { + return metricList_; +} + +void PutHybridMonitorMetricDataRequest::setMetricList(const std::vector &metricList) { + metricList_ = metricList; + for(int dep1 = 0; dep1 != metricList.size(); dep1++) { + auto metricListObj = metricList.at(dep1); + std::string metricListObjStr = std::string("MetricList") + "." + std::to_string(dep1 + 1); + setParameter(metricListObjStr + ".Name", metricListObj.name); + setParameter(metricListObjStr + ".Value", metricListObj.value); + for(int dep2 = 0; dep2 != metricListObj.labels.size(); dep2++) { + auto labelsObj = metricListObj.labels.at(dep2); + std::string labelsObjStr = metricListObjStr + ".Labels" + "." + std::to_string(dep2 + 1); + setParameter(labelsObjStr + ".Value", labelsObj.value); + setParameter(labelsObjStr + ".Key", labelsObj.key); + } + setParameter(metricListObjStr + ".TS", std::to_string(metricListObj.tS)); + } +} + +std::string PutHybridMonitorMetricDataRequest::get_Namespace() const { + return _namespace_; +} + +void PutHybridMonitorMetricDataRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/cms/src/model/PutHybridMonitorMetricDataResult.cc b/cms/src/model/PutHybridMonitorMetricDataResult.cc new file mode 100644 index 000000000..3ce0d7497 --- /dev/null +++ b/cms/src/model/PutHybridMonitorMetricDataResult.cc @@ -0,0 +1,66 @@ +/* + * 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::Cms; +using namespace AlibabaCloud::Cms::Model; + +PutHybridMonitorMetricDataResult::PutHybridMonitorMetricDataResult() : + ServiceResult() +{} + +PutHybridMonitorMetricDataResult::PutHybridMonitorMetricDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutHybridMonitorMetricDataResult::~PutHybridMonitorMetricDataResult() +{} + +void PutHybridMonitorMetricDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allErrorDetailNode = value["ErrorDetail"]["detail"]; + for (auto valueErrorDetaildetail : allErrorDetailNode) + { + Detail errorDetailObject; + if(!valueErrorDetaildetail["Index"].isNull()) + errorDetailObject.index = std::stol(valueErrorDetaildetail["Index"].asString()); + if(!valueErrorDetaildetail["ErrorMessage"].isNull()) + errorDetailObject.errorMessage = valueErrorDetaildetail["ErrorMessage"].asString(); + errorDetail_.push_back(errorDetailObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::vector PutHybridMonitorMetricDataResult::getErrorDetail()const +{ + return errorDetail_; +} + +std::string PutHybridMonitorMetricDataResult::getCode()const +{ + return code_; +} + diff --git a/cms/src/model/PutLogMonitorRequest.cc b/cms/src/model/PutLogMonitorRequest.cc index bb90368fc..0a48f2d9d 100644 --- a/cms/src/model/PutLogMonitorRequest.cc +++ b/cms/src/model/PutLogMonitorRequest.cc @@ -1,200 +1,170 @@ /* * 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::Cms::Model::PutLogMonitorRequest; - -PutLogMonitorRequest::PutLogMonitorRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutLogMonitor") -{ - setMethod(HttpRequest::Method::Post); -} - -PutLogMonitorRequest::~PutLogMonitorRequest() -{} - -std::string PutLogMonitorRequest::getSlsLogstore()const -{ - return slsLogstore_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutLogMonitorRequest; + +PutLogMonitorRequest::PutLogMonitorRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutLogMonitor") { + setMethod(HttpRequest::Method::Post); } -void PutLogMonitorRequest::setSlsLogstore(const std::string& slsLogstore) -{ - slsLogstore_ = slsLogstore; - setParameter("SlsLogstore", slsLogstore); +PutLogMonitorRequest::~PutLogMonitorRequest() {} + +std::string PutLogMonitorRequest::getSlsLogstore() const { + return slsLogstore_; } -std::string PutLogMonitorRequest::getSlsProject()const -{ - return slsProject_; +void PutLogMonitorRequest::setSlsLogstore(const std::string &slsLogstore) { + slsLogstore_ = slsLogstore; + setParameter(std::string("SlsLogstore"), slsLogstore); } -void PutLogMonitorRequest::setSlsProject(const std::string& slsProject) -{ - slsProject_ = slsProject; - setParameter("SlsProject", slsProject); +std::string PutLogMonitorRequest::getSlsProject() const { + return slsProject_; } -std::vector PutLogMonitorRequest::getValueFilter()const -{ - return valueFilter_; +void PutLogMonitorRequest::setSlsProject(const std::string &slsProject) { + slsProject_ = slsProject; + setParameter(std::string("SlsProject"), slsProject); } -void PutLogMonitorRequest::setValueFilter(const std::vector& valueFilter) -{ - valueFilter_ = valueFilter; - for(int dep1 = 0; dep1!= valueFilter.size(); dep1++) { - auto valueFilterObj = valueFilter.at(dep1); - std::string valueFilterObjStr = "ValueFilter." + std::to_string(dep1 + 1); - setParameter(valueFilterObjStr + ".Value", valueFilterObj.value); - setParameter(valueFilterObjStr + ".Key", valueFilterObj.key); - setParameter(valueFilterObjStr + "._Operator", valueFilterObj._operator); - } +std::vector PutLogMonitorRequest::getValueFilter() const { + return valueFilter_; } -std::string PutLogMonitorRequest::getMetricExpress()const -{ - return metricExpress_; +void PutLogMonitorRequest::setValueFilter(const std::vector &valueFilter) { + valueFilter_ = valueFilter; + for(int dep1 = 0; dep1 != valueFilter.size(); dep1++) { + auto valueFilterObj = valueFilter.at(dep1); + std::string valueFilterObjStr = std::string("ValueFilter") + "." + std::to_string(dep1 + 1); + setParameter(valueFilterObjStr + ".Value", valueFilterObj.value); + setParameter(valueFilterObjStr + ".Key", valueFilterObj.key); + setParameter(valueFilterObjStr + ".Operator", valueFilterObj._operator); + } } -void PutLogMonitorRequest::setMetricExpress(const std::string& metricExpress) -{ - metricExpress_ = metricExpress; - setParameter("MetricExpress", metricExpress); +std::string PutLogMonitorRequest::getMetricExpress() const { + return metricExpress_; } -std::string PutLogMonitorRequest::getSlsRegionId()const -{ - return slsRegionId_; +void PutLogMonitorRequest::setMetricExpress(const std::string &metricExpress) { + metricExpress_ = metricExpress; + setParameter(std::string("MetricExpress"), metricExpress); } -void PutLogMonitorRequest::setSlsRegionId(const std::string& slsRegionId) -{ - slsRegionId_ = slsRegionId; - setParameter("SlsRegionId", slsRegionId); +std::string PutLogMonitorRequest::getSlsRegionId() const { + return slsRegionId_; } -std::string PutLogMonitorRequest::getMetricName()const -{ - return metricName_; +void PutLogMonitorRequest::setSlsRegionId(const std::string &slsRegionId) { + slsRegionId_ = slsRegionId; + setParameter(std::string("SlsRegionId"), slsRegionId); } -void PutLogMonitorRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +std::string PutLogMonitorRequest::getMetricName() const { + return metricName_; } -std::string PutLogMonitorRequest::getGroupId()const -{ - return groupId_; +void PutLogMonitorRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -void PutLogMonitorRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string PutLogMonitorRequest::getGroupId() const { + return groupId_; } -std::string PutLogMonitorRequest::getTumblingwindows()const -{ - return tumblingwindows_; +void PutLogMonitorRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void PutLogMonitorRequest::setTumblingwindows(const std::string& tumblingwindows) -{ - tumblingwindows_ = tumblingwindows; - setParameter("Tumblingwindows", tumblingwindows); +std::string PutLogMonitorRequest::getTumblingwindows() const { + return tumblingwindows_; } -std::string PutLogMonitorRequest::getGroupBy()const -{ - return groupBy_; +void PutLogMonitorRequest::setTumblingwindows(const std::string &tumblingwindows) { + tumblingwindows_ = tumblingwindows; + setParameter(std::string("Tumblingwindows"), tumblingwindows); } -void PutLogMonitorRequest::setGroupBy(const std::string& groupBy) -{ - groupBy_ = groupBy; - setParameter("GroupBy", groupBy); +std::string PutLogMonitorRequest::getGroupBy() const { + return groupBy_; } -std::string PutLogMonitorRequest::getValueFilterRelation()const -{ - return valueFilterRelation_; +void PutLogMonitorRequest::setGroupBy(const std::string &groupBy) { + groupBy_ = groupBy; + setParameter(std::string("GroupBy"), groupBy); } -void PutLogMonitorRequest::setValueFilterRelation(const std::string& valueFilterRelation) -{ - valueFilterRelation_ = valueFilterRelation; - setParameter("ValueFilterRelation", valueFilterRelation); +std::string PutLogMonitorRequest::getValueFilterRelation() const { + return valueFilterRelation_; } -std::string PutLogMonitorRequest::getUnit()const -{ - return unit_; +void PutLogMonitorRequest::setValueFilterRelation(const std::string &valueFilterRelation) { + valueFilterRelation_ = valueFilterRelation; + setParameter(std::string("ValueFilterRelation"), valueFilterRelation); } -void PutLogMonitorRequest::setUnit(const std::string& unit) -{ - unit_ = unit; - setParameter("Unit", unit); +std::string PutLogMonitorRequest::getUnit() const { + return unit_; } -std::vector PutLogMonitorRequest::getGroupbys()const -{ - return groupbys_; +void PutLogMonitorRequest::setUnit(const std::string &unit) { + unit_ = unit; + setParameter(std::string("Unit"), unit); } -void PutLogMonitorRequest::setGroupbys(const std::vector& groupbys) -{ - groupbys_ = groupbys; - for(int dep1 = 0; dep1!= groupbys.size(); dep1++) { - auto groupbysObj = groupbys.at(dep1); - std::string groupbysObjStr = "Groupbys." + std::to_string(dep1 + 1); - setParameter(groupbysObjStr + ".FieldName", groupbysObj.fieldName); - setParameter(groupbysObjStr + ".Alias", groupbysObj.alias); - } +std::vector PutLogMonitorRequest::getGroupbys() const { + return groupbys_; } -std::string PutLogMonitorRequest::getLogId()const -{ - return logId_; +void PutLogMonitorRequest::setGroupbys(const std::vector &groupbys) { + groupbys_ = groupbys; + for(int dep1 = 0; dep1 != groupbys.size(); dep1++) { + auto groupbysObj = groupbys.at(dep1); + std::string groupbysObjStr = std::string("Groupbys") + "." + std::to_string(dep1 + 1); + setParameter(groupbysObjStr + ".FieldName", groupbysObj.fieldName); + setParameter(groupbysObjStr + ".Alias", groupbysObj.alias); + } } -void PutLogMonitorRequest::setLogId(const std::string& logId) -{ - logId_ = logId; - setParameter("LogId", logId); +std::string PutLogMonitorRequest::getLogId() const { + return logId_; } -std::vector PutLogMonitorRequest::getAggregates()const -{ - return aggregates_; +void PutLogMonitorRequest::setLogId(const std::string &logId) { + logId_ = logId; + setParameter(std::string("LogId"), logId); } -void PutLogMonitorRequest::setAggregates(const std::vector& aggregates) -{ - aggregates_ = aggregates; - for(int dep1 = 0; dep1!= aggregates.size(); dep1++) { - auto aggregatesObj = aggregates.at(dep1); - std::string aggregatesObjStr = "Aggregates." + std::to_string(dep1 + 1); - setParameter(aggregatesObjStr + ".FieldName", aggregatesObj.fieldName); - setParameter(aggregatesObjStr + ".Function", aggregatesObj.function); - setParameter(aggregatesObjStr + ".Alias", aggregatesObj.alias); - } +std::vector PutLogMonitorRequest::getAggregates() const { + return aggregates_; +} + +void PutLogMonitorRequest::setAggregates(const std::vector &aggregates) { + aggregates_ = aggregates; + for(int dep1 = 0; dep1 != aggregates.size(); dep1++) { + auto aggregatesObj = aggregates.at(dep1); + std::string aggregatesObjStr = std::string("Aggregates") + "." + std::to_string(dep1 + 1); + setParameter(aggregatesObjStr + ".FieldName", aggregatesObj.fieldName); + setParameter(aggregatesObjStr + ".Function", aggregatesObj.function); + setParameter(aggregatesObjStr + ".Alias", aggregatesObj.alias); + } } diff --git a/cms/src/model/PutMetricRuleTargetsRequest.cc b/cms/src/model/PutMetricRuleTargetsRequest.cc index 9adb3a435..ce03bb995 100644 --- a/cms/src/model/PutMetricRuleTargetsRequest.cc +++ b/cms/src/model/PutMetricRuleTargetsRequest.cc @@ -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. - */ - -#include - -using AlibabaCloud::Cms::Model::PutMetricRuleTargetsRequest; - -PutMetricRuleTargetsRequest::PutMetricRuleTargetsRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutMetricRuleTargets") -{ - setMethod(HttpRequest::Method::Post); -} - -PutMetricRuleTargetsRequest::~PutMetricRuleTargetsRequest() -{} - -std::vector PutMetricRuleTargetsRequest::getTargets()const -{ - return targets_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutMetricRuleTargetsRequest; + +PutMetricRuleTargetsRequest::PutMetricRuleTargetsRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutMetricRuleTargets") { + setMethod(HttpRequest::Method::Post); } -void PutMetricRuleTargetsRequest::setTargets(const std::vector& targets) -{ - targets_ = targets; - for(int dep1 = 0; dep1!= targets.size(); dep1++) { - auto targetsObj = targets.at(dep1); - std::string targetsObjStr = "Targets." + std::to_string(dep1 + 1); - setParameter(targetsObjStr + ".Level", targetsObj.level); - setParameter(targetsObjStr + ".Id", targetsObj.id); - setParameter(targetsObjStr + ".Arn", targetsObj.arn); - } +PutMetricRuleTargetsRequest::~PutMetricRuleTargetsRequest() {} + +std::vector PutMetricRuleTargetsRequest::getTargets() const { + return targets_; } -std::string PutMetricRuleTargetsRequest::getRuleId()const -{ - return ruleId_; +void PutMetricRuleTargetsRequest::setTargets(const std::vector &targets) { + targets_ = targets; + for(int dep1 = 0; dep1 != targets.size(); dep1++) { + auto targetsObj = targets.at(dep1); + std::string targetsObjStr = std::string("Targets") + "." + std::to_string(dep1 + 1); + setParameter(targetsObjStr + ".Level", targetsObj.level); + setParameter(targetsObjStr + ".Id", targetsObj.id); + setParameter(targetsObjStr + ".Arn", targetsObj.arn); + } } -void PutMetricRuleTargetsRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); +std::string PutMetricRuleTargetsRequest::getRuleId() const { + return ruleId_; +} + +void PutMetricRuleTargetsRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } diff --git a/cms/src/model/PutMetricRuleTargetsResult.cc b/cms/src/model/PutMetricRuleTargetsResult.cc index d47fe3ec4..e27e3aaff 100644 --- a/cms/src/model/PutMetricRuleTargetsResult.cc +++ b/cms/src/model/PutMetricRuleTargetsResult.cc @@ -52,12 +52,12 @@ void PutMetricRuleTargetsResult::parse(const std::string &payload) targetObject.level = failDataNodeTargetsTarget["Level"].asString(); failData_.targets.push_back(targetObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/PutMonitorGroupDynamicRuleRequest.cc b/cms/src/model/PutMonitorGroupDynamicRuleRequest.cc index 1a8ea728b..ece407d3e 100644 --- a/cms/src/model/PutMonitorGroupDynamicRuleRequest.cc +++ b/cms/src/model/PutMonitorGroupDynamicRuleRequest.cc @@ -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. - */ - -#include - -using AlibabaCloud::Cms::Model::PutMonitorGroupDynamicRuleRequest; - -PutMonitorGroupDynamicRuleRequest::PutMonitorGroupDynamicRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutMonitorGroupDynamicRule") -{ - setMethod(HttpRequest::Method::Post); -} - -PutMonitorGroupDynamicRuleRequest::~PutMonitorGroupDynamicRuleRequest() -{} - -std::vector PutMonitorGroupDynamicRuleRequest::getGroupRules()const -{ - return groupRules_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutMonitorGroupDynamicRuleRequest; + +PutMonitorGroupDynamicRuleRequest::PutMonitorGroupDynamicRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutMonitorGroupDynamicRule") { + setMethod(HttpRequest::Method::Post); } -void PutMonitorGroupDynamicRuleRequest::setGroupRules(const std::vector& groupRules) -{ - groupRules_ = groupRules; - for(int dep1 = 0; dep1!= groupRules.size(); dep1++) { - auto groupRulesObj = groupRules.at(dep1); - std::string groupRulesObjStr = "GroupRules." + std::to_string(dep1 + 1); - setParameter(groupRulesObjStr + ".FilterRelation", groupRulesObj.filterRelation); - for(int dep2 = 0; dep2!= groupRulesObj.filters.size(); dep2++) { - auto filtersObj = groupRulesObj.filters.at(dep2); - std::string filtersObjStr = groupRulesObjStr + "Filters." + std::to_string(dep2 + 1); - setParameter(filtersObjStr + ".Function", filtersObj.function); - setParameter(filtersObjStr + ".Name", filtersObj.name); - setParameter(filtersObjStr + ".Value", filtersObj.value); - } - setParameter(groupRulesObjStr + ".Category", groupRulesObj.category); - } +PutMonitorGroupDynamicRuleRequest::~PutMonitorGroupDynamicRuleRequest() {} + +std::vector PutMonitorGroupDynamicRuleRequest::getGroupRules() const { + return groupRules_; } -long PutMonitorGroupDynamicRuleRequest::getGroupId()const -{ - return groupId_; +void PutMonitorGroupDynamicRuleRequest::setGroupRules(const std::vector &groupRules) { + groupRules_ = groupRules; + for(int dep1 = 0; dep1 != groupRules.size(); dep1++) { + auto groupRulesObj = groupRules.at(dep1); + std::string groupRulesObjStr = std::string("GroupRules") + "." + std::to_string(dep1 + 1); + setParameter(groupRulesObjStr + ".FilterRelation", groupRulesObj.filterRelation); + for(int dep2 = 0; dep2 != groupRulesObj.filters.size(); dep2++) { + auto filtersObj = groupRulesObj.filters.at(dep2); + std::string filtersObjStr = groupRulesObjStr + ".Filters" + "." + std::to_string(dep2 + 1); + setParameter(filtersObjStr + ".Function", filtersObj.function); + setParameter(filtersObjStr + ".Name", filtersObj.name); + setParameter(filtersObjStr + ".Value", filtersObj.value); + } + setParameter(groupRulesObjStr + ".Category", groupRulesObj.category); + } } -void PutMonitorGroupDynamicRuleRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +long PutMonitorGroupDynamicRuleRequest::getGroupId() const { + return groupId_; +} + +void PutMonitorGroupDynamicRuleRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } diff --git a/cms/src/model/PutMonitorGroupDynamicRuleResult.cc b/cms/src/model/PutMonitorGroupDynamicRuleResult.cc index beaa3c83d..b7396b8ed 100644 --- a/cms/src/model/PutMonitorGroupDynamicRuleResult.cc +++ b/cms/src/model/PutMonitorGroupDynamicRuleResult.cc @@ -39,12 +39,12 @@ void PutMonitorGroupDynamicRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/cms/src/model/PutMonitoringConfigRequest.cc b/cms/src/model/PutMonitoringConfigRequest.cc index 0549cd070..b649c2a00 100644 --- a/cms/src/model/PutMonitoringConfigRequest.cc +++ b/cms/src/model/PutMonitoringConfigRequest.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::Cms::Model::PutMonitoringConfigRequest; - -PutMonitoringConfigRequest::PutMonitoringConfigRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutMonitoringConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -PutMonitoringConfigRequest::~PutMonitoringConfigRequest() -{} - -bool PutMonitoringConfigRequest::getAutoInstall()const -{ - return autoInstall_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutMonitoringConfigRequest; + +PutMonitoringConfigRequest::PutMonitoringConfigRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutMonitoringConfig") { + setMethod(HttpRequest::Method::Post); } -void PutMonitoringConfigRequest::setAutoInstall(bool autoInstall) -{ - autoInstall_ = autoInstall; - setParameter("AutoInstall", autoInstall ? "true" : "false"); +PutMonitoringConfigRequest::~PutMonitoringConfigRequest() {} + +bool PutMonitoringConfigRequest::getAutoInstall() const { + return autoInstall_; } -bool PutMonitoringConfigRequest::getEnableInstallAgentNewECS()const -{ - return enableInstallAgentNewECS_; +void PutMonitoringConfigRequest::setAutoInstall(bool autoInstall) { + autoInstall_ = autoInstall; + setParameter(std::string("AutoInstall"), autoInstall ? "true" : "false"); } -void PutMonitoringConfigRequest::setEnableInstallAgentNewECS(bool enableInstallAgentNewECS) -{ - enableInstallAgentNewECS_ = enableInstallAgentNewECS; - setParameter("EnableInstallAgentNewECS", enableInstallAgentNewECS ? "true" : "false"); +bool PutMonitoringConfigRequest::getEnableInstallAgentNewECS() const { + return enableInstallAgentNewECS_; +} + +void PutMonitoringConfigRequest::setEnableInstallAgentNewECS(bool enableInstallAgentNewECS) { + enableInstallAgentNewECS_ = enableInstallAgentNewECS; + setParameter(std::string("EnableInstallAgentNewECS"), enableInstallAgentNewECS ? "true" : "false"); } diff --git a/cms/src/model/PutResourceMetricRuleRequest.cc b/cms/src/model/PutResourceMetricRuleRequest.cc index b44700c26..474ee94de 100644 --- a/cms/src/model/PutResourceMetricRuleRequest.cc +++ b/cms/src/model/PutResourceMetricRuleRequest.cc @@ -1,392 +1,346 @@ /* * 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::Cms::Model::PutResourceMetricRuleRequest; - -PutResourceMetricRuleRequest::PutResourceMetricRuleRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutResourceMetricRule") -{ - setMethod(HttpRequest::Method::Post); -} - -PutResourceMetricRuleRequest::~PutResourceMetricRuleRequest() -{} - -std::string PutResourceMetricRuleRequest::getWebhook()const -{ - return webhook_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutResourceMetricRuleRequest; + +PutResourceMetricRuleRequest::PutResourceMetricRuleRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutResourceMetricRule") { + setMethod(HttpRequest::Method::Post); +} + +PutResourceMetricRuleRequest::~PutResourceMetricRuleRequest() {} + +std::string PutResourceMetricRuleRequest::getWebhook() const { + return webhook_; } -void PutResourceMetricRuleRequest::setWebhook(const std::string& webhook) -{ - webhook_ = webhook; - setParameter("Webhook", webhook); +void PutResourceMetricRuleRequest::setWebhook(const std::string &webhook) { + webhook_ = webhook; + setParameter(std::string("Webhook"), webhook); } -std::string PutResourceMetricRuleRequest::getEscalationsWarnComparisonOperator()const -{ - return escalationsWarnComparisonOperator_; +std::string PutResourceMetricRuleRequest::getEscalationsWarnComparisonOperator() const { + return escalationsWarnComparisonOperator_; } -void PutResourceMetricRuleRequest::setEscalationsWarnComparisonOperator(const std::string& escalationsWarnComparisonOperator) -{ - escalationsWarnComparisonOperator_ = escalationsWarnComparisonOperator; - setParameter("EscalationsWarnComparisonOperator", escalationsWarnComparisonOperator); +void PutResourceMetricRuleRequest::setEscalationsWarnComparisonOperator(const std::string &escalationsWarnComparisonOperator) { + escalationsWarnComparisonOperator_ = escalationsWarnComparisonOperator; + setParameter(std::string("Escalations.Warn.ComparisonOperator"), escalationsWarnComparisonOperator); } -std::string PutResourceMetricRuleRequest::getRuleName()const -{ - return ruleName_; +std::string PutResourceMetricRuleRequest::getRuleName() const { + return ruleName_; } -void PutResourceMetricRuleRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setParameter("RuleName", ruleName); +void PutResourceMetricRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); } -std::string PutResourceMetricRuleRequest::getEffectiveInterval()const -{ - return effectiveInterval_; +std::string PutResourceMetricRuleRequest::getEffectiveInterval() const { + return effectiveInterval_; } -void PutResourceMetricRuleRequest::setEffectiveInterval(const std::string& effectiveInterval) -{ - effectiveInterval_ = effectiveInterval; - setParameter("EffectiveInterval", effectiveInterval); +void PutResourceMetricRuleRequest::setEffectiveInterval(const std::string &effectiveInterval) { + effectiveInterval_ = effectiveInterval; + setParameter(std::string("EffectiveInterval"), effectiveInterval); } -std::string PutResourceMetricRuleRequest::getNoDataPolicy()const -{ - return noDataPolicy_; +std::string PutResourceMetricRuleRequest::getNoDataPolicy() const { + return noDataPolicy_; } -void PutResourceMetricRuleRequest::setNoDataPolicy(const std::string& noDataPolicy) -{ - noDataPolicy_ = noDataPolicy; - setParameter("NoDataPolicy", noDataPolicy); +void PutResourceMetricRuleRequest::setNoDataPolicy(const std::string &noDataPolicy) { + noDataPolicy_ = noDataPolicy; + setParameter(std::string("NoDataPolicy"), noDataPolicy); } -std::string PutResourceMetricRuleRequest::getNoEffectiveInterval()const -{ - return noEffectiveInterval_; +std::string PutResourceMetricRuleRequest::getNoEffectiveInterval() const { + return noEffectiveInterval_; } -void PutResourceMetricRuleRequest::setNoEffectiveInterval(const std::string& noEffectiveInterval) -{ - noEffectiveInterval_ = noEffectiveInterval; - setParameter("NoEffectiveInterval", noEffectiveInterval); +void PutResourceMetricRuleRequest::setNoEffectiveInterval(const std::string &noEffectiveInterval) { + noEffectiveInterval_ = noEffectiveInterval; + setParameter(std::string("NoEffectiveInterval"), noEffectiveInterval); } -std::string PutResourceMetricRuleRequest::getEmailSubject()const -{ - return emailSubject_; +std::string PutResourceMetricRuleRequest::getEmailSubject() const { + return emailSubject_; } -void PutResourceMetricRuleRequest::setEmailSubject(const std::string& emailSubject) -{ - emailSubject_ = emailSubject; - setParameter("EmailSubject", emailSubject); +void PutResourceMetricRuleRequest::setEmailSubject(const std::string &emailSubject) { + emailSubject_ = emailSubject; + setParameter(std::string("EmailSubject"), emailSubject); } -std::string PutResourceMetricRuleRequest::getOptions()const -{ - return options_; +std::string PutResourceMetricRuleRequest::getOptions() const { + return options_; } -void PutResourceMetricRuleRequest::setOptions(const std::string& options) -{ - options_ = options; - setParameter("Options", options); +void PutResourceMetricRuleRequest::setOptions(const std::string &options) { + options_ = options; + setParameter(std::string("Options"), options); } -std::string PutResourceMetricRuleRequest::getMetricName()const -{ - return metricName_; +std::string PutResourceMetricRuleRequest::getMetricName() const { + return metricName_; } -void PutResourceMetricRuleRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); +void PutResourceMetricRuleRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); } -int PutResourceMetricRuleRequest::getEscalationsWarnTimes()const -{ - return escalationsWarnTimes_; +int PutResourceMetricRuleRequest::getEscalationsWarnTimes() const { + return escalationsWarnTimes_; } -void PutResourceMetricRuleRequest::setEscalationsWarnTimes(int escalationsWarnTimes) -{ - escalationsWarnTimes_ = escalationsWarnTimes; - setParameter("EscalationsWarnTimes", std::to_string(escalationsWarnTimes)); +void PutResourceMetricRuleRequest::setEscalationsWarnTimes(int escalationsWarnTimes) { + escalationsWarnTimes_ = escalationsWarnTimes; + setParameter(std::string("Escalations.Warn.Times"), std::to_string(escalationsWarnTimes)); } -std::string PutResourceMetricRuleRequest::getPeriod()const -{ - return period_; +std::string PutResourceMetricRuleRequest::getPeriod() const { + return period_; } -void PutResourceMetricRuleRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +void PutResourceMetricRuleRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -std::string PutResourceMetricRuleRequest::getEscalationsWarnThreshold()const -{ - return escalationsWarnThreshold_; +std::string PutResourceMetricRuleRequest::getEscalationsWarnThreshold() const { + return escalationsWarnThreshold_; } -void PutResourceMetricRuleRequest::setEscalationsWarnThreshold(const std::string& escalationsWarnThreshold) -{ - escalationsWarnThreshold_ = escalationsWarnThreshold; - setParameter("EscalationsWarnThreshold", escalationsWarnThreshold); +void PutResourceMetricRuleRequest::setEscalationsWarnThreshold(const std::string &escalationsWarnThreshold) { + escalationsWarnThreshold_ = escalationsWarnThreshold; + setParameter(std::string("Escalations.Warn.Threshold"), escalationsWarnThreshold); } -std::string PutResourceMetricRuleRequest::getContactGroups()const -{ - return contactGroups_; +std::string PutResourceMetricRuleRequest::getContactGroups() const { + return contactGroups_; } -void PutResourceMetricRuleRequest::setContactGroups(const std::string& contactGroups) -{ - contactGroups_ = contactGroups; - setParameter("ContactGroups", contactGroups); +void PutResourceMetricRuleRequest::setContactGroups(const std::string &contactGroups) { + contactGroups_ = contactGroups; + setParameter(std::string("ContactGroups"), contactGroups); } -std::string PutResourceMetricRuleRequest::getEscalationsCriticalStatistics()const -{ - return escalationsCriticalStatistics_; +std::string PutResourceMetricRuleRequest::getEscalationsCriticalStatistics() const { + return escalationsCriticalStatistics_; } -void PutResourceMetricRuleRequest::setEscalationsCriticalStatistics(const std::string& escalationsCriticalStatistics) -{ - escalationsCriticalStatistics_ = escalationsCriticalStatistics; - setParameter("EscalationsCriticalStatistics", escalationsCriticalStatistics); +void PutResourceMetricRuleRequest::setEscalationsCriticalStatistics(const std::string &escalationsCriticalStatistics) { + escalationsCriticalStatistics_ = escalationsCriticalStatistics; + setParameter(std::string("Escalations.Critical.Statistics"), escalationsCriticalStatistics); } -std::string PutResourceMetricRuleRequest::getGroupId()const -{ - return groupId_; +std::string PutResourceMetricRuleRequest::getGroupId() const { + return groupId_; } -void PutResourceMetricRuleRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +void PutResourceMetricRuleRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -std::string PutResourceMetricRuleRequest::getGroupName()const -{ - return groupName_; +std::string PutResourceMetricRuleRequest::getGroupName() const { + return groupName_; } -void PutResourceMetricRuleRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +void PutResourceMetricRuleRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -Array PutResourceMetricRuleRequest::getLabels()const -{ - return labels_; +std::vector PutResourceMetricRuleRequest::getLabels() const { + return labels_; } -void PutResourceMetricRuleRequest::setLabels(const Array& labels) -{ - labels_ = labels; - setParameter("Labels", std::to_string(labels)); +void PutResourceMetricRuleRequest::setLabels(const std::vector &labels) { + labels_ = labels; + for(int dep1 = 0; dep1 != labels.size(); dep1++) { + auto labelsObj = labels.at(dep1); + std::string labelsObjStr = std::string("Labels") + "." + std::to_string(dep1 + 1); + setParameter(labelsObjStr + ".Value", labelsObj.value); + setParameter(labelsObjStr + ".Key", labelsObj.key); + } } -std::string PutResourceMetricRuleRequest::getInterval()const -{ - return interval_; +std::string PutResourceMetricRuleRequest::getInterval() const { + return interval_; } -void PutResourceMetricRuleRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setParameter("Interval", interval); +void PutResourceMetricRuleRequest::setInterval(const std::string &interval) { + interval_ = interval; + setParameter(std::string("Interval"), interval); } -std::string PutResourceMetricRuleRequest::getRuleId()const -{ - return ruleId_; +std::string PutResourceMetricRuleRequest::getRuleId() const { + return ruleId_; } -void PutResourceMetricRuleRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); +void PutResourceMetricRuleRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); } -std::string PutResourceMetricRuleRequest::getEscalationsCriticalThreshold()const -{ - return escalationsCriticalThreshold_; +std::string PutResourceMetricRuleRequest::getEscalationsCriticalThreshold() const { + return escalationsCriticalThreshold_; } -void PutResourceMetricRuleRequest::setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold) -{ - escalationsCriticalThreshold_ = escalationsCriticalThreshold; - setParameter("EscalationsCriticalThreshold", escalationsCriticalThreshold); +void PutResourceMetricRuleRequest::setEscalationsCriticalThreshold(const std::string &escalationsCriticalThreshold) { + escalationsCriticalThreshold_ = escalationsCriticalThreshold; + setParameter(std::string("Escalations.Critical.Threshold"), escalationsCriticalThreshold); } -std::string PutResourceMetricRuleRequest::getEscalationsInfoStatistics()const -{ - return escalationsInfoStatistics_; +std::string PutResourceMetricRuleRequest::getEscalationsInfoStatistics() const { + return escalationsInfoStatistics_; } -void PutResourceMetricRuleRequest::setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics) -{ - escalationsInfoStatistics_ = escalationsInfoStatistics; - setParameter("EscalationsInfoStatistics", escalationsInfoStatistics); +void PutResourceMetricRuleRequest::setEscalationsInfoStatistics(const std::string &escalationsInfoStatistics) { + escalationsInfoStatistics_ = escalationsInfoStatistics; + setParameter(std::string("Escalations.Info.Statistics"), escalationsInfoStatistics); } -std::string PutResourceMetricRuleRequest::getEscalationsInfoComparisonOperator()const -{ - return escalationsInfoComparisonOperator_; +std::string PutResourceMetricRuleRequest::getEscalationsInfoComparisonOperator() const { + return escalationsInfoComparisonOperator_; } -void PutResourceMetricRuleRequest::setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator) -{ - escalationsInfoComparisonOperator_ = escalationsInfoComparisonOperator; - setParameter("EscalationsInfoComparisonOperator", escalationsInfoComparisonOperator); +void PutResourceMetricRuleRequest::setEscalationsInfoComparisonOperator(const std::string &escalationsInfoComparisonOperator) { + escalationsInfoComparisonOperator_ = escalationsInfoComparisonOperator; + setParameter(std::string("Escalations.Info.ComparisonOperator"), escalationsInfoComparisonOperator); } -int PutResourceMetricRuleRequest::getSilenceTime()const -{ - return silenceTime_; +int PutResourceMetricRuleRequest::getSilenceTime() const { + return silenceTime_; } -void PutResourceMetricRuleRequest::setSilenceTime(int silenceTime) -{ - silenceTime_ = silenceTime; - setParameter("SilenceTime", std::to_string(silenceTime)); +void PutResourceMetricRuleRequest::setSilenceTime(int silenceTime) { + silenceTime_ = silenceTime; + setParameter(std::string("SilenceTime"), std::to_string(silenceTime)); } -Struct PutResourceMetricRuleRequest::getPrometheus()const -{ - return prometheus_; +PutResourceMetricRuleRequest::Prometheus PutResourceMetricRuleRequest::getPrometheus() const { + return prometheus_; } -void PutResourceMetricRuleRequest::setPrometheus(const Struct& prometheus) -{ - prometheus_ = prometheus; - setParameter("Prometheus", std::to_string(prometheus)); +void PutResourceMetricRuleRequest::setPrometheus(const PutResourceMetricRuleRequest::Prometheus &prometheus) { + prometheus_ = prometheus; + setParameter(std::string("Prometheus") + ".PromQL", prometheus.promQL); + setParameter(std::string("Prometheus") + ".Times", std::to_string(prometheus.times)); + setParameter(std::string("Prometheus") + ".Level", prometheus.level); + for(int dep1 = 0; dep1 != prometheus.annotations.size(); dep1++) { + setParameter(std::string("Prometheus") + ".Annotations." + std::to_string(dep1 + 1) + ".Value", prometheus.annotations[dep1].value); + setParameter(std::string("Prometheus") + ".Annotations." + std::to_string(dep1 + 1) + ".Key", prometheus.annotations[dep1].key); + } } -Struct PutResourceMetricRuleRequest::getCompositeExpression()const -{ - return compositeExpression_; +PutResourceMetricRuleRequest::CompositeExpression PutResourceMetricRuleRequest::getCompositeExpression() const { + return compositeExpression_; } -void PutResourceMetricRuleRequest::setCompositeExpression(const Struct& compositeExpression) -{ - compositeExpression_ = compositeExpression; - setParameter("CompositeExpression", std::to_string(compositeExpression)); +void PutResourceMetricRuleRequest::setCompositeExpression(const PutResourceMetricRuleRequest::CompositeExpression &compositeExpression) { + compositeExpression_ = compositeExpression; + setParameter(std::string("CompositeExpression") + ".Times", std::to_string(compositeExpression.times)); + for(int dep1 = 0; dep1 != compositeExpression.expressionList.size(); dep1++) { + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".Period", std::to_string(compositeExpression.expressionList[dep1].period)); + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".Threshold", compositeExpression.expressionList[dep1].threshold); + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".Id", compositeExpression.expressionList[dep1].id); + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".MetricName", compositeExpression.expressionList[dep1].metricName); + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".ComparisonOperator", compositeExpression.expressionList[dep1].comparisonOperator); + setParameter(std::string("CompositeExpression") + ".ExpressionList." + std::to_string(dep1 + 1) + ".Statistics", compositeExpression.expressionList[dep1].statistics); + } + setParameter(std::string("CompositeExpression") + ".Level", compositeExpression.level); + setParameter(std::string("CompositeExpression") + ".ExpressionRaw", compositeExpression.expressionRaw); + setParameter(std::string("CompositeExpression") + ".ExpressionListJoin", compositeExpression.expressionListJoin); } -std::string PutResourceMetricRuleRequest::getResources()const -{ - return resources_; +std::string PutResourceMetricRuleRequest::getResources() const { + return resources_; } -void PutResourceMetricRuleRequest::setResources(const std::string& resources) -{ - resources_ = resources; - setParameter("Resources", resources); +void PutResourceMetricRuleRequest::setResources(const std::string &resources) { + resources_ = resources; + setParameter(std::string("Resources"), resources); } -int PutResourceMetricRuleRequest::getEscalationsInfoTimes()const -{ - return escalationsInfoTimes_; +int PutResourceMetricRuleRequest::getEscalationsInfoTimes() const { + return escalationsInfoTimes_; } -void PutResourceMetricRuleRequest::setEscalationsInfoTimes(int escalationsInfoTimes) -{ - escalationsInfoTimes_ = escalationsInfoTimes; - setParameter("EscalationsInfoTimes", std::to_string(escalationsInfoTimes)); +void PutResourceMetricRuleRequest::setEscalationsInfoTimes(int escalationsInfoTimes) { + escalationsInfoTimes_ = escalationsInfoTimes; + setParameter(std::string("Escalations.Info.Times"), std::to_string(escalationsInfoTimes)); } -std::string PutResourceMetricRuleRequest::getGroupBy()const -{ - return groupBy_; +std::string PutResourceMetricRuleRequest::getGroupBy() const { + return groupBy_; } -void PutResourceMetricRuleRequest::setGroupBy(const std::string& groupBy) -{ - groupBy_ = groupBy; - setParameter("GroupBy", groupBy); +void PutResourceMetricRuleRequest::setGroupBy(const std::string &groupBy) { + groupBy_ = groupBy; + setParameter(std::string("GroupBy"), groupBy); } -int PutResourceMetricRuleRequest::getEscalationsCriticalTimes()const -{ - return escalationsCriticalTimes_; +int PutResourceMetricRuleRequest::getEscalationsCriticalTimes() const { + return escalationsCriticalTimes_; } -void PutResourceMetricRuleRequest::setEscalationsCriticalTimes(int escalationsCriticalTimes) -{ - escalationsCriticalTimes_ = escalationsCriticalTimes; - setParameter("EscalationsCriticalTimes", std::to_string(escalationsCriticalTimes)); +void PutResourceMetricRuleRequest::setEscalationsCriticalTimes(int escalationsCriticalTimes) { + escalationsCriticalTimes_ = escalationsCriticalTimes; + setParameter(std::string("Escalations.Critical.Times"), std::to_string(escalationsCriticalTimes)); } -std::string PutResourceMetricRuleRequest::getEscalationsWarnStatistics()const -{ - return escalationsWarnStatistics_; +std::string PutResourceMetricRuleRequest::getEscalationsWarnStatistics() const { + return escalationsWarnStatistics_; } -void PutResourceMetricRuleRequest::setEscalationsWarnStatistics(const std::string& escalationsWarnStatistics) -{ - escalationsWarnStatistics_ = escalationsWarnStatistics; - setParameter("EscalationsWarnStatistics", escalationsWarnStatistics); +void PutResourceMetricRuleRequest::setEscalationsWarnStatistics(const std::string &escalationsWarnStatistics) { + escalationsWarnStatistics_ = escalationsWarnStatistics; + setParameter(std::string("Escalations.Warn.Statistics"), escalationsWarnStatistics); } -std::string PutResourceMetricRuleRequest::getEscalationsInfoThreshold()const -{ - return escalationsInfoThreshold_; +std::string PutResourceMetricRuleRequest::getEscalationsInfoThreshold() const { + return escalationsInfoThreshold_; } -void PutResourceMetricRuleRequest::setEscalationsInfoThreshold(const std::string& escalationsInfoThreshold) -{ - escalationsInfoThreshold_ = escalationsInfoThreshold; - setParameter("EscalationsInfoThreshold", escalationsInfoThreshold); +void PutResourceMetricRuleRequest::setEscalationsInfoThreshold(const std::string &escalationsInfoThreshold) { + escalationsInfoThreshold_ = escalationsInfoThreshold; + setParameter(std::string("Escalations.Info.Threshold"), escalationsInfoThreshold); } -std::string PutResourceMetricRuleRequest::get_Namespace()const -{ - return _namespace_; +std::string PutResourceMetricRuleRequest::get_Namespace() const { + return _namespace_; } -void PutResourceMetricRuleRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setParameter("_Namespace", _namespace); +void PutResourceMetricRuleRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); } -std::string PutResourceMetricRuleRequest::getEscalationsCriticalComparisonOperator()const -{ - return escalationsCriticalComparisonOperator_; +std::string PutResourceMetricRuleRequest::getEscalationsCriticalComparisonOperator() const { + return escalationsCriticalComparisonOperator_; } -void PutResourceMetricRuleRequest::setEscalationsCriticalComparisonOperator(const std::string& escalationsCriticalComparisonOperator) -{ - escalationsCriticalComparisonOperator_ = escalationsCriticalComparisonOperator; - setParameter("EscalationsCriticalComparisonOperator", escalationsCriticalComparisonOperator); +void PutResourceMetricRuleRequest::setEscalationsCriticalComparisonOperator(const std::string &escalationsCriticalComparisonOperator) { + escalationsCriticalComparisonOperator_ = escalationsCriticalComparisonOperator; + setParameter(std::string("Escalations.Critical.ComparisonOperator"), escalationsCriticalComparisonOperator); } diff --git a/cms/src/model/PutResourceMetricRulesRequest.cc b/cms/src/model/PutResourceMetricRulesRequest.cc index 853a1ef2e..e5c301adb 100644 --- a/cms/src/model/PutResourceMetricRulesRequest.cc +++ b/cms/src/model/PutResourceMetricRulesRequest.cc @@ -1,71 +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::Cms::Model::PutResourceMetricRulesRequest; - -PutResourceMetricRulesRequest::PutResourceMetricRulesRequest() : - RpcServiceRequest("cms", "2019-01-01", "PutResourceMetricRules") -{ - setMethod(HttpRequest::Method::Post); -} - -PutResourceMetricRulesRequest::~PutResourceMetricRulesRequest() -{} - -std::vector PutResourceMetricRulesRequest::getRules()const -{ - return rules_; + */ + +#include + +using AlibabaCloud::Cms::Model::PutResourceMetricRulesRequest; + +PutResourceMetricRulesRequest::PutResourceMetricRulesRequest() + : RpcServiceRequest("cms", "2019-01-01", "PutResourceMetricRules") { + setMethod(HttpRequest::Method::Post); } -void PutResourceMetricRulesRequest::setRules(const std::vector& rules) -{ - rules_ = rules; - for(int dep1 = 0; dep1!= rules.size(); dep1++) { - auto rulesObj = rules.at(dep1); - std::string rulesObjStr = "Rules." + std::to_string(dep1 + 1); - setParameter(rulesObjStr + ".Webhook", rulesObj.webhook); - setParameter(rulesObjStr + ".EscalationsWarnComparisonOperator", rulesObj.escalationsWarnComparisonOperator); - setParameter(rulesObjStr + ".RuleName", rulesObj.ruleName); - setParameter(rulesObjStr + ".EscalationsInfoStatistics", rulesObj.escalationsInfoStatistics); - setParameter(rulesObjStr + ".EffectiveInterval", rulesObj.effectiveInterval); - setParameter(rulesObjStr + ".EscalationsInfoComparisonOperator", rulesObj.escalationsInfoComparisonOperator); - setParameter(rulesObjStr + ".NoDataPolicy", rulesObj.noDataPolicy); - setParameter(rulesObjStr + ".NoEffectiveInterval", rulesObj.noEffectiveInterval); - setParameter(rulesObjStr + ".EmailSubject", rulesObj.emailSubject); - setParameter(rulesObjStr + ".SilenceTime", std::to_string(rulesObj.silenceTime)); - setParameter(rulesObjStr + ".MetricName", rulesObj.metricName); - setParameter(rulesObjStr + ".EscalationsWarnTimes", std::to_string(rulesObj.escalationsWarnTimes)); - setParameter(rulesObjStr + ".CompositeExpression", rulesObj.compositeExpression); - setParameter(rulesObjStr + ".EscalationsWarnThreshold", rulesObj.escalationsWarnThreshold); - setParameter(rulesObjStr + ".Period", rulesObj.period); - setParameter(rulesObjStr + ".ContactGroups", rulesObj.contactGroups); - setParameter(rulesObjStr + ".EscalationsCriticalStatistics", rulesObj.escalationsCriticalStatistics); - setParameter(rulesObjStr + ".GroupId", rulesObj.groupId); - setParameter(rulesObjStr + ".EscalationsInfoTimes", std::to_string(rulesObj.escalationsInfoTimes)); - setParameter(rulesObjStr + ".Resources", rulesObj.resources); - setParameter(rulesObjStr + ".EscalationsCriticalTimes", std::to_string(rulesObj.escalationsCriticalTimes)); - setParameter(rulesObjStr + ".EscalationsInfoThreshold", rulesObj.escalationsInfoThreshold); - setParameter(rulesObjStr + ".EscalationsWarnStatistics", rulesObj.escalationsWarnStatistics); - setParameter(rulesObjStr + "._Namespace", rulesObj._namespace); - setParameter(rulesObjStr + ".Interval", rulesObj.interval); - setParameter(rulesObjStr + ".RuleId", rulesObj.ruleId); - setParameter(rulesObjStr + ".EscalationsCriticalComparisonOperator", rulesObj.escalationsCriticalComparisonOperator); - setParameter(rulesObjStr + ".EscalationsCriticalThreshold", rulesObj.escalationsCriticalThreshold); - } +PutResourceMetricRulesRequest::~PutResourceMetricRulesRequest() {} + +std::vector PutResourceMetricRulesRequest::getRules() const { + return rules_; +} + +void PutResourceMetricRulesRequest::setRules(const std::vector &rules) { + rules_ = rules; + for(int dep1 = 0; dep1 != rules.size(); dep1++) { + auto rulesObj = rules.at(dep1); + std::string rulesObjStr = std::string("Rules") + "." + std::to_string(dep1 + 1); + setParameter(rulesObjStr + ".Webhook", rulesObj.webhook); + setParameter(rulesObjStr + ".Escalations.Warn.ComparisonOperator", rulesObj.escalationsWarnComparisonOperator); + setParameter(rulesObjStr + ".RuleName", rulesObj.ruleName); + setParameter(rulesObjStr + ".Escalations.Info.Statistics", rulesObj.escalationsInfoStatistics); + setParameter(rulesObjStr + ".EffectiveInterval", rulesObj.effectiveInterval); + setParameter(rulesObjStr + ".Escalations.Info.ComparisonOperator", rulesObj.escalationsInfoComparisonOperator); + setParameter(rulesObjStr + ".NoDataPolicy", rulesObj.noDataPolicy); + setParameter(rulesObjStr + ".NoEffectiveInterval", rulesObj.noEffectiveInterval); + setParameter(rulesObjStr + ".EmailSubject", rulesObj.emailSubject); + setParameter(rulesObjStr + ".SilenceTime", std::to_string(rulesObj.silenceTime)); + setParameter(rulesObjStr + ".MetricName", rulesObj.metricName); + setParameter(rulesObjStr + ".Escalations.Warn.Times", std::to_string(rulesObj.escalationsWarnTimes)); + setParameter(rulesObjStr + ".CompositeExpression", rulesObj.compositeExpression); + setParameter(rulesObjStr + ".Escalations.Warn.Threshold", rulesObj.escalationsWarnThreshold); + setParameter(rulesObjStr + ".Period", rulesObj.period); + setParameter(rulesObjStr + ".ContactGroups", rulesObj.contactGroups); + setParameter(rulesObjStr + ".Escalations.Critical.Statistics", rulesObj.escalationsCriticalStatistics); + setParameter(rulesObjStr + ".GroupId", rulesObj.groupId); + setParameter(rulesObjStr + ".Escalations.Info.Times", std::to_string(rulesObj.escalationsInfoTimes)); + setParameter(rulesObjStr + ".Resources", rulesObj.resources); + setParameter(rulesObjStr + ".Escalations.Critical.Times", std::to_string(rulesObj.escalationsCriticalTimes)); + setParameter(rulesObjStr + ".Escalations.Info.Threshold", rulesObj.escalationsInfoThreshold); + setParameter(rulesObjStr + ".Escalations.Warn.Statistics", rulesObj.escalationsWarnStatistics); + setParameter(rulesObjStr + ".Namespace", rulesObj._namespace); + setParameter(rulesObjStr + ".Interval", rulesObj.interval); + setParameter(rulesObjStr + ".RuleId", rulesObj.ruleId); + setParameter(rulesObjStr + ".Escalations.Critical.ComparisonOperator", rulesObj.escalationsCriticalComparisonOperator); + setParameter(rulesObjStr + ".Escalations.Critical.Threshold", rulesObj.escalationsCriticalThreshold); + } } diff --git a/cms/src/model/RemoveTagsRequest.cc b/cms/src/model/RemoveTagsRequest.cc index bf8e6cfd9..00e71fd03 100644 --- a/cms/src/model/RemoveTagsRequest.cc +++ b/cms/src/model/RemoveTagsRequest.cc @@ -1,58 +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. - */ - -#include - -using AlibabaCloud::Cms::Model::RemoveTagsRequest; - -RemoveTagsRequest::RemoveTagsRequest() : - RpcServiceRequest("cms", "2019-01-01", "RemoveTags") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveTagsRequest::~RemoveTagsRequest() -{} - -std::vector RemoveTagsRequest::getGroupIds()const -{ - return groupIds_; + */ + +#include + +using AlibabaCloud::Cms::Model::RemoveTagsRequest; + +RemoveTagsRequest::RemoveTagsRequest() + : RpcServiceRequest("cms", "2019-01-01", "RemoveTags") { + setMethod(HttpRequest::Method::Post); } -void RemoveTagsRequest::setGroupIds(const std::vector& groupIds) -{ - groupIds_ = groupIds; - for(int dep1 = 0; dep1!= groupIds.size(); dep1++) { - setParameter("GroupIds."+ std::to_string(dep1), groupIds.at(dep1)); - } +RemoveTagsRequest::~RemoveTagsRequest() {} + +std::vector RemoveTagsRequest::getGroupIds() const { + return groupIds_; } -std::vector RemoveTagsRequest::getTag()const -{ - return tag_; +void RemoveTagsRequest::setGroupIds(const std::vector &groupIds) { + groupIds_ = groupIds; } -void RemoveTagsRequest::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 RemoveTagsRequest::getTag() const { + return tag_; +} + +void RemoveTagsRequest::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/cms/src/model/SendDryRunSystemEventRequest.cc b/cms/src/model/SendDryRunSystemEventRequest.cc index 60bc60abf..d955a2b37 100644 --- a/cms/src/model/SendDryRunSystemEventRequest.cc +++ b/cms/src/model/SendDryRunSystemEventRequest.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::Cms::Model::SendDryRunSystemEventRequest; - -SendDryRunSystemEventRequest::SendDryRunSystemEventRequest() : - RpcServiceRequest("cms", "2019-01-01", "SendDryRunSystemEvent") -{ - setMethod(HttpRequest::Method::Post); -} - -SendDryRunSystemEventRequest::~SendDryRunSystemEventRequest() -{} - -std::string SendDryRunSystemEventRequest::getProduct()const -{ - return product_; + */ + +#include + +using AlibabaCloud::Cms::Model::SendDryRunSystemEventRequest; + +SendDryRunSystemEventRequest::SendDryRunSystemEventRequest() + : RpcServiceRequest("cms", "2019-01-01", "SendDryRunSystemEvent") { + setMethod(HttpRequest::Method::Post); } -void SendDryRunSystemEventRequest::setProduct(const std::string& product) -{ - product_ = product; - setParameter("Product", product); +SendDryRunSystemEventRequest::~SendDryRunSystemEventRequest() {} + +std::string SendDryRunSystemEventRequest::getProduct() const { + return product_; } -std::string SendDryRunSystemEventRequest::getGroupId()const -{ - return groupId_; +void SendDryRunSystemEventRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("Product"), product); } -void SendDryRunSystemEventRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string SendDryRunSystemEventRequest::getGroupId() const { + return groupId_; } -std::string SendDryRunSystemEventRequest::getEventName()const -{ - return eventName_; +void SendDryRunSystemEventRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void SendDryRunSystemEventRequest::setEventName(const std::string& eventName) -{ - eventName_ = eventName; - setParameter("EventName", eventName); +std::string SendDryRunSystemEventRequest::getEventName() const { + return eventName_; } -std::string SendDryRunSystemEventRequest::getEventContent()const -{ - return eventContent_; +void SendDryRunSystemEventRequest::setEventName(const std::string &eventName) { + eventName_ = eventName; + setParameter(std::string("EventName"), eventName); } -void SendDryRunSystemEventRequest::setEventContent(const std::string& eventContent) -{ - eventContent_ = eventContent; - setParameter("EventContent", eventContent); +std::string SendDryRunSystemEventRequest::getEventContent() const { + return eventContent_; +} + +void SendDryRunSystemEventRequest::setEventContent(const std::string &eventContent) { + eventContent_ = eventContent; + setParameter(std::string("EventContent"), eventContent); } diff --git a/cms/src/model/UninstallMonitoringAgentRequest.cc b/cms/src/model/UninstallMonitoringAgentRequest.cc index 940deefac..704917b91 100644 --- a/cms/src/model/UninstallMonitoringAgentRequest.cc +++ b/cms/src/model/UninstallMonitoringAgentRequest.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::Cms::Model::UninstallMonitoringAgentRequest; - -UninstallMonitoringAgentRequest::UninstallMonitoringAgentRequest() : - RpcServiceRequest("cms", "2019-01-01", "UninstallMonitoringAgent") -{ - setMethod(HttpRequest::Method::Post); -} - -UninstallMonitoringAgentRequest::~UninstallMonitoringAgentRequest() -{} - -std::string UninstallMonitoringAgentRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Cms::Model::UninstallMonitoringAgentRequest; + +UninstallMonitoringAgentRequest::UninstallMonitoringAgentRequest() + : RpcServiceRequest("cms", "2019-01-01", "UninstallMonitoringAgent") { + setMethod(HttpRequest::Method::Post); } -void UninstallMonitoringAgentRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UninstallMonitoringAgentRequest::~UninstallMonitoringAgentRequest() {} + +std::string UninstallMonitoringAgentRequest::getInstanceId() const { + return instanceId_; +} + +void UninstallMonitoringAgentRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); }