diff --git a/VERSION b/VERSION index d95501ebc..d00b07207 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1565 \ No newline at end of file +1.36.1566 \ No newline at end of file diff --git a/alidns/CMakeLists.txt b/alidns/CMakeLists.txt index e7f84108d..3871a5b02 100644 --- a/alidns/CMakeLists.txt +++ b/alidns/CMakeLists.txt @@ -153,6 +153,8 @@ set(alidns_public_header_model include/alibabacloud/alidns/model/DescribeDomainRecordInfoResult.h include/alibabacloud/alidns/model/DescribeDomainRecordsRequest.h include/alibabacloud/alidns/model/DescribeDomainRecordsResult.h + include/alibabacloud/alidns/model/DescribeDomainResolveStatisticsSummaryRequest.h + include/alibabacloud/alidns/model/DescribeDomainResolveStatisticsSummaryResult.h include/alibabacloud/alidns/model/DescribeDomainStatisticsRequest.h include/alibabacloud/alidns/model/DescribeDomainStatisticsResult.h include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryRequest.h @@ -193,6 +195,14 @@ set(alidns_public_header_model include/alibabacloud/alidns/model/DescribeGtmRecoveryPlansResult.h include/alibabacloud/alidns/model/DescribeInstanceDomainsRequest.h include/alibabacloud/alidns/model/DescribeInstanceDomainsResult.h + include/alibabacloud/alidns/model/DescribeIspFlushCacheInstancesRequest.h + include/alibabacloud/alidns/model/DescribeIspFlushCacheInstancesResult.h + include/alibabacloud/alidns/model/DescribeIspFlushCacheRemainQuotaRequest.h + include/alibabacloud/alidns/model/DescribeIspFlushCacheRemainQuotaResult.h + include/alibabacloud/alidns/model/DescribeIspFlushCacheTaskRequest.h + include/alibabacloud/alidns/model/DescribeIspFlushCacheTaskResult.h + include/alibabacloud/alidns/model/DescribeIspFlushCacheTasksRequest.h + include/alibabacloud/alidns/model/DescribeIspFlushCacheTasksResult.h include/alibabacloud/alidns/model/DescribePdnsAccountSummaryRequest.h include/alibabacloud/alidns/model/DescribePdnsAccountSummaryResult.h include/alibabacloud/alidns/model/DescribePdnsAppKeyRequest.h @@ -217,6 +227,8 @@ set(alidns_public_header_model include/alibabacloud/alidns/model/DescribePdnsUserInfoResult.h include/alibabacloud/alidns/model/DescribeRecordLogsRequest.h include/alibabacloud/alidns/model/DescribeRecordLogsResult.h + include/alibabacloud/alidns/model/DescribeRecordResolveStatisticsSummaryRequest.h + include/alibabacloud/alidns/model/DescribeRecordResolveStatisticsSummaryResult.h include/alibabacloud/alidns/model/DescribeRecordStatisticsRequest.h include/alibabacloud/alidns/model/DescribeRecordStatisticsResult.h include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryRequest.h @@ -273,6 +285,8 @@ set(alidns_public_header_model include/alibabacloud/alidns/model/SetGtmAccessModeResult.h include/alibabacloud/alidns/model/SetGtmMonitorStatusRequest.h include/alibabacloud/alidns/model/SetGtmMonitorStatusResult.h + include/alibabacloud/alidns/model/SubmitIspFlushCacheTaskRequest.h + include/alibabacloud/alidns/model/SubmitIspFlushCacheTaskResult.h include/alibabacloud/alidns/model/SwitchDnsGtmInstanceStrategyModeRequest.h include/alibabacloud/alidns/model/SwitchDnsGtmInstanceStrategyModeResult.h include/alibabacloud/alidns/model/TagResourcesRequest.h @@ -319,6 +333,8 @@ set(alidns_public_header_model include/alibabacloud/alidns/model/UpdateGtmMonitorResult.h include/alibabacloud/alidns/model/UpdateGtmRecoveryPlanRequest.h include/alibabacloud/alidns/model/UpdateGtmRecoveryPlanResult.h + include/alibabacloud/alidns/model/UpdateIspFlushCacheInstanceConfigRequest.h + include/alibabacloud/alidns/model/UpdateIspFlushCacheInstanceConfigResult.h include/alibabacloud/alidns/model/ValidateDnsGtmCnameRrCanUseRequest.h include/alibabacloud/alidns/model/ValidateDnsGtmCnameRrCanUseResult.h include/alibabacloud/alidns/model/ValidatePdnsUdpIpSegmentRequest.h @@ -458,6 +474,8 @@ set(alidns_src src/model/DescribeDomainRecordInfoResult.cc src/model/DescribeDomainRecordsRequest.cc src/model/DescribeDomainRecordsResult.cc + src/model/DescribeDomainResolveStatisticsSummaryRequest.cc + src/model/DescribeDomainResolveStatisticsSummaryResult.cc src/model/DescribeDomainStatisticsRequest.cc src/model/DescribeDomainStatisticsResult.cc src/model/DescribeDomainStatisticsSummaryRequest.cc @@ -498,6 +516,14 @@ set(alidns_src src/model/DescribeGtmRecoveryPlansResult.cc src/model/DescribeInstanceDomainsRequest.cc src/model/DescribeInstanceDomainsResult.cc + src/model/DescribeIspFlushCacheInstancesRequest.cc + src/model/DescribeIspFlushCacheInstancesResult.cc + src/model/DescribeIspFlushCacheRemainQuotaRequest.cc + src/model/DescribeIspFlushCacheRemainQuotaResult.cc + src/model/DescribeIspFlushCacheTaskRequest.cc + src/model/DescribeIspFlushCacheTaskResult.cc + src/model/DescribeIspFlushCacheTasksRequest.cc + src/model/DescribeIspFlushCacheTasksResult.cc src/model/DescribePdnsAccountSummaryRequest.cc src/model/DescribePdnsAccountSummaryResult.cc src/model/DescribePdnsAppKeyRequest.cc @@ -522,6 +548,8 @@ set(alidns_src src/model/DescribePdnsUserInfoResult.cc src/model/DescribeRecordLogsRequest.cc src/model/DescribeRecordLogsResult.cc + src/model/DescribeRecordResolveStatisticsSummaryRequest.cc + src/model/DescribeRecordResolveStatisticsSummaryResult.cc src/model/DescribeRecordStatisticsRequest.cc src/model/DescribeRecordStatisticsResult.cc src/model/DescribeRecordStatisticsSummaryRequest.cc @@ -578,6 +606,8 @@ set(alidns_src src/model/SetGtmAccessModeResult.cc src/model/SetGtmMonitorStatusRequest.cc src/model/SetGtmMonitorStatusResult.cc + src/model/SubmitIspFlushCacheTaskRequest.cc + src/model/SubmitIspFlushCacheTaskResult.cc src/model/SwitchDnsGtmInstanceStrategyModeRequest.cc src/model/SwitchDnsGtmInstanceStrategyModeResult.cc src/model/TagResourcesRequest.cc @@ -624,6 +654,8 @@ set(alidns_src src/model/UpdateGtmMonitorResult.cc src/model/UpdateGtmRecoveryPlanRequest.cc src/model/UpdateGtmRecoveryPlanResult.cc + src/model/UpdateIspFlushCacheInstanceConfigRequest.cc + src/model/UpdateIspFlushCacheInstanceConfigResult.cc src/model/ValidateDnsGtmCnameRrCanUseRequest.cc src/model/ValidateDnsGtmCnameRrCanUseResult.cc src/model/ValidatePdnsUdpIpSegmentRequest.cc diff --git a/alidns/include/alibabacloud/alidns/AlidnsClient.h b/alidns/include/alibabacloud/alidns/AlidnsClient.h index 504758041..ef06a899f 100644 --- a/alidns/include/alibabacloud/alidns/AlidnsClient.h +++ b/alidns/include/alibabacloud/alidns/AlidnsClient.h @@ -154,6 +154,8 @@ #include "model/DescribeDomainRecordInfoResult.h" #include "model/DescribeDomainRecordsRequest.h" #include "model/DescribeDomainRecordsResult.h" +#include "model/DescribeDomainResolveStatisticsSummaryRequest.h" +#include "model/DescribeDomainResolveStatisticsSummaryResult.h" #include "model/DescribeDomainStatisticsRequest.h" #include "model/DescribeDomainStatisticsResult.h" #include "model/DescribeDomainStatisticsSummaryRequest.h" @@ -194,6 +196,14 @@ #include "model/DescribeGtmRecoveryPlansResult.h" #include "model/DescribeInstanceDomainsRequest.h" #include "model/DescribeInstanceDomainsResult.h" +#include "model/DescribeIspFlushCacheInstancesRequest.h" +#include "model/DescribeIspFlushCacheInstancesResult.h" +#include "model/DescribeIspFlushCacheRemainQuotaRequest.h" +#include "model/DescribeIspFlushCacheRemainQuotaResult.h" +#include "model/DescribeIspFlushCacheTaskRequest.h" +#include "model/DescribeIspFlushCacheTaskResult.h" +#include "model/DescribeIspFlushCacheTasksRequest.h" +#include "model/DescribeIspFlushCacheTasksResult.h" #include "model/DescribePdnsAccountSummaryRequest.h" #include "model/DescribePdnsAccountSummaryResult.h" #include "model/DescribePdnsAppKeyRequest.h" @@ -218,6 +228,8 @@ #include "model/DescribePdnsUserInfoResult.h" #include "model/DescribeRecordLogsRequest.h" #include "model/DescribeRecordLogsResult.h" +#include "model/DescribeRecordResolveStatisticsSummaryRequest.h" +#include "model/DescribeRecordResolveStatisticsSummaryResult.h" #include "model/DescribeRecordStatisticsRequest.h" #include "model/DescribeRecordStatisticsResult.h" #include "model/DescribeRecordStatisticsSummaryRequest.h" @@ -274,6 +286,8 @@ #include "model/SetGtmAccessModeResult.h" #include "model/SetGtmMonitorStatusRequest.h" #include "model/SetGtmMonitorStatusResult.h" +#include "model/SubmitIspFlushCacheTaskRequest.h" +#include "model/SubmitIspFlushCacheTaskResult.h" #include "model/SwitchDnsGtmInstanceStrategyModeRequest.h" #include "model/SwitchDnsGtmInstanceStrategyModeResult.h" #include "model/TagResourcesRequest.h" @@ -320,6 +334,8 @@ #include "model/UpdateGtmMonitorResult.h" #include "model/UpdateGtmRecoveryPlanRequest.h" #include "model/UpdateGtmRecoveryPlanResult.h" +#include "model/UpdateIspFlushCacheInstanceConfigRequest.h" +#include "model/UpdateIspFlushCacheInstanceConfigResult.h" #include "model/ValidateDnsGtmCnameRrCanUseRequest.h" #include "model/ValidateDnsGtmCnameRrCanUseResult.h" #include "model/ValidatePdnsUdpIpSegmentRequest.h" @@ -531,6 +547,9 @@ namespace AlibabaCloud typedef Outcome DescribeDomainRecordsOutcome; typedef std::future DescribeDomainRecordsOutcomeCallable; typedef std::function&)> DescribeDomainRecordsAsyncHandler; + typedef Outcome DescribeDomainResolveStatisticsSummaryOutcome; + typedef std::future DescribeDomainResolveStatisticsSummaryOutcomeCallable; + typedef std::function&)> DescribeDomainResolveStatisticsSummaryAsyncHandler; typedef Outcome DescribeDomainStatisticsOutcome; typedef std::future DescribeDomainStatisticsOutcomeCallable; typedef std::function&)> DescribeDomainStatisticsAsyncHandler; @@ -591,6 +610,18 @@ namespace AlibabaCloud typedef Outcome DescribeInstanceDomainsOutcome; typedef std::future DescribeInstanceDomainsOutcomeCallable; typedef std::function&)> DescribeInstanceDomainsAsyncHandler; + typedef Outcome DescribeIspFlushCacheInstancesOutcome; + typedef std::future DescribeIspFlushCacheInstancesOutcomeCallable; + typedef std::function&)> DescribeIspFlushCacheInstancesAsyncHandler; + typedef Outcome DescribeIspFlushCacheRemainQuotaOutcome; + typedef std::future DescribeIspFlushCacheRemainQuotaOutcomeCallable; + typedef std::function&)> DescribeIspFlushCacheRemainQuotaAsyncHandler; + typedef Outcome DescribeIspFlushCacheTaskOutcome; + typedef std::future DescribeIspFlushCacheTaskOutcomeCallable; + typedef std::function&)> DescribeIspFlushCacheTaskAsyncHandler; + typedef Outcome DescribeIspFlushCacheTasksOutcome; + typedef std::future DescribeIspFlushCacheTasksOutcomeCallable; + typedef std::function&)> DescribeIspFlushCacheTasksAsyncHandler; typedef Outcome DescribePdnsAccountSummaryOutcome; typedef std::future DescribePdnsAccountSummaryOutcomeCallable; typedef std::function&)> DescribePdnsAccountSummaryAsyncHandler; @@ -627,6 +658,9 @@ namespace AlibabaCloud typedef Outcome DescribeRecordLogsOutcome; typedef std::future DescribeRecordLogsOutcomeCallable; typedef std::function&)> DescribeRecordLogsAsyncHandler; + typedef Outcome DescribeRecordResolveStatisticsSummaryOutcome; + typedef std::future DescribeRecordResolveStatisticsSummaryOutcomeCallable; + typedef std::function&)> DescribeRecordResolveStatisticsSummaryAsyncHandler; typedef Outcome DescribeRecordStatisticsOutcome; typedef std::future DescribeRecordStatisticsOutcomeCallable; typedef std::function&)> DescribeRecordStatisticsAsyncHandler; @@ -711,6 +745,9 @@ namespace AlibabaCloud typedef Outcome SetGtmMonitorStatusOutcome; typedef std::future SetGtmMonitorStatusOutcomeCallable; typedef std::function&)> SetGtmMonitorStatusAsyncHandler; + typedef Outcome SubmitIspFlushCacheTaskOutcome; + typedef std::future SubmitIspFlushCacheTaskOutcomeCallable; + typedef std::function&)> SubmitIspFlushCacheTaskAsyncHandler; typedef Outcome SwitchDnsGtmInstanceStrategyModeOutcome; typedef std::future SwitchDnsGtmInstanceStrategyModeOutcomeCallable; typedef std::function&)> SwitchDnsGtmInstanceStrategyModeAsyncHandler; @@ -780,6 +817,9 @@ namespace AlibabaCloud typedef Outcome UpdateGtmRecoveryPlanOutcome; typedef std::future UpdateGtmRecoveryPlanOutcomeCallable; typedef std::function&)> UpdateGtmRecoveryPlanAsyncHandler; + typedef Outcome UpdateIspFlushCacheInstanceConfigOutcome; + typedef std::future UpdateIspFlushCacheInstanceConfigOutcomeCallable; + typedef std::function&)> UpdateIspFlushCacheInstanceConfigAsyncHandler; typedef Outcome ValidateDnsGtmCnameRrCanUseOutcome; typedef std::future ValidateDnsGtmCnameRrCanUseOutcomeCallable; typedef std::function&)> ValidateDnsGtmCnameRrCanUseAsyncHandler; @@ -989,6 +1029,9 @@ namespace AlibabaCloud DescribeDomainRecordsOutcome describeDomainRecords(const Model::DescribeDomainRecordsRequest &request)const; void describeDomainRecordsAsync(const Model::DescribeDomainRecordsRequest& request, const DescribeDomainRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainRecordsOutcomeCallable describeDomainRecordsCallable(const Model::DescribeDomainRecordsRequest& request) const; + DescribeDomainResolveStatisticsSummaryOutcome describeDomainResolveStatisticsSummary(const Model::DescribeDomainResolveStatisticsSummaryRequest &request)const; + void describeDomainResolveStatisticsSummaryAsync(const Model::DescribeDomainResolveStatisticsSummaryRequest& request, const DescribeDomainResolveStatisticsSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDomainResolveStatisticsSummaryOutcomeCallable describeDomainResolveStatisticsSummaryCallable(const Model::DescribeDomainResolveStatisticsSummaryRequest& request) const; DescribeDomainStatisticsOutcome describeDomainStatistics(const Model::DescribeDomainStatisticsRequest &request)const; void describeDomainStatisticsAsync(const Model::DescribeDomainStatisticsRequest& request, const DescribeDomainStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDomainStatisticsOutcomeCallable describeDomainStatisticsCallable(const Model::DescribeDomainStatisticsRequest& request) const; @@ -1049,6 +1092,18 @@ namespace AlibabaCloud DescribeInstanceDomainsOutcome describeInstanceDomains(const Model::DescribeInstanceDomainsRequest &request)const; void describeInstanceDomainsAsync(const Model::DescribeInstanceDomainsRequest& request, const DescribeInstanceDomainsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstanceDomainsOutcomeCallable describeInstanceDomainsCallable(const Model::DescribeInstanceDomainsRequest& request) const; + DescribeIspFlushCacheInstancesOutcome describeIspFlushCacheInstances(const Model::DescribeIspFlushCacheInstancesRequest &request)const; + void describeIspFlushCacheInstancesAsync(const Model::DescribeIspFlushCacheInstancesRequest& request, const DescribeIspFlushCacheInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIspFlushCacheInstancesOutcomeCallable describeIspFlushCacheInstancesCallable(const Model::DescribeIspFlushCacheInstancesRequest& request) const; + DescribeIspFlushCacheRemainQuotaOutcome describeIspFlushCacheRemainQuota(const Model::DescribeIspFlushCacheRemainQuotaRequest &request)const; + void describeIspFlushCacheRemainQuotaAsync(const Model::DescribeIspFlushCacheRemainQuotaRequest& request, const DescribeIspFlushCacheRemainQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIspFlushCacheRemainQuotaOutcomeCallable describeIspFlushCacheRemainQuotaCallable(const Model::DescribeIspFlushCacheRemainQuotaRequest& request) const; + DescribeIspFlushCacheTaskOutcome describeIspFlushCacheTask(const Model::DescribeIspFlushCacheTaskRequest &request)const; + void describeIspFlushCacheTaskAsync(const Model::DescribeIspFlushCacheTaskRequest& request, const DescribeIspFlushCacheTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIspFlushCacheTaskOutcomeCallable describeIspFlushCacheTaskCallable(const Model::DescribeIspFlushCacheTaskRequest& request) const; + DescribeIspFlushCacheTasksOutcome describeIspFlushCacheTasks(const Model::DescribeIspFlushCacheTasksRequest &request)const; + void describeIspFlushCacheTasksAsync(const Model::DescribeIspFlushCacheTasksRequest& request, const DescribeIspFlushCacheTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIspFlushCacheTasksOutcomeCallable describeIspFlushCacheTasksCallable(const Model::DescribeIspFlushCacheTasksRequest& request) const; DescribePdnsAccountSummaryOutcome describePdnsAccountSummary(const Model::DescribePdnsAccountSummaryRequest &request)const; void describePdnsAccountSummaryAsync(const Model::DescribePdnsAccountSummaryRequest& request, const DescribePdnsAccountSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePdnsAccountSummaryOutcomeCallable describePdnsAccountSummaryCallable(const Model::DescribePdnsAccountSummaryRequest& request) const; @@ -1085,6 +1140,9 @@ namespace AlibabaCloud DescribeRecordLogsOutcome describeRecordLogs(const Model::DescribeRecordLogsRequest &request)const; void describeRecordLogsAsync(const Model::DescribeRecordLogsRequest& request, const DescribeRecordLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRecordLogsOutcomeCallable describeRecordLogsCallable(const Model::DescribeRecordLogsRequest& request) const; + DescribeRecordResolveStatisticsSummaryOutcome describeRecordResolveStatisticsSummary(const Model::DescribeRecordResolveStatisticsSummaryRequest &request)const; + void describeRecordResolveStatisticsSummaryAsync(const Model::DescribeRecordResolveStatisticsSummaryRequest& request, const DescribeRecordResolveStatisticsSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRecordResolveStatisticsSummaryOutcomeCallable describeRecordResolveStatisticsSummaryCallable(const Model::DescribeRecordResolveStatisticsSummaryRequest& request) const; DescribeRecordStatisticsOutcome describeRecordStatistics(const Model::DescribeRecordStatisticsRequest &request)const; void describeRecordStatisticsAsync(const Model::DescribeRecordStatisticsRequest& request, const DescribeRecordStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRecordStatisticsOutcomeCallable describeRecordStatisticsCallable(const Model::DescribeRecordStatisticsRequest& request) const; @@ -1169,6 +1227,9 @@ namespace AlibabaCloud SetGtmMonitorStatusOutcome setGtmMonitorStatus(const Model::SetGtmMonitorStatusRequest &request)const; void setGtmMonitorStatusAsync(const Model::SetGtmMonitorStatusRequest& request, const SetGtmMonitorStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetGtmMonitorStatusOutcomeCallable setGtmMonitorStatusCallable(const Model::SetGtmMonitorStatusRequest& request) const; + SubmitIspFlushCacheTaskOutcome submitIspFlushCacheTask(const Model::SubmitIspFlushCacheTaskRequest &request)const; + void submitIspFlushCacheTaskAsync(const Model::SubmitIspFlushCacheTaskRequest& request, const SubmitIspFlushCacheTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitIspFlushCacheTaskOutcomeCallable submitIspFlushCacheTaskCallable(const Model::SubmitIspFlushCacheTaskRequest& request) const; SwitchDnsGtmInstanceStrategyModeOutcome switchDnsGtmInstanceStrategyMode(const Model::SwitchDnsGtmInstanceStrategyModeRequest &request)const; void switchDnsGtmInstanceStrategyModeAsync(const Model::SwitchDnsGtmInstanceStrategyModeRequest& request, const SwitchDnsGtmInstanceStrategyModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SwitchDnsGtmInstanceStrategyModeOutcomeCallable switchDnsGtmInstanceStrategyModeCallable(const Model::SwitchDnsGtmInstanceStrategyModeRequest& request) const; @@ -1238,6 +1299,9 @@ namespace AlibabaCloud UpdateGtmRecoveryPlanOutcome updateGtmRecoveryPlan(const Model::UpdateGtmRecoveryPlanRequest &request)const; void updateGtmRecoveryPlanAsync(const Model::UpdateGtmRecoveryPlanRequest& request, const UpdateGtmRecoveryPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateGtmRecoveryPlanOutcomeCallable updateGtmRecoveryPlanCallable(const Model::UpdateGtmRecoveryPlanRequest& request) const; + UpdateIspFlushCacheInstanceConfigOutcome updateIspFlushCacheInstanceConfig(const Model::UpdateIspFlushCacheInstanceConfigRequest &request)const; + void updateIspFlushCacheInstanceConfigAsync(const Model::UpdateIspFlushCacheInstanceConfigRequest& request, const UpdateIspFlushCacheInstanceConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateIspFlushCacheInstanceConfigOutcomeCallable updateIspFlushCacheInstanceConfigCallable(const Model::UpdateIspFlushCacheInstanceConfigRequest& request) const; ValidateDnsGtmCnameRrCanUseOutcome validateDnsGtmCnameRrCanUse(const Model::ValidateDnsGtmCnameRrCanUseRequest &request)const; void validateDnsGtmCnameRrCanUseAsync(const Model::ValidateDnsGtmCnameRrCanUseRequest& request, const ValidateDnsGtmCnameRrCanUseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ValidateDnsGtmCnameRrCanUseOutcomeCallable validateDnsGtmCnameRrCanUseCallable(const Model::ValidateDnsGtmCnameRrCanUseRequest& request) const; diff --git a/alidns/include/alibabacloud/alidns/model/AddCustomLineRequest.h b/alidns/include/alibabacloud/alidns/model/AddCustomLineRequest.h index 36f70d6ba..dd562edc6 100644 --- a/alidns/include/alibabacloud/alidns/model/AddCustomLineRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddCustomLineRequest.h @@ -1,66 +1,58 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDCUSTOMLINEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDCUSTOMLINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddCustomLineRequest : public RpcServiceRequest - { - public: - struct IpSegment - { - std::string endIp; - std::string startIp; - }; - - public: - AddCustomLineRequest(); - ~AddCustomLineRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::vector getIpSegment()const; - void setIpSegment(const std::vector& ipSegment); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLineName()const; - void setLineName(const std::string& lineName); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::vector ipSegment_; - std::string userClientIp_; - std::string lineName_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDCUSTOMLINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDCUSTOMLINEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDCUSTOMLINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddCustomLineRequest : public RpcServiceRequest { +public: + struct IpSegment { + std::string endIp; + std::string startIp; + }; + AddCustomLineRequest(); + ~AddCustomLineRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::vector getIpSegment() const; + void setIpSegment(const std::vector &ipSegment); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLineName() const; + void setLineName(const std::string &lineName); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::vector ipSegment_; + std::string userClientIp_; + std::string lineName_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDCUSTOMLINEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddDnsCacheDomainRequest.h b/alidns/include/alibabacloud/alidns/model/AddDnsCacheDomainRequest.h index dc7aa8e1d..16906e3af 100644 --- a/alidns/include/alibabacloud/alidns/model/AddDnsCacheDomainRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddDnsCacheDomainRequest.h @@ -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. - */ - -#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddDnsCacheDomainRequest : public RpcServiceRequest - { - public: - struct SourceDnsServer - { - std::string port; - std::string host; - }; - - public: - AddDnsCacheDomainRequest(); - ~AddDnsCacheDomainRequest(); - - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getSourceProtocol()const; - void setSourceProtocol(const std::string& sourceProtocol); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - int getCacheTtlMax()const; - void setCacheTtlMax(int cacheTtlMax); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSourceEdns()const; - void setSourceEdns(const std::string& sourceEdns); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getCacheTtlMin()const; - void setCacheTtlMin(int cacheTtlMin); - std::vector getSourceDnsServer()const; - void setSourceDnsServer(const std::vector& sourceDnsServer); - - private: - std::string remark_; - std::string accessKeyId_; - std::string sourceProtocol_; - std::string lang_; - std::string domainName_; - int cacheTtlMax_; - std::string instanceId_; - std::string sourceEdns_; - std::string userClientIp_; - int cacheTtlMin_; - std::vector sourceDnsServer_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddDnsCacheDomainRequest : public RpcServiceRequest { +public: + struct SourceDnsServer { + std::string port; + std::string host; + }; + AddDnsCacheDomainRequest(); + ~AddDnsCacheDomainRequest(); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSourceProtocol() const; + void setSourceProtocol(const std::string &sourceProtocol); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + int getCacheTtlMax() const; + void setCacheTtlMax(int cacheTtlMax); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getSourceEdns() const; + void setSourceEdns(const std::string &sourceEdns); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getCacheTtlMin() const; + void setCacheTtlMin(int cacheTtlMin); + std::vector getSourceDnsServer() const; + void setSourceDnsServer(const std::vector &sourceDnsServer); + +private: + std::string remark_; + std::string accessKeyId_; + std::string sourceProtocol_; + std::string lang_; + std::string domainName_; + int cacheTtlMax_; + std::string instanceId_; + std::string sourceEdns_; + std::string userClientIp_; + int cacheTtlMin_; + std::vector sourceDnsServer_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddDnsGtmAccessStrategyRequest.h b/alidns/include/alibabacloud/alidns/model/AddDnsGtmAccessStrategyRequest.h index af1ec0418..8c8db343e 100644 --- a/alidns/include/alibabacloud/alidns/model/AddDnsGtmAccessStrategyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddDnsGtmAccessStrategyRequest.h @@ -1,110 +1,101 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_ALIDNS_MODEL_ADDDNSGTMACCESSSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMACCESSSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddDnsGtmAccessStrategyRequest : public RpcServiceRequest - { - public: - struct DefaultAddrPool - { - std::string id; - int lbaWeight; - }; - struct FailoverAddrPool - { - std::string id; - int lbaWeight; - }; - - public: - AddDnsGtmAccessStrategyRequest(); - ~AddDnsGtmAccessStrategyRequest(); - - std::string getDefaultLbaStrategy()const; - void setDefaultLbaStrategy(const std::string& defaultLbaStrategy); - std::string getFailoverAddrPoolType()const; - void setFailoverAddrPoolType(const std::string& failoverAddrPoolType); - std::string getDefaultAddrPoolType()const; - void setDefaultAddrPoolType(const std::string& defaultAddrPoolType); - int getFailoverMaxReturnAddrNum()const; - void setFailoverMaxReturnAddrNum(int failoverMaxReturnAddrNum); - std::string getFailoverLbaStrategy()const; - void setFailoverLbaStrategy(const std::string& failoverLbaStrategy); - std::vector getDefaultAddrPool()const; - void setDefaultAddrPool(const std::vector& defaultAddrPool); - int getFailoverMinAvailableAddrNum()const; - void setFailoverMinAvailableAddrNum(int failoverMinAvailableAddrNum); - int getDefaultMaxReturnAddrNum()const; - void setDefaultMaxReturnAddrNum(int defaultMaxReturnAddrNum); - int getDefaultMinAvailableAddrNum()const; - void setDefaultMinAvailableAddrNum(int defaultMinAvailableAddrNum); - std::string getStrategyMode()const; - void setStrategyMode(const std::string& strategyMode); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getLines()const; - void setLines(const std::string& lines); - std::string getStrategyName()const; - void setStrategyName(const std::string& strategyName); - std::string getDefaultLatencyOptimization()const; - void setDefaultLatencyOptimization(const std::string& defaultLatencyOptimization); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getFailoverLatencyOptimization()const; - void setFailoverLatencyOptimization(const std::string& failoverLatencyOptimization); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::vector getFailoverAddrPool()const; - void setFailoverAddrPool(const std::vector& failoverAddrPool); - - private: - std::string defaultLbaStrategy_; - std::string failoverAddrPoolType_; - std::string defaultAddrPoolType_; - int failoverMaxReturnAddrNum_; - std::string failoverLbaStrategy_; - std::vector defaultAddrPool_; - int failoverMinAvailableAddrNum_; - int defaultMaxReturnAddrNum_; - int defaultMinAvailableAddrNum_; - std::string strategyMode_; - std::string lang_; - std::string lines_; - std::string strategyName_; - std::string defaultLatencyOptimization_; - std::string instanceId_; - std::string failoverLatencyOptimization_; - std::string userClientIp_; - std::vector failoverAddrPool_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMACCESSSTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMACCESSSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMACCESSSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddDnsGtmAccessStrategyRequest : public RpcServiceRequest { +public: + struct DefaultAddrPool { + std::string id; + int lbaWeight; + }; + struct FailoverAddrPool { + std::string id; + int lbaWeight; + }; + AddDnsGtmAccessStrategyRequest(); + ~AddDnsGtmAccessStrategyRequest(); + std::string getDefaultLbaStrategy() const; + void setDefaultLbaStrategy(const std::string &defaultLbaStrategy); + std::string getFailoverAddrPoolType() const; + void setFailoverAddrPoolType(const std::string &failoverAddrPoolType); + std::string getDefaultAddrPoolType() const; + void setDefaultAddrPoolType(const std::string &defaultAddrPoolType); + int getFailoverMaxReturnAddrNum() const; + void setFailoverMaxReturnAddrNum(int failoverMaxReturnAddrNum); + std::string getFailoverLbaStrategy() const; + void setFailoverLbaStrategy(const std::string &failoverLbaStrategy); + std::vector getDefaultAddrPool() const; + void setDefaultAddrPool(const std::vector &defaultAddrPool); + int getFailoverMinAvailableAddrNum() const; + void setFailoverMinAvailableAddrNum(int failoverMinAvailableAddrNum); + int getDefaultMaxReturnAddrNum() const; + void setDefaultMaxReturnAddrNum(int defaultMaxReturnAddrNum); + int getDefaultMinAvailableAddrNum() const; + void setDefaultMinAvailableAddrNum(int defaultMinAvailableAddrNum); + std::string getStrategyMode() const; + void setStrategyMode(const std::string &strategyMode); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getLines() const; + void setLines(const std::string &lines); + std::string getStrategyName() const; + void setStrategyName(const std::string &strategyName); + std::string getDefaultLatencyOptimization() const; + void setDefaultLatencyOptimization(const std::string &defaultLatencyOptimization); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getFailoverLatencyOptimization() const; + void setFailoverLatencyOptimization(const std::string &failoverLatencyOptimization); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::vector getFailoverAddrPool() const; + void setFailoverAddrPool(const std::vector &failoverAddrPool); + +private: + std::string defaultLbaStrategy_; + std::string failoverAddrPoolType_; + std::string defaultAddrPoolType_; + int failoverMaxReturnAddrNum_; + std::string failoverLbaStrategy_; + std::vector defaultAddrPool_; + int failoverMinAvailableAddrNum_; + int defaultMaxReturnAddrNum_; + int defaultMinAvailableAddrNum_; + std::string strategyMode_; + std::string lang_; + std::string lines_; + std::string strategyName_; + std::string defaultLatencyOptimization_; + std::string instanceId_; + std::string failoverLatencyOptimization_; + std::string userClientIp_; + std::vector failoverAddrPool_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMACCESSSTRATEGYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddDnsGtmAddressPoolRequest.h b/alidns/include/alibabacloud/alidns/model/AddDnsGtmAddressPoolRequest.h index 799fc7c22..a54ef39c4 100644 --- a/alidns/include/alibabacloud/alidns/model/AddDnsGtmAddressPoolRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddDnsGtmAddressPoolRequest.h @@ -1,101 +1,92 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_ALIDNS_MODEL_ADDDNSGTMADDRESSPOOLREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMADDRESSPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddDnsGtmAddressPoolRequest : public RpcServiceRequest - { - public: - struct Addr - { - std::string mode; - std::string attributeInfo; - std::string remark; - std::string addr; - int lbaWeight; - }; - struct IspCityNode - { - std::string cityCode; - std::string ispCode; - }; - - public: - AddDnsGtmAddressPoolRequest(); - ~AddDnsGtmAddressPoolRequest(); - - std::string getMonitorExtendInfo()const; - void setMonitorExtendInfo(const std::string& monitorExtendInfo); - std::string getLbaStrategy()const; - void setLbaStrategy(const std::string& lbaStrategy); - std::string getType()const; - void setType(const std::string& type); - int getTimeout()const; - void setTimeout(int timeout); - int getEvaluationCount()const; - void setEvaluationCount(int evaluationCount); - std::string getLang()const; - void setLang(const std::string& lang); - std::vector getAddr()const; - void setAddr(const std::vector& addr); - std::string getMonitorStatus()const; - void setMonitorStatus(const std::string& monitorStatus); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getName()const; - void setName(const std::string& name); - std::string getProtocolType()const; - void setProtocolType(const std::string& protocolType); - int getInterval()const; - void setInterval(int interval); - std::vector getIspCityNode()const; - void setIspCityNode(const std::vector& ispCityNode); - - private: - std::string monitorExtendInfo_; - std::string lbaStrategy_; - std::string type_; - int timeout_; - int evaluationCount_; - std::string lang_; - std::vector addr_; - std::string monitorStatus_; - std::string instanceId_; - std::string userClientIp_; - std::string name_; - std::string protocolType_; - int interval_; - std::vector ispCityNode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMADDRESSPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMADDRESSPOOLREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMADDRESSPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddDnsGtmAddressPoolRequest : public RpcServiceRequest { +public: + struct Addr { + std::string attributeInfo; + std::string mode; + std::string remark; + int lbaWeight; + std::string addr; + }; + struct IspCityNode { + std::string cityCode; + std::string ispCode; + }; + AddDnsGtmAddressPoolRequest(); + ~AddDnsGtmAddressPoolRequest(); + std::string getMonitorExtendInfo() const; + void setMonitorExtendInfo(const std::string &monitorExtendInfo); + std::string getLbaStrategy() const; + void setLbaStrategy(const std::string &lbaStrategy); + std::string getType() const; + void setType(const std::string &type); + int getTimeout() const; + void setTimeout(int timeout); + int getEvaluationCount() const; + void setEvaluationCount(int evaluationCount); + std::string getLang() const; + void setLang(const std::string &lang); + std::vector getAddr() const; + void setAddr(const std::vector &addr); + std::string getMonitorStatus() const; + void setMonitorStatus(const std::string &monitorStatus); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getName() const; + void setName(const std::string &name); + std::string getProtocolType() const; + void setProtocolType(const std::string &protocolType); + int getInterval() const; + void setInterval(int interval); + std::vector getIspCityNode() const; + void setIspCityNode(const std::vector &ispCityNode); + +private: + std::string monitorExtendInfo_; + std::string lbaStrategy_; + std::string type_; + int timeout_; + int evaluationCount_; + std::string lang_; + std::vector addr_; + std::string monitorStatus_; + std::string instanceId_; + std::string userClientIp_; + std::string name_; + std::string protocolType_; + int interval_; + std::vector ispCityNode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMADDRESSPOOLREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddDnsGtmMonitorRequest.h b/alidns/include/alibabacloud/alidns/model/AddDnsGtmMonitorRequest.h index 52a47df03..7c899734b 100644 --- a/alidns/include/alibabacloud/alidns/model/AddDnsGtmMonitorRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddDnsGtmMonitorRequest.h @@ -1,78 +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_ALIDNS_MODEL_ADDDNSGTMMONITORREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddDnsGtmMonitorRequest : public RpcServiceRequest - { - public: - struct IspCityNode - { - std::string cityCode; - std::string ispCode; - }; - - public: - AddDnsGtmMonitorRequest(); - ~AddDnsGtmMonitorRequest(); - - std::string getMonitorExtendInfo()const; - void setMonitorExtendInfo(const std::string& monitorExtendInfo); - int getTimeout()const; - void setTimeout(int timeout); - std::string getAddrPoolId()const; - void setAddrPoolId(const std::string& addrPoolId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getEvaluationCount()const; - void setEvaluationCount(int evaluationCount); - std::string getProtocolType()const; - void setProtocolType(const std::string& protocolType); - int getInterval()const; - void setInterval(int interval); - std::string getLang()const; - void setLang(const std::string& lang); - std::vector getIspCityNode()const; - void setIspCityNode(const std::vector& ispCityNode); - - private: - std::string monitorExtendInfo_; - int timeout_; - std::string addrPoolId_; - std::string userClientIp_; - int evaluationCount_; - std::string protocolType_; - int interval_; - std::string lang_; - std::vector ispCityNode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMMONITORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMMONITORREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddDnsGtmMonitorRequest : public RpcServiceRequest { +public: + struct IspCityNode { + std::string cityCode; + std::string ispCode; + }; + AddDnsGtmMonitorRequest(); + ~AddDnsGtmMonitorRequest(); + std::string getMonitorExtendInfo() const; + void setMonitorExtendInfo(const std::string &monitorExtendInfo); + int getTimeout() const; + void setTimeout(int timeout); + std::string getAddrPoolId() const; + void setAddrPoolId(const std::string &addrPoolId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getEvaluationCount() const; + void setEvaluationCount(int evaluationCount); + std::string getProtocolType() const; + void setProtocolType(const std::string &protocolType); + int getInterval() const; + void setInterval(int interval); + std::string getLang() const; + void setLang(const std::string &lang); + std::vector getIspCityNode() const; + void setIspCityNode(const std::vector &ispCityNode); + +private: + std::string monitorExtendInfo_; + int timeout_; + std::string addrPoolId_; + std::string userClientIp_; + int evaluationCount_; + std::string protocolType_; + int interval_; + std::string lang_; + std::vector ispCityNode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMMONITORREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddDomainBackupRequest.h b/alidns/include/alibabacloud/alidns/model/AddDomainBackupRequest.h index 4b520e0b7..b3c73f603 100644 --- a/alidns/include/alibabacloud/alidns/model/AddDomainBackupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddDomainBackupRequest.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_ALIDNS_MODEL_ADDDOMAINBACKUPREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINBACKUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddDomainBackupRequest : public RpcServiceRequest - { - - public: - AddDomainBackupRequest(); - ~AddDomainBackupRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getPeriodType()const; - void setPeriodType(const std::string& periodType); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string periodType_; - std::string accessKeyId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINBACKUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINBACKUPREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINBACKUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddDomainBackupRequest : public RpcServiceRequest { +public: + AddDomainBackupRequest(); + ~AddDomainBackupRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getPeriodType() const; + void setPeriodType(const std::string &periodType); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string periodType_; + std::string accessKeyId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINBACKUPREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddDomainGroupRequest.h b/alidns/include/alibabacloud/alidns/model/AddDomainGroupRequest.h index 1b1107385..d682ed4ce 100644 --- a/alidns/include/alibabacloud/alidns/model/AddDomainGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddDomainGroupRequest.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_ALIDNS_MODEL_ADDDOMAINGROUPREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddDomainGroupRequest : public RpcServiceRequest - { - - public: - AddDomainGroupRequest(); - ~AddDomainGroupRequest(); - - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string groupName_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINGROUPREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddDomainGroupRequest : public RpcServiceRequest { +public: + AddDomainGroupRequest(); + ~AddDomainGroupRequest(); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string groupName_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINGROUPREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddDomainRecordRequest.h b/alidns/include/alibabacloud/alidns/model/AddDomainRecordRequest.h index 998a8bcbe..8bef20510 100644 --- a/alidns/include/alibabacloud/alidns/model/AddDomainRecordRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddDomainRecordRequest.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_ALIDNS_MODEL_ADDDOMAINRECORDREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINRECORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddDomainRecordRequest : public RpcServiceRequest - { - - public: - AddDomainRecordRequest(); - ~AddDomainRecordRequest(); - - std::string getRR()const; - void setRR(const std::string& rR); - std::string getLine()const; - void setLine(const std::string& line); - std::string getType()const; - void setType(const std::string& type); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getValue()const; - void setValue(const std::string& value); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - long getPriority()const; - void setPriority(long priority); - long getTTL()const; - void setTTL(long tTL); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - - private: - std::string rR_; - std::string line_; - std::string type_; - std::string accessKeyId_; - std::string lang_; - std::string value_; - std::string domainName_; - long priority_; - long tTL_; - std::string userClientIp_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINRECORDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINRECORDREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINRECORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddDomainRecordRequest : public RpcServiceRequest { +public: + AddDomainRecordRequest(); + ~AddDomainRecordRequest(); + std::string getRR() const; + void setRR(const std::string &rR); + std::string getLine() const; + void setLine(const std::string &line); + std::string getType() const; + void setType(const std::string &type); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getValue() const; + void setValue(const std::string &value); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + long getPriority() const; + void setPriority(long priority); + long getTTL() const; + void setTTL(long tTL); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + +private: + std::string rR_; + std::string line_; + std::string type_; + std::string accessKeyId_; + std::string lang_; + std::string value_; + std::string domainName_; + long priority_; + long tTL_; + std::string userClientIp_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINRECORDREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddDomainRequest.h b/alidns/include/alibabacloud/alidns/model/AddDomainRequest.h index 9f84651bf..42bb92dd6 100644 --- a/alidns/include/alibabacloud/alidns/model/AddDomainRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddDomainRequest.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_ALIDNS_MODEL_ADDDOMAINREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddDomainRequest : public RpcServiceRequest - { - - public: - AddDomainRequest(); - ~AddDomainRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string groupId_; - std::string domainName_; - std::string accessKeyId_; - std::string resourceGroupId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddDomainRequest : public RpcServiceRequest { +public: + AddDomainRequest(); + ~AddDomainRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string groupId_; + std::string domainName_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddGtmAccessStrategyRequest.h b/alidns/include/alibabacloud/alidns/model/AddGtmAccessStrategyRequest.h index 8bf0b6679..e41f036f4 100644 --- a/alidns/include/alibabacloud/alidns/model/AddGtmAccessStrategyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddGtmAccessStrategyRequest.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_ALIDNS_MODEL_ADDGTMACCESSSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDGTMACCESSSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddGtmAccessStrategyRequest : public RpcServiceRequest - { - - public: - AddGtmAccessStrategyRequest(); - ~AddGtmAccessStrategyRequest(); - - std::string getDefaultAddrPoolId()const; - void setDefaultAddrPoolId(const std::string& defaultAddrPoolId); - std::string getFailoverAddrPoolId()const; - void setFailoverAddrPoolId(const std::string& failoverAddrPoolId); - std::string getStrategyName()const; - void setStrategyName(const std::string& strategyName); - std::string getAccessLines()const; - void setAccessLines(const std::string& accessLines); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string defaultAddrPoolId_; - std::string failoverAddrPoolId_; - std::string strategyName_; - std::string accessLines_; - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDGTMACCESSSTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDGTMACCESSSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDGTMACCESSSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddGtmAccessStrategyRequest : public RpcServiceRequest { +public: + AddGtmAccessStrategyRequest(); + ~AddGtmAccessStrategyRequest(); + std::string getDefaultAddrPoolId() const; + void setDefaultAddrPoolId(const std::string &defaultAddrPoolId); + std::string getFailoverAddrPoolId() const; + void setFailoverAddrPoolId(const std::string &failoverAddrPoolId); + std::string getStrategyName() const; + void setStrategyName(const std::string &strategyName); + std::string getAccessLines() const; + void setAccessLines(const std::string &accessLines); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string defaultAddrPoolId_; + std::string failoverAddrPoolId_; + std::string strategyName_; + std::string accessLines_; + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDGTMACCESSSTRATEGYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddGtmAddressPoolRequest.h b/alidns/include/alibabacloud/alidns/model/AddGtmAddressPoolRequest.h index 0d2026169..22392d329 100644 --- a/alidns/include/alibabacloud/alidns/model/AddGtmAddressPoolRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddGtmAddressPoolRequest.h @@ -1,99 +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_ALIDNS_MODEL_ADDGTMADDRESSPOOLREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDGTMADDRESSPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddGtmAddressPoolRequest : public RpcServiceRequest - { - public: - struct Addr - { - std::string mode; - int lbaWeight; - std::string value; - }; - struct IspCityNode - { - std::string cityCode; - std::string ispCode; - }; - - public: - AddGtmAddressPoolRequest(); - ~AddGtmAddressPoolRequest(); - - std::string getMonitorExtendInfo()const; - void setMonitorExtendInfo(const std::string& monitorExtendInfo); - std::string getType()const; - void setType(const std::string& type); - int getTimeout()const; - void setTimeout(int timeout); - int getMinAvailableAddrNum()const; - void setMinAvailableAddrNum(int minAvailableAddrNum); - int getEvaluationCount()const; - void setEvaluationCount(int evaluationCount); - std::string getLang()const; - void setLang(const std::string& lang); - std::vector getAddr()const; - void setAddr(const std::vector& addr); - std::string getMonitorStatus()const; - void setMonitorStatus(const std::string& monitorStatus); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getName()const; - void setName(const std::string& name); - std::string getProtocolType()const; - void setProtocolType(const std::string& protocolType); - int getInterval()const; - void setInterval(int interval); - std::vector getIspCityNode()const; - void setIspCityNode(const std::vector& ispCityNode); - - private: - std::string monitorExtendInfo_; - std::string type_; - int timeout_; - int minAvailableAddrNum_; - int evaluationCount_; - std::string lang_; - std::vector addr_; - std::string monitorStatus_; - std::string instanceId_; - std::string userClientIp_; - std::string name_; - std::string protocolType_; - int interval_; - std::vector ispCityNode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDGTMADDRESSPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDGTMADDRESSPOOLREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDGTMADDRESSPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddGtmAddressPoolRequest : public RpcServiceRequest { +public: + struct Addr { + std::string mode; + int lbaWeight; + std::string value; + }; + struct IspCityNode { + std::string cityCode; + std::string ispCode; + }; + AddGtmAddressPoolRequest(); + ~AddGtmAddressPoolRequest(); + std::string getMonitorExtendInfo() const; + void setMonitorExtendInfo(const std::string &monitorExtendInfo); + std::string getType() const; + void setType(const std::string &type); + int getTimeout() const; + void setTimeout(int timeout); + int getMinAvailableAddrNum() const; + void setMinAvailableAddrNum(int minAvailableAddrNum); + int getEvaluationCount() const; + void setEvaluationCount(int evaluationCount); + std::string getLang() const; + void setLang(const std::string &lang); + std::vector getAddr() const; + void setAddr(const std::vector &addr); + std::string getMonitorStatus() const; + void setMonitorStatus(const std::string &monitorStatus); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getName() const; + void setName(const std::string &name); + std::string getProtocolType() const; + void setProtocolType(const std::string &protocolType); + int getInterval() const; + void setInterval(int interval); + std::vector getIspCityNode() const; + void setIspCityNode(const std::vector &ispCityNode); + +private: + std::string monitorExtendInfo_; + std::string type_; + int timeout_; + int minAvailableAddrNum_; + int evaluationCount_; + std::string lang_; + std::vector addr_; + std::string monitorStatus_; + std::string instanceId_; + std::string userClientIp_; + std::string name_; + std::string protocolType_; + int interval_; + std::vector ispCityNode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDGTMADDRESSPOOLREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddGtmMonitorRequest.h b/alidns/include/alibabacloud/alidns/model/AddGtmMonitorRequest.h index 5f4298fbe..80b313ac0 100644 --- a/alidns/include/alibabacloud/alidns/model/AddGtmMonitorRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddGtmMonitorRequest.h @@ -1,78 +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_ALIDNS_MODEL_ADDGTMMONITORREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDGTMMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddGtmMonitorRequest : public RpcServiceRequest - { - public: - struct IspCityNode - { - std::string cityCode; - std::string ispCode; - }; - - public: - AddGtmMonitorRequest(); - ~AddGtmMonitorRequest(); - - std::string getMonitorExtendInfo()const; - void setMonitorExtendInfo(const std::string& monitorExtendInfo); - int getTimeout()const; - void setTimeout(int timeout); - std::string getAddrPoolId()const; - void setAddrPoolId(const std::string& addrPoolId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getEvaluationCount()const; - void setEvaluationCount(int evaluationCount); - std::string getProtocolType()const; - void setProtocolType(const std::string& protocolType); - int getInterval()const; - void setInterval(int interval); - std::string getLang()const; - void setLang(const std::string& lang); - std::vector getIspCityNode()const; - void setIspCityNode(const std::vector& ispCityNode); - - private: - std::string monitorExtendInfo_; - int timeout_; - std::string addrPoolId_; - std::string userClientIp_; - int evaluationCount_; - std::string protocolType_; - int interval_; - std::string lang_; - std::vector ispCityNode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDGTMMONITORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDGTMMONITORREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDGTMMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddGtmMonitorRequest : public RpcServiceRequest { +public: + struct IspCityNode { + std::string cityCode; + std::string ispCode; + }; + AddGtmMonitorRequest(); + ~AddGtmMonitorRequest(); + std::string getMonitorExtendInfo() const; + void setMonitorExtendInfo(const std::string &monitorExtendInfo); + int getTimeout() const; + void setTimeout(int timeout); + std::string getAddrPoolId() const; + void setAddrPoolId(const std::string &addrPoolId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getEvaluationCount() const; + void setEvaluationCount(int evaluationCount); + std::string getProtocolType() const; + void setProtocolType(const std::string &protocolType); + int getInterval() const; + void setInterval(int interval); + std::string getLang() const; + void setLang(const std::string &lang); + std::vector getIspCityNode() const; + void setIspCityNode(const std::vector &ispCityNode); + +private: + std::string monitorExtendInfo_; + int timeout_; + std::string addrPoolId_; + std::string userClientIp_; + int evaluationCount_; + std::string protocolType_; + int interval_; + std::string lang_; + std::vector ispCityNode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDGTMMONITORREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/AddGtmRecoveryPlanRequest.h b/alidns/include/alibabacloud/alidns/model/AddGtmRecoveryPlanRequest.h index 28bfce9e6..2bf7ba6a2 100644 --- a/alidns/include/alibabacloud/alidns/model/AddGtmRecoveryPlanRequest.h +++ b/alidns/include/alibabacloud/alidns/model/AddGtmRecoveryPlanRequest.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_ALIDNS_MODEL_ADDGTMRECOVERYPLANREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ADDGTMRECOVERYPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT AddGtmRecoveryPlanRequest : public RpcServiceRequest - { - - public: - AddGtmRecoveryPlanRequest(); - ~AddGtmRecoveryPlanRequest(); - - std::string getFaultAddrPool()const; - void setFaultAddrPool(const std::string& faultAddrPool); - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getName()const; - void setName(const std::string& name); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string faultAddrPool_; - std::string remark_; - std::string userClientIp_; - std::string name_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDGTMRECOVERYPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDGTMRECOVERYPLANREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ADDGTMRECOVERYPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT AddGtmRecoveryPlanRequest : public RpcServiceRequest { +public: + AddGtmRecoveryPlanRequest(); + ~AddGtmRecoveryPlanRequest(); + std::string getFaultAddrPool() const; + void setFaultAddrPool(const std::string &faultAddrPool); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getName() const; + void setName(const std::string &name); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string faultAddrPool_; + std::string remark_; + std::string userClientIp_; + std::string name_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDGTMRECOVERYPLANREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/BindInstanceDomainsRequest.h b/alidns/include/alibabacloud/alidns/model/BindInstanceDomainsRequest.h index bf7e1af2f..5dee71290 100644 --- a/alidns/include/alibabacloud/alidns/model/BindInstanceDomainsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/BindInstanceDomainsRequest.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_ALIDNS_MODEL_BINDINSTANCEDOMAINSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_BINDINSTANCEDOMAINSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT BindInstanceDomainsRequest : public RpcServiceRequest - { - - public: - BindInstanceDomainsRequest(); - ~BindInstanceDomainsRequest(); - - std::string getDomainNames()const; - void setDomainNames(const std::string& domainNames); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainNames_; - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_BINDINSTANCEDOMAINSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_BINDINSTANCEDOMAINSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_BINDINSTANCEDOMAINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT BindInstanceDomainsRequest : public RpcServiceRequest { +public: + BindInstanceDomainsRequest(); + ~BindInstanceDomainsRequest(); + std::string getDomainNames() const; + void setDomainNames(const std::string &domainNames); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainNames_; + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_BINDINSTANCEDOMAINSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/ChangeDomainGroupRequest.h b/alidns/include/alibabacloud/alidns/model/ChangeDomainGroupRequest.h index 0fa9df5fc..31c33c21b 100644 --- a/alidns/include/alibabacloud/alidns/model/ChangeDomainGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/ChangeDomainGroupRequest.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_ALIDNS_MODEL_CHANGEDOMAINGROUPREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_CHANGEDOMAINGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT ChangeDomainGroupRequest : public RpcServiceRequest - { - - public: - ChangeDomainGroupRequest(); - ~ChangeDomainGroupRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string groupId_; - std::string domainName_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_CHANGEDOMAINGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_CHANGEDOMAINGROUPREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_CHANGEDOMAINGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT ChangeDomainGroupRequest : public RpcServiceRequest { +public: + ChangeDomainGroupRequest(); + ~ChangeDomainGroupRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string groupId_; + std::string domainName_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_CHANGEDOMAINGROUPREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/ChangeDomainOfDnsProductRequest.h b/alidns/include/alibabacloud/alidns/model/ChangeDomainOfDnsProductRequest.h index 53853b3af..cd9e7156d 100644 --- a/alidns/include/alibabacloud/alidns/model/ChangeDomainOfDnsProductRequest.h +++ b/alidns/include/alibabacloud/alidns/model/ChangeDomainOfDnsProductRequest.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_ALIDNS_MODEL_CHANGEDOMAINOFDNSPRODUCTREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_CHANGEDOMAINOFDNSPRODUCTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT ChangeDomainOfDnsProductRequest : public RpcServiceRequest - { - - public: - ChangeDomainOfDnsProductRequest(); - ~ChangeDomainOfDnsProductRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNewDomain()const; - void setNewDomain(const std::string& newDomain); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - bool getForce()const; - void setForce(bool force); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string accessKeyId_; - std::string instanceId_; - std::string newDomain_; - std::string userClientIp_; - bool force_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_CHANGEDOMAINOFDNSPRODUCTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_CHANGEDOMAINOFDNSPRODUCTREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_CHANGEDOMAINOFDNSPRODUCTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT ChangeDomainOfDnsProductRequest : public RpcServiceRequest { +public: + ChangeDomainOfDnsProductRequest(); + ~ChangeDomainOfDnsProductRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getNewDomain() const; + void setNewDomain(const std::string &newDomain); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + bool getForce() const; + void setForce(bool force); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string accessKeyId_; + std::string instanceId_; + std::string newDomain_; + std::string userClientIp_; + bool force_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_CHANGEDOMAINOFDNSPRODUCTREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/CopyGtmConfigRequest.h b/alidns/include/alibabacloud/alidns/model/CopyGtmConfigRequest.h index 5a407870b..157520acf 100644 --- a/alidns/include/alibabacloud/alidns/model/CopyGtmConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/CopyGtmConfigRequest.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_ALIDNS_MODEL_COPYGTMCONFIGREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_COPYGTMCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT CopyGtmConfigRequest : public RpcServiceRequest - { - - public: - CopyGtmConfigRequest(); - ~CopyGtmConfigRequest(); - - std::string getSourceId()const; - void setSourceId(const std::string& sourceId); - std::string getTargetId()const; - void setTargetId(const std::string& targetId); - std::string getCopyType()const; - void setCopyType(const std::string& copyType); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string sourceId_; - std::string targetId_; - std::string copyType_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_COPYGTMCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_COPYGTMCONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_COPYGTMCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT CopyGtmConfigRequest : public RpcServiceRequest { +public: + CopyGtmConfigRequest(); + ~CopyGtmConfigRequest(); + std::string getSourceId() const; + void setSourceId(const std::string &sourceId); + std::string getTargetId() const; + void setTargetId(const std::string &targetId); + std::string getCopyType() const; + void setCopyType(const std::string ©Type); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string sourceId_; + std::string targetId_; + std::string copyType_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_COPYGTMCONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/CreatePdnsAppKeyRequest.h b/alidns/include/alibabacloud/alidns/model/CreatePdnsAppKeyRequest.h index 95b71bb77..86de5ee9d 100644 --- a/alidns/include/alibabacloud/alidns/model/CreatePdnsAppKeyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/CreatePdnsAppKeyRequest.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_ALIDNS_MODEL_CREATEPDNSAPPKEYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_CREATEPDNSAPPKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT CreatePdnsAppKeyRequest : public RpcServiceRequest - { - - public: - CreatePdnsAppKeyRequest(); - ~CreatePdnsAppKeyRequest(); - - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_CREATEPDNSAPPKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_CREATEPDNSAPPKEYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_CREATEPDNSAPPKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT CreatePdnsAppKeyRequest : public RpcServiceRequest { +public: + CreatePdnsAppKeyRequest(); + ~CreatePdnsAppKeyRequest(); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_CREATEPDNSAPPKEYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/CreatePdnsUdpIpSegmentRequest.h b/alidns/include/alibabacloud/alidns/model/CreatePdnsUdpIpSegmentRequest.h index ccf869e42..462d57e1b 100644 --- a/alidns/include/alibabacloud/alidns/model/CreatePdnsUdpIpSegmentRequest.h +++ b/alidns/include/alibabacloud/alidns/model/CreatePdnsUdpIpSegmentRequest.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_ALIDNS_MODEL_CREATEPDNSUDPIPSEGMENTREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_CREATEPDNSUDPIPSEGMENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT CreatePdnsUdpIpSegmentRequest : public RpcServiceRequest - { - - public: - CreatePdnsUdpIpSegmentRequest(); - ~CreatePdnsUdpIpSegmentRequest(); - - std::string getIp()const; - void setIp(const std::string& ip); - std::string getName()const; - void setName(const std::string& name); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string ip_; - std::string name_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_CREATEPDNSUDPIPSEGMENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_CREATEPDNSUDPIPSEGMENTREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_CREATEPDNSUDPIPSEGMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT CreatePdnsUdpIpSegmentRequest : public RpcServiceRequest { +public: + CreatePdnsUdpIpSegmentRequest(); + ~CreatePdnsUdpIpSegmentRequest(); + std::string getIp() const; + void setIp(const std::string &ip); + std::string getName() const; + void setName(const std::string &name); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string ip_; + std::string name_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_CREATEPDNSUDPIPSEGMENTREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DeleteCustomLinesRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteCustomLinesRequest.h index cfd197484..1b127d990 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteCustomLinesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteCustomLinesRequest.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_ALIDNS_MODEL_DELETECUSTOMLINESREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DELETECUSTOMLINESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DeleteCustomLinesRequest : public RpcServiceRequest - { - - public: - DeleteCustomLinesRequest(); - ~DeleteCustomLinesRequest(); - - std::string getLineIds()const; - void setLineIds(const std::string& lineIds); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string lineIds_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETECUSTOMLINESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETECUSTOMLINESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DELETECUSTOMLINESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DeleteCustomLinesRequest : public RpcServiceRequest { +public: + DeleteCustomLinesRequest(); + ~DeleteCustomLinesRequest(); + std::string getLineIds() const; + void setLineIds(const std::string &lineIds); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string lineIds_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETECUSTOMLINESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DeleteDnsCacheDomainRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteDnsCacheDomainRequest.h index 9afdc5b3b..96c1859d8 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteDnsCacheDomainRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteDnsCacheDomainRequest.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_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DeleteDnsCacheDomainRequest : public RpcServiceRequest - { - - public: - DeleteDnsCacheDomainRequest(); - ~DeleteDnsCacheDomainRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string accessKeyId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DeleteDnsCacheDomainRequest : public RpcServiceRequest { +public: + DeleteDnsCacheDomainRequest(); + ~DeleteDnsCacheDomainRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string accessKeyId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DeleteDnsGtmAccessStrategyRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteDnsGtmAccessStrategyRequest.h index 4e8e60d4d..33a4a1ab4 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteDnsGtmAccessStrategyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteDnsGtmAccessStrategyRequest.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_ALIDNS_MODEL_DELETEDNSGTMACCESSSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSGTMACCESSSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DeleteDnsGtmAccessStrategyRequest : public RpcServiceRequest - { - - public: - DeleteDnsGtmAccessStrategyRequest(); - ~DeleteDnsGtmAccessStrategyRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getStrategyId()const; - void setStrategyId(const std::string& strategyId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - std::string strategyId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSGTMACCESSSTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSGTMACCESSSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSGTMACCESSSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DeleteDnsGtmAccessStrategyRequest : public RpcServiceRequest { +public: + DeleteDnsGtmAccessStrategyRequest(); + ~DeleteDnsGtmAccessStrategyRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getStrategyId() const; + void setStrategyId(const std::string &strategyId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + std::string strategyId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSGTMACCESSSTRATEGYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DeleteDnsGtmAddressPoolRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteDnsGtmAddressPoolRequest.h index c718cad27..99522ccf9 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteDnsGtmAddressPoolRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteDnsGtmAddressPoolRequest.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_ALIDNS_MODEL_DELETEDNSGTMADDRESSPOOLREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSGTMADDRESSPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DeleteDnsGtmAddressPoolRequest : public RpcServiceRequest - { - - public: - DeleteDnsGtmAddressPoolRequest(); - ~DeleteDnsGtmAddressPoolRequest(); - - std::string getAddrPoolId()const; - void setAddrPoolId(const std::string& addrPoolId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string addrPoolId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSGTMADDRESSPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSGTMADDRESSPOOLREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSGTMADDRESSPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DeleteDnsGtmAddressPoolRequest : public RpcServiceRequest { +public: + DeleteDnsGtmAddressPoolRequest(); + ~DeleteDnsGtmAddressPoolRequest(); + std::string getAddrPoolId() const; + void setAddrPoolId(const std::string &addrPoolId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string addrPoolId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSGTMADDRESSPOOLREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DeleteDomainGroupRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteDomainGroupRequest.h index 14ad371a1..1a06aafc9 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteDomainGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteDomainGroupRequest.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_ALIDNS_MODEL_DELETEDOMAINGROUPREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DeleteDomainGroupRequest : public RpcServiceRequest - { - - public: - DeleteDomainGroupRequest(); - ~DeleteDomainGroupRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string groupId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINGROUPREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DeleteDomainGroupRequest : public RpcServiceRequest { +public: + DeleteDomainGroupRequest(); + ~DeleteDomainGroupRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string groupId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINGROUPREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DeleteDomainRecordRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteDomainRecordRequest.h index 1be92c22b..b33bdab58 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteDomainRecordRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteDomainRecordRequest.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_ALIDNS_MODEL_DELETEDOMAINRECORDREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINRECORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DeleteDomainRecordRequest : public RpcServiceRequest - { - - public: - DeleteDomainRecordRequest(); - ~DeleteDomainRecordRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getRecordId()const; - void setRecordId(const std::string& recordId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string accessKeyId_; - std::string recordId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINRECORDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINRECORDREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINRECORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DeleteDomainRecordRequest : public RpcServiceRequest { +public: + DeleteDomainRecordRequest(); + ~DeleteDomainRecordRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRecordId() const; + void setRecordId(const std::string &recordId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string accessKeyId_; + std::string recordId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINRECORDREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DeleteDomainRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteDomainRequest.h index 121a0503d..07e840e17 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteDomainRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteDomainRequest.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_ALIDNS_MODEL_DELETEDOMAINREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DeleteDomainRequest : public RpcServiceRequest - { - - public: - DeleteDomainRequest(); - ~DeleteDomainRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string accessKeyId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DeleteDomainRequest : public RpcServiceRequest { +public: + DeleteDomainRequest(); + ~DeleteDomainRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string accessKeyId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDOMAINREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DeleteGtmAccessStrategyRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteGtmAccessStrategyRequest.h index 045431133..1f19391b8 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteGtmAccessStrategyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteGtmAccessStrategyRequest.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_ALIDNS_MODEL_DELETEGTMACCESSSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMACCESSSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DeleteGtmAccessStrategyRequest : public RpcServiceRequest - { - - public: - DeleteGtmAccessStrategyRequest(); - ~DeleteGtmAccessStrategyRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getStrategyId()const; - void setStrategyId(const std::string& strategyId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - std::string strategyId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMACCESSSTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMACCESSSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMACCESSSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DeleteGtmAccessStrategyRequest : public RpcServiceRequest { +public: + DeleteGtmAccessStrategyRequest(); + ~DeleteGtmAccessStrategyRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getStrategyId() const; + void setStrategyId(const std::string &strategyId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + std::string strategyId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMACCESSSTRATEGYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DeleteGtmAddressPoolRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteGtmAddressPoolRequest.h index 47066b0ef..e64f0ff42 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteGtmAddressPoolRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteGtmAddressPoolRequest.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_ALIDNS_MODEL_DELETEGTMADDRESSPOOLREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMADDRESSPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DeleteGtmAddressPoolRequest : public RpcServiceRequest - { - - public: - DeleteGtmAddressPoolRequest(); - ~DeleteGtmAddressPoolRequest(); - - std::string getAddrPoolId()const; - void setAddrPoolId(const std::string& addrPoolId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string addrPoolId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMADDRESSPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMADDRESSPOOLREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMADDRESSPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DeleteGtmAddressPoolRequest : public RpcServiceRequest { +public: + DeleteGtmAddressPoolRequest(); + ~DeleteGtmAddressPoolRequest(); + std::string getAddrPoolId() const; + void setAddrPoolId(const std::string &addrPoolId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string addrPoolId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMADDRESSPOOLREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DeleteGtmRecoveryPlanRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteGtmRecoveryPlanRequest.h index ee51aa56b..5100f89da 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteGtmRecoveryPlanRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteGtmRecoveryPlanRequest.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_ALIDNS_MODEL_DELETEGTMRECOVERYPLANREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMRECOVERYPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DeleteGtmRecoveryPlanRequest : public RpcServiceRequest - { - - public: - DeleteGtmRecoveryPlanRequest(); - ~DeleteGtmRecoveryPlanRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getRecoveryPlanId()const; - void setRecoveryPlanId(long recoveryPlanId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - long recoveryPlanId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMRECOVERYPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMRECOVERYPLANREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMRECOVERYPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DeleteGtmRecoveryPlanRequest : public RpcServiceRequest { +public: + DeleteGtmRecoveryPlanRequest(); + ~DeleteGtmRecoveryPlanRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getRecoveryPlanId() const; + void setRecoveryPlanId(long recoveryPlanId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + long recoveryPlanId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEGTMRECOVERYPLANREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DeleteSubDomainRecordsRequest.h b/alidns/include/alibabacloud/alidns/model/DeleteSubDomainRecordsRequest.h index 5894e35d3..904d41e2d 100644 --- a/alidns/include/alibabacloud/alidns/model/DeleteSubDomainRecordsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DeleteSubDomainRecordsRequest.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_ALIDNS_MODEL_DELETESUBDOMAINRECORDSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DELETESUBDOMAINRECORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DeleteSubDomainRecordsRequest : public RpcServiceRequest - { - - public: - DeleteSubDomainRecordsRequest(); - ~DeleteSubDomainRecordsRequest(); - - std::string getRR()const; - void setRR(const std::string& rR); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getType()const; - void setType(const std::string& type); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string rR_; - std::string domainName_; - std::string type_; - std::string accessKeyId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETESUBDOMAINRECORDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DELETESUBDOMAINRECORDSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DELETESUBDOMAINRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DeleteSubDomainRecordsRequest : public RpcServiceRequest { +public: + DeleteSubDomainRecordsRequest(); + ~DeleteSubDomainRecordsRequest(); + std::string getRR() const; + void setRR(const std::string &rR); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getType() const; + void setType(const std::string &type); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string rR_; + std::string domainName_; + std::string type_; + std::string accessKeyId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETESUBDOMAINRECORDSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeBatchResultCountRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeBatchResultCountRequest.h index e92b2c47a..6ab710705 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeBatchResultCountRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeBatchResultCountRequest.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_ALIDNS_MODEL_DESCRIBEBATCHRESULTCOUNTREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEBATCHRESULTCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeBatchResultCountRequest : public RpcServiceRequest - { - - public: - DescribeBatchResultCountRequest(); - ~DescribeBatchResultCountRequest(); - - std::string getBatchType()const; - void setBatchType(const std::string& batchType); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - long getTaskId()const; - void setTaskId(long taskId); - - private: - std::string batchType_; - std::string userClientIp_; - std::string lang_; - long taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEBATCHRESULTCOUNTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEBATCHRESULTCOUNTREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEBATCHRESULTCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeBatchResultCountRequest : public RpcServiceRequest { +public: + DescribeBatchResultCountRequest(); + ~DescribeBatchResultCountRequest(); + std::string getBatchType() const; + void setBatchType(const std::string &batchType); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + long getTaskId() const; + void setTaskId(long taskId); + +private: + std::string batchType_; + std::string userClientIp_; + std::string lang_; + long taskId_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEBATCHRESULTCOUNTREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeBatchResultCountResult.h b/alidns/include/alibabacloud/alidns/model/DescribeBatchResultCountResult.h index 1c7a543f1..26b5ada5a 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeBatchResultCountResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeBatchResultCountResult.h @@ -42,8 +42,8 @@ namespace AlibabaCloud long getTaskId()const; int getFailedCount()const; int getSuccessCount()const; - std::string getReason()const; std::string getBatchType()const; + std::string getReason()const; protected: void parse(const std::string &payload); @@ -53,8 +53,8 @@ namespace AlibabaCloud long taskId_; int failedCount_; int successCount_; - std::string reason_; std::string batchType_; + std::string reason_; }; } diff --git a/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailRequest.h index 3edab0f62..bfea5d710 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailRequest.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_ALIDNS_MODEL_DESCRIBEBATCHRESULTDETAILREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEBATCHRESULTDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeBatchResultDetailRequest : public RpcServiceRequest - { - - public: - DescribeBatchResultDetailRequest(); - ~DescribeBatchResultDetailRequest(); - - std::string getBatchType()const; - void setBatchType(const std::string& batchType); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - long getTaskId()const; - void setTaskId(long taskId); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string batchType_; - int pageNumber_; - std::string userClientIp_; - int pageSize_; - std::string lang_; - long taskId_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEBATCHRESULTDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEBATCHRESULTDETAILREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEBATCHRESULTDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeBatchResultDetailRequest : public RpcServiceRequest { +public: + DescribeBatchResultDetailRequest(); + ~DescribeBatchResultDetailRequest(); + std::string getBatchType() const; + void setBatchType(const std::string &batchType); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + long getTaskId() const; + void setTaskId(long taskId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string batchType_; + int pageNumber_; + std::string userClientIp_; + int pageSize_; + std::string lang_; + long taskId_; + std::string status_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEBATCHRESULTDETAILREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailResult.h b/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailResult.h index 053788cfe..58a8338e8 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeBatchResultDetailResult.h @@ -34,20 +34,20 @@ namespace AlibabaCloud public: struct BatchResultDetail { - std::string rr; bool status; + std::string rr; std::string operateDateStr; std::string priority; std::string rrStatus; std::string ttl; - std::string reason; std::string batchType; + std::string reason; std::string remark; std::string line; std::string type; std::string value; - std::string newRr; std::string newValue; + std::string newRr; std::string recordId; std::string domain; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeCustomLineRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeCustomLineRequest.h index fc2147b5a..7ecbba097 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeCustomLineRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeCustomLineRequest.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_ALIDNS_MODEL_DESCRIBECUSTOMLINEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeCustomLineRequest : public RpcServiceRequest - { - - public: - DescribeCustomLineRequest(); - ~DescribeCustomLineRequest(); - - long getLineId()const; - void setLineId(long lineId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - long lineId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeCustomLineRequest : public RpcServiceRequest { +public: + DescribeCustomLineRequest(); + ~DescribeCustomLineRequest(); + long getLineId() const; + void setLineId(long lineId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + long lineId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeCustomLineResult.h b/alidns/include/alibabacloud/alidns/model/DescribeCustomLineResult.h index 819d21986..e28f58df1 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeCustomLineResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeCustomLineResult.h @@ -48,8 +48,8 @@ namespace AlibabaCloud std::string getCreateTime()const; long getId()const; std::string getIpSegments()const; - long getCreateTimestamp()const; std::string getCode()const; + long getCreateTimestamp()const; std::string getName()const; protected: @@ -60,8 +60,8 @@ namespace AlibabaCloud std::string createTime_; long id_; std::string ipSegments_; - long createTimestamp_; std::string code_; + long createTimestamp_; std::string name_; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeCustomLinesRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeCustomLinesRequest.h index 81ec950ca..dc94714f0 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeCustomLinesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeCustomLinesRequest.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_ALIDNS_MODEL_DESCRIBECUSTOMLINESREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeCustomLinesRequest : public RpcServiceRequest - { - - public: - DescribeCustomLinesRequest(); - ~DescribeCustomLinesRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - long pageNumber_; - std::string userClientIp_; - long pageSize_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeCustomLinesRequest : public RpcServiceRequest { +public: + DescribeCustomLinesRequest(); + ~DescribeCustomLinesRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + long pageNumber_; + std::string userClientIp_; + long pageSize_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeCustomLinesResult.h b/alidns/include/alibabacloud/alidns/model/DescribeCustomLinesResult.h index 0b502161d..9cb38bfca 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeCustomLinesResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeCustomLinesResult.h @@ -44,8 +44,8 @@ namespace AlibabaCloud std::string createTime; long id; std::string ipSegments; - long createTimestamp; std::string code; + long createTimestamp; std::string name; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsRequest.h index 373f77f6d..143f85906 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsRequest.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_ALIDNS_MODEL_DESCRIBEDNSSLBSUBDOMAINSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSSLBSUBDOMAINSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDNSSLBSubDomainsRequest : public RpcServiceRequest - { - - public: - DescribeDNSSLBSubDomainsRequest(); - ~DescribeDNSSLBSubDomainsRequest(); - - std::string getRr()const; - void setRr(const std::string& rr); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string rr_; - std::string domainName_; - long pageNumber_; - std::string accessKeyId_; - std::string userClientIp_; - long pageSize_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSSLBSUBDOMAINSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSSLBSUBDOMAINSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSSLBSUBDOMAINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDNSSLBSubDomainsRequest : public RpcServiceRequest { +public: + DescribeDNSSLBSubDomainsRequest(); + ~DescribeDNSSLBSubDomainsRequest(); + std::string getRr() const; + void setRr(const std::string &rr); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string rr_; + std::string domainName_; + long pageNumber_; + std::string accessKeyId_; + std::string userClientIp_; + long pageSize_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSSLBSUBDOMAINSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsCacheDomainsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsCacheDomainsRequest.h index 5db595693..eb905f328 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsCacheDomainsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsCacheDomainsRequest.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_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsCacheDomainsRequest : public RpcServiceRequest - { - - public: - DescribeDnsCacheDomainsRequest(); - ~DescribeDnsCacheDomainsRequest(); - - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - - private: - long pageNumber_; - std::string userClientIp_; - long pageSize_; - std::string lang_; - std::string keyword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsCacheDomainsRequest : public RpcServiceRequest { +public: + DescribeDnsCacheDomainsRequest(); + ~DescribeDnsCacheDomainsRequest(); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + +private: + long pageNumber_; + std::string userClientIp_; + long pageSize_; + std::string lang_; + std::string keyword_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsCacheDomainsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsCacheDomainsResult.h index a756260ec..51bc88933 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsCacheDomainsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsCacheDomainsResult.h @@ -40,16 +40,16 @@ namespace AlibabaCloud std::string host; }; long expireTimestamp; - std::string domainName; std::string instanceId; + std::string domainName; std::string createTime; int cacheTtlMin; std::string remark; std::string versionCode; std::string domainId; std::string sourceEdns; - std::string updateTime; std::string sourceProtocol; + std::string updateTime; long updateTimestamp; int cacheTtlMax; std::vector sourceDnsServers; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesRequest.h index 370137061..fe36af6b8 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGIESREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAccessStrategiesRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmAccessStrategiesRequest(); - ~DescribeDnsGtmAccessStrategiesRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getStrategyMode()const; - void setStrategyMode(const std::string& strategyMode); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - int pageNumber_; - std::string instanceId_; - std::string userClientIp_; - int pageSize_; - std::string strategyMode_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGIESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAccessStrategiesRequest : public RpcServiceRequest { +public: + DescribeDnsGtmAccessStrategiesRequest(); + ~DescribeDnsGtmAccessStrategiesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getStrategyMode() const; + void setStrategyMode(const std::string &strategyMode); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + int pageNumber_; + std::string instanceId_; + std::string userClientIp_; + int pageSize_; + std::string strategyMode_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGIESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesResult.h index dbf82a216..44ab28437 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesResult.h @@ -34,13 +34,6 @@ namespace AlibabaCloud public: struct Strategy { - struct Line - { - std::string groupName; - std::string groupCode; - std::string lineCode; - std::string lineName; - }; struct EffectiveAddrPool { int lbaWeight; @@ -48,11 +41,18 @@ namespace AlibabaCloud std::string name; int addrCount; }; + struct Line + { + std::string groupName; + std::string groupCode; + std::string lineCode; + std::string lineName; + }; std::vector effectiveAddrPools; std::string strategyName; std::string effectiveAddrPoolType; - std::string createTime; std::string effectiveAddrPoolGroupType; + std::string createTime; std::string strategyId; long createTimestamp; std::vector lines; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyAvailableConfigRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyAvailableConfigRequest.h index e8be930e2..02ef3d7f5 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyAvailableConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyAvailableConfigRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAccessStrategyAvailableConfigRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmAccessStrategyAvailableConfigRequest(); - ~DescribeDnsGtmAccessStrategyAvailableConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getStrategyMode()const; - void setStrategyMode(const std::string& strategyMode); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string userClientIp_; - std::string strategyMode_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAccessStrategyAvailableConfigRequest : public RpcServiceRequest { +public: + DescribeDnsGtmAccessStrategyAvailableConfigRequest(); + ~DescribeDnsGtmAccessStrategyAvailableConfigRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getStrategyMode() const; + void setStrategyMode(const std::string &strategyMode); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string instanceId_; + std::string userClientIp_; + std::string strategyMode_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyAvailableConfigResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyAvailableConfigResult.h index f75b43595..f04ec5964 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyAvailableConfigResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyAvailableConfigResult.h @@ -32,12 +32,24 @@ namespace AlibabaCloud class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAccessStrategyAvailableConfigResult : public ServiceResult { public: + struct DomainAddrPool + { + std::string id; + std::string name; + int addrCount; + }; struct Ipv4AddrPool { std::string id; std::string name; int addrCount; }; + struct Ipv6AddrPool + { + std::string id; + std::string name; + int addrCount; + }; struct Line { std::string groupName; @@ -46,25 +58,13 @@ namespace AlibabaCloud std::string lineCode; std::string lineName; }; - struct Ipv6AddrPool - { - std::string id; - std::string name; - int addrCount; - }; - struct DomainAddrPool - { - std::string id; - std::string name; - int addrCount; - }; DescribeDnsGtmAccessStrategyAvailableConfigResult(); explicit DescribeDnsGtmAccessStrategyAvailableConfigResult(const std::string &payload); ~DescribeDnsGtmAccessStrategyAvailableConfigResult(); - std::vector getIpv4AddrPools()const; std::vector getDomainAddrPools()const; + std::vector getIpv4AddrPools()const; std::vector getSelectedDomainLines()const; std::vector getSelectedIpv4Lines()const; std::vector getIpv6AddrPools()const; @@ -75,8 +75,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::vector ipv4AddrPools_; std::vector domainAddrPools_; + std::vector ipv4AddrPools_; std::vector selectedDomainLines_; std::vector selectedIpv4Lines_; std::vector ipv6AddrPools_; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyRequest.h index 2a8f21337..9456d1055 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAccessStrategyRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmAccessStrategyRequest(); - ~DescribeDnsGtmAccessStrategyRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getStrategyId()const; - void setStrategyId(const std::string& strategyId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - std::string strategyId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAccessStrategyRequest : public RpcServiceRequest { +public: + DescribeDnsGtmAccessStrategyRequest(); + ~DescribeDnsGtmAccessStrategyRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getStrategyId() const; + void setStrategyId(const std::string &strategyId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + std::string strategyId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMACCESSSTRATEGYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyResult.h index c3718cad6..be36b57a5 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyResult.h @@ -32,12 +32,12 @@ namespace AlibabaCloud class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAccessStrategyResult : public ServiceResult { public: - struct Line + struct FailoverAddrPool { - std::string groupName; - std::string groupCode; - std::string lineCode; - std::string lineName; + int lbaWeight; + std::string id; + std::string name; + int addrCount; }; struct DefaultAddrPool { @@ -46,12 +46,12 @@ namespace AlibabaCloud std::string name; int addrCount; }; - struct FailoverAddrPool + struct Line { - int lbaWeight; - std::string id; - std::string name; - int addrCount; + std::string groupName; + std::string groupCode; + std::string lineCode; + std::string lineName; }; @@ -60,9 +60,9 @@ namespace AlibabaCloud ~DescribeDnsGtmAccessStrategyResult(); int getFailoverMinAvailableAddrNum()const; std::string getDefaultAddrPoolType()const; + int getDefaultAvailableAddrNum()const; std::string getStrategyId()const; std::string getFailoverAddrPoolGroupStatus()const; - int getDefaultAvailableAddrNum()const; int getFailoverAvailableAddrNum()const; std::string getFailoverLbaStrategy()const; int getDefaultMaxReturnAddrNum()const; @@ -89,9 +89,9 @@ namespace AlibabaCloud private: int failoverMinAvailableAddrNum_; std::string defaultAddrPoolType_; + int defaultAvailableAddrNum_; std::string strategyId_; std::string failoverAddrPoolGroupStatus_; - int defaultAvailableAddrNum_; int failoverAvailableAddrNum_; std::string failoverLbaStrategy_; int defaultMaxReturnAddrNum_; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAddrAttributeInfoRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAddrAttributeInfoRequest.h index b0788ad20..b9c64d145 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAddrAttributeInfoRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAddrAttributeInfoRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMADDRATTRIBUTEINFOREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMADDRATTRIBUTEINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAddrAttributeInfoRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmAddrAttributeInfoRequest(); - ~DescribeDnsGtmAddrAttributeInfoRequest(); - - std::string getAddrs()const; - void setAddrs(const std::string& addrs); - std::string getType()const; - void setType(const std::string& type); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string addrs_; - std::string type_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMADDRATTRIBUTEINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMADDRATTRIBUTEINFOREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMADDRATTRIBUTEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAddrAttributeInfoRequest : public RpcServiceRequest { +public: + DescribeDnsGtmAddrAttributeInfoRequest(); + ~DescribeDnsGtmAddrAttributeInfoRequest(); + std::string getAddrs() const; + void setAddrs(const std::string &addrs); + std::string getType() const; + void setType(const std::string &type); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string addrs_; + std::string type_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMADDRATTRIBUTEINFOREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAddressPoolAvailableConfigRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAddressPoolAvailableConfigRequest.h index 499c94b14..b6d0bacd8 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAddressPoolAvailableConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAddressPoolAvailableConfigRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMADDRESSPOOLAVAILABLECONFIGREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMADDRESSPOOLAVAILABLECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAddressPoolAvailableConfigRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmAddressPoolAvailableConfigRequest(); - ~DescribeDnsGtmAddressPoolAvailableConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMADDRESSPOOLAVAILABLECONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMADDRESSPOOLAVAILABLECONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMADDRESSPOOLAVAILABLECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAddressPoolAvailableConfigRequest : public RpcServiceRequest { +public: + DescribeDnsGtmAddressPoolAvailableConfigRequest(); + ~DescribeDnsGtmAddressPoolAvailableConfigRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMADDRESSPOOLAVAILABLECONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAvailableAlertGroupRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAvailableAlertGroupRequest.h index ca9f18f82..ec1a9be78 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAvailableAlertGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmAvailableAlertGroupRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMAVAILABLEALERTGROUPREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMAVAILABLEALERTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAvailableAlertGroupRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmAvailableAlertGroupRequest(); - ~DescribeDnsGtmAvailableAlertGroupRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMAVAILABLEALERTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMAVAILABLEALERTGROUPREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMAVAILABLEALERTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmAvailableAlertGroupRequest : public RpcServiceRequest { +public: + DescribeDnsGtmAvailableAlertGroupRequest(); + ~DescribeDnsGtmAvailableAlertGroupRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMAVAILABLEALERTGROUPREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolRequest.h index deac4e66b..120cfaf51 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstanceAddressPoolRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmInstanceAddressPoolRequest(); - ~DescribeDnsGtmInstanceAddressPoolRequest(); - - std::string getAddrPoolId()const; - void setAddrPoolId(const std::string& addrPoolId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string addrPoolId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstanceAddressPoolRequest : public RpcServiceRequest { +public: + DescribeDnsGtmInstanceAddressPoolRequest(); + ~DescribeDnsGtmInstanceAddressPoolRequest(); + std::string getAddrPoolId() const; + void setAddrPoolId(const std::string &addrPoolId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string addrPoolId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolResult.h index d5d7c8e9b..566e01ac7 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolResult.h @@ -54,12 +54,12 @@ namespace AlibabaCloud std::string getType()const; std::string getLbaStrategy()const; std::string getCreateTime()const; - std::string getAddrPoolId()const; std::string getUpdateTime()const; + std::string getAddrPoolId()const; long getUpdateTimestamp()const; std::string getMonitorConfigId()const; - long getCreateTimestamp()const; std::string getMonitorStatus()const; + long getCreateTimestamp()const; int getAddrCount()const; std::string getName()const; @@ -70,12 +70,12 @@ namespace AlibabaCloud std::string type_; std::string lbaStrategy_; std::string createTime_; - std::string addrPoolId_; std::string updateTime_; + std::string addrPoolId_; long updateTimestamp_; std::string monitorConfigId_; - long createTimestamp_; std::string monitorStatus_; + long createTimestamp_; int addrCount_; std::string name_; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolsRequest.h index 933234e6c..38915bfa4 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolsRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstanceAddressPoolsRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmInstanceAddressPoolsRequest(); - ~DescribeDnsGtmInstanceAddressPoolsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - int pageNumber_; - std::string instanceId_; - std::string userClientIp_; - int pageSize_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstanceAddressPoolsRequest : public RpcServiceRequest { +public: + DescribeDnsGtmInstanceAddressPoolsRequest(); + ~DescribeDnsGtmInstanceAddressPoolsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + int pageNumber_; + std::string instanceId_; + std::string userClientIp_; + int pageSize_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEADDRESSPOOLSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolsResult.h index 16d787aa5..43c281134 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceAddressPoolsResult.h @@ -37,14 +37,14 @@ namespace AlibabaCloud std::string type; std::string lbaStrategy; std::string createTime; - std::string addrPoolId; std::string updateTime; + std::string addrPoolId; long updateTimestamp; std::string monitorConfigId; - long createTimestamp; std::string monitorStatus; - int addrCount; + long createTimestamp; std::string name; + int addrCount; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceRequest.h index 674fbd4e7..f4bc14ccd 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstanceRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmInstanceRequest(); - ~DescribeDnsGtmInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstanceRequest : public RpcServiceRequest { +public: + DescribeDnsGtmInstanceRequest(); + ~DescribeDnsGtmInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceStatusRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceStatusRequest.h index ffda4f420..fc2d96e05 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceStatusRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceStatusRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESTATUSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstanceStatusRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmInstanceStatusRequest(); - ~DescribeDnsGtmInstanceStatusRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESTATUSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstanceStatusRequest : public RpcServiceRequest { +public: + DescribeDnsGtmInstanceStatusRequest(); + ~DescribeDnsGtmInstanceStatusRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESTATUSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceSystemCnameRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceSystemCnameRequest.h index 74bcdc5c9..919c86b13 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceSystemCnameRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstanceSystemCnameRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESYSTEMCNAMEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESYSTEMCNAMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstanceSystemCnameRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmInstanceSystemCnameRequest(); - ~DescribeDnsGtmInstanceSystemCnameRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESYSTEMCNAMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESYSTEMCNAMEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESYSTEMCNAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstanceSystemCnameRequest : public RpcServiceRequest { +public: + DescribeDnsGtmInstanceSystemCnameRequest(); + ~DescribeDnsGtmInstanceSystemCnameRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESYSTEMCNAMEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstancesRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstancesRequest.h index 758f1e72f..620dd8faa 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstancesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmInstancesRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstancesRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmInstancesRequest(); - ~DescribeDnsGtmInstancesRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - - private: - int pageNumber_; - std::string resourceGroupId_; - std::string userClientIp_; - int pageSize_; - std::string lang_; - std::string keyword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmInstancesRequest : public RpcServiceRequest { +public: + DescribeDnsGtmInstancesRequest(); + ~DescribeDnsGtmInstancesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + +private: + int pageNumber_; + std::string resourceGroupId_; + std::string userClientIp_; + int pageSize_; + std::string lang_; + std::string keyword_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMINSTANCESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmLogsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmLogsRequest.h index f1ef9a150..708f1a1cd 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmLogsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmLogsRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMLOGSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmLogsRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmLogsRequest(); - ~DescribeDnsGtmLogsRequest(); - - long getStartTimestamp()const; - void setStartTimestamp(long startTimestamp); - int getPageNumber()const; - void setPageNumber(int pageNumber); - long getEndTimestamp()const; - void setEndTimestamp(long endTimestamp); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - - private: - long startTimestamp_; - int pageNumber_; - long endTimestamp_; - std::string instanceId_; - std::string userClientIp_; - int pageSize_; - std::string lang_; - std::string keyword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMLOGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMLOGSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmLogsRequest : public RpcServiceRequest { +public: + DescribeDnsGtmLogsRequest(); + ~DescribeDnsGtmLogsRequest(); + long getStartTimestamp() const; + void setStartTimestamp(long startTimestamp); + int getPageNumber() const; + void setPageNumber(int pageNumber); + long getEndTimestamp() const; + void setEndTimestamp(long endTimestamp); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + +private: + long startTimestamp_; + int pageNumber_; + long endTimestamp_; + std::string instanceId_; + std::string userClientIp_; + int pageSize_; + std::string lang_; + std::string keyword_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMLOGSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmLogsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmLogsResult.h index e054f8562..fbf73d84a 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmLogsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmLogsResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Log { - std::string entityType; std::string entityId; + std::string entityType; std::string entityName; std::string operTime; std::string content; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorAvailableConfigRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorAvailableConfigRequest.h index 9b1582d55..bf8a0d2c2 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorAvailableConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorAvailableConfigRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORAVAILABLECONFIGREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORAVAILABLECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmMonitorAvailableConfigRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmMonitorAvailableConfigRequest(); - ~DescribeDnsGtmMonitorAvailableConfigRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORAVAILABLECONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORAVAILABLECONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORAVAILABLECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmMonitorAvailableConfigRequest : public RpcServiceRequest { +public: + DescribeDnsGtmMonitorAvailableConfigRequest(); + ~DescribeDnsGtmMonitorAvailableConfigRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORAVAILABLECONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorAvailableConfigResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorAvailableConfigResult.h index 325bc3da0..177d78eca 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorAvailableConfigResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorAvailableConfigResult.h @@ -34,47 +34,47 @@ namespace AlibabaCloud public: struct Ipv4IspCityNode { - std::string groupName; std::string cityCode; + std::string groupName; std::string ispName; std::string groupType; std::string cityName; - bool defaultSelected; std::string ispCode; + bool defaultSelected; std::vector ips; }; struct DomainIpv4IspCityNode { - std::string groupName; std::string cityCode; + std::string groupName; std::string ispName; std::string groupType; std::vector ips1; std::string cityName; - bool defaultSelected; std::string ispCode; + bool defaultSelected; }; struct DomainIpv6IspCityNode { - std::string groupName; std::string cityCode; + std::string groupName; std::string ispName; std::string groupType; std::vector ips2; std::string cityName; - bool defaultSelected; std::string ispCode; + bool defaultSelected; }; struct Ipv6IspCityNode { - std::string groupName; std::string cityCode; + std::string groupName; std::string ispName; std::string groupType; std::vector ips3; std::string cityName; - bool defaultSelected; std::string ispCode; + bool defaultSelected; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorConfigRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorConfigRequest.h index c6b7878a8..d1c674337 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorConfigRequest.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_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORCONFIGREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmMonitorConfigRequest : public RpcServiceRequest - { - - public: - DescribeDnsGtmMonitorConfigRequest(); - ~DescribeDnsGtmMonitorConfigRequest(); - - std::string getMonitorConfigId()const; - void setMonitorConfigId(const std::string& monitorConfigId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string monitorConfigId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORCONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsGtmMonitorConfigRequest : public RpcServiceRequest { +public: + DescribeDnsGtmMonitorConfigRequest(); + ~DescribeDnsGtmMonitorConfigRequest(); + std::string getMonitorConfigId() const; + void setMonitorConfigId(const std::string &monitorConfigId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string monitorConfigId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSGTMMONITORCONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorConfigResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorConfigResult.h index b200b6401..2980cda63 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorConfigResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsGtmMonitorConfigResult.h @@ -47,8 +47,8 @@ namespace AlibabaCloud explicit DescribeDnsGtmMonitorConfigResult(const std::string &payload); ~DescribeDnsGtmMonitorConfigResult(); std::vector getIspCityNodes()const; - std::string getProtocolType()const; int getTimeout()const; + std::string getProtocolType()const; std::string getCreateTime()const; std::string getUpdateTime()const; int getEvaluationCount()const; @@ -62,8 +62,8 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::vector ispCityNodes_; - std::string protocolType_; int timeout_; + std::string protocolType_; std::string createTime_; std::string updateTime_; int evaluationCount_; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstanceRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstanceRequest.h index 29b9fa012..921bd2a20 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstanceRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstanceRequest.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_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsProductInstanceRequest : public RpcServiceRequest - { - - public: - DescribeDnsProductInstanceRequest(); - ~DescribeDnsProductInstanceRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string accessKeyId_; - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsProductInstanceRequest : public RpcServiceRequest { +public: + DescribeDnsProductInstanceRequest(); + ~DescribeDnsProductInstanceRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string accessKeyId_; + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstanceResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstanceResult.h index bef85016a..c2bc595ee 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstanceResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstanceResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud bool getInBlackHole()const; long getBindDomainCount()const; bool getRegionLines()const; - std::string getEndTime()const; long getBindCount()const; + std::string getEndTime()const; long getStartTimestamp()const; std::string getISPLines()const; std::vector getDnsServers()const; @@ -68,8 +68,8 @@ namespace AlibabaCloud long getBindDomainUsedCount()const; std::string getVersionCode()const; long getOverseaDDosDefendFlow()const; - long getSubDomainLevel()const; bool getInClean()const; + long getSubDomainLevel()const; std::string getDomain()const; protected: @@ -79,8 +79,8 @@ namespace AlibabaCloud bool inBlackHole_; long bindDomainCount_; bool regionLines_; - std::string endTime_; long bindCount_; + std::string endTime_; long startTimestamp_; std::string iSPLines_; std::vector dnsServers_; @@ -106,8 +106,8 @@ namespace AlibabaCloud long bindDomainUsedCount_; std::string versionCode_; long overseaDDosDefendFlow_; - long subDomainLevel_; bool inClean_; + long subDomainLevel_; std::string domain_; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstancesRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstancesRequest.h index 073387484..dd16f698c 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstancesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstancesRequest.h @@ -1,66 +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_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsProductInstancesRequest : public RpcServiceRequest - { - - public: - DescribeDnsProductInstancesRequest(); - ~DescribeDnsProductInstancesRequest(); - - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getDomainType()const; - void setDomainType(const std::string& domainType); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getVersionCode()const; - void setVersionCode(const std::string& versionCode); - - private: - long pageNumber_; - std::string accessKeyId_; - std::string domainType_; - std::string userClientIp_; - long pageSize_; - std::string lang_; - std::string versionCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsProductInstancesRequest : public RpcServiceRequest { +public: + DescribeDnsProductInstancesRequest(); + ~DescribeDnsProductInstancesRequest(); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDomainType() const; + void setDomainType(const std::string &domainType); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getVersionCode() const; + void setVersionCode(const std::string &versionCode); + std::string getDirection() const; + void setDirection(const std::string &direction); + +private: + std::string orderBy_; + long pageNumber_; + std::string accessKeyId_; + std::string domainType_; + std::string userClientIp_; + long pageSize_; + std::string lang_; + std::string versionCode_; + std::string direction_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSPRODUCTINSTANCESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstancesResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstancesResult.h index 88c0035af..66ad51747 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstancesResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDnsProductInstancesResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud bool inBlackHole; long bindDomainCount; bool regionLines; - std::string endTime; long bindCount; + std::string endTime; long startTimestamp; std::string iSPLines; long endTimestamp; @@ -63,8 +63,8 @@ namespace AlibabaCloud long bindDomainUsedCount; std::string versionCode; long overseaDDosDefendFlow; - long subDomainLevel; bool inClean; + long subDomainLevel; std::string domain; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDohAccountStatisticsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDohAccountStatisticsRequest.h index ca73675aa..e3276a608 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDohAccountStatisticsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDohAccountStatisticsRequest.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_ALIDNS_MODEL_DESCRIBEDOHACCOUNTSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHACCOUNTSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohAccountStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeDohAccountStatisticsRequest(); - ~DescribeDohAccountStatisticsRequest(); - - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string startDate_; - std::string endDate_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHACCOUNTSTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHACCOUNTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHACCOUNTSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohAccountStatisticsRequest : public RpcServiceRequest { +public: + DescribeDohAccountStatisticsRequest(); + ~DescribeDohAccountStatisticsRequest(); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string startDate_; + std::string endDate_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHACCOUNTSTATISTICSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDohAccountStatisticsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDohAccountStatisticsResult.h index d3e25f782..a4f4724cb 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDohAccountStatisticsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDohAccountStatisticsResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud long totalCount; long v4HttpCount; long v6HttpCount; - long timestamp; long v4HttpsCount; + long timestamp; long v6HttpsCount; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsRequest.h index 410e6853a..c2b2553eb 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsRequest.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_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohDomainStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeDohDomainStatisticsRequest(); - ~DescribeDohDomainStatisticsRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string startDate_; - std::string endDate_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohDomainStatisticsRequest : public RpcServiceRequest { +public: + DescribeDohDomainStatisticsRequest(); + ~DescribeDohDomainStatisticsRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string startDate_; + std::string endDate_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsResult.h index 8abd5f88b..902180b7b 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud long totalCount; long v4HttpCount; long v6HttpCount; - long timestamp; long v4HttpsCount; + long timestamp; long v6HttpsCount; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsSummaryRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsSummaryRequest.h index ee1e5c57d..7ac9d4d5d 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsSummaryRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsSummaryRequest.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_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSSUMMARYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSSUMMARYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohDomainStatisticsSummaryRequest : public RpcServiceRequest - { - - public: - DescribeDohDomainStatisticsSummaryRequest(); - ~DescribeDohDomainStatisticsSummaryRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getOrderBy()const; - void setOrderBy(const std::string& orderBy); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getDirection()const; - void setDirection(const std::string& direction); - - private: - std::string domainName_; - std::string orderBy_; - std::string startDate_; - int pageNumber_; - std::string endDate_; - int pageSize_; - std::string lang_; - std::string direction_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSSUMMARYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohDomainStatisticsSummaryRequest : public RpcServiceRequest { +public: + DescribeDohDomainStatisticsSummaryRequest(); + ~DescribeDohDomainStatisticsSummaryRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getDirection() const; + void setDirection(const std::string &direction); + +private: + std::string domainName_; + std::string orderBy_; + std::string startDate_; + int pageNumber_; + std::string endDate_; + int pageSize_; + std::string lang_; + std::string direction_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHDOMAINSTATISTICSSUMMARYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsSummaryResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsSummaryResult.h index 95053dbb0..a73a24267 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsSummaryResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDohDomainStatisticsSummaryResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Statistic { - long totalCount; long ipCount; + long totalCount; std::string domainName; long v4HttpCount; long v6HttpCount; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsRequest.h index 44be228d9..56978ae09 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsRequest.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_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohSubDomainStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeDohSubDomainStatisticsRequest(); - ~DescribeDohSubDomainStatisticsRequest(); - - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getSubDomain()const; - void setSubDomain(const std::string& subDomain); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string startDate_; - std::string endDate_; - std::string subDomain_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohSubDomainStatisticsRequest : public RpcServiceRequest { +public: + DescribeDohSubDomainStatisticsRequest(); + ~DescribeDohSubDomainStatisticsRequest(); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getSubDomain() const; + void setSubDomain(const std::string &subDomain); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string startDate_; + std::string endDate_; + std::string subDomain_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsResult.h index cc7ba470a..1fa860847 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud long totalCount; long v4HttpCount; long v6HttpCount; - long timestamp; long v4HttpsCount; + long timestamp; long v6HttpsCount; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsSummaryRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsSummaryRequest.h index 15f553426..abca72766 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsSummaryRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsSummaryRequest.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_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSSUMMARYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSSUMMARYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohSubDomainStatisticsSummaryRequest : public RpcServiceRequest - { - - public: - DescribeDohSubDomainStatisticsSummaryRequest(); - ~DescribeDohSubDomainStatisticsSummaryRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getOrderBy()const; - void setOrderBy(const std::string& orderBy); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getSubDomain()const; - void setSubDomain(const std::string& subDomain); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getDirection()const; - void setDirection(const std::string& direction); - - private: - std::string domainName_; - std::string orderBy_; - std::string startDate_; - int pageNumber_; - std::string endDate_; - int pageSize_; - std::string subDomain_; - std::string lang_; - std::string direction_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSSUMMARYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohSubDomainStatisticsSummaryRequest : public RpcServiceRequest { +public: + DescribeDohSubDomainStatisticsSummaryRequest(); + ~DescribeDohSubDomainStatisticsSummaryRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSubDomain() const; + void setSubDomain(const std::string &subDomain); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getDirection() const; + void setDirection(const std::string &direction); + +private: + std::string domainName_; + std::string orderBy_; + std::string startDate_; + int pageNumber_; + std::string endDate_; + int pageSize_; + std::string subDomain_; + std::string lang_; + std::string direction_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHSUBDOMAINSTATISTICSSUMMARYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsSummaryResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsSummaryResult.h index 8b7c24464..dbe4e1f86 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsSummaryResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDohSubDomainStatisticsSummaryResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct Statistic { std::string subDomain; - long totalCount; long ipCount; + long totalCount; long v4HttpCount; long v6HttpCount; long httpCount; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDohUserInfoRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDohUserInfoRequest.h index dcc0c675b..d2658a5b3 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDohUserInfoRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDohUserInfoRequest.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_ALIDNS_MODEL_DESCRIBEDOHUSERINFOREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHUSERINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohUserInfoRequest : public RpcServiceRequest - { - - public: - DescribeDohUserInfoRequest(); - ~DescribeDohUserInfoRequest(); - - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string startDate_; - std::string endDate_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHUSERINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHUSERINFOREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHUSERINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDohUserInfoRequest : public RpcServiceRequest { +public: + DescribeDohUserInfoRequest(); + ~DescribeDohUserInfoRequest(); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string startDate_; + std::string endDate_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOHUSERINFOREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainDnssecInfoRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainDnssecInfoRequest.h index f196dab24..757fe1b65 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainDnssecInfoRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainDnssecInfoRequest.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_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFOREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainDnssecInfoRequest : public RpcServiceRequest - { - - public: - DescribeDomainDnssecInfoRequest(); - ~DescribeDomainDnssecInfoRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFOREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainDnssecInfoRequest : public RpcServiceRequest { +public: + DescribeDomainDnssecInfoRequest(); + ~DescribeDomainDnssecInfoRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFOREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainDnssecInfoResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainDnssecInfoResult.h index 8e623dabf..6309c6514 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainDnssecInfoResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainDnssecInfoResult.h @@ -38,11 +38,11 @@ namespace AlibabaCloud explicit DescribeDomainDnssecInfoResult(const std::string &payload); ~DescribeDomainDnssecInfoResult(); std::string getStatus()const; - std::string getDomainName()const; std::string getDigest()const; + std::string getDomainName()const; std::string getPublicKey()const; - std::string getDsRecord()const; std::string getDigestType()const; + std::string getDsRecord()const; std::string getKeyTag()const; std::string getFlags()const; std::string getAlgorithm()const; @@ -51,11 +51,11 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string status_; - std::string domainName_; std::string digest_; + std::string domainName_; std::string publicKey_; - std::string dsRecord_; std::string digestType_; + std::string dsRecord_; std::string keyTag_; std::string flags_; std::string algorithm_; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainGroupsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainGroupsRequest.h index 6ed3ddebb..84b5ec750 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainGroupsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainGroupsRequest.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_ALIDNS_MODEL_DESCRIBEDOMAINGROUPSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainGroupsRequest : public RpcServiceRequest - { - - public: - DescribeDomainGroupsRequest(); - ~DescribeDomainGroupsRequest(); - - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyWord()const; - void setKeyWord(const std::string& keyWord); - - private: - long pageNumber_; - std::string userClientIp_; - long pageSize_; - std::string lang_; - std::string keyWord_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINGROUPSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainGroupsRequest : public RpcServiceRequest { +public: + DescribeDomainGroupsRequest(); + ~DescribeDomainGroupsRequest(); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyWord() const; + void setKeyWord(const std::string &keyWord); + +private: + long pageNumber_; + std::string userClientIp_; + long pageSize_; + std::string lang_; + std::string keyWord_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINGROUPSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainInfoRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainInfoRequest.h index 2d8fe5e22..88b749c1a 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainInfoRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainInfoRequest.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_ALIDNS_MODEL_DESCRIBEDOMAININFOREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAININFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainInfoRequest : public RpcServiceRequest - { - - public: - DescribeDomainInfoRequest(); - ~DescribeDomainInfoRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - bool getNeedDetailAttributes()const; - void setNeedDetailAttributes(bool needDetailAttributes); - - private: - std::string domainName_; - std::string accessKeyId_; - std::string userClientIp_; - std::string lang_; - bool needDetailAttributes_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAININFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAININFOREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAININFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainInfoRequest : public RpcServiceRequest { +public: + DescribeDomainInfoRequest(); + ~DescribeDomainInfoRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + bool getNeedDetailAttributes() const; + void setNeedDetailAttributes(bool needDetailAttributes); + +private: + std::string domainName_; + std::string accessKeyId_; + std::string userClientIp_; + std::string lang_; + bool needDetailAttributes_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAININFOREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainInfoResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainInfoResult.h index 62cb44261..824b3b2bb 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainInfoResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainInfoResult.h @@ -44,15 +44,15 @@ namespace AlibabaCloud DescribeDomainInfoResult(); explicit DescribeDomainInfoResult(const std::string &payload); ~DescribeDomainInfoResult(); - std::string getGroupName()const; std::string getRecordLineTreeJson()const; + std::string getGroupName()const; bool getInBlackHole()const; bool getRegionLines()const; - bool getAliDomain()const; bool getSlaveDns()const; + bool getAliDomain()const; std::string getResourceGroupId()const; - std::string getDomainName()const; std::string getInstanceId()const; + std::string getDomainName()const; std::string getCreateTime()const; std::string getPunyCode()const; std::vector getDnsServers()const; @@ -62,23 +62,23 @@ namespace AlibabaCloud std::string getVersionCode()const; std::string getDomainId()const; std::vector getAvailableTtls()const; - std::string getVersionName()const; long getMinTtl()const; bool getInClean()const; + std::string getVersionName()const; std::string getLineType()const; protected: void parse(const std::string &payload); private: - std::string groupName_; std::string recordLineTreeJson_; + std::string groupName_; bool inBlackHole_; bool regionLines_; - bool aliDomain_; bool slaveDns_; + bool aliDomain_; std::string resourceGroupId_; - std::string domainName_; std::string instanceId_; + std::string domainName_; std::string createTime_; std::string punyCode_; std::vector dnsServers_; @@ -88,9 +88,9 @@ namespace AlibabaCloud std::string versionCode_; std::string domainId_; std::vector availableTtls_; - std::string versionName_; long minTtl_; bool inClean_; + std::string versionName_; std::string lineType_; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsRequest.h index 49f5be681..d0e9a9f4c 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsRequest.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_ALIDNS_MODEL_DESCRIBEDOMAINLOGSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainLogsRequest : public RpcServiceRequest - { - - public: - DescribeDomainLogsRequest(); - ~DescribeDomainLogsRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - std::string getType()const; - void setType(const std::string& type); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyWord()const; - void setKeyWord(const std::string& keyWord); - - private: - std::string groupId_; - std::string startDate_; - std::string type_; - long pageNumber_; - std::string endDate_; - std::string userClientIp_; - long pageSize_; - std::string lang_; - std::string keyWord_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINLOGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINLOGSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainLogsRequest : public RpcServiceRequest { +public: + DescribeDomainLogsRequest(); + ~DescribeDomainLogsRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getType() const; + void setType(const std::string &type); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyWord() const; + void setKeyWord(const std::string &keyWord); + +private: + std::string groupId_; + std::string startDate_; + std::string type_; + long pageNumber_; + std::string endDate_; + std::string userClientIp_; + long pageSize_; + std::string lang_; + std::string keyWord_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINLOGSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsResult.h index d2e80880b..5688ca90b 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainLogsResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string actionTime; std::string action; - std::string message; std::string zoneId; + std::string message; std::string domainName; long actionTimestamp; std::string clientIp; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainNsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainNsRequest.h index 758f21c83..be9d11fcc 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainNsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainNsRequest.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_ALIDNS_MODEL_DESCRIBEDOMAINNSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINNSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainNsRequest : public RpcServiceRequest - { - - public: - DescribeDomainNsRequest(); - ~DescribeDomainNsRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getDomainType()const; - void setDomainType(const std::string& domainType); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string accessKeyId_; - std::string domainType_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINNSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINNSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainNsRequest : public RpcServiceRequest { +public: + DescribeDomainNsRequest(); + ~DescribeDomainNsRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDomainType() const; + void setDomainType(const std::string &domainType); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string accessKeyId_; + std::string domainType_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINNSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainNsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainNsResult.h index ab7312f17..b751af1a8 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainNsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainNsResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud std::vector getExpectDnsServers()const; std::vector getDnsServers()const; bool getIncludeAliDns()const; + std::string getDetectFailedReasonCode()const; protected: void parse(const std::string &payload); @@ -49,6 +50,7 @@ namespace AlibabaCloud std::vector expectDnsServers_; std::vector dnsServers_; bool includeAliDns_; + std::string detectFailedReasonCode_; }; } diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordInfoRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordInfoRequest.h index b5bfb47fc..d6c3b1f2c 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordInfoRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordInfoRequest.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_ALIDNS_MODEL_DESCRIBEDOMAINRECORDINFOREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRECORDINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainRecordInfoRequest : public RpcServiceRequest - { - - public: - DescribeDomainRecordInfoRequest(); - ~DescribeDomainRecordInfoRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getRecordId()const; - void setRecordId(const std::string& recordId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string accessKeyId_; - std::string recordId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRECORDINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRECORDINFOREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRECORDINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainRecordInfoRequest : public RpcServiceRequest { +public: + DescribeDomainRecordInfoRequest(); + ~DescribeDomainRecordInfoRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRecordId() const; + void setRecordId(const std::string &recordId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string accessKeyId_; + std::string recordId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRECORDINFOREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordInfoResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordInfoResult.h index 9560c532c..79289dc90 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordInfoResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordInfoResult.h @@ -37,14 +37,15 @@ namespace AlibabaCloud DescribeDomainRecordInfoResult(); explicit DescribeDomainRecordInfoResult(const std::string &payload); ~DescribeDomainRecordInfoResult(); - std::string getGroupName()const; - std::string getRR()const; std::string getStatus()const; + std::string getRR()const; + std::string getGroupName()const; std::string getDomainName()const; long getPriority()const; std::string getPunyCode()const; long getTTL()const; std::string getGroupId()const; + std::string getRemark()const; std::string getLine()const; bool getLocked()const; std::string getType()const; @@ -55,14 +56,15 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string groupName_; - std::string rR_; std::string status_; + std::string rR_; + std::string groupName_; std::string domainName_; long priority_; std::string punyCode_; long tTL_; std::string groupId_; + std::string remark_; std::string line_; bool locked_; std::string type_; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsRequest.h index 993da67a9..11c76d8d9 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsRequest.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_ALIDNS_MODEL_DESCRIBEDOMAINRECORDSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRECORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainRecordsRequest : public RpcServiceRequest - { - - public: - DescribeDomainRecordsRequest(); - ~DescribeDomainRecordsRequest(); - - std::string getValueKeyWord()const; - void setValueKeyWord(const std::string& valueKeyWord); - std::string getLine()const; - void setLine(const std::string& line); - std::string getType()const; - void setType(const std::string& type); - long getPageNumber()const; - void setPageNumber(long pageNumber); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyWord()const; - void setKeyWord(const std::string& keyWord); - std::string getRRKeyWord()const; - void setRRKeyWord(const std::string& rRKeyWord); - std::string getDirection()const; - void setDirection(const std::string& direction); - long getGroupId()const; - void setGroupId(long groupId); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getOrderBy()const; - void setOrderBy(const std::string& orderBy); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getSearchMode()const; - void setSearchMode(const std::string& searchMode); - std::string getTypeKeyWord()const; - void setTypeKeyWord(const std::string& typeKeyWord); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string valueKeyWord_; - std::string line_; - std::string type_; - long pageNumber_; - long pageSize_; - std::string lang_; - std::string keyWord_; - std::string rRKeyWord_; - std::string direction_; - long groupId_; - std::string domainName_; - std::string orderBy_; - std::string userClientIp_; - std::string searchMode_; - std::string typeKeyWord_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRECORDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRECORDSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainRecordsRequest : public RpcServiceRequest { +public: + DescribeDomainRecordsRequest(); + ~DescribeDomainRecordsRequest(); + std::string getValueKeyWord() const; + void setValueKeyWord(const std::string &valueKeyWord); + std::string getLine() const; + void setLine(const std::string &line); + std::string getType() const; + void setType(const std::string &type); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyWord() const; + void setKeyWord(const std::string &keyWord); + std::string getRRKeyWord() const; + void setRRKeyWord(const std::string &rRKeyWord); + std::string getDirection() const; + void setDirection(const std::string &direction); + long getGroupId() const; + void setGroupId(long groupId); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getSearchMode() const; + void setSearchMode(const std::string &searchMode); + std::string getTypeKeyWord() const; + void setTypeKeyWord(const std::string &typeKeyWord); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string valueKeyWord_; + std::string line_; + std::string type_; + long pageNumber_; + long pageSize_; + std::string lang_; + std::string keyWord_; + std::string rRKeyWord_; + std::string direction_; + long groupId_; + std::string domainName_; + std::string orderBy_; + std::string userClientIp_; + std::string searchMode_; + std::string typeKeyWord_; + std::string status_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRECORDSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsResult.h index 8571d72fa..e47cccaf3 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainRecordsResult.h @@ -34,9 +34,9 @@ namespace AlibabaCloud public: struct Record { + std::string status; std::string rR; std::string line; - std::string status; bool locked; std::string type; std::string domainName; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainResolveStatisticsSummaryRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainResolveStatisticsSummaryRequest.h new file mode 100644 index 000000000..73d3930a3 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainResolveStatisticsSummaryRequest.h @@ -0,0 +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_ALIDNS_MODEL_DESCRIBEDOMAINRESOLVESTATISTICSSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRESOLVESTATISTICSSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainResolveStatisticsSummaryRequest : public RpcServiceRequest { +public: + DescribeDomainResolveStatisticsSummaryRequest(); + ~DescribeDomainResolveStatisticsSummaryRequest(); + long getThreshold() const; + void setThreshold(long threshold); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getSearchMode() const; + void setSearchMode(const std::string &searchMode); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getDirection() const; + void setDirection(const std::string &direction); + +private: + long threshold_; + std::string startDate_; + int pageNumber_; + std::string endDate_; + int pageSize_; + std::string userClientIp_; + std::string searchMode_; + std::string keyword_; + std::string lang_; + std::string direction_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRESOLVESTATISTICSSUMMARYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainResolveStatisticsSummaryResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainResolveStatisticsSummaryResult.h new file mode 100644 index 000000000..d081747dd --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainResolveStatisticsSummaryResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALIDNS_MODEL_DESCRIBEDOMAINRESOLVESTATISTICSSUMMARYRESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRESOLVESTATISTICSSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainResolveStatisticsSummaryResult : public ServiceResult + { + public: + struct Statistic + { + std::string domainType; + std::string domainName; + std::string count; + }; + + + DescribeDomainResolveStatisticsSummaryResult(); + explicit DescribeDomainResolveStatisticsSummaryResult(const std::string &payload); + ~DescribeDomainResolveStatisticsSummaryResult(); + int getPageSize()const; + int getPageNumber()const; + int getTotalPages()const; + int getTotalItems()const; + std::vector getStatistics()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int totalPages_; + int totalItems_; + std::vector statistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINRESOLVESTATISTICSSUMMARYRESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsRequest.h index cd5c422b9..7a1f2cf28 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsRequest.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_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeDomainStatisticsRequest(); - ~DescribeDomainStatisticsRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getDomainType()const; - void setDomainType(const std::string& domainType); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string startDate_; - std::string endDate_; - std::string domainType_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainStatisticsRequest : public RpcServiceRequest { +public: + DescribeDomainStatisticsRequest(); + ~DescribeDomainStatisticsRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getDomainType() const; + void setDomainType(const std::string &domainType); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string startDate_; + std::string endDate_; + std::string domainType_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryRequest.h index 33450fc61..9e3715a5f 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainStatisticsSummaryRequest.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_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainStatisticsSummaryRequest : public RpcServiceRequest - { - - public: - DescribeDomainStatisticsSummaryRequest(); - ~DescribeDomainStatisticsSummaryRequest(); - - long getThreshold()const; - void setThreshold(long threshold); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - long getPageNumber()const; - void setPageNumber(long pageNumber); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - std::string getDirection()const; - void setDirection(const std::string& direction); - std::string getOrderBy()const; - void setOrderBy(const std::string& orderBy); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getSearchMode()const; - void setSearchMode(const std::string& searchMode); - - private: - long threshold_; - std::string startDate_; - long pageNumber_; - long pageSize_; - std::string lang_; - std::string keyword_; - std::string direction_; - std::string orderBy_; - std::string endDate_; - std::string userClientIp_; - std::string searchMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainStatisticsSummaryRequest : public RpcServiceRequest { +public: + DescribeDomainStatisticsSummaryRequest(); + ~DescribeDomainStatisticsSummaryRequest(); + long getThreshold() const; + void setThreshold(long threshold); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getSearchMode() const; + void setSearchMode(const std::string &searchMode); + +private: + long threshold_; + std::string startDate_; + long pageNumber_; + long pageSize_; + std::string lang_; + std::string keyword_; + std::string direction_; + std::string orderBy_; + std::string endDate_; + std::string userClientIp_; + std::string searchMode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSTATISTICSSUMMARYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainsRequest.h index c9defad28..76185ec54 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainsRequest.h @@ -1,93 +1,85 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_ALIDNS_MODEL_DESCRIBEDOMAINSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeDomainsRequest(); - ~DescribeDomainsRequest(); - - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - long getPageSize()const; - void setPageSize(long pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyWord()const; - void setKeyWord(const std::string& keyWord); - std::string getDirection()const; - void setDirection(const std::string& direction); - bool getStarmark()const; - void setStarmark(bool starmark); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getOrderBy()const; - void setOrderBy(const std::string& orderBy); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getSearchMode()const; - void setSearchMode(const std::string& searchMode); - - private: - std::string startDate_; - long pageNumber_; - std::string resourceGroupId_; - long pageSize_; - std::vector tag_; - std::string lang_; - std::string keyWord_; - std::string direction_; - bool starmark_; - std::string groupId_; - std::string orderBy_; - std::string endDate_; - std::string userClientIp_; - std::string searchMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeDomainsRequest(); + ~DescribeDomainsRequest(); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + long getPageSize() const; + void setPageSize(long pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyWord() const; + void setKeyWord(const std::string &keyWord); + std::string getDirection() const; + void setDirection(const std::string &direction); + bool getStarmark() const; + void setStarmark(bool starmark); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getSearchMode() const; + void setSearchMode(const std::string &searchMode); + +private: + std::string startDate_; + long pageNumber_; + std::string resourceGroupId_; + long pageSize_; + std::vector tag_; + std::string lang_; + std::string keyWord_; + std::string direction_; + bool starmark_; + std::string groupId_; + std::string orderBy_; + std::string endDate_; + std::string userClientIp_; + std::string searchMode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeDomainsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeDomainsResult.h index c4258911a..28383f5ff 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeDomainsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeDomainsResult.h @@ -42,8 +42,8 @@ namespace AlibabaCloud std::string groupName; bool aliDomain; std::string resourceGroupId; - std::string domainName; std::string instanceId; + std::string domainName; std::string createTime; std::string punyCode; std::vector dnsServers; @@ -53,8 +53,8 @@ namespace AlibabaCloud std::string versionCode; std::string domainId; std::string versionName; - std::string registrantEmail; std::string instanceEndTime; + std::string registrantEmail; bool instanceExpired; long recordCount; long createTimestamp; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategiesRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategiesRequest.h index 10ab19296..a4586e7d1 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategiesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategiesRequest.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_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGIESREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmAccessStrategiesRequest : public RpcServiceRequest - { - - public: - DescribeGtmAccessStrategiesRequest(); - ~DescribeGtmAccessStrategiesRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - int pageNumber_; - std::string instanceId_; - std::string userClientIp_; - int pageSize_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGIESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmAccessStrategiesRequest : public RpcServiceRequest { +public: + DescribeGtmAccessStrategiesRequest(); + ~DescribeGtmAccessStrategiesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + int pageNumber_; + std::string instanceId_; + std::string userClientIp_; + int pageSize_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGIESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategiesResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategiesResult.h index 96cf8c5c1..1297c33a4 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategiesResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategiesResult.h @@ -54,9 +54,9 @@ namespace AlibabaCloud std::string failoverAddrPoolStatus; std::string accessMode; std::string strategyMode; - long createTimestamp; - std::string failoverAddrPoolName; std::string failoverAddrPoolMonitorStatus; + std::string failoverAddrPoolName; + long createTimestamp; std::vector lines; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyAvailableConfigRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyAvailableConfigRequest.h index 49144b977..887c23db8 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyAvailableConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyAvailableConfigRequest.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_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmAccessStrategyAvailableConfigRequest : public RpcServiceRequest - { - - public: - DescribeGtmAccessStrategyAvailableConfigRequest(); - ~DescribeGtmAccessStrategyAvailableConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmAccessStrategyAvailableConfigRequest : public RpcServiceRequest { +public: + DescribeGtmAccessStrategyAvailableConfigRequest(); + ~DescribeGtmAccessStrategyAvailableConfigRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYAVAILABLECONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyAvailableConfigResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyAvailableConfigResult.h index 05dea7f1a..6126a250c 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyAvailableConfigResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyAvailableConfigResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud }; struct Line { - std::string groupName; std::string status; + std::string groupName; std::string groupCode; std::string fatherCode; std::string lineCode; @@ -53,12 +53,14 @@ namespace AlibabaCloud ~DescribeGtmAccessStrategyAvailableConfigResult(); std::vector getAddrPools()const; std::vector getLines()const; + bool getSuggestSetDefaultLine()const; protected: void parse(const std::string &payload); private: std::vector addrPools_; std::vector lines_; + bool suggestSetDefaultLine_; }; } diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyRequest.h index 12144115a..39525f98f 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyRequest.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_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmAccessStrategyRequest : public RpcServiceRequest - { - - public: - DescribeGtmAccessStrategyRequest(); - ~DescribeGtmAccessStrategyRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getStrategyId()const; - void setStrategyId(const std::string& strategyId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - std::string strategyId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmAccessStrategyRequest : public RpcServiceRequest { +public: + DescribeGtmAccessStrategyRequest(); + ~DescribeGtmAccessStrategyRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getStrategyId() const; + void setStrategyId(const std::string &strategyId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + std::string strategyId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMACCESSSTRATEGYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyResult.h index beb08eba4..9fcd4c477 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmAccessStrategyResult.h @@ -56,8 +56,8 @@ namespace AlibabaCloud std::string getFailoverAddrPoolStatus()const; std::string getAccessMode()const; std::string getStrategyMode()const; - std::string getFailoverAddrPoolName()const; std::string getFailoverAddrPoolMonitorStatus()const; + std::string getFailoverAddrPoolName()const; std::vector getLines()const; protected: @@ -75,8 +75,8 @@ namespace AlibabaCloud std::string failoverAddrPoolStatus_; std::string accessMode_; std::string strategyMode_; - std::string failoverAddrPoolName_; std::string failoverAddrPoolMonitorStatus_; + std::string failoverAddrPoolName_; std::vector lines_; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmAvailableAlertGroupRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmAvailableAlertGroupRequest.h index c23b0ba26..985724fef 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmAvailableAlertGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmAvailableAlertGroupRequest.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_ALIDNS_MODEL_DESCRIBEGTMAVAILABLEALERTGROUPREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMAVAILABLEALERTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmAvailableAlertGroupRequest : public RpcServiceRequest - { - - public: - DescribeGtmAvailableAlertGroupRequest(); - ~DescribeGtmAvailableAlertGroupRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMAVAILABLEALERTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMAVAILABLEALERTGROUPREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMAVAILABLEALERTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmAvailableAlertGroupRequest : public RpcServiceRequest { +public: + DescribeGtmAvailableAlertGroupRequest(); + ~DescribeGtmAvailableAlertGroupRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMAVAILABLEALERTGROUPREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolRequest.h index e57a29901..6bdcf65f9 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolRequest.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_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceAddressPoolRequest : public RpcServiceRequest - { - - public: - DescribeGtmInstanceAddressPoolRequest(); - ~DescribeGtmInstanceAddressPoolRequest(); - - std::string getAddrPoolId()const; - void setAddrPoolId(const std::string& addrPoolId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string addrPoolId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceAddressPoolRequest : public RpcServiceRequest { +public: + DescribeGtmInstanceAddressPoolRequest(); + ~DescribeGtmInstanceAddressPoolRequest(); + std::string getAddrPoolId() const; + void setAddrPoolId(const std::string &addrPoolId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string addrPoolId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolResult.h index 04c8ac2e2..cad16e153 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolResult.h @@ -36,11 +36,11 @@ namespace AlibabaCloud { int lbaWeight; std::string alertStatus; - long addrId; std::string createTime; + long addrId; std::string mode; - std::string updateTime; std::string value; + std::string updateTime; long updateTimestamp; long createTimestamp; }; @@ -55,13 +55,13 @@ namespace AlibabaCloud int getAddrCount()const; std::string getName()const; std::string getType()const; - std::string getAddrPoolId()const; std::string getUpdateTime()const; + std::string getAddrPoolId()const; long getUpdateTimestamp()const; - int getMinAvailableAddrNum()const; std::string getMonitorConfigId()const; - long getCreateTimestamp()const; + int getMinAvailableAddrNum()const; std::string getMonitorStatus()const; + long getCreateTimestamp()const; protected: void parse(const std::string &payload); @@ -72,13 +72,13 @@ namespace AlibabaCloud int addrCount_; std::string name_; std::string type_; - std::string addrPoolId_; std::string updateTime_; + std::string addrPoolId_; long updateTimestamp_; - int minAvailableAddrNum_; std::string monitorConfigId_; - long createTimestamp_; + int minAvailableAddrNum_; std::string monitorStatus_; + long createTimestamp_; }; } diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolsRequest.h index c8698abd3..243b16acc 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolsRequest.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_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceAddressPoolsRequest : public RpcServiceRequest - { - - public: - DescribeGtmInstanceAddressPoolsRequest(); - ~DescribeGtmInstanceAddressPoolsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - int pageNumber_; - std::string instanceId_; - std::string userClientIp_; - int pageSize_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceAddressPoolsRequest : public RpcServiceRequest { +public: + DescribeGtmInstanceAddressPoolsRequest(); + ~DescribeGtmInstanceAddressPoolsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + int pageNumber_; + std::string instanceId_; + std::string userClientIp_; + int pageSize_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEADDRESSPOOLSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolsResult.h index 8837f747c..430b793cf 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceAddressPoolsResult.h @@ -37,15 +37,15 @@ namespace AlibabaCloud std::string status; std::string type; std::string createTime; - std::string addrPoolId; std::string updateTime; + std::string addrPoolId; long updateTimestamp; - int minAvailableAddrNum; std::string monitorConfigId; - long createTimestamp; + int minAvailableAddrNum; std::string monitorStatus; - int addrCount; + long createTimestamp; std::string name; + int addrCount; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceRequest.h index 155a87e2f..f7e64c99e 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceRequest.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_ALIDNS_MODEL_DESCRIBEGTMINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceRequest : public RpcServiceRequest - { - - public: - DescribeGtmInstanceRequest(); - ~DescribeGtmInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - bool getNeedDetailAttributes()const; - void setNeedDetailAttributes(bool needDetailAttributes); - - private: - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - bool needDetailAttributes_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceRequest : public RpcServiceRequest { +public: + DescribeGtmInstanceRequest(); + ~DescribeGtmInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + bool getNeedDetailAttributes() const; + void setNeedDetailAttributes(bool needDetailAttributes); + +private: + std::string instanceId_; + std::string userClientIp_; + std::string lang_; + bool needDetailAttributes_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceStatusRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceStatusRequest.h index a83d126c5..54fa6d61a 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceStatusRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceStatusRequest.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_ALIDNS_MODEL_DESCRIBEGTMINSTANCESTATUSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceStatusRequest : public RpcServiceRequest - { - - public: - DescribeGtmInstanceStatusRequest(); - ~DescribeGtmInstanceStatusRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESTATUSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceStatusRequest : public RpcServiceRequest { +public: + DescribeGtmInstanceStatusRequest(); + ~DescribeGtmInstanceStatusRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESTATUSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameRequest.h index c69857444..5eaf4e3d1 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstanceSystemCnameRequest.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_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceSystemCnameRequest : public RpcServiceRequest - { - - public: - DescribeGtmInstanceSystemCnameRequest(); - ~DescribeGtmInstanceSystemCnameRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstanceSystemCnameRequest : public RpcServiceRequest { +public: + DescribeGtmInstanceSystemCnameRequest(); + ~DescribeGtmInstanceSystemCnameRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESYSTEMCNAMEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesRequest.h index d95afaa2b..03ce45f45 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmInstancesRequest.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_ALIDNS_MODEL_DESCRIBEGTMINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstancesRequest : public RpcServiceRequest - { - - public: - DescribeGtmInstancesRequest(); - ~DescribeGtmInstancesRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - bool getNeedDetailAttributes()const; - void setNeedDetailAttributes(bool needDetailAttributes); - - private: - int pageNumber_; - std::string resourceGroupId_; - std::string userClientIp_; - int pageSize_; - std::string lang_; - std::string keyword_; - bool needDetailAttributes_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmInstancesRequest : public RpcServiceRequest { +public: + DescribeGtmInstancesRequest(); + ~DescribeGtmInstancesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + bool getNeedDetailAttributes() const; + void setNeedDetailAttributes(bool needDetailAttributes); + +private: + int pageNumber_; + std::string resourceGroupId_; + std::string userClientIp_; + int pageSize_; + std::string lang_; + std::string keyword_; + bool needDetailAttributes_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMINSTANCESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmLogsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmLogsRequest.h index 0cb2d7a55..6852066f2 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmLogsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmLogsRequest.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_ALIDNS_MODEL_DESCRIBEGTMLOGSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmLogsRequest : public RpcServiceRequest - { - - public: - DescribeGtmLogsRequest(); - ~DescribeGtmLogsRequest(); - - long getStartTimestamp()const; - void setStartTimestamp(long startTimestamp); - int getPageNumber()const; - void setPageNumber(int pageNumber); - long getEndTimestamp()const; - void setEndTimestamp(long endTimestamp); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - - private: - long startTimestamp_; - int pageNumber_; - long endTimestamp_; - std::string instanceId_; - std::string userClientIp_; - int pageSize_; - std::string lang_; - std::string keyword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMLOGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMLOGSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmLogsRequest : public RpcServiceRequest { +public: + DescribeGtmLogsRequest(); + ~DescribeGtmLogsRequest(); + long getStartTimestamp() const; + void setStartTimestamp(long startTimestamp); + int getPageNumber() const; + void setPageNumber(int pageNumber); + long getEndTimestamp() const; + void setEndTimestamp(long endTimestamp); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + +private: + long startTimestamp_; + int pageNumber_; + long endTimestamp_; + std::string instanceId_; + std::string userClientIp_; + int pageSize_; + std::string lang_; + std::string keyword_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMLOGSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmLogsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmLogsResult.h index 1a0cfd71b..33cbf976e 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmLogsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmLogsResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Log { - std::string entityType; std::string entityId; + std::string entityType; std::string entityName; std::string operTime; std::string content; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorAvailableConfigRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorAvailableConfigRequest.h index c5423d91b..73a9acde5 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorAvailableConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorAvailableConfigRequest.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_ALIDNS_MODEL_DESCRIBEGTMMONITORAVAILABLECONFIGREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMMONITORAVAILABLECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmMonitorAvailableConfigRequest : public RpcServiceRequest - { - - public: - DescribeGtmMonitorAvailableConfigRequest(); - ~DescribeGtmMonitorAvailableConfigRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMMONITORAVAILABLECONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMMONITORAVAILABLECONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMMONITORAVAILABLECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmMonitorAvailableConfigRequest : public RpcServiceRequest { +public: + DescribeGtmMonitorAvailableConfigRequest(); + ~DescribeGtmMonitorAvailableConfigRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMMONITORAVAILABLECONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorConfigRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorConfigRequest.h index 66d56dbf8..33415a5e4 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorConfigRequest.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_ALIDNS_MODEL_DESCRIBEGTMMONITORCONFIGREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMMONITORCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmMonitorConfigRequest : public RpcServiceRequest - { - - public: - DescribeGtmMonitorConfigRequest(); - ~DescribeGtmMonitorConfigRequest(); - - std::string getMonitorConfigId()const; - void setMonitorConfigId(const std::string& monitorConfigId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string monitorConfigId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMMONITORCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMMONITORCONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMMONITORCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmMonitorConfigRequest : public RpcServiceRequest { +public: + DescribeGtmMonitorConfigRequest(); + ~DescribeGtmMonitorConfigRequest(); + std::string getMonitorConfigId() const; + void setMonitorConfigId(const std::string &monitorConfigId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string monitorConfigId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMMONITORCONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorConfigResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorConfigResult.h index f66ae9c57..51c6aceb1 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorConfigResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmMonitorConfigResult.h @@ -47,8 +47,8 @@ namespace AlibabaCloud explicit DescribeGtmMonitorConfigResult(const std::string &payload); ~DescribeGtmMonitorConfigResult(); std::vector getIspCityNodes()const; - std::string getProtocolType()const; int getTimeout()const; + std::string getProtocolType()const; std::string getCreateTime()const; std::string getUpdateTime()const; int getEvaluationCount()const; @@ -62,8 +62,8 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::vector ispCityNodes_; - std::string protocolType_; int timeout_; + std::string protocolType_; std::string createTime_; std::string updateTime_; int evaluationCount_; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanAvailableConfigRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanAvailableConfigRequest.h index c766a8dbf..eb4a49321 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanAvailableConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanAvailableConfigRequest.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_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANAVAILABLECONFIGREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANAVAILABLECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmRecoveryPlanAvailableConfigRequest : public RpcServiceRequest - { - - public: - DescribeGtmRecoveryPlanAvailableConfigRequest(); - ~DescribeGtmRecoveryPlanAvailableConfigRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANAVAILABLECONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANAVAILABLECONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANAVAILABLECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmRecoveryPlanAvailableConfigRequest : public RpcServiceRequest { +public: + DescribeGtmRecoveryPlanAvailableConfigRequest(); + ~DescribeGtmRecoveryPlanAvailableConfigRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANAVAILABLECONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanRequest.h index f25c36b86..fec387756 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanRequest.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_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmRecoveryPlanRequest : public RpcServiceRequest - { - - public: - DescribeGtmRecoveryPlanRequest(); - ~DescribeGtmRecoveryPlanRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getRecoveryPlanId()const; - void setRecoveryPlanId(long recoveryPlanId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - long recoveryPlanId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmRecoveryPlanRequest : public RpcServiceRequest { +public: + DescribeGtmRecoveryPlanRequest(); + ~DescribeGtmRecoveryPlanRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getRecoveryPlanId() const; + void setRecoveryPlanId(long recoveryPlanId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + long recoveryPlanId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanResult.h index 5dedbf147..bb96a7ab8 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlanResult.h @@ -57,8 +57,8 @@ namespace AlibabaCloud std::string getLastExecuteTime()const; std::string getCreateTime()const; long getLastExecuteTimestamp()const; - std::string getName()const; std::string getRemark()const; + std::string getName()const; long getRecoveryPlanId()const; std::string getUpdateTime()const; long getUpdateTimestamp()const; @@ -75,8 +75,8 @@ namespace AlibabaCloud std::string lastExecuteTime_; std::string createTime_; long lastExecuteTimestamp_; - std::string name_; std::string remark_; + std::string name_; long recoveryPlanId_; std::string updateTime_; long updateTimestamp_; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlansRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlansRequest.h index 121476c2a..ecef13668 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlansRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlansRequest.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_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmRecoveryPlansRequest : public RpcServiceRequest - { - - public: - DescribeGtmRecoveryPlansRequest(); - ~DescribeGtmRecoveryPlansRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - - private: - int pageNumber_; - std::string userClientIp_; - int pageSize_; - std::string lang_; - std::string keyword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeGtmRecoveryPlansRequest : public RpcServiceRequest { +public: + DescribeGtmRecoveryPlansRequest(); + ~DescribeGtmRecoveryPlansRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + +private: + int pageNumber_; + std::string userClientIp_; + int pageSize_; + std::string lang_; + std::string keyword_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEGTMRECOVERYPLANSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlansResult.h b/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlansResult.h index 06596add8..1d6a0afe6 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlansResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeGtmRecoveryPlansResult.h @@ -34,14 +34,14 @@ namespace AlibabaCloud public: struct RecoveryPlan { - std::string lastRollbackTime; std::string status; + std::string lastRollbackTime; int faultAddrPoolNum; std::string lastExecuteTime; std::string createTime; long lastExecuteTimestamp; - std::string name; std::string remark; + std::string name; long recoveryPlanId; std::string updateTime; long updateTimestamp; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeInstanceDomainsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeInstanceDomainsRequest.h index 8fa4f7c95..a91499fb8 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeInstanceDomainsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeInstanceDomainsRequest.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_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeInstanceDomainsRequest : public RpcServiceRequest - { - - public: - DescribeInstanceDomainsRequest(); - ~DescribeInstanceDomainsRequest(); - - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - long pageNumber_; - std::string instanceId_; - std::string userClientIp_; - long pageSize_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeInstanceDomainsRequest : public RpcServiceRequest { +public: + DescribeInstanceDomainsRequest(); + ~DescribeInstanceDomainsRequest(); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + long pageNumber_; + std::string instanceId_; + std::string userClientIp_; + long pageSize_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheInstancesRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheInstancesRequest.h new file mode 100644 index 000000000..344f404fb --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheInstancesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeIspFlushCacheInstancesRequest : public RpcServiceRequest { +public: + DescribeIspFlushCacheInstancesRequest(); + ~DescribeIspFlushCacheInstancesRequest(); + std::string getIsp() const; + void setIsp(const std::string &isp); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getType() const; + void setType(const std::string &type); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getDirection() const; + void setDirection(const std::string &direction); + +private: + std::string isp_; + std::string orderBy_; + std::string type_; + int pageNumber_; + std::string userClientIp_; + int pageSize_; + std::string lang_; + std::string keyword_; + std::string direction_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEINSTANCESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheInstancesResult.h b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheInstancesResult.h new file mode 100644 index 000000000..4a86a0566 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheInstancesResult.h @@ -0,0 +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_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEINSTANCESRESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeIspFlushCacheInstancesResult : public ServiceResult + { + public: + struct IspFlushCacheInstance + { + struct QuotaInfo + { + int instanceQuota; + int instanceQuotaUsed; + }; + std::string instanceName; + std::string status; + long expireTimestamp; + std::string versionCode; + std::string instanceId; + QuotaInfo quotaInfo; + std::string isp; + std::string expireTime; + }; + + + DescribeIspFlushCacheInstancesResult(); + explicit DescribeIspFlushCacheInstancesResult(const std::string &payload); + ~DescribeIspFlushCacheInstancesResult(); + std::vector getIspFlushCacheInstances()const; + int getPageSize()const; + int getPageNumber()const; + int getTotalPages()const; + int getTotalItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ispFlushCacheInstances_; + int pageSize_; + int pageNumber_; + int totalPages_; + int totalItems_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheRemainQuotaRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheRemainQuotaRequest.h new file mode 100644 index 000000000..a3c4ba7fa --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheRemainQuotaRequest.h @@ -0,0 +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_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEREMAINQUOTAREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEREMAINQUOTAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeIspFlushCacheRemainQuotaRequest : public RpcServiceRequest { +public: + DescribeIspFlushCacheRemainQuotaRequest(); + ~DescribeIspFlushCacheRemainQuotaRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEREMAINQUOTAREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheRemainQuotaResult.h b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheRemainQuotaResult.h new file mode 100644 index 000000000..755384096 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheRemainQuotaResult.h @@ -0,0 +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_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEREMAINQUOTARESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEREMAINQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeIspFlushCacheRemainQuotaResult : public ServiceResult + { + public: + + + DescribeIspFlushCacheRemainQuotaResult(); + explicit DescribeIspFlushCacheRemainQuotaResult(const std::string &payload); + ~DescribeIspFlushCacheRemainQuotaResult(); + int getTelecomRemainQuota()const; + + protected: + void parse(const std::string &payload); + private: + int telecomRemainQuota_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHEREMAINQUOTARESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTaskRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTaskRequest.h new file mode 100644 index 000000000..1a747c369 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTaskRequest.h @@ -0,0 +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_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeIspFlushCacheTaskRequest : public RpcServiceRequest { +public: + DescribeIspFlushCacheTaskRequest(); + ~DescribeIspFlushCacheTaskRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string userClientIp_; + std::string lang_; + std::string taskId_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTaskResult.h b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTaskResult.h new file mode 100644 index 000000000..0473fe33f --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTaskResult.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKRESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeIspFlushCacheTaskResult : public ServiceResult + { + public: + struct FlushCacheResult + { + struct DnsNode + { + struct Answer + { + std::string type; + std::string record; + long ttl; + std::string name; + }; + std::string status; + std::vector answers; + std::string spName; + std::string nodeIp; + }; + std::vector dnsNodes; + std::string province; + }; + + + DescribeIspFlushCacheTaskResult(); + explicit DescribeIspFlushCacheTaskResult(const std::string &payload); + ~DescribeIspFlushCacheTaskResult(); + std::string getInstanceName()const; + std::string getTaskId()const; + std::string getDomainName()const; + std::string getInstanceId()const; + std::string getIsp()const; + std::string getCreateTime()const; + std::vector getFlushCacheResults()const; + std::string getTaskStatus()const; + long getCreateTimestamp()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceName_; + std::string taskId_; + std::string domainName_; + std::string instanceId_; + std::string isp_; + std::string createTime_; + std::vector flushCacheResults_; + std::string taskStatus_; + long createTimestamp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKRESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTasksRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTasksRequest.h new file mode 100644 index 000000000..577013ae3 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTasksRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeIspFlushCacheTasksRequest : public RpcServiceRequest { +public: + DescribeIspFlushCacheTasksRequest(); + ~DescribeIspFlushCacheTasksRequest(); + std::string getIsp() const; + void setIsp(const std::string &isp); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getDirection() const; + void setDirection(const std::string &direction); + +private: + std::string isp_; + std::string domainName_; + std::string orderBy_; + int pageNumber_; + std::string instanceId_; + std::string userClientIp_; + int pageSize_; + std::string lang_; + std::string direction_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTasksResult.h b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTasksResult.h new file mode 100644 index 000000000..bc1c672c4 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeIspFlushCacheTasksResult.h @@ -0,0 +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_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKSRESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeIspFlushCacheTasksResult : public ServiceResult + { + public: + struct IspFlushCacheTask + { + std::string instanceName; + std::string taskId; + std::string domainName; + std::string instanceId; + std::string isp; + std::string createTime; + std::string taskStatus; + long createTimestamp; + }; + + + DescribeIspFlushCacheTasksResult(); + explicit DescribeIspFlushCacheTasksResult(const std::string &payload); + ~DescribeIspFlushCacheTasksResult(); + std::vector getIspFlushCacheTasks()const; + int getPageSize()const; + int getPageNumber()const; + int getTotalPages()const; + int getTotalItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ispFlushCacheTasks_; + int pageSize_; + int pageNumber_; + int totalPages_; + int totalItems_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEISPFLUSHCACHETASKSRESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsAccountSummaryRequest.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsAccountSummaryRequest.h index c60292902..74e686229 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsAccountSummaryRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsAccountSummaryRequest.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_ALIDNS_MODEL_DESCRIBEPDNSACCOUNTSUMMARYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSACCOUNTSUMMARYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsAccountSummaryRequest : public RpcServiceRequest - { - - public: - DescribePdnsAccountSummaryRequest(); - ~DescribePdnsAccountSummaryRequest(); - - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string startDate_; - std::string endDate_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSACCOUNTSUMMARYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSACCOUNTSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSACCOUNTSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsAccountSummaryRequest : public RpcServiceRequest { +public: + DescribePdnsAccountSummaryRequest(); + ~DescribePdnsAccountSummaryRequest(); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string startDate_; + std::string endDate_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSACCOUNTSUMMARYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsAccountSummaryResult.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsAccountSummaryResult.h index e923a959b..0cc7ad387 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsAccountSummaryResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsAccountSummaryResult.h @@ -35,10 +35,10 @@ namespace AlibabaCloud struct Data { long totalCount; - long threatCount; long userId; - long httpsCount; + long threatCount; long httpCount; + long httpsCount; long subDomainCount; long domainCount; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsAppKeyRequest.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsAppKeyRequest.h index 0f27c7d20..009bb8933 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsAppKeyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsAppKeyRequest.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_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsAppKeyRequest : public RpcServiceRequest - { - - public: - DescribePdnsAppKeyRequest(); - ~DescribePdnsAppKeyRequest(); - - std::string getAppKeyId()const; - void setAppKeyId(const std::string& appKeyId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string appKeyId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsAppKeyRequest : public RpcServiceRequest { +public: + DescribePdnsAppKeyRequest(); + ~DescribePdnsAppKeyRequest(); + std::string getAppKeyId() const; + void setAppKeyId(const std::string &appKeyId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string appKeyId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsAppKeysRequest.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsAppKeysRequest.h index dfbfd6141..8c03fd41b 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsAppKeysRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsAppKeysRequest.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_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsAppKeysRequest : public RpcServiceRequest - { - - public: - DescribePdnsAppKeysRequest(); - ~DescribePdnsAppKeysRequest(); - - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsAppKeysRequest : public RpcServiceRequest { +public: + DescribePdnsAppKeysRequest(); + ~DescribePdnsAppKeysRequest(); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSAPPKEYSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsOperateLogsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsOperateLogsRequest.h index 3bf8f5a48..7fb7ab0dd 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsOperateLogsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsOperateLogsRequest.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_ALIDNS_MODEL_DESCRIBEPDNSOPERATELOGSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSOPERATELOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsOperateLogsRequest : public RpcServiceRequest - { - - public: - DescribePdnsOperateLogsRequest(); - ~DescribePdnsOperateLogsRequest(); - - std::string getActionType()const; - void setActionType(const std::string& actionType); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - - private: - std::string actionType_; - std::string startDate_; - long pageNumber_; - std::string endDate_; - long pageSize_; - std::string lang_; - std::string keyword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSOPERATELOGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSOPERATELOGSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSOPERATELOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsOperateLogsRequest : public RpcServiceRequest { +public: + DescribePdnsOperateLogsRequest(); + ~DescribePdnsOperateLogsRequest(); + std::string getActionType() const; + void setActionType(const std::string &actionType); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + +private: + std::string actionType_; + std::string startDate_; + long pageNumber_; + std::string endDate_; + long pageSize_; + std::string lang_; + std::string keyword_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSOPERATELOGSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsOperateLogsResult.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsOperateLogsResult.h index dd5702926..4ba5acbd9 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsOperateLogsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsOperateLogsResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct Log { std::string operateTime; - std::string action; std::string type; + std::string action; std::string content; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticRequest.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticRequest.h index fe1b016ce..b0d743e41 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticRequest.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_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsRequestStatisticRequest : public RpcServiceRequest - { - - public: - DescribePdnsRequestStatisticRequest(); - ~DescribePdnsRequestStatisticRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getType()const; - void setType(const std::string& type); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getSubDomain()const; - void setSubDomain(const std::string& subDomain); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string type_; - std::string startDate_; - std::string endDate_; - std::string subDomain_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsRequestStatisticRequest : public RpcServiceRequest { +public: + DescribePdnsRequestStatisticRequest(); + ~DescribePdnsRequestStatisticRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getType() const; + void setType(const std::string &type); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getSubDomain() const; + void setSubDomain(const std::string &subDomain); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string type_; + std::string startDate_; + std::string endDate_; + std::string subDomain_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticResult.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticResult.h index 2658932d3..d866d098c 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud long v6HttpCount; long v4Count; long httpsCount; - long v4HttpsCount; long timestamp; + long v4HttpsCount; long v6Count; long totalCount; long v4HttpCount; diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticsRequest.h index 9739ea5b6..df7ebf6ac 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsRequestStatisticsRequest.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_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsRequestStatisticsRequest : public RpcServiceRequest - { - - public: - DescribePdnsRequestStatisticsRequest(); - ~DescribePdnsRequestStatisticsRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - bool getNeedThreatInfo()const; - void setNeedThreatInfo(bool needThreatInfo); - std::string getType()const; - void setType(const std::string& type); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getSubDomain()const; - void setSubDomain(const std::string& subDomain); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - bool needThreatInfo_; - std::string type_; - std::string startDate_; - long pageNumber_; - std::string endDate_; - long pageSize_; - std::string subDomain_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsRequestStatisticsRequest : public RpcServiceRequest { +public: + DescribePdnsRequestStatisticsRequest(); + ~DescribePdnsRequestStatisticsRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + bool getNeedThreatInfo() const; + void setNeedThreatInfo(bool needThreatInfo); + std::string getType() const; + void setType(const std::string &type); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getSubDomain() const; + void setSubDomain(const std::string &subDomain); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + bool needThreatInfo_; + std::string type_; + std::string startDate_; + long pageNumber_; + std::string endDate_; + long pageSize_; + std::string subDomain_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSREQUESTSTATISTICSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatLogsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatLogsRequest.h index 9e7353192..4121e1f12 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatLogsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatLogsRequest.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_ALIDNS_MODEL_DESCRIBEPDNSTHREATLOGSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsThreatLogsRequest : public RpcServiceRequest - { - - public: - DescribePdnsThreatLogsRequest(); - ~DescribePdnsThreatLogsRequest(); - - std::string getThreatSourceIp()const; - void setThreatSourceIp(const std::string& threatSourceIp); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getThreatType()const; - void setThreatType(const std::string& threatType); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - std::string getThreatLevel()const; - void setThreatLevel(const std::string& threatLevel); - - private: - std::string threatSourceIp_; - std::string startDate_; - long pageNumber_; - std::string endDate_; - long pageSize_; - std::string threatType_; - std::string lang_; - std::string keyword_; - std::string threatLevel_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATLOGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATLOGSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsThreatLogsRequest : public RpcServiceRequest { +public: + DescribePdnsThreatLogsRequest(); + ~DescribePdnsThreatLogsRequest(); + std::string getThreatSourceIp() const; + void setThreatSourceIp(const std::string &threatSourceIp); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getThreatType() const; + void setThreatType(const std::string &threatType); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getThreatLevel() const; + void setThreatLevel(const std::string &threatLevel); + +private: + std::string threatSourceIp_; + std::string startDate_; + long pageNumber_; + std::string endDate_; + long pageSize_; + std::string threatType_; + std::string lang_; + std::string keyword_; + std::string threatLevel_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATLOGSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatStatisticRequest.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatStatisticRequest.h index a1329c4dc..92f730afd 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatStatisticRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatStatisticRequest.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_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsThreatStatisticRequest : public RpcServiceRequest - { - - public: - DescribePdnsThreatStatisticRequest(); - ~DescribePdnsThreatStatisticRequest(); - - std::string getThreatSourceIp()const; - void setThreatSourceIp(const std::string& threatSourceIp); - std::string getType()const; - void setType(const std::string& type); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string threatSourceIp_; - std::string type_; - std::string startDate_; - std::string endDate_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsThreatStatisticRequest : public RpcServiceRequest { +public: + DescribePdnsThreatStatisticRequest(); + ~DescribePdnsThreatStatisticRequest(); + std::string getThreatSourceIp() const; + void setThreatSourceIp(const std::string &threatSourceIp); + std::string getType() const; + void setType(const std::string &type); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string threatSourceIp_; + std::string type_; + std::string startDate_; + std::string endDate_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatStatisticsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatStatisticsRequest.h index 83b9c5578..c19008dc5 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatStatisticsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsThreatStatisticsRequest.h @@ -1,84 +1,78 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsThreatStatisticsRequest : public RpcServiceRequest - { - - public: - DescribePdnsThreatStatisticsRequest(); - ~DescribePdnsThreatStatisticsRequest(); - - std::string getType()const; - void setType(const std::string& type); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - long getPageNumber()const; - void setPageNumber(long pageNumber); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getThreatType()const; - void setThreatType(const std::string& threatType); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getDirection()const; - void setDirection(const std::string& direction); - std::string getThreatSourceIp()const; - void setThreatSourceIp(const std::string& threatSourceIp); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getOrderBy()const; - void setOrderBy(const std::string& orderBy); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getSubDomain()const; - void setSubDomain(const std::string& subDomain); - std::string getThreatLevel()const; - void setThreatLevel(const std::string& threatLevel); - - private: - std::string type_; - std::string startDate_; - long pageNumber_; - long pageSize_; - std::string threatType_; - std::string lang_; - std::string direction_; - std::string threatSourceIp_; - std::string domainName_; - std::string orderBy_; - std::string endDate_; - std::string subDomain_; - std::string threatLevel_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsThreatStatisticsRequest : public RpcServiceRequest { +public: + DescribePdnsThreatStatisticsRequest(); + ~DescribePdnsThreatStatisticsRequest(); + std::string getType() const; + void setType(const std::string &type); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getThreatType() const; + void setThreatType(const std::string &threatType); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::string getThreatSourceIp() const; + void setThreatSourceIp(const std::string &threatSourceIp); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getSubDomain() const; + void setSubDomain(const std::string &subDomain); + std::string getThreatLevel() const; + void setThreatLevel(const std::string &threatLevel); + +private: + std::string type_; + std::string startDate_; + long pageNumber_; + long pageSize_; + std::string threatType_; + std::string lang_; + std::string direction_; + std::string threatSourceIp_; + std::string domainName_; + std::string orderBy_; + std::string endDate_; + std::string subDomain_; + std::string threatLevel_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSTHREATSTATISTICSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsUdpIpSegmentsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsUdpIpSegmentsRequest.h index 1d37aadda..42be0a5f7 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsUdpIpSegmentsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsUdpIpSegmentsRequest.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_ALIDNS_MODEL_DESCRIBEPDNSUDPIPSEGMENTSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSUDPIPSEGMENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsUdpIpSegmentsRequest : public RpcServiceRequest - { - - public: - DescribePdnsUdpIpSegmentsRequest(); - ~DescribePdnsUdpIpSegmentsRequest(); - - long getPageNumber()const; - void setPageNumber(long pageNumber); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - long pageNumber_; - long pageSize_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSUDPIPSEGMENTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSUDPIPSEGMENTSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSUDPIPSEGMENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsUdpIpSegmentsRequest : public RpcServiceRequest { +public: + DescribePdnsUdpIpSegmentsRequest(); + ~DescribePdnsUdpIpSegmentsRequest(); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + long pageNumber_; + long pageSize_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSUDPIPSEGMENTSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsUserInfoRequest.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsUserInfoRequest.h index f8736ac39..93f7ec4b8 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsUserInfoRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsUserInfoRequest.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_ALIDNS_MODEL_DESCRIBEPDNSUSERINFOREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSUSERINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsUserInfoRequest : public RpcServiceRequest - { - - public: - DescribePdnsUserInfoRequest(); - ~DescribePdnsUserInfoRequest(); - - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSUSERINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSUSERINFOREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSUSERINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribePdnsUserInfoRequest : public RpcServiceRequest { +public: + DescribePdnsUserInfoRequest(); + ~DescribePdnsUserInfoRequest(); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEPDNSUSERINFOREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribePdnsUserInfoResult.h b/alidns/include/alibabacloud/alidns/model/DescribePdnsUserInfoResult.h index db54ef721..2ddbcaf70 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribePdnsUserInfoResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribePdnsUserInfoResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct UserInfo { std::string availableService; - std::string serviceType; std::string state; + std::string serviceType; std::string stoppedService; long pdnsId; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeRecordLogsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeRecordLogsRequest.h index 040995ff2..e13080a00 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeRecordLogsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeRecordLogsRequest.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_ALIDNS_MODEL_DESCRIBERECORDLOGSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordLogsRequest : public RpcServiceRequest - { - - public: - DescribeRecordLogsRequest(); - ~DescribeRecordLogsRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyWord()const; - void setKeyWord(const std::string& keyWord); - - private: - std::string domainName_; - std::string startDate_; - long pageNumber_; - std::string accessKeyId_; - std::string endDate_; - std::string userClientIp_; - long pageSize_; - std::string lang_; - std::string keyWord_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDLOGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDLOGSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordLogsRequest : public RpcServiceRequest { +public: + DescribeRecordLogsRequest(); + ~DescribeRecordLogsRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyWord() const; + void setKeyWord(const std::string &keyWord); + +private: + std::string domainName_; + std::string startDate_; + long pageNumber_; + std::string accessKeyId_; + std::string endDate_; + std::string userClientIp_; + long pageSize_; + std::string lang_; + std::string keyWord_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDLOGSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeRecordResolveStatisticsSummaryRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeRecordResolveStatisticsSummaryRequest.h new file mode 100644 index 000000000..0f6faba96 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeRecordResolveStatisticsSummaryRequest.h @@ -0,0 +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_ALIDNS_MODEL_DESCRIBERECORDRESOLVESTATISTICSSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDRESOLVESTATISTICSSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordResolveStatisticsSummaryRequest : public RpcServiceRequest { +public: + DescribeRecordResolveStatisticsSummaryRequest(); + ~DescribeRecordResolveStatisticsSummaryRequest(); + long getThreshold() const; + void setThreshold(long threshold); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getDomainType() const; + void setDomainType(const std::string &domainType); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getSearchMode() const; + void setSearchMode(const std::string &searchMode); + +private: + long threshold_; + std::string startDate_; + int pageNumber_; + std::string domainType_; + int pageSize_; + std::string keyword_; + std::string lang_; + std::string direction_; + std::string domainName_; + std::string endDate_; + std::string userClientIp_; + std::string searchMode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDRESOLVESTATISTICSSUMMARYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeRecordResolveStatisticsSummaryResult.h b/alidns/include/alibabacloud/alidns/model/DescribeRecordResolveStatisticsSummaryResult.h new file mode 100644 index 000000000..f2bbc0bf9 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/DescribeRecordResolveStatisticsSummaryResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDRESOLVESTATISTICSSUMMARYRESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDRESOLVESTATISTICSSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordResolveStatisticsSummaryResult : public ServiceResult + { + public: + struct Statistic + { + std::string subDomain; + std::string domainType; + std::string domainName; + std::string count; + }; + + + DescribeRecordResolveStatisticsSummaryResult(); + explicit DescribeRecordResolveStatisticsSummaryResult(const std::string &payload); + ~DescribeRecordResolveStatisticsSummaryResult(); + int getPageSize()const; + int getPageNumber()const; + int getTotalPages()const; + int getTotalItems()const; + std::vector getStatistics()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + int totalPages_; + int totalItems_; + std::vector statistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDRESOLVESTATISTICSSUMMARYRESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsRequest.h index b8f1b8417..da99187c3 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsRequest.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_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeRecordStatisticsRequest(); - ~DescribeRecordStatisticsRequest(); - - std::string getRr()const; - void setRr(const std::string& rr); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getDomainType()const; - void setDomainType(const std::string& domainType); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string rr_; - std::string domainName_; - std::string startDate_; - std::string endDate_; - std::string domainType_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordStatisticsRequest : public RpcServiceRequest { +public: + DescribeRecordStatisticsRequest(); + ~DescribeRecordStatisticsRequest(); + std::string getRr() const; + void setRr(const std::string &rr); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getDomainType() const; + void setDomainType(const std::string &domainType); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string rr_; + std::string domainName_; + std::string startDate_; + std::string endDate_; + std::string domainType_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryRequest.h index 63cf61330..52a821798 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeRecordStatisticsSummaryRequest.h @@ -1,84 +1,78 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordStatisticsSummaryRequest : public RpcServiceRequest - { - - public: - DescribeRecordStatisticsSummaryRequest(); - ~DescribeRecordStatisticsSummaryRequest(); - - long getThreshold()const; - void setThreshold(long threshold); - std::string getStartDate()const; - void setStartDate(const std::string& startDate); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getDomainType()const; - void setDomainType(const std::string& domainType); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - std::string getDirection()const; - void setDirection(const std::string& direction); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getOrderBy()const; - void setOrderBy(const std::string& orderBy); - std::string getEndDate()const; - void setEndDate(const std::string& endDate); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getSearchMode()const; - void setSearchMode(const std::string& searchMode); - - private: - long threshold_; - std::string startDate_; - long pageNumber_; - std::string domainType_; - long pageSize_; - std::string lang_; - std::string keyword_; - std::string direction_; - std::string domainName_; - std::string orderBy_; - std::string endDate_; - std::string userClientIp_; - std::string searchMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeRecordStatisticsSummaryRequest : public RpcServiceRequest { +public: + DescribeRecordStatisticsSummaryRequest(); + ~DescribeRecordStatisticsSummaryRequest(); + long getThreshold() const; + void setThreshold(long threshold); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getDomainType() const; + void setDomainType(const std::string &domainType); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getSearchMode() const; + void setSearchMode(const std::string &searchMode); + +private: + long threshold_; + std::string startDate_; + long pageNumber_; + std::string domainType_; + long pageSize_; + std::string lang_; + std::string keyword_; + std::string direction_; + std::string domainName_; + std::string orderBy_; + std::string endDate_; + std::string userClientIp_; + std::string searchMode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBERECORDSTATISTICSSUMMARYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsRequest.h index 37c96b5e4..126a0b031 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsRequest.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_ALIDNS_MODEL_DESCRIBESUBDOMAINRECORDSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBESUBDOMAINRECORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeSubDomainRecordsRequest : public RpcServiceRequest - { - - public: - DescribeSubDomainRecordsRequest(); - ~DescribeSubDomainRecordsRequest(); - - std::string getLine()const; - void setLine(const std::string& line); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getType()const; - void setType(const std::string& type); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getSubDomain()const; - void setSubDomain(const std::string& subDomain); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string line_; - std::string domainName_; - std::string type_; - long pageNumber_; - std::string accessKeyId_; - std::string userClientIp_; - long pageSize_; - std::string subDomain_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBESUBDOMAINRECORDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBESUBDOMAINRECORDSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBESUBDOMAINRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeSubDomainRecordsRequest : public RpcServiceRequest { +public: + DescribeSubDomainRecordsRequest(); + ~DescribeSubDomainRecordsRequest(); + std::string getLine() const; + void setLine(const std::string &line); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getType() const; + void setType(const std::string &type); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getSubDomain() const; + void setSubDomain(const std::string &subDomain); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string line_; + std::string domainName_; + std::string type_; + long pageNumber_; + std::string accessKeyId_; + std::string userClientIp_; + long pageSize_; + std::string subDomain_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBESUBDOMAINRECORDSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsResult.h b/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsResult.h index 742b268dc..a343be66c 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsResult.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeSubDomainRecordsResult.h @@ -34,9 +34,9 @@ namespace AlibabaCloud public: struct Record { - std::string rR; - std::string line; std::string status; + std::string line; + std::string rR; bool locked; std::string type; std::string domainName; @@ -45,6 +45,7 @@ namespace AlibabaCloud std::string recordId; long tTL; int weight; + std::string remark; }; diff --git a/alidns/include/alibabacloud/alidns/model/DescribeSupportLinesRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeSupportLinesRequest.h index a963cb4a0..59ac51ef3 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeSupportLinesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeSupportLinesRequest.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_ALIDNS_MODEL_DESCRIBESUPPORTLINESREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBESUPPORTLINESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeSupportLinesRequest : public RpcServiceRequest - { - - public: - DescribeSupportLinesRequest(); - ~DescribeSupportLinesRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string accessKeyId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBESUPPORTLINESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBESUPPORTLINESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBESUPPORTLINESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeSupportLinesRequest : public RpcServiceRequest { +public: + DescribeSupportLinesRequest(); + ~DescribeSupportLinesRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string accessKeyId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBESUPPORTLINESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeTagsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeTagsRequest.h index 5cfabfd3d..dfc1258da 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeTagsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeTagsRequest.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_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeTagsRequest : public RpcServiceRequest - { - - public: - DescribeTagsRequest(); - ~DescribeTagsRequest(); - - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string resourceType_; - long pageNumber_; - std::string userClientIp_; - long pageSize_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeTagsRequest : public RpcServiceRequest { +public: + DescribeTagsRequest(); + ~DescribeTagsRequest(); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string resourceType_; + long pageNumber_; + std::string userClientIp_; + long pageSize_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/DescribeTransferDomainsRequest.h b/alidns/include/alibabacloud/alidns/model/DescribeTransferDomainsRequest.h index b544e302e..dd20334bc 100644 --- a/alidns/include/alibabacloud/alidns/model/DescribeTransferDomainsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/DescribeTransferDomainsRequest.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_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT DescribeTransferDomainsRequest : public RpcServiceRequest - { - - public: - DescribeTransferDomainsRequest(); - ~DescribeTransferDomainsRequest(); - - long getFromUserId()const; - void setFromUserId(long fromUserId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - long getTargetUserId()const; - void setTargetUserId(long targetUserId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getTransferType()const; - void setTransferType(const std::string& transferType); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - - private: - long fromUserId_; - long pageNumber_; - long targetUserId_; - long pageSize_; - std::string lang_; - std::string domainName_; - std::string transferType_; - std::string userClientIp_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT DescribeTransferDomainsRequest : public RpcServiceRequest { +public: + DescribeTransferDomainsRequest(); + ~DescribeTransferDomainsRequest(); + long getFromUserId() const; + void setFromUserId(long fromUserId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getTargetUserId() const; + void setTargetUserId(long targetUserId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getTransferType() const; + void setTransferType(const std::string &transferType); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + +private: + long fromUserId_; + long pageNumber_; + long targetUserId_; + long pageSize_; + std::string lang_; + std::string domainName_; + std::string transferType_; + std::string userClientIp_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/ExecuteGtmRecoveryPlanRequest.h b/alidns/include/alibabacloud/alidns/model/ExecuteGtmRecoveryPlanRequest.h index 7abc2cd47..944e9920b 100644 --- a/alidns/include/alibabacloud/alidns/model/ExecuteGtmRecoveryPlanRequest.h +++ b/alidns/include/alibabacloud/alidns/model/ExecuteGtmRecoveryPlanRequest.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_ALIDNS_MODEL_EXECUTEGTMRECOVERYPLANREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_EXECUTEGTMRECOVERYPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT ExecuteGtmRecoveryPlanRequest : public RpcServiceRequest - { - - public: - ExecuteGtmRecoveryPlanRequest(); - ~ExecuteGtmRecoveryPlanRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getRecoveryPlanId()const; - void setRecoveryPlanId(long recoveryPlanId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - long recoveryPlanId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_EXECUTEGTMRECOVERYPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_EXECUTEGTMRECOVERYPLANREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_EXECUTEGTMRECOVERYPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT ExecuteGtmRecoveryPlanRequest : public RpcServiceRequest { +public: + ExecuteGtmRecoveryPlanRequest(); + ~ExecuteGtmRecoveryPlanRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getRecoveryPlanId() const; + void setRecoveryPlanId(long recoveryPlanId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + long recoveryPlanId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_EXECUTEGTMRECOVERYPLANREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/GetMainDomainNameRequest.h b/alidns/include/alibabacloud/alidns/model/GetMainDomainNameRequest.h index c1aa59360..4e5a8bdca 100644 --- a/alidns/include/alibabacloud/alidns/model/GetMainDomainNameRequest.h +++ b/alidns/include/alibabacloud/alidns/model/GetMainDomainNameRequest.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_ALIDNS_MODEL_GETMAINDOMAINNAMEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_GETMAINDOMAINNAMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT GetMainDomainNameRequest : public RpcServiceRequest - { - - public: - GetMainDomainNameRequest(); - ~GetMainDomainNameRequest(); - - std::string getInputString()const; - void setInputString(const std::string& inputString); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string inputString_; - std::string accessKeyId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_GETMAINDOMAINNAMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_GETMAINDOMAINNAMEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_GETMAINDOMAINNAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT GetMainDomainNameRequest : public RpcServiceRequest { +public: + GetMainDomainNameRequest(); + ~GetMainDomainNameRequest(); + std::string getInputString() const; + void setInputString(const std::string &inputString); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string inputString_; + std::string accessKeyId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_GETMAINDOMAINNAMEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/GetTxtRecordForVerifyRequest.h b/alidns/include/alibabacloud/alidns/model/GetTxtRecordForVerifyRequest.h index 37d55da01..4a3f66500 100644 --- a/alidns/include/alibabacloud/alidns/model/GetTxtRecordForVerifyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/GetTxtRecordForVerifyRequest.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_ALIDNS_MODEL_GETTXTRECORDFORVERIFYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_GETTXTRECORDFORVERIFYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT GetTxtRecordForVerifyRequest : public RpcServiceRequest - { - - public: - GetTxtRecordForVerifyRequest(); - ~GetTxtRecordForVerifyRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getType()const; - void setType(const std::string& type); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string type_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_GETTXTRECORDFORVERIFYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_GETTXTRECORDFORVERIFYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_GETTXTRECORDFORVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT GetTxtRecordForVerifyRequest : public RpcServiceRequest { +public: + GetTxtRecordForVerifyRequest(); + ~GetTxtRecordForVerifyRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getType() const; + void setType(const std::string &type); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string type_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_GETTXTRECORDFORVERIFYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/ListTagResourcesRequest.h b/alidns/include/alibabacloud/alidns/model/ListTagResourcesRequest.h index ea89c7248..f6478bec6 100644 --- a/alidns/include/alibabacloud/alidns/model/ListTagResourcesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/ListTagResourcesRequest.h @@ -1,72 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT ListTagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - ListTagResourcesRequest(); - ~ListTagResourcesRequest(); - - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - int getSize()const; - void setSize(int size); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::vector resourceId_; - std::string resourceType_; - int size_; - std::string nextToken_; - std::string userClientIp_; - std::vector tag_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + int getSize() const; + void setSize(int size); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::vector resourceId_; + std::string resourceType_; + int size_; + std::string nextToken_; + std::string userClientIp_; + std::vector tag_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/ModifyHichinaDomainDNSRequest.h b/alidns/include/alibabacloud/alidns/model/ModifyHichinaDomainDNSRequest.h index 9856e1433..66afe9912 100644 --- a/alidns/include/alibabacloud/alidns/model/ModifyHichinaDomainDNSRequest.h +++ b/alidns/include/alibabacloud/alidns/model/ModifyHichinaDomainDNSRequest.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_ALIDNS_MODEL_MODIFYHICHINADOMAINDNSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_MODIFYHICHINADOMAINDNSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT ModifyHichinaDomainDNSRequest : public RpcServiceRequest - { - - public: - ModifyHichinaDomainDNSRequest(); - ~ModifyHichinaDomainDNSRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string accessKeyId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_MODIFYHICHINADOMAINDNSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_MODIFYHICHINADOMAINDNSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_MODIFYHICHINADOMAINDNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT ModifyHichinaDomainDNSRequest : public RpcServiceRequest { +public: + ModifyHichinaDomainDNSRequest(); + ~ModifyHichinaDomainDNSRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string accessKeyId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_MODIFYHICHINADOMAINDNSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/MoveDomainResourceGroupRequest.h b/alidns/include/alibabacloud/alidns/model/MoveDomainResourceGroupRequest.h index 4cf4f878e..38f8c7647 100644 --- a/alidns/include/alibabacloud/alidns/model/MoveDomainResourceGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/MoveDomainResourceGroupRequest.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_ALIDNS_MODEL_MOVEDOMAINRESOURCEGROUPREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_MOVEDOMAINRESOURCEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT MoveDomainResourceGroupRequest : public RpcServiceRequest - { - - public: - MoveDomainResourceGroupRequest(); - ~MoveDomainResourceGroupRequest(); - - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getNewResourceGroupId()const; - void setNewResourceGroupId(const std::string& newResourceGroupId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string resourceId_; - std::string newResourceGroupId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_MOVEDOMAINRESOURCEGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_MOVEDOMAINRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_MOVEDOMAINRESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT MoveDomainResourceGroupRequest : public RpcServiceRequest { +public: + MoveDomainResourceGroupRequest(); + ~MoveDomainResourceGroupRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string resourceId_; + std::string newResourceGroupId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_MOVEDOMAINRESOURCEGROUPREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/MoveGtmResourceGroupRequest.h b/alidns/include/alibabacloud/alidns/model/MoveGtmResourceGroupRequest.h index 38099702c..66925d7bb 100644 --- a/alidns/include/alibabacloud/alidns/model/MoveGtmResourceGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/MoveGtmResourceGroupRequest.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_ALIDNS_MODEL_MOVEGTMRESOURCEGROUPREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_MOVEGTMRESOURCEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT MoveGtmResourceGroupRequest : public RpcServiceRequest - { - - public: - MoveGtmResourceGroupRequest(); - ~MoveGtmResourceGroupRequest(); - - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getNewResourceGroupId()const; - void setNewResourceGroupId(const std::string& newResourceGroupId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string resourceId_; - std::string newResourceGroupId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_MOVEGTMRESOURCEGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_MOVEGTMRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_MOVEGTMRESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT MoveGtmResourceGroupRequest : public RpcServiceRequest { +public: + MoveGtmResourceGroupRequest(); + ~MoveGtmResourceGroupRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string resourceId_; + std::string newResourceGroupId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_MOVEGTMRESOURCEGROUPREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/OperateBatchDomainRequest.h b/alidns/include/alibabacloud/alidns/model/OperateBatchDomainRequest.h index 634a146da..09ebd5fdc 100644 --- a/alidns/include/alibabacloud/alidns/model/OperateBatchDomainRequest.h +++ b/alidns/include/alibabacloud/alidns/model/OperateBatchDomainRequest.h @@ -1,71 +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_ALIDNS_MODEL_OPERATEBATCHDOMAINREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_OPERATEBATCHDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT OperateBatchDomainRequest : public RpcServiceRequest - { - public: - struct DomainRecordInfo - { - std::string rr; - std::string newType; - std::string newValue; - std::string line; - std::string domain; - std::string type; - int priority; - std::string value; - int ttl; - std::string newRr; - }; - - public: - OperateBatchDomainRequest(); - ~OperateBatchDomainRequest(); - - std::vector getDomainRecordInfo()const; - void setDomainRecordInfo(const std::vector& domainRecordInfo); - std::string getType()const; - void setType(const std::string& type); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::vector domainRecordInfo_; - std::string type_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_OPERATEBATCHDOMAINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_OPERATEBATCHDOMAINREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_OPERATEBATCHDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT OperateBatchDomainRequest : public RpcServiceRequest { +public: + struct DomainRecordInfo { + std::string rr; + std::string newType; + std::string newValue; + std::string line; + std::string domain; + std::string type; + int priority; + std::string value; + int ttl; + std::string newRr; + }; + OperateBatchDomainRequest(); + ~OperateBatchDomainRequest(); + std::vector getDomainRecordInfo() const; + void setDomainRecordInfo(const std::vector &domainRecordInfo); + std::string getType() const; + void setType(const std::string &type); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::vector domainRecordInfo_; + std::string type_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_OPERATEBATCHDOMAINREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/PausePdnsServiceRequest.h b/alidns/include/alibabacloud/alidns/model/PausePdnsServiceRequest.h index a9606c7f6..d450e88d6 100644 --- a/alidns/include/alibabacloud/alidns/model/PausePdnsServiceRequest.h +++ b/alidns/include/alibabacloud/alidns/model/PausePdnsServiceRequest.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_ALIDNS_MODEL_PAUSEPDNSSERVICEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_PAUSEPDNSSERVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT PausePdnsServiceRequest : public RpcServiceRequest - { - - public: - PausePdnsServiceRequest(); - ~PausePdnsServiceRequest(); - - std::string getServiceType()const; - void setServiceType(const std::string& serviceType); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string serviceType_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_PAUSEPDNSSERVICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_PAUSEPDNSSERVICEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_PAUSEPDNSSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT PausePdnsServiceRequest : public RpcServiceRequest { +public: + PausePdnsServiceRequest(); + ~PausePdnsServiceRequest(); + std::string getServiceType() const; + void setServiceType(const std::string &serviceType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string serviceType_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_PAUSEPDNSSERVICEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/PreviewGtmRecoveryPlanRequest.h b/alidns/include/alibabacloud/alidns/model/PreviewGtmRecoveryPlanRequest.h index 2dc52654e..cb03ec00c 100644 --- a/alidns/include/alibabacloud/alidns/model/PreviewGtmRecoveryPlanRequest.h +++ b/alidns/include/alibabacloud/alidns/model/PreviewGtmRecoveryPlanRequest.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_ALIDNS_MODEL_PREVIEWGTMRECOVERYPLANREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_PREVIEWGTMRECOVERYPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT PreviewGtmRecoveryPlanRequest : public RpcServiceRequest - { - - public: - PreviewGtmRecoveryPlanRequest(); - ~PreviewGtmRecoveryPlanRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getPageSize()const; - void setPageSize(int pageSize); - long getRecoveryPlanId()const; - void setRecoveryPlanId(long recoveryPlanId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - int pageNumber_; - std::string userClientIp_; - int pageSize_; - long recoveryPlanId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_PREVIEWGTMRECOVERYPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_PREVIEWGTMRECOVERYPLANREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_PREVIEWGTMRECOVERYPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT PreviewGtmRecoveryPlanRequest : public RpcServiceRequest { +public: + PreviewGtmRecoveryPlanRequest(); + ~PreviewGtmRecoveryPlanRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getPageSize() const; + void setPageSize(int pageSize); + long getRecoveryPlanId() const; + void setRecoveryPlanId(long recoveryPlanId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + int pageNumber_; + std::string userClientIp_; + int pageSize_; + long recoveryPlanId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_PREVIEWGTMRECOVERYPLANREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/RemovePdnsAppKeyRequest.h b/alidns/include/alibabacloud/alidns/model/RemovePdnsAppKeyRequest.h index 5e92af74a..b30705346 100644 --- a/alidns/include/alibabacloud/alidns/model/RemovePdnsAppKeyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/RemovePdnsAppKeyRequest.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_ALIDNS_MODEL_REMOVEPDNSAPPKEYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_REMOVEPDNSAPPKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT RemovePdnsAppKeyRequest : public RpcServiceRequest - { - - public: - RemovePdnsAppKeyRequest(); - ~RemovePdnsAppKeyRequest(); - - std::string getAppKeyId()const; - void setAppKeyId(const std::string& appKeyId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string appKeyId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_REMOVEPDNSAPPKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_REMOVEPDNSAPPKEYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_REMOVEPDNSAPPKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT RemovePdnsAppKeyRequest : public RpcServiceRequest { +public: + RemovePdnsAppKeyRequest(); + ~RemovePdnsAppKeyRequest(); + std::string getAppKeyId() const; + void setAppKeyId(const std::string &appKeyId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string appKeyId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_REMOVEPDNSAPPKEYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/RemovePdnsUdpIpSegmentRequest.h b/alidns/include/alibabacloud/alidns/model/RemovePdnsUdpIpSegmentRequest.h index 445790c2f..fac111735 100644 --- a/alidns/include/alibabacloud/alidns/model/RemovePdnsUdpIpSegmentRequest.h +++ b/alidns/include/alibabacloud/alidns/model/RemovePdnsUdpIpSegmentRequest.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_ALIDNS_MODEL_REMOVEPDNSUDPIPSEGMENTREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_REMOVEPDNSUDPIPSEGMENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT RemovePdnsUdpIpSegmentRequest : public RpcServiceRequest - { - - public: - RemovePdnsUdpIpSegmentRequest(); - ~RemovePdnsUdpIpSegmentRequest(); - - std::string getIp()const; - void setIp(const std::string& ip); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string ip_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_REMOVEPDNSUDPIPSEGMENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_REMOVEPDNSUDPIPSEGMENTREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_REMOVEPDNSUDPIPSEGMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT RemovePdnsUdpIpSegmentRequest : public RpcServiceRequest { +public: + RemovePdnsUdpIpSegmentRequest(); + ~RemovePdnsUdpIpSegmentRequest(); + std::string getIp() const; + void setIp(const std::string &ip); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string ip_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_REMOVEPDNSUDPIPSEGMENTREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/ResumePdnsServiceRequest.h b/alidns/include/alibabacloud/alidns/model/ResumePdnsServiceRequest.h index 21eee5f3d..32bfe9482 100644 --- a/alidns/include/alibabacloud/alidns/model/ResumePdnsServiceRequest.h +++ b/alidns/include/alibabacloud/alidns/model/ResumePdnsServiceRequest.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_ALIDNS_MODEL_RESUMEPDNSSERVICEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_RESUMEPDNSSERVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT ResumePdnsServiceRequest : public RpcServiceRequest - { - - public: - ResumePdnsServiceRequest(); - ~ResumePdnsServiceRequest(); - - std::string getServiceType()const; - void setServiceType(const std::string& serviceType); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string serviceType_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_RESUMEPDNSSERVICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_RESUMEPDNSSERVICEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_RESUMEPDNSSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT ResumePdnsServiceRequest : public RpcServiceRequest { +public: + ResumePdnsServiceRequest(); + ~ResumePdnsServiceRequest(); + std::string getServiceType() const; + void setServiceType(const std::string &serviceType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string serviceType_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_RESUMEPDNSSERVICEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/RetrieveDomainRequest.h b/alidns/include/alibabacloud/alidns/model/RetrieveDomainRequest.h index 17b21e1fc..fcce6f660 100644 --- a/alidns/include/alibabacloud/alidns/model/RetrieveDomainRequest.h +++ b/alidns/include/alibabacloud/alidns/model/RetrieveDomainRequest.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_ALIDNS_MODEL_RETRIEVEDOMAINREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_RETRIEVEDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT RetrieveDomainRequest : public RpcServiceRequest - { - - public: - RetrieveDomainRequest(); - ~RetrieveDomainRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_RETRIEVEDOMAINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_RETRIEVEDOMAINREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_RETRIEVEDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT RetrieveDomainRequest : public RpcServiceRequest { +public: + RetrieveDomainRequest(); + ~RetrieveDomainRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_RETRIEVEDOMAINREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/RollbackGtmRecoveryPlanRequest.h b/alidns/include/alibabacloud/alidns/model/RollbackGtmRecoveryPlanRequest.h index a2abdbdf3..3c9a5bad6 100644 --- a/alidns/include/alibabacloud/alidns/model/RollbackGtmRecoveryPlanRequest.h +++ b/alidns/include/alibabacloud/alidns/model/RollbackGtmRecoveryPlanRequest.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_ALIDNS_MODEL_ROLLBACKGTMRECOVERYPLANREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_ROLLBACKGTMRECOVERYPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT RollbackGtmRecoveryPlanRequest : public RpcServiceRequest - { - - public: - RollbackGtmRecoveryPlanRequest(); - ~RollbackGtmRecoveryPlanRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - long getRecoveryPlanId()const; - void setRecoveryPlanId(long recoveryPlanId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userClientIp_; - long recoveryPlanId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_ROLLBACKGTMRECOVERYPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_ROLLBACKGTMRECOVERYPLANREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_ROLLBACKGTMRECOVERYPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT RollbackGtmRecoveryPlanRequest : public RpcServiceRequest { +public: + RollbackGtmRecoveryPlanRequest(); + ~RollbackGtmRecoveryPlanRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + long getRecoveryPlanId() const; + void setRecoveryPlanId(long recoveryPlanId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userClientIp_; + long recoveryPlanId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_ROLLBACKGTMRECOVERYPLANREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.h b/alidns/include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.h index cd9eb4bd0..de67b250c 100644 --- a/alidns/include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.h +++ b/alidns/include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.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_ALIDNS_MODEL_SETDNSSLBSTATUSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_SETDNSSLBSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT SetDNSSLBStatusRequest : public RpcServiceRequest - { - - public: - SetDNSSLBStatusRequest(); - ~SetDNSSLBStatusRequest(); - - std::string getLine()const; - void setLine(const std::string& line); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getType()const; - void setType(const std::string& type); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getSubDomain()const; - void setSubDomain(const std::string& subDomain); - std::string getLang()const; - void setLang(const std::string& lang); - bool getOpen()const; - void setOpen(bool open); - - private: - std::string line_; - std::string domainName_; - std::string type_; - std::string accessKeyId_; - std::string userClientIp_; - std::string subDomain_; - std::string lang_; - bool open_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDNSSLBSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_SETDNSSLBSTATUSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_SETDNSSLBSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT SetDNSSLBStatusRequest : public RpcServiceRequest { +public: + SetDNSSLBStatusRequest(); + ~SetDNSSLBStatusRequest(); + std::string getLine() const; + void setLine(const std::string &line); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getType() const; + void setType(const std::string &type); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getSubDomain() const; + void setSubDomain(const std::string &subDomain); + std::string getLang() const; + void setLang(const std::string &lang); + bool getOpen() const; + void setOpen(bool open); + +private: + std::string line_; + std::string domainName_; + std::string type_; + std::string accessKeyId_; + std::string userClientIp_; + std::string subDomain_; + std::string lang_; + bool open_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDNSSLBSTATUSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/SetDnsGtmAccessModeRequest.h b/alidns/include/alibabacloud/alidns/model/SetDnsGtmAccessModeRequest.h index b8d85b196..e94c2e306 100644 --- a/alidns/include/alibabacloud/alidns/model/SetDnsGtmAccessModeRequest.h +++ b/alidns/include/alibabacloud/alidns/model/SetDnsGtmAccessModeRequest.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_ALIDNS_MODEL_SETDNSGTMACCESSMODEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_SETDNSGTMACCESSMODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT SetDnsGtmAccessModeRequest : public RpcServiceRequest - { - - public: - SetDnsGtmAccessModeRequest(); - ~SetDnsGtmAccessModeRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getStrategyId()const; - void setStrategyId(const std::string& strategyId); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getAccessMode()const; - void setAccessMode(const std::string& accessMode); - - private: - std::string userClientIp_; - std::string strategyId_; - std::string lang_; - std::string accessMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDNSGTMACCESSMODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_SETDNSGTMACCESSMODEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_SETDNSGTMACCESSMODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT SetDnsGtmAccessModeRequest : public RpcServiceRequest { +public: + SetDnsGtmAccessModeRequest(); + ~SetDnsGtmAccessModeRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getStrategyId() const; + void setStrategyId(const std::string &strategyId); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getAccessMode() const; + void setAccessMode(const std::string &accessMode); + +private: + std::string userClientIp_; + std::string strategyId_; + std::string lang_; + std::string accessMode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDNSGTMACCESSMODEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/SetDnsGtmMonitorStatusRequest.h b/alidns/include/alibabacloud/alidns/model/SetDnsGtmMonitorStatusRequest.h index 980febd8c..d1875cf30 100644 --- a/alidns/include/alibabacloud/alidns/model/SetDnsGtmMonitorStatusRequest.h +++ b/alidns/include/alibabacloud/alidns/model/SetDnsGtmMonitorStatusRequest.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_ALIDNS_MODEL_SETDNSGTMMONITORSTATUSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_SETDNSGTMMONITORSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT SetDnsGtmMonitorStatusRequest : public RpcServiceRequest - { - - public: - SetDnsGtmMonitorStatusRequest(); - ~SetDnsGtmMonitorStatusRequest(); - - std::string getMonitorConfigId()const; - void setMonitorConfigId(const std::string& monitorConfigId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string monitorConfigId_; - std::string userClientIp_; - std::string lang_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDNSGTMMONITORSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_SETDNSGTMMONITORSTATUSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_SETDNSGTMMONITORSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT SetDnsGtmMonitorStatusRequest : public RpcServiceRequest { +public: + SetDnsGtmMonitorStatusRequest(); + ~SetDnsGtmMonitorStatusRequest(); + std::string getMonitorConfigId() const; + void setMonitorConfigId(const std::string &monitorConfigId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string monitorConfigId_; + std::string userClientIp_; + std::string lang_; + std::string status_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDNSGTMMONITORSTATUSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/SetDomainDnssecStatusRequest.h b/alidns/include/alibabacloud/alidns/model/SetDomainDnssecStatusRequest.h index 296443c25..2d91dd447 100644 --- a/alidns/include/alibabacloud/alidns/model/SetDomainDnssecStatusRequest.h +++ b/alidns/include/alibabacloud/alidns/model/SetDomainDnssecStatusRequest.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_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT SetDomainDnssecStatusRequest : public RpcServiceRequest - { - - public: - SetDomainDnssecStatusRequest(); - ~SetDomainDnssecStatusRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string domainName_; - std::string userClientIp_; - std::string lang_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT SetDomainDnssecStatusRequest : public RpcServiceRequest { +public: + SetDomainDnssecStatusRequest(); + ~SetDomainDnssecStatusRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string domainName_; + std::string userClientIp_; + std::string lang_; + std::string status_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/SetDomainRecordStatusRequest.h b/alidns/include/alibabacloud/alidns/model/SetDomainRecordStatusRequest.h index 8e12a8c9e..f48cb34dd 100644 --- a/alidns/include/alibabacloud/alidns/model/SetDomainRecordStatusRequest.h +++ b/alidns/include/alibabacloud/alidns/model/SetDomainRecordStatusRequest.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_ALIDNS_MODEL_SETDOMAINRECORDSTATUSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINRECORDSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT SetDomainRecordStatusRequest : public RpcServiceRequest - { - - public: - SetDomainRecordStatusRequest(); - ~SetDomainRecordStatusRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getRecordId()const; - void setRecordId(const std::string& recordId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string accessKeyId_; - std::string recordId_; - std::string userClientIp_; - std::string lang_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINRECORDSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINRECORDSTATUSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINRECORDSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT SetDomainRecordStatusRequest : public RpcServiceRequest { +public: + SetDomainRecordStatusRequest(); + ~SetDomainRecordStatusRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRecordId() const; + void setRecordId(const std::string &recordId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string accessKeyId_; + std::string recordId_; + std::string userClientIp_; + std::string lang_; + std::string status_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINRECORDSTATUSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/SetGtmAccessModeRequest.h b/alidns/include/alibabacloud/alidns/model/SetGtmAccessModeRequest.h index cfeecd40a..45d2208a3 100644 --- a/alidns/include/alibabacloud/alidns/model/SetGtmAccessModeRequest.h +++ b/alidns/include/alibabacloud/alidns/model/SetGtmAccessModeRequest.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_ALIDNS_MODEL_SETGTMACCESSMODEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_SETGTMACCESSMODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT SetGtmAccessModeRequest : public RpcServiceRequest - { - - public: - SetGtmAccessModeRequest(); - ~SetGtmAccessModeRequest(); - - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getStrategyId()const; - void setStrategyId(const std::string& strategyId); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getAccessMode()const; - void setAccessMode(const std::string& accessMode); - - private: - std::string userClientIp_; - std::string strategyId_; - std::string lang_; - std::string accessMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETGTMACCESSMODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_SETGTMACCESSMODEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_SETGTMACCESSMODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT SetGtmAccessModeRequest : public RpcServiceRequest { +public: + SetGtmAccessModeRequest(); + ~SetGtmAccessModeRequest(); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getStrategyId() const; + void setStrategyId(const std::string &strategyId); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getAccessMode() const; + void setAccessMode(const std::string &accessMode); + +private: + std::string userClientIp_; + std::string strategyId_; + std::string lang_; + std::string accessMode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETGTMACCESSMODEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/SetGtmMonitorStatusRequest.h b/alidns/include/alibabacloud/alidns/model/SetGtmMonitorStatusRequest.h index 7040ec524..99502a22e 100644 --- a/alidns/include/alibabacloud/alidns/model/SetGtmMonitorStatusRequest.h +++ b/alidns/include/alibabacloud/alidns/model/SetGtmMonitorStatusRequest.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_ALIDNS_MODEL_SETGTMMONITORSTATUSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_SETGTMMONITORSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT SetGtmMonitorStatusRequest : public RpcServiceRequest - { - - public: - SetGtmMonitorStatusRequest(); - ~SetGtmMonitorStatusRequest(); - - std::string getMonitorConfigId()const; - void setMonitorConfigId(const std::string& monitorConfigId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string monitorConfigId_; - std::string userClientIp_; - std::string lang_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETGTMMONITORSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_SETGTMMONITORSTATUSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_SETGTMMONITORSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT SetGtmMonitorStatusRequest : public RpcServiceRequest { +public: + SetGtmMonitorStatusRequest(); + ~SetGtmMonitorStatusRequest(); + std::string getMonitorConfigId() const; + void setMonitorConfigId(const std::string &monitorConfigId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string monitorConfigId_; + std::string userClientIp_; + std::string lang_; + std::string status_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETGTMMONITORSTATUSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/SubmitIspFlushCacheTaskRequest.h b/alidns/include/alibabacloud/alidns/model/SubmitIspFlushCacheTaskRequest.h new file mode 100644 index 000000000..43beccf40 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/SubmitIspFlushCacheTaskRequest.h @@ -0,0 +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_ALIDNS_MODEL_SUBMITISPFLUSHCACHETASKREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_SUBMITISPFLUSHCACHETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT SubmitIspFlushCacheTaskRequest : public RpcServiceRequest { +public: + SubmitIspFlushCacheTaskRequest(); + ~SubmitIspFlushCacheTaskRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getIsp() const; + void setIsp(const std::vector &isp); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string clientToken_; + std::vector isp_; + std::string domainName_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_SUBMITISPFLUSHCACHETASKREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/SubmitIspFlushCacheTaskResult.h b/alidns/include/alibabacloud/alidns/model/SubmitIspFlushCacheTaskResult.h new file mode 100644 index 000000000..bb2d2aa46 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/SubmitIspFlushCacheTaskResult.h @@ -0,0 +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_ALIDNS_MODEL_SUBMITISPFLUSHCACHETASKRESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_SUBMITISPFLUSHCACHETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT SubmitIspFlushCacheTaskResult : public ServiceResult + { + public: + + + SubmitIspFlushCacheTaskResult(); + explicit SubmitIspFlushCacheTaskResult(const std::string &payload); + ~SubmitIspFlushCacheTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_SUBMITISPFLUSHCACHETASKRESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/SwitchDnsGtmInstanceStrategyModeRequest.h b/alidns/include/alibabacloud/alidns/model/SwitchDnsGtmInstanceStrategyModeRequest.h index 99d234cf9..56a459c74 100644 --- a/alidns/include/alibabacloud/alidns/model/SwitchDnsGtmInstanceStrategyModeRequest.h +++ b/alidns/include/alibabacloud/alidns/model/SwitchDnsGtmInstanceStrategyModeRequest.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_ALIDNS_MODEL_SWITCHDNSGTMINSTANCESTRATEGYMODEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_SWITCHDNSGTMINSTANCESTRATEGYMODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT SwitchDnsGtmInstanceStrategyModeRequest : public RpcServiceRequest - { - - public: - SwitchDnsGtmInstanceStrategyModeRequest(); - ~SwitchDnsGtmInstanceStrategyModeRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getStrategyMode()const; - void setStrategyMode(const std::string& strategyMode); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string userClientIp_; - std::string strategyMode_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_SWITCHDNSGTMINSTANCESTRATEGYMODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_SWITCHDNSGTMINSTANCESTRATEGYMODEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_SWITCHDNSGTMINSTANCESTRATEGYMODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT SwitchDnsGtmInstanceStrategyModeRequest : public RpcServiceRequest { +public: + SwitchDnsGtmInstanceStrategyModeRequest(); + ~SwitchDnsGtmInstanceStrategyModeRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getStrategyMode() const; + void setStrategyMode(const std::string &strategyMode); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string instanceId_; + std::string userClientIp_; + std::string strategyMode_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_SWITCHDNSGTMINSTANCESTRATEGYMODEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/TagResourcesRequest.h b/alidns/include/alibabacloud/alidns/model/TagResourcesRequest.h index fc157e321..16a5b5769 100644 --- a/alidns/include/alibabacloud/alidns/model/TagResourcesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/TagResourcesRequest.h @@ -1,69 +1,61 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT TagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - TagResourcesRequest(); - ~TagResourcesRequest(); - - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getLang()const; - void setLang(const std::string& lang); - bool getOverWrite()const; - void setOverWrite(bool overWrite); - - private: - std::vector resourceId_; - std::string resourceType_; - std::string userClientIp_; - std::vector tag_; - std::string lang_; - bool overWrite_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getLang() const; + void setLang(const std::string &lang); + bool getOverWrite() const; + void setOverWrite(bool overWrite); + +private: + std::vector resourceId_; + std::string resourceType_; + std::string userClientIp_; + std::vector tag_; + std::string lang_; + bool overWrite_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/TransferDomainRequest.h b/alidns/include/alibabacloud/alidns/model/TransferDomainRequest.h index eb9de99ad..8ff454554 100644 --- a/alidns/include/alibabacloud/alidns/model/TransferDomainRequest.h +++ b/alidns/include/alibabacloud/alidns/model/TransferDomainRequest.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_ALIDNS_MODEL_TRANSFERDOMAINREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_TRANSFERDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT TransferDomainRequest : public RpcServiceRequest - { - - public: - TransferDomainRequest(); - ~TransferDomainRequest(); - - std::string getDomainNames()const; - void setDomainNames(const std::string& domainNames); - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getTargetUserId()const; - void setTargetUserId(long targetUserId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainNames_; - std::string remark_; - std::string accessKeyId_; - long targetUserId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_TRANSFERDOMAINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_TRANSFERDOMAINREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_TRANSFERDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT TransferDomainRequest : public RpcServiceRequest { +public: + TransferDomainRequest(); + ~TransferDomainRequest(); + std::string getDomainNames() const; + void setDomainNames(const std::string &domainNames); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getTargetUserId() const; + void setTargetUserId(long targetUserId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainNames_; + std::string remark_; + std::string accessKeyId_; + long targetUserId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_TRANSFERDOMAINREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UnbindInstanceDomainsRequest.h b/alidns/include/alibabacloud/alidns/model/UnbindInstanceDomainsRequest.h index b17a0ffe5..b9cf35a18 100644 --- a/alidns/include/alibabacloud/alidns/model/UnbindInstanceDomainsRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UnbindInstanceDomainsRequest.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_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UnbindInstanceDomainsRequest : public RpcServiceRequest - { - - public: - UnbindInstanceDomainsRequest(); - ~UnbindInstanceDomainsRequest(); - - std::string getDomainNames()const; - void setDomainNames(const std::string& domainNames); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainNames_; - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UnbindInstanceDomainsRequest : public RpcServiceRequest { +public: + UnbindInstanceDomainsRequest(); + ~UnbindInstanceDomainsRequest(); + std::string getDomainNames() const; + void setDomainNames(const std::string &domainNames); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainNames_; + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UntagResourcesRequest.h b/alidns/include/alibabacloud/alidns/model/UntagResourcesRequest.h index 2d87ef33c..e015251f4 100644 --- a/alidns/include/alibabacloud/alidns/model/UntagResourcesRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UntagResourcesRequest.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_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UntagResourcesRequest : public RpcServiceRequest - { - - public: - UntagResourcesRequest(); - ~UntagResourcesRequest(); - - bool getAll()const; - void setAll(bool all); - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - std::vector getTagKey()const; - void setTagKey(const std::vector& tagKey); - - private: - bool all_; - std::vector resourceId_; - std::string resourceType_; - std::string userClientIp_; - std::string lang_; - std::vector tagKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + bool getAll() const; + void setAll(bool all); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + bool all_; + std::vector resourceId_; + std::string resourceType_; + std::string userClientIp_; + std::string lang_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateAppKeyStateRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateAppKeyStateRequest.h index 099f8d92c..ca863a202 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateAppKeyStateRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateAppKeyStateRequest.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_ALIDNS_MODEL_UPDATEAPPKEYSTATEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEAPPKEYSTATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateAppKeyStateRequest : public RpcServiceRequest - { - - public: - UpdateAppKeyStateRequest(); - ~UpdateAppKeyStateRequest(); - - std::string getAppKeyId()const; - void setAppKeyId(const std::string& appKeyId); - std::string getState()const; - void setState(const std::string& state); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string appKeyId_; - std::string state_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEAPPKEYSTATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEAPPKEYSTATEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEAPPKEYSTATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateAppKeyStateRequest : public RpcServiceRequest { +public: + UpdateAppKeyStateRequest(); + ~UpdateAppKeyStateRequest(); + std::string getAppKeyId() const; + void setAppKeyId(const std::string &appKeyId); + std::string getState() const; + void setState(const std::string &state); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string appKeyId_; + std::string state_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEAPPKEYSTATEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateCustomLineRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateCustomLineRequest.h index 581406e4f..92d513a2b 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateCustomLineRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateCustomLineRequest.h @@ -1,66 +1,58 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATECUSTOMLINEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATECUSTOMLINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateCustomLineRequest : public RpcServiceRequest - { - public: - struct IpSegment - { - std::string endIp; - std::string startIp; - }; - - public: - UpdateCustomLineRequest(); - ~UpdateCustomLineRequest(); - - long getLineId()const; - void setLineId(long lineId); - std::vector getIpSegment()const; - void setIpSegment(const std::vector& ipSegment); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLineName()const; - void setLineName(const std::string& lineName); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - long lineId_; - std::vector ipSegment_; - std::string userClientIp_; - std::string lineName_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATECUSTOMLINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATECUSTOMLINEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATECUSTOMLINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateCustomLineRequest : public RpcServiceRequest { +public: + struct IpSegment { + std::string endIp; + std::string startIp; + }; + UpdateCustomLineRequest(); + ~UpdateCustomLineRequest(); + long getLineId() const; + void setLineId(long lineId); + std::vector getIpSegment() const; + void setIpSegment(const std::vector &ipSegment); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLineName() const; + void setLineName(const std::string &lineName); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + long lineId_; + std::vector ipSegment_; + std::string userClientIp_; + std::string lineName_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATECUSTOMLINEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDNSSLBWeightRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDNSSLBWeightRequest.h index a00923c7b..89243dbfa 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDNSSLBWeightRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDNSSLBWeightRequest.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_ALIDNS_MODEL_UPDATEDNSSLBWEIGHTREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSSLBWEIGHTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateDNSSLBWeightRequest : public RpcServiceRequest - { - - public: - UpdateDNSSLBWeightRequest(); - ~UpdateDNSSLBWeightRequest(); - - int getWeight()const; - void setWeight(int weight); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getRecordId()const; - void setRecordId(const std::string& recordId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - int weight_; - std::string accessKeyId_; - std::string recordId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSSLBWEIGHTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSSLBWEIGHTREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSSLBWEIGHTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateDNSSLBWeightRequest : public RpcServiceRequest { +public: + UpdateDNSSLBWeightRequest(); + ~UpdateDNSSLBWeightRequest(); + int getWeight() const; + void setWeight(int weight); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRecordId() const; + void setRecordId(const std::string &recordId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + int weight_; + std::string accessKeyId_; + std::string recordId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSSLBWEIGHTREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDnsCacheDomainRemarkRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDnsCacheDomainRemarkRequest.h index f85973343..65cd2f83f 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDnsCacheDomainRemarkRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDnsCacheDomainRemarkRequest.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_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainRemarkRequest : public RpcServiceRequest - { - - public: - UpdateDnsCacheDomainRemarkRequest(); - ~UpdateDnsCacheDomainRemarkRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string remark_; - std::string accessKeyId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainRemarkRequest : public RpcServiceRequest { +public: + UpdateDnsCacheDomainRemarkRequest(); + ~UpdateDnsCacheDomainRemarkRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string remark_; + std::string accessKeyId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDnsCacheDomainRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDnsCacheDomainRequest.h index f07f71bea..aeaa2884e 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDnsCacheDomainRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDnsCacheDomainRequest.h @@ -1,81 +1,73 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainRequest : public RpcServiceRequest - { - public: - struct SourceDnsServer - { - std::string port; - std::string host; - }; - - public: - UpdateDnsCacheDomainRequest(); - ~UpdateDnsCacheDomainRequest(); - - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getSourceProtocol()const; - void setSourceProtocol(const std::string& sourceProtocol); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - int getCacheTtlMax()const; - void setCacheTtlMax(int cacheTtlMax); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSourceEdns()const; - void setSourceEdns(const std::string& sourceEdns); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getCacheTtlMin()const; - void setCacheTtlMin(int cacheTtlMin); - std::vector getSourceDnsServer()const; - void setSourceDnsServer(const std::vector& sourceDnsServer); - - private: - std::string accessKeyId_; - std::string sourceProtocol_; - std::string lang_; - std::string domainName_; - int cacheTtlMax_; - std::string instanceId_; - std::string sourceEdns_; - std::string userClientIp_; - int cacheTtlMin_; - std::vector sourceDnsServer_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainRequest : public RpcServiceRequest { +public: + struct SourceDnsServer { + std::string port; + std::string host; + }; + UpdateDnsCacheDomainRequest(); + ~UpdateDnsCacheDomainRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSourceProtocol() const; + void setSourceProtocol(const std::string &sourceProtocol); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + int getCacheTtlMax() const; + void setCacheTtlMax(int cacheTtlMax); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getSourceEdns() const; + void setSourceEdns(const std::string &sourceEdns); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getCacheTtlMin() const; + void setCacheTtlMin(int cacheTtlMin); + std::vector getSourceDnsServer() const; + void setSourceDnsServer(const std::vector &sourceDnsServer); + +private: + std::string accessKeyId_; + std::string sourceProtocol_; + std::string lang_; + std::string domainName_; + int cacheTtlMax_; + std::string instanceId_; + std::string sourceEdns_; + std::string userClientIp_; + int cacheTtlMin_; + std::vector sourceDnsServer_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmAccessStrategyRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmAccessStrategyRequest.h index 0494839de..f0b2985a5 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmAccessStrategyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmAccessStrategyRequest.h @@ -1,110 +1,101 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_ALIDNS_MODEL_UPDATEDNSGTMACCESSSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMACCESSSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsGtmAccessStrategyRequest : public RpcServiceRequest - { - public: - struct DefaultAddrPool - { - std::string id; - int lbaWeight; - }; - struct FailoverAddrPool - { - std::string id; - int lbaWeight; - }; - - public: - UpdateDnsGtmAccessStrategyRequest(); - ~UpdateDnsGtmAccessStrategyRequest(); - - std::string getDefaultLbaStrategy()const; - void setDefaultLbaStrategy(const std::string& defaultLbaStrategy); - std::string getFailoverAddrPoolType()const; - void setFailoverAddrPoolType(const std::string& failoverAddrPoolType); - std::string getDefaultAddrPoolType()const; - void setDefaultAddrPoolType(const std::string& defaultAddrPoolType); - int getFailoverMaxReturnAddrNum()const; - void setFailoverMaxReturnAddrNum(int failoverMaxReturnAddrNum); - std::string getFailoverLbaStrategy()const; - void setFailoverLbaStrategy(const std::string& failoverLbaStrategy); - std::vector getDefaultAddrPool()const; - void setDefaultAddrPool(const std::vector& defaultAddrPool); - int getFailoverMinAvailableAddrNum()const; - void setFailoverMinAvailableAddrNum(int failoverMinAvailableAddrNum); - int getDefaultMaxReturnAddrNum()const; - void setDefaultMaxReturnAddrNum(int defaultMaxReturnAddrNum); - int getDefaultMinAvailableAddrNum()const; - void setDefaultMinAvailableAddrNum(int defaultMinAvailableAddrNum); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getLines()const; - void setLines(const std::string& lines); - std::string getStrategyName()const; - void setStrategyName(const std::string& strategyName); - std::string getDefaultLatencyOptimization()const; - void setDefaultLatencyOptimization(const std::string& defaultLatencyOptimization); - std::string getFailoverLatencyOptimization()const; - void setFailoverLatencyOptimization(const std::string& failoverLatencyOptimization); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getStrategyId()const; - void setStrategyId(const std::string& strategyId); - std::vector getFailoverAddrPool()const; - void setFailoverAddrPool(const std::vector& failoverAddrPool); - std::string getAccessMode()const; - void setAccessMode(const std::string& accessMode); - - private: - std::string defaultLbaStrategy_; - std::string failoverAddrPoolType_; - std::string defaultAddrPoolType_; - int failoverMaxReturnAddrNum_; - std::string failoverLbaStrategy_; - std::vector defaultAddrPool_; - int failoverMinAvailableAddrNum_; - int defaultMaxReturnAddrNum_; - int defaultMinAvailableAddrNum_; - std::string lang_; - std::string lines_; - std::string strategyName_; - std::string defaultLatencyOptimization_; - std::string failoverLatencyOptimization_; - std::string userClientIp_; - std::string strategyId_; - std::vector failoverAddrPool_; - std::string accessMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMACCESSSTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMACCESSSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMACCESSSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsGtmAccessStrategyRequest : public RpcServiceRequest { +public: + struct DefaultAddrPool { + std::string id; + int lbaWeight; + }; + struct FailoverAddrPool { + std::string id; + int lbaWeight; + }; + UpdateDnsGtmAccessStrategyRequest(); + ~UpdateDnsGtmAccessStrategyRequest(); + std::string getDefaultLbaStrategy() const; + void setDefaultLbaStrategy(const std::string &defaultLbaStrategy); + std::string getFailoverAddrPoolType() const; + void setFailoverAddrPoolType(const std::string &failoverAddrPoolType); + std::string getDefaultAddrPoolType() const; + void setDefaultAddrPoolType(const std::string &defaultAddrPoolType); + int getFailoverMaxReturnAddrNum() const; + void setFailoverMaxReturnAddrNum(int failoverMaxReturnAddrNum); + std::string getFailoverLbaStrategy() const; + void setFailoverLbaStrategy(const std::string &failoverLbaStrategy); + std::vector getDefaultAddrPool() const; + void setDefaultAddrPool(const std::vector &defaultAddrPool); + int getFailoverMinAvailableAddrNum() const; + void setFailoverMinAvailableAddrNum(int failoverMinAvailableAddrNum); + int getDefaultMaxReturnAddrNum() const; + void setDefaultMaxReturnAddrNum(int defaultMaxReturnAddrNum); + int getDefaultMinAvailableAddrNum() const; + void setDefaultMinAvailableAddrNum(int defaultMinAvailableAddrNum); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getLines() const; + void setLines(const std::string &lines); + std::string getStrategyName() const; + void setStrategyName(const std::string &strategyName); + std::string getDefaultLatencyOptimization() const; + void setDefaultLatencyOptimization(const std::string &defaultLatencyOptimization); + std::string getFailoverLatencyOptimization() const; + void setFailoverLatencyOptimization(const std::string &failoverLatencyOptimization); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getStrategyId() const; + void setStrategyId(const std::string &strategyId); + std::vector getFailoverAddrPool() const; + void setFailoverAddrPool(const std::vector &failoverAddrPool); + std::string getAccessMode() const; + void setAccessMode(const std::string &accessMode); + +private: + std::string defaultLbaStrategy_; + std::string failoverAddrPoolType_; + std::string defaultAddrPoolType_; + int failoverMaxReturnAddrNum_; + std::string failoverLbaStrategy_; + std::vector defaultAddrPool_; + int failoverMinAvailableAddrNum_; + int defaultMaxReturnAddrNum_; + int defaultMinAvailableAddrNum_; + std::string lang_; + std::string lines_; + std::string strategyName_; + std::string defaultLatencyOptimization_; + std::string failoverLatencyOptimization_; + std::string userClientIp_; + std::string strategyId_; + std::vector failoverAddrPool_; + std::string accessMode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMACCESSSTRATEGYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmAddressPoolRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmAddressPoolRequest.h index ea8a22403..7d7ad317c 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmAddressPoolRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmAddressPoolRequest.h @@ -1,72 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_ALIDNS_MODEL_UPDATEDNSGTMADDRESSPOOLREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMADDRESSPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsGtmAddressPoolRequest : public RpcServiceRequest - { - public: - struct Addr - { - std::string mode; - std::string attributeInfo; - std::string remark; - std::string addr; - int lbaWeight; - }; - - public: - UpdateDnsGtmAddressPoolRequest(); - ~UpdateDnsGtmAddressPoolRequest(); - - std::string getLbaStrategy()const; - void setLbaStrategy(const std::string& lbaStrategy); - std::string getAddrPoolId()const; - void setAddrPoolId(const std::string& addrPoolId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getName()const; - void setName(const std::string& name); - std::string getLang()const; - void setLang(const std::string& lang); - std::vector getAddr()const; - void setAddr(const std::vector& addr); - - private: - std::string lbaStrategy_; - std::string addrPoolId_; - std::string userClientIp_; - std::string name_; - std::string lang_; - std::vector addr_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMADDRESSPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMADDRESSPOOLREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMADDRESSPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsGtmAddressPoolRequest : public RpcServiceRequest { +public: + struct Addr { + std::string attributeInfo; + std::string mode; + std::string remark; + int lbaWeight; + std::string addr; + }; + UpdateDnsGtmAddressPoolRequest(); + ~UpdateDnsGtmAddressPoolRequest(); + std::string getLbaStrategy() const; + void setLbaStrategy(const std::string &lbaStrategy); + std::string getAddrPoolId() const; + void setAddrPoolId(const std::string &addrPoolId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getName() const; + void setName(const std::string &name); + std::string getLang() const; + void setLang(const std::string &lang); + std::vector getAddr() const; + void setAddr(const std::vector &addr); + +private: + std::string lbaStrategy_; + std::string addrPoolId_; + std::string userClientIp_; + std::string name_; + std::string lang_; + std::vector addr_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMADDRESSPOOLREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmInstanceGlobalConfigRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmInstanceGlobalConfigRequest.h index 33338856f..7c9a814ac 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmInstanceGlobalConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmInstanceGlobalConfigRequest.h @@ -1,92 +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_ALIDNS_MODEL_UPDATEDNSGTMINSTANCEGLOBALCONFIGREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMINSTANCEGLOBALCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsGtmInstanceGlobalConfigRequest : public RpcServiceRequest - { - public: - struct AlertConfig - { - bool dingtalkNotice; - bool smsNotice; - std::string noticeType; - bool emailNotice; - }; - - public: - UpdateDnsGtmInstanceGlobalConfigRequest(); - ~UpdateDnsGtmInstanceGlobalConfigRequest(); - - std::string getAlertGroup()const; - void setAlertGroup(const std::string& alertGroup); - std::string getCnameType()const; - void setCnameType(const std::string& cnameType); - std::string getLang()const; - void setLang(const std::string& lang); - std::vector getAlertConfig()const; - void setAlertConfig(const std::vector& alertConfig); - std::string getPublicCnameMode()const; - void setPublicCnameMode(const std::string& publicCnameMode); - std::string getPublicUserDomainName()const; - void setPublicUserDomainName(const std::string& publicUserDomainName); - int getTtl()const; - void setTtl(int ttl); - bool getForceUpdate()const; - void setForceUpdate(bool forceUpdate); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getPublicRr()const; - void setPublicRr(const std::string& publicRr); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getPublicZoneName()const; - void setPublicZoneName(const std::string& publicZoneName); - - private: - std::string alertGroup_; - std::string cnameType_; - std::string lang_; - std::vector alertConfig_; - std::string publicCnameMode_; - std::string publicUserDomainName_; - int ttl_; - bool forceUpdate_; - std::string instanceId_; - std::string instanceName_; - std::string publicRr_; - std::string userClientIp_; - std::string publicZoneName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMINSTANCEGLOBALCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMINSTANCEGLOBALCONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMINSTANCEGLOBALCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsGtmInstanceGlobalConfigRequest : public RpcServiceRequest { +public: + struct AlertConfig { + bool dingtalkNotice; + bool smsNotice; + std::string noticeType; + bool emailNotice; + }; + UpdateDnsGtmInstanceGlobalConfigRequest(); + ~UpdateDnsGtmInstanceGlobalConfigRequest(); + std::string getAlertGroup() const; + void setAlertGroup(const std::string &alertGroup); + std::string getCnameType() const; + void setCnameType(const std::string &cnameType); + std::string getLang() const; + void setLang(const std::string &lang); + std::vector getAlertConfig() const; + void setAlertConfig(const std::vector &alertConfig); + std::string getPublicCnameMode() const; + void setPublicCnameMode(const std::string &publicCnameMode); + std::string getPublicUserDomainName() const; + void setPublicUserDomainName(const std::string &publicUserDomainName); + int getTtl() const; + void setTtl(int ttl); + bool getForceUpdate() const; + void setForceUpdate(bool forceUpdate); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getPublicRr() const; + void setPublicRr(const std::string &publicRr); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getPublicZoneName() const; + void setPublicZoneName(const std::string &publicZoneName); + +private: + std::string alertGroup_; + std::string cnameType_; + std::string lang_; + std::vector alertConfig_; + std::string publicCnameMode_; + std::string publicUserDomainName_; + int ttl_; + bool forceUpdate_; + std::string instanceId_; + std::string instanceName_; + std::string publicRr_; + std::string userClientIp_; + std::string publicZoneName_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMINSTANCEGLOBALCONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmMonitorRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmMonitorRequest.h index c36d0d3ed..12eb1be09 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmMonitorRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDnsGtmMonitorRequest.h @@ -1,78 +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_ALIDNS_MODEL_UPDATEDNSGTMMONITORREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsGtmMonitorRequest : public RpcServiceRequest - { - public: - struct IspCityNode - { - std::string cityCode; - std::string ispCode; - }; - - public: - UpdateDnsGtmMonitorRequest(); - ~UpdateDnsGtmMonitorRequest(); - - std::string getMonitorExtendInfo()const; - void setMonitorExtendInfo(const std::string& monitorExtendInfo); - std::string getMonitorConfigId()const; - void setMonitorConfigId(const std::string& monitorConfigId); - int getTimeout()const; - void setTimeout(int timeout); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getEvaluationCount()const; - void setEvaluationCount(int evaluationCount); - std::string getProtocolType()const; - void setProtocolType(const std::string& protocolType); - int getInterval()const; - void setInterval(int interval); - std::string getLang()const; - void setLang(const std::string& lang); - std::vector getIspCityNode()const; - void setIspCityNode(const std::vector& ispCityNode); - - private: - std::string monitorExtendInfo_; - std::string monitorConfigId_; - int timeout_; - std::string userClientIp_; - int evaluationCount_; - std::string protocolType_; - int interval_; - std::string lang_; - std::vector ispCityNode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMMONITORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMMONITORREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsGtmMonitorRequest : public RpcServiceRequest { +public: + struct IspCityNode { + std::string cityCode; + std::string ispCode; + }; + UpdateDnsGtmMonitorRequest(); + ~UpdateDnsGtmMonitorRequest(); + std::string getMonitorExtendInfo() const; + void setMonitorExtendInfo(const std::string &monitorExtendInfo); + std::string getMonitorConfigId() const; + void setMonitorConfigId(const std::string &monitorConfigId); + int getTimeout() const; + void setTimeout(int timeout); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getEvaluationCount() const; + void setEvaluationCount(int evaluationCount); + std::string getProtocolType() const; + void setProtocolType(const std::string &protocolType); + int getInterval() const; + void setInterval(int interval); + std::string getLang() const; + void setLang(const std::string &lang); + std::vector getIspCityNode() const; + void setIspCityNode(const std::vector &ispCityNode); + +private: + std::string monitorExtendInfo_; + std::string monitorConfigId_; + int timeout_; + std::string userClientIp_; + int evaluationCount_; + std::string protocolType_; + int interval_; + std::string lang_; + std::vector ispCityNode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSGTMMONITORREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDomainGroupRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDomainGroupRequest.h index f38d6aea4..e46ffc479 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDomainGroupRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDomainGroupRequest.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_ALIDNS_MODEL_UPDATEDOMAINGROUPREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateDomainGroupRequest : public RpcServiceRequest - { - - public: - UpdateDomainGroupRequest(); - ~UpdateDomainGroupRequest(); - - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string groupId_; - std::string groupName_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINGROUPREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateDomainGroupRequest : public RpcServiceRequest { +public: + UpdateDomainGroupRequest(); + ~UpdateDomainGroupRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string groupId_; + std::string groupName_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINGROUPREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDomainRecordRemarkRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDomainRecordRemarkRequest.h index 03eab2a71..f0cb9b9d4 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDomainRecordRemarkRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDomainRecordRemarkRequest.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_ALIDNS_MODEL_UPDATEDOMAINRECORDREMARKREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINRECORDREMARKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateDomainRecordRemarkRequest : public RpcServiceRequest - { - - public: - UpdateDomainRecordRemarkRequest(); - ~UpdateDomainRecordRemarkRequest(); - - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getRecordId()const; - void setRecordId(const std::string& recordId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string remark_; - std::string accessKeyId_; - std::string recordId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINRECORDREMARKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINRECORDREMARKREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINRECORDREMARKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateDomainRecordRemarkRequest : public RpcServiceRequest { +public: + UpdateDomainRecordRemarkRequest(); + ~UpdateDomainRecordRemarkRequest(); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRecordId() const; + void setRecordId(const std::string &recordId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string remark_; + std::string accessKeyId_; + std::string recordId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINRECORDREMARKREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDomainRecordRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDomainRecordRequest.h index 926cfb81e..b6b56e995 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDomainRecordRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDomainRecordRequest.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_ALIDNS_MODEL_UPDATEDOMAINRECORDREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINRECORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateDomainRecordRequest : public RpcServiceRequest - { - - public: - UpdateDomainRecordRequest(); - ~UpdateDomainRecordRequest(); - - std::string getRR()const; - void setRR(const std::string& rR); - std::string getLine()const; - void setLine(const std::string& line); - std::string getType()const; - void setType(const std::string& type); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getValue()const; - void setValue(const std::string& value); - long getPriority()const; - void setPriority(long priority); - long getTTL()const; - void setTTL(long tTL); - std::string getRecordId()const; - void setRecordId(const std::string& recordId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - - private: - std::string rR_; - std::string line_; - std::string type_; - std::string accessKeyId_; - std::string lang_; - std::string value_; - long priority_; - long tTL_; - std::string recordId_; - std::string userClientIp_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINRECORDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINRECORDREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINRECORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateDomainRecordRequest : public RpcServiceRequest { +public: + UpdateDomainRecordRequest(); + ~UpdateDomainRecordRequest(); + std::string getRR() const; + void setRR(const std::string &rR); + std::string getLine() const; + void setLine(const std::string &line); + std::string getType() const; + void setType(const std::string &type); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getValue() const; + void setValue(const std::string &value); + long getPriority() const; + void setPriority(long priority); + long getTTL() const; + void setTTL(long tTL); + std::string getRecordId() const; + void setRecordId(const std::string &recordId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + +private: + std::string rR_; + std::string line_; + std::string type_; + std::string accessKeyId_; + std::string lang_; + std::string value_; + long priority_; + long tTL_; + std::string recordId_; + std::string userClientIp_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINRECORDREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateDomainRemarkRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateDomainRemarkRequest.h index 94e9c6716..37364b242 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateDomainRemarkRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateDomainRemarkRequest.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_ALIDNS_MODEL_UPDATEDOMAINREMARKREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINREMARKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateDomainRemarkRequest : public RpcServiceRequest - { - - public: - UpdateDomainRemarkRequest(); - ~UpdateDomainRemarkRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string domainName_; - std::string remark_; - std::string accessKeyId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINREMARKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINREMARKREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINREMARKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateDomainRemarkRequest : public RpcServiceRequest { +public: + UpdateDomainRemarkRequest(); + ~UpdateDomainRemarkRequest(); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string domainName_; + std::string remark_; + std::string accessKeyId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDOMAINREMARKREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateGtmAccessStrategyRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateGtmAccessStrategyRequest.h index ceb96e12f..2256a95d6 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateGtmAccessStrategyRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateGtmAccessStrategyRequest.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_ALIDNS_MODEL_UPDATEGTMACCESSSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMACCESSSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateGtmAccessStrategyRequest : public RpcServiceRequest - { - - public: - UpdateGtmAccessStrategyRequest(); - ~UpdateGtmAccessStrategyRequest(); - - std::string getDefaultAddrPoolId()const; - void setDefaultAddrPoolId(const std::string& defaultAddrPoolId); - std::string getFailoverAddrPoolId()const; - void setFailoverAddrPoolId(const std::string& failoverAddrPoolId); - std::string getStrategyName()const; - void setStrategyName(const std::string& strategyName); - std::string getAccessLines()const; - void setAccessLines(const std::string& accessLines); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getStrategyId()const; - void setStrategyId(const std::string& strategyId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string defaultAddrPoolId_; - std::string failoverAddrPoolId_; - std::string strategyName_; - std::string accessLines_; - std::string userClientIp_; - std::string strategyId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMACCESSSTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMACCESSSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMACCESSSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateGtmAccessStrategyRequest : public RpcServiceRequest { +public: + UpdateGtmAccessStrategyRequest(); + ~UpdateGtmAccessStrategyRequest(); + std::string getDefaultAddrPoolId() const; + void setDefaultAddrPoolId(const std::string &defaultAddrPoolId); + std::string getFailoverAddrPoolId() const; + void setFailoverAddrPoolId(const std::string &failoverAddrPoolId); + std::string getStrategyName() const; + void setStrategyName(const std::string &strategyName); + std::string getAccessLines() const; + void setAccessLines(const std::string &accessLines); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getStrategyId() const; + void setStrategyId(const std::string &strategyId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string defaultAddrPoolId_; + std::string failoverAddrPoolId_; + std::string strategyName_; + std::string accessLines_; + std::string userClientIp_; + std::string strategyId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMACCESSSTRATEGYREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateGtmAddressPoolRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateGtmAddressPoolRequest.h index ba13a98f3..5ae7191a7 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateGtmAddressPoolRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateGtmAddressPoolRequest.h @@ -1,73 +1,65 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_ALIDNS_MODEL_UPDATEGTMADDRESSPOOLREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMADDRESSPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateGtmAddressPoolRequest : public RpcServiceRequest - { - public: - struct Addr - { - std::string mode; - int lbaWeight; - std::string value; - }; - - public: - UpdateGtmAddressPoolRequest(); - ~UpdateGtmAddressPoolRequest(); - - std::string getType()const; - void setType(const std::string& type); - int getMinAvailableAddrNum()const; - void setMinAvailableAddrNum(int minAvailableAddrNum); - std::string getAddrPoolId()const; - void setAddrPoolId(const std::string& addrPoolId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getName()const; - void setName(const std::string& name); - std::string getLang()const; - void setLang(const std::string& lang); - std::vector getAddr()const; - void setAddr(const std::vector& addr); - - private: - std::string type_; - int minAvailableAddrNum_; - std::string addrPoolId_; - std::string userClientIp_; - std::string name_; - std::string lang_; - std::vector addr_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMADDRESSPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMADDRESSPOOLREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMADDRESSPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateGtmAddressPoolRequest : public RpcServiceRequest { +public: + struct Addr { + std::string mode; + int lbaWeight; + std::string value; + }; + UpdateGtmAddressPoolRequest(); + ~UpdateGtmAddressPoolRequest(); + std::string getType() const; + void setType(const std::string &type); + int getMinAvailableAddrNum() const; + void setMinAvailableAddrNum(int minAvailableAddrNum); + std::string getAddrPoolId() const; + void setAddrPoolId(const std::string &addrPoolId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getName() const; + void setName(const std::string &name); + std::string getLang() const; + void setLang(const std::string &lang); + std::vector getAddr() const; + void setAddr(const std::vector &addr); + +private: + std::string type_; + int minAvailableAddrNum_; + std::string addrPoolId_; + std::string userClientIp_; + std::string name_; + std::string lang_; + std::vector addr_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMADDRESSPOOLREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateGtmInstanceGlobalConfigRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateGtmInstanceGlobalConfigRequest.h index d6a699abb..221263520 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateGtmInstanceGlobalConfigRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateGtmInstanceGlobalConfigRequest.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_ALIDNS_MODEL_UPDATEGTMINSTANCEGLOBALCONFIGREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMINSTANCEGLOBALCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateGtmInstanceGlobalConfigRequest : public RpcServiceRequest - { - - public: - UpdateGtmInstanceGlobalConfigRequest(); - ~UpdateGtmInstanceGlobalConfigRequest(); - - std::string getAlertGroup()const; - void setAlertGroup(const std::string& alertGroup); - std::string getCnameMode()const; - void setCnameMode(const std::string& cnameMode); - std::string getLbaStrategy()const; - void setLbaStrategy(const std::string& lbaStrategy); - int getTtl()const; - void setTtl(int ttl); - std::string getCnameCustomDomainName()const; - void setCnameCustomDomainName(const std::string& cnameCustomDomainName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getUserDomainName()const; - void setUserDomainName(const std::string& userDomainName); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string alertGroup_; - std::string cnameMode_; - std::string lbaStrategy_; - int ttl_; - std::string cnameCustomDomainName_; - std::string instanceId_; - std::string instanceName_; - std::string userDomainName_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMINSTANCEGLOBALCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMINSTANCEGLOBALCONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMINSTANCEGLOBALCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateGtmInstanceGlobalConfigRequest : public RpcServiceRequest { +public: + UpdateGtmInstanceGlobalConfigRequest(); + ~UpdateGtmInstanceGlobalConfigRequest(); + std::string getAlertGroup() const; + void setAlertGroup(const std::string &alertGroup); + std::string getCnameMode() const; + void setCnameMode(const std::string &cnameMode); + std::string getLbaStrategy() const; + void setLbaStrategy(const std::string &lbaStrategy); + int getTtl() const; + void setTtl(int ttl); + std::string getCnameCustomDomainName() const; + void setCnameCustomDomainName(const std::string &cnameCustomDomainName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getUserDomainName() const; + void setUserDomainName(const std::string &userDomainName); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string alertGroup_; + std::string cnameMode_; + std::string lbaStrategy_; + int ttl_; + std::string cnameCustomDomainName_; + std::string instanceId_; + std::string instanceName_; + std::string userDomainName_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMINSTANCEGLOBALCONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateGtmMonitorRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateGtmMonitorRequest.h index 57ebe8fc8..3cd0994ca 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateGtmMonitorRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateGtmMonitorRequest.h @@ -1,78 +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_ALIDNS_MODEL_UPDATEGTMMONITORREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateGtmMonitorRequest : public RpcServiceRequest - { - public: - struct IspCityNode - { - std::string cityCode; - std::string ispCode; - }; - - public: - UpdateGtmMonitorRequest(); - ~UpdateGtmMonitorRequest(); - - std::string getMonitorExtendInfo()const; - void setMonitorExtendInfo(const std::string& monitorExtendInfo); - std::string getMonitorConfigId()const; - void setMonitorConfigId(const std::string& monitorConfigId); - int getTimeout()const; - void setTimeout(int timeout); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - int getEvaluationCount()const; - void setEvaluationCount(int evaluationCount); - std::string getProtocolType()const; - void setProtocolType(const std::string& protocolType); - int getInterval()const; - void setInterval(int interval); - std::string getLang()const; - void setLang(const std::string& lang); - std::vector getIspCityNode()const; - void setIspCityNode(const std::vector& ispCityNode); - - private: - std::string monitorExtendInfo_; - std::string monitorConfigId_; - int timeout_; - std::string userClientIp_; - int evaluationCount_; - std::string protocolType_; - int interval_; - std::string lang_; - std::vector ispCityNode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMMONITORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMMONITORREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateGtmMonitorRequest : public RpcServiceRequest { +public: + struct IspCityNode { + std::string cityCode; + std::string ispCode; + }; + UpdateGtmMonitorRequest(); + ~UpdateGtmMonitorRequest(); + std::string getMonitorExtendInfo() const; + void setMonitorExtendInfo(const std::string &monitorExtendInfo); + std::string getMonitorConfigId() const; + void setMonitorConfigId(const std::string &monitorConfigId); + int getTimeout() const; + void setTimeout(int timeout); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + int getEvaluationCount() const; + void setEvaluationCount(int evaluationCount); + std::string getProtocolType() const; + void setProtocolType(const std::string &protocolType); + int getInterval() const; + void setInterval(int interval); + std::string getLang() const; + void setLang(const std::string &lang); + std::vector getIspCityNode() const; + void setIspCityNode(const std::vector &ispCityNode); + +private: + std::string monitorExtendInfo_; + std::string monitorConfigId_; + int timeout_; + std::string userClientIp_; + int evaluationCount_; + std::string protocolType_; + int interval_; + std::string lang_; + std::vector ispCityNode_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMMONITORREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateGtmRecoveryPlanRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateGtmRecoveryPlanRequest.h index 0219d9095..96a06e278 100644 --- a/alidns/include/alibabacloud/alidns/model/UpdateGtmRecoveryPlanRequest.h +++ b/alidns/include/alibabacloud/alidns/model/UpdateGtmRecoveryPlanRequest.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_ALIDNS_MODEL_UPDATEGTMRECOVERYPLANREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMRECOVERYPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT UpdateGtmRecoveryPlanRequest : public RpcServiceRequest - { - - public: - UpdateGtmRecoveryPlanRequest(); - ~UpdateGtmRecoveryPlanRequest(); - - std::string getFaultAddrPool()const; - void setFaultAddrPool(const std::string& faultAddrPool); - std::string getRemark()const; - void setRemark(const std::string& remark); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getName()const; - void setName(const std::string& name); - long getRecoveryPlanId()const; - void setRecoveryPlanId(long recoveryPlanId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string faultAddrPool_; - std::string remark_; - std::string userClientIp_; - std::string name_; - long recoveryPlanId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMRECOVERYPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMRECOVERYPLANREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMRECOVERYPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateGtmRecoveryPlanRequest : public RpcServiceRequest { +public: + UpdateGtmRecoveryPlanRequest(); + ~UpdateGtmRecoveryPlanRequest(); + std::string getFaultAddrPool() const; + void setFaultAddrPool(const std::string &faultAddrPool); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getName() const; + void setName(const std::string &name); + long getRecoveryPlanId() const; + void setRecoveryPlanId(long recoveryPlanId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string faultAddrPool_; + std::string remark_; + std::string userClientIp_; + std::string name_; + long recoveryPlanId_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEGTMRECOVERYPLANREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateIspFlushCacheInstanceConfigRequest.h b/alidns/include/alibabacloud/alidns/model/UpdateIspFlushCacheInstanceConfigRequest.h new file mode 100644 index 000000000..f80b84097 --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/UpdateIspFlushCacheInstanceConfigRequest.h @@ -0,0 +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_ALIDNS_MODEL_UPDATEISPFLUSHCACHEINSTANCECONFIGREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEISPFLUSHCACHEINSTANCECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT UpdateIspFlushCacheInstanceConfigRequest : public RpcServiceRequest { +public: + UpdateIspFlushCacheInstanceConfigRequest(); + ~UpdateIspFlushCacheInstanceConfigRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string instanceId_; + std::string instanceName_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEISPFLUSHCACHEINSTANCECONFIGREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/UpdateIspFlushCacheInstanceConfigResult.h b/alidns/include/alibabacloud/alidns/model/UpdateIspFlushCacheInstanceConfigResult.h new file mode 100644 index 000000000..93756373a --- /dev/null +++ b/alidns/include/alibabacloud/alidns/model/UpdateIspFlushCacheInstanceConfigResult.h @@ -0,0 +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_ALIDNS_MODEL_UPDATEISPFLUSHCACHEINSTANCECONFIGRESULT_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEISPFLUSHCACHEINSTANCECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alidns + { + namespace Model + { + class ALIBABACLOUD_ALIDNS_EXPORT UpdateIspFlushCacheInstanceConfigResult : public ServiceResult + { + public: + + + UpdateIspFlushCacheInstanceConfigResult(); + explicit UpdateIspFlushCacheInstanceConfigResult(const std::string &payload); + ~UpdateIspFlushCacheInstanceConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEISPFLUSHCACHEINSTANCECONFIGRESULT_H_ \ No newline at end of file diff --git a/alidns/include/alibabacloud/alidns/model/ValidateDnsGtmCnameRrCanUseRequest.h b/alidns/include/alibabacloud/alidns/model/ValidateDnsGtmCnameRrCanUseRequest.h index d3a0e4535..c0d4f479d 100644 --- a/alidns/include/alibabacloud/alidns/model/ValidateDnsGtmCnameRrCanUseRequest.h +++ b/alidns/include/alibabacloud/alidns/model/ValidateDnsGtmCnameRrCanUseRequest.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_ALIDNS_MODEL_VALIDATEDNSGTMCNAMERRCANUSEREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_VALIDATEDNSGTMCNAMERRCANUSEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT ValidateDnsGtmCnameRrCanUseRequest : public RpcServiceRequest - { - - public: - ValidateDnsGtmCnameRrCanUseRequest(); - ~ValidateDnsGtmCnameRrCanUseRequest(); - - std::string getCnameMode()const; - void setCnameMode(const std::string& cnameMode); - std::string getCnameZone()const; - void setCnameZone(const std::string& cnameZone); - std::string getCnameRr()const; - void setCnameRr(const std::string& cnameRr); - std::string getCnameType()const; - void setCnameType(const std::string& cnameType); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUserClientIp()const; - void setUserClientIp(const std::string& userClientIp); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string cnameMode_; - std::string cnameZone_; - std::string cnameRr_; - std::string cnameType_; - std::string instanceId_; - std::string userClientIp_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_VALIDATEDNSGTMCNAMERRCANUSEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_VALIDATEDNSGTMCNAMERRCANUSEREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_VALIDATEDNSGTMCNAMERRCANUSEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT ValidateDnsGtmCnameRrCanUseRequest : public RpcServiceRequest { +public: + ValidateDnsGtmCnameRrCanUseRequest(); + ~ValidateDnsGtmCnameRrCanUseRequest(); + std::string getCnameMode() const; + void setCnameMode(const std::string &cnameMode); + std::string getCnameZone() const; + void setCnameZone(const std::string &cnameZone); + std::string getCnameRr() const; + void setCnameRr(const std::string &cnameRr); + std::string getCnameType() const; + void setCnameType(const std::string &cnameType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserClientIp() const; + void setUserClientIp(const std::string &userClientIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string cnameMode_; + std::string cnameZone_; + std::string cnameRr_; + std::string cnameType_; + std::string instanceId_; + std::string userClientIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_VALIDATEDNSGTMCNAMERRCANUSEREQUEST_H_ diff --git a/alidns/include/alibabacloud/alidns/model/ValidatePdnsUdpIpSegmentRequest.h b/alidns/include/alibabacloud/alidns/model/ValidatePdnsUdpIpSegmentRequest.h index f46724a64..1f633dc7e 100644 --- a/alidns/include/alibabacloud/alidns/model/ValidatePdnsUdpIpSegmentRequest.h +++ b/alidns/include/alibabacloud/alidns/model/ValidatePdnsUdpIpSegmentRequest.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_ALIDNS_MODEL_VALIDATEPDNSUDPIPSEGMENTREQUEST_H_ -#define ALIBABACLOUD_ALIDNS_MODEL_VALIDATEPDNSUDPIPSEGMENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Alidns - { - namespace Model - { - class ALIBABACLOUD_ALIDNS_EXPORT ValidatePdnsUdpIpSegmentRequest : public RpcServiceRequest - { - - public: - ValidatePdnsUdpIpSegmentRequest(); - ~ValidatePdnsUdpIpSegmentRequest(); - - std::string getIp()const; - void setIp(const std::string& ip); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string ip_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ALIDNS_MODEL_VALIDATEPDNSUDPIPSEGMENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ALIDNS_MODEL_VALIDATEPDNSUDPIPSEGMENTREQUEST_H_ +#define ALIBABACLOUD_ALIDNS_MODEL_VALIDATEPDNSUDPIPSEGMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alidns { +namespace Model { +class ALIBABACLOUD_ALIDNS_EXPORT ValidatePdnsUdpIpSegmentRequest : public RpcServiceRequest { +public: + ValidatePdnsUdpIpSegmentRequest(); + ~ValidatePdnsUdpIpSegmentRequest(); + std::string getIp() const; + void setIp(const std::string &ip); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string ip_; + std::string lang_; +}; +} // namespace Model +} // namespace Alidns +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALIDNS_MODEL_VALIDATEPDNSUDPIPSEGMENTREQUEST_H_ diff --git a/alidns/src/AlidnsClient.cc b/alidns/src/AlidnsClient.cc index f95509692..8078dcbbf 100644 --- a/alidns/src/AlidnsClient.cc +++ b/alidns/src/AlidnsClient.cc @@ -2427,6 +2427,42 @@ AlidnsClient::DescribeDomainRecordsOutcomeCallable AlidnsClient::describeDomainR return task->get_future(); } +AlidnsClient::DescribeDomainResolveStatisticsSummaryOutcome AlidnsClient::describeDomainResolveStatisticsSummary(const DescribeDomainResolveStatisticsSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDomainResolveStatisticsSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDomainResolveStatisticsSummaryOutcome(DescribeDomainResolveStatisticsSummaryResult(outcome.result())); + else + return DescribeDomainResolveStatisticsSummaryOutcome(outcome.error()); +} + +void AlidnsClient::describeDomainResolveStatisticsSummaryAsync(const DescribeDomainResolveStatisticsSummaryRequest& request, const DescribeDomainResolveStatisticsSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDomainResolveStatisticsSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DescribeDomainResolveStatisticsSummaryOutcomeCallable AlidnsClient::describeDomainResolveStatisticsSummaryCallable(const DescribeDomainResolveStatisticsSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDomainResolveStatisticsSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::DescribeDomainStatisticsOutcome AlidnsClient::describeDomainStatistics(const DescribeDomainStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3147,6 +3183,150 @@ AlidnsClient::DescribeInstanceDomainsOutcomeCallable AlidnsClient::describeInsta return task->get_future(); } +AlidnsClient::DescribeIspFlushCacheInstancesOutcome AlidnsClient::describeIspFlushCacheInstances(const DescribeIspFlushCacheInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIspFlushCacheInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIspFlushCacheInstancesOutcome(DescribeIspFlushCacheInstancesResult(outcome.result())); + else + return DescribeIspFlushCacheInstancesOutcome(outcome.error()); +} + +void AlidnsClient::describeIspFlushCacheInstancesAsync(const DescribeIspFlushCacheInstancesRequest& request, const DescribeIspFlushCacheInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIspFlushCacheInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DescribeIspFlushCacheInstancesOutcomeCallable AlidnsClient::describeIspFlushCacheInstancesCallable(const DescribeIspFlushCacheInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIspFlushCacheInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlidnsClient::DescribeIspFlushCacheRemainQuotaOutcome AlidnsClient::describeIspFlushCacheRemainQuota(const DescribeIspFlushCacheRemainQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIspFlushCacheRemainQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIspFlushCacheRemainQuotaOutcome(DescribeIspFlushCacheRemainQuotaResult(outcome.result())); + else + return DescribeIspFlushCacheRemainQuotaOutcome(outcome.error()); +} + +void AlidnsClient::describeIspFlushCacheRemainQuotaAsync(const DescribeIspFlushCacheRemainQuotaRequest& request, const DescribeIspFlushCacheRemainQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIspFlushCacheRemainQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DescribeIspFlushCacheRemainQuotaOutcomeCallable AlidnsClient::describeIspFlushCacheRemainQuotaCallable(const DescribeIspFlushCacheRemainQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIspFlushCacheRemainQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlidnsClient::DescribeIspFlushCacheTaskOutcome AlidnsClient::describeIspFlushCacheTask(const DescribeIspFlushCacheTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIspFlushCacheTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIspFlushCacheTaskOutcome(DescribeIspFlushCacheTaskResult(outcome.result())); + else + return DescribeIspFlushCacheTaskOutcome(outcome.error()); +} + +void AlidnsClient::describeIspFlushCacheTaskAsync(const DescribeIspFlushCacheTaskRequest& request, const DescribeIspFlushCacheTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIspFlushCacheTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DescribeIspFlushCacheTaskOutcomeCallable AlidnsClient::describeIspFlushCacheTaskCallable(const DescribeIspFlushCacheTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIspFlushCacheTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlidnsClient::DescribeIspFlushCacheTasksOutcome AlidnsClient::describeIspFlushCacheTasks(const DescribeIspFlushCacheTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIspFlushCacheTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIspFlushCacheTasksOutcome(DescribeIspFlushCacheTasksResult(outcome.result())); + else + return DescribeIspFlushCacheTasksOutcome(outcome.error()); +} + +void AlidnsClient::describeIspFlushCacheTasksAsync(const DescribeIspFlushCacheTasksRequest& request, const DescribeIspFlushCacheTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIspFlushCacheTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DescribeIspFlushCacheTasksOutcomeCallable AlidnsClient::describeIspFlushCacheTasksCallable(const DescribeIspFlushCacheTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIspFlushCacheTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::DescribePdnsAccountSummaryOutcome AlidnsClient::describePdnsAccountSummary(const DescribePdnsAccountSummaryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3579,6 +3759,42 @@ AlidnsClient::DescribeRecordLogsOutcomeCallable AlidnsClient::describeRecordLogs return task->get_future(); } +AlidnsClient::DescribeRecordResolveStatisticsSummaryOutcome AlidnsClient::describeRecordResolveStatisticsSummary(const DescribeRecordResolveStatisticsSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRecordResolveStatisticsSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRecordResolveStatisticsSummaryOutcome(DescribeRecordResolveStatisticsSummaryResult(outcome.result())); + else + return DescribeRecordResolveStatisticsSummaryOutcome(outcome.error()); +} + +void AlidnsClient::describeRecordResolveStatisticsSummaryAsync(const DescribeRecordResolveStatisticsSummaryRequest& request, const DescribeRecordResolveStatisticsSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRecordResolveStatisticsSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::DescribeRecordResolveStatisticsSummaryOutcomeCallable AlidnsClient::describeRecordResolveStatisticsSummaryCallable(const DescribeRecordResolveStatisticsSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRecordResolveStatisticsSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::DescribeRecordStatisticsOutcome AlidnsClient::describeRecordStatistics(const DescribeRecordStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4587,6 +4803,42 @@ AlidnsClient::SetGtmMonitorStatusOutcomeCallable AlidnsClient::setGtmMonitorStat return task->get_future(); } +AlidnsClient::SubmitIspFlushCacheTaskOutcome AlidnsClient::submitIspFlushCacheTask(const SubmitIspFlushCacheTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitIspFlushCacheTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitIspFlushCacheTaskOutcome(SubmitIspFlushCacheTaskResult(outcome.result())); + else + return SubmitIspFlushCacheTaskOutcome(outcome.error()); +} + +void AlidnsClient::submitIspFlushCacheTaskAsync(const SubmitIspFlushCacheTaskRequest& request, const SubmitIspFlushCacheTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitIspFlushCacheTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::SubmitIspFlushCacheTaskOutcomeCallable AlidnsClient::submitIspFlushCacheTaskCallable(const SubmitIspFlushCacheTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitIspFlushCacheTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::SwitchDnsGtmInstanceStrategyModeOutcome AlidnsClient::switchDnsGtmInstanceStrategyMode(const SwitchDnsGtmInstanceStrategyModeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5415,6 +5667,42 @@ AlidnsClient::UpdateGtmRecoveryPlanOutcomeCallable AlidnsClient::updateGtmRecove return task->get_future(); } +AlidnsClient::UpdateIspFlushCacheInstanceConfigOutcome AlidnsClient::updateIspFlushCacheInstanceConfig(const UpdateIspFlushCacheInstanceConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateIspFlushCacheInstanceConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateIspFlushCacheInstanceConfigOutcome(UpdateIspFlushCacheInstanceConfigResult(outcome.result())); + else + return UpdateIspFlushCacheInstanceConfigOutcome(outcome.error()); +} + +void AlidnsClient::updateIspFlushCacheInstanceConfigAsync(const UpdateIspFlushCacheInstanceConfigRequest& request, const UpdateIspFlushCacheInstanceConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateIspFlushCacheInstanceConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlidnsClient::UpdateIspFlushCacheInstanceConfigOutcomeCallable AlidnsClient::updateIspFlushCacheInstanceConfigCallable(const UpdateIspFlushCacheInstanceConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateIspFlushCacheInstanceConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AlidnsClient::ValidateDnsGtmCnameRrCanUseOutcome AlidnsClient::validateDnsGtmCnameRrCanUse(const ValidateDnsGtmCnameRrCanUseRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/alidns/src/model/AddCustomLineRequest.cc b/alidns/src/model/AddCustomLineRequest.cc index e76121e86..3edf4121c 100644 --- a/alidns/src/model/AddCustomLineRequest.cc +++ b/alidns/src/model/AddCustomLineRequest.cc @@ -1,89 +1,77 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Alidns::Model::AddCustomLineRequest; - -AddCustomLineRequest::AddCustomLineRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddCustomLine") -{ - setMethod(HttpRequest::Method::Post); -} - -AddCustomLineRequest::~AddCustomLineRequest() -{} - -std::string AddCustomLineRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddCustomLineRequest; + +AddCustomLineRequest::AddCustomLineRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddCustomLine") { + setMethod(HttpRequest::Method::Post); } -void AddCustomLineRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +AddCustomLineRequest::~AddCustomLineRequest() {} + +std::string AddCustomLineRequest::getDomainName() const { + return domainName_; } -std::vector AddCustomLineRequest::getIpSegment()const -{ - return ipSegment_; +void AddCustomLineRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void AddCustomLineRequest::setIpSegment(const std::vector& ipSegment) -{ - ipSegment_ = ipSegment; - for(int dep1 = 0; dep1!= ipSegment.size(); dep1++) { - auto ipSegmentObj = ipSegment.at(dep1); - std::string ipSegmentObjStr = "IpSegment." + std::to_string(dep1 + 1); - setParameter(ipSegmentObjStr + ".EndIp", ipSegmentObj.endIp); - setParameter(ipSegmentObjStr + ".StartIp", ipSegmentObj.startIp); - } +std::vector AddCustomLineRequest::getIpSegment() const { + return ipSegment_; } -std::string AddCustomLineRequest::getUserClientIp()const -{ - return userClientIp_; +void AddCustomLineRequest::setIpSegment(const std::vector &ipSegment) { + ipSegment_ = ipSegment; + for(int dep1 = 0; dep1 != ipSegment.size(); dep1++) { + auto ipSegmentObj = ipSegment.at(dep1); + std::string ipSegmentObjStr = std::string("IpSegment") + "." + std::to_string(dep1 + 1); + setParameter(ipSegmentObjStr + ".EndIp", ipSegmentObj.endIp); + setParameter(ipSegmentObjStr + ".StartIp", ipSegmentObj.startIp); + } } -void AddCustomLineRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddCustomLineRequest::getUserClientIp() const { + return userClientIp_; } -std::string AddCustomLineRequest::getLineName()const -{ - return lineName_; +void AddCustomLineRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddCustomLineRequest::setLineName(const std::string& lineName) -{ - lineName_ = lineName; - setParameter("LineName", lineName); +std::string AddCustomLineRequest::getLineName() const { + return lineName_; } -std::string AddCustomLineRequest::getLang()const -{ - return lang_; +void AddCustomLineRequest::setLineName(const std::string &lineName) { + lineName_ = lineName; + setParameter(std::string("LineName"), lineName); } -void AddCustomLineRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddCustomLineRequest::getLang() const { + return lang_; +} + +void AddCustomLineRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/AddDnsCacheDomainRequest.cc b/alidns/src/model/AddDnsCacheDomainRequest.cc index 77a73e3ba..defa85a9b 100644 --- a/alidns/src/model/AddDnsCacheDomainRequest.cc +++ b/alidns/src/model/AddDnsCacheDomainRequest.cc @@ -1,155 +1,131 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::AddDnsCacheDomainRequest; - -AddDnsCacheDomainRequest::AddDnsCacheDomainRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddDnsCacheDomain") -{ - setMethod(HttpRequest::Method::Post); -} - -AddDnsCacheDomainRequest::~AddDnsCacheDomainRequest() -{} - -std::string AddDnsCacheDomainRequest::getRemark()const -{ - return remark_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddDnsCacheDomainRequest; + +AddDnsCacheDomainRequest::AddDnsCacheDomainRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddDnsCacheDomain") { + setMethod(HttpRequest::Method::Post); } -void AddDnsCacheDomainRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setParameter("Remark", remark); +AddDnsCacheDomainRequest::~AddDnsCacheDomainRequest() {} + +std::string AddDnsCacheDomainRequest::getRemark() const { + return remark_; } -std::string AddDnsCacheDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddDnsCacheDomainRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); } -void AddDnsCacheDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddDnsCacheDomainRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddDnsCacheDomainRequest::getSourceProtocol()const -{ - return sourceProtocol_; +void AddDnsCacheDomainRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddDnsCacheDomainRequest::setSourceProtocol(const std::string& sourceProtocol) -{ - sourceProtocol_ = sourceProtocol; - setParameter("SourceProtocol", sourceProtocol); +std::string AddDnsCacheDomainRequest::getSourceProtocol() const { + return sourceProtocol_; } -std::string AddDnsCacheDomainRequest::getLang()const -{ - return lang_; +void AddDnsCacheDomainRequest::setSourceProtocol(const std::string &sourceProtocol) { + sourceProtocol_ = sourceProtocol; + setParameter(std::string("SourceProtocol"), sourceProtocol); } -void AddDnsCacheDomainRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddDnsCacheDomainRequest::getLang() const { + return lang_; } -std::string AddDnsCacheDomainRequest::getDomainName()const -{ - return domainName_; +void AddDnsCacheDomainRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void AddDnsCacheDomainRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string AddDnsCacheDomainRequest::getDomainName() const { + return domainName_; } -int AddDnsCacheDomainRequest::getCacheTtlMax()const -{ - return cacheTtlMax_; +void AddDnsCacheDomainRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void AddDnsCacheDomainRequest::setCacheTtlMax(int cacheTtlMax) -{ - cacheTtlMax_ = cacheTtlMax; - setParameter("CacheTtlMax", std::to_string(cacheTtlMax)); +int AddDnsCacheDomainRequest::getCacheTtlMax() const { + return cacheTtlMax_; } -std::string AddDnsCacheDomainRequest::getInstanceId()const -{ - return instanceId_; +void AddDnsCacheDomainRequest::setCacheTtlMax(int cacheTtlMax) { + cacheTtlMax_ = cacheTtlMax; + setParameter(std::string("CacheTtlMax"), std::to_string(cacheTtlMax)); } -void AddDnsCacheDomainRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AddDnsCacheDomainRequest::getInstanceId() const { + return instanceId_; } -std::string AddDnsCacheDomainRequest::getSourceEdns()const -{ - return sourceEdns_; +void AddDnsCacheDomainRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AddDnsCacheDomainRequest::setSourceEdns(const std::string& sourceEdns) -{ - sourceEdns_ = sourceEdns; - setParameter("SourceEdns", sourceEdns); +std::string AddDnsCacheDomainRequest::getSourceEdns() const { + return sourceEdns_; } -std::string AddDnsCacheDomainRequest::getUserClientIp()const -{ - return userClientIp_; +void AddDnsCacheDomainRequest::setSourceEdns(const std::string &sourceEdns) { + sourceEdns_ = sourceEdns; + setParameter(std::string("SourceEdns"), sourceEdns); } -void AddDnsCacheDomainRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddDnsCacheDomainRequest::getUserClientIp() const { + return userClientIp_; } -int AddDnsCacheDomainRequest::getCacheTtlMin()const -{ - return cacheTtlMin_; +void AddDnsCacheDomainRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddDnsCacheDomainRequest::setCacheTtlMin(int cacheTtlMin) -{ - cacheTtlMin_ = cacheTtlMin; - setParameter("CacheTtlMin", std::to_string(cacheTtlMin)); +int AddDnsCacheDomainRequest::getCacheTtlMin() const { + return cacheTtlMin_; } -std::vector AddDnsCacheDomainRequest::getSourceDnsServer()const -{ - return sourceDnsServer_; +void AddDnsCacheDomainRequest::setCacheTtlMin(int cacheTtlMin) { + cacheTtlMin_ = cacheTtlMin; + setParameter(std::string("CacheTtlMin"), std::to_string(cacheTtlMin)); } -void AddDnsCacheDomainRequest::setSourceDnsServer(const std::vector& sourceDnsServer) -{ - sourceDnsServer_ = sourceDnsServer; - for(int dep1 = 0; dep1!= sourceDnsServer.size(); dep1++) { - auto sourceDnsServerObj = sourceDnsServer.at(dep1); - std::string sourceDnsServerObjStr = "SourceDnsServer." + std::to_string(dep1 + 1); - setParameter(sourceDnsServerObjStr + ".Port", sourceDnsServerObj.port); - setParameter(sourceDnsServerObjStr + ".Host", sourceDnsServerObj.host); - } +std::vector AddDnsCacheDomainRequest::getSourceDnsServer() const { + return sourceDnsServer_; +} + +void AddDnsCacheDomainRequest::setSourceDnsServer(const std::vector &sourceDnsServer) { + sourceDnsServer_ = sourceDnsServer; + for(int dep1 = 0; dep1 != sourceDnsServer.size(); dep1++) { + auto sourceDnsServerObj = sourceDnsServer.at(dep1); + std::string sourceDnsServerObjStr = std::string("SourceDnsServer") + "." + std::to_string(dep1 + 1); + setParameter(sourceDnsServerObjStr + ".Port", sourceDnsServerObj.port); + setParameter(sourceDnsServerObjStr + ".Host", sourceDnsServerObj.host); + } } diff --git a/alidns/src/model/AddDnsGtmAccessStrategyRequest.cc b/alidns/src/model/AddDnsGtmAccessStrategyRequest.cc index e2c140353..ea37eb919 100644 --- a/alidns/src/model/AddDnsGtmAccessStrategyRequest.cc +++ b/alidns/src/model/AddDnsGtmAccessStrategyRequest.cc @@ -1,237 +1,199 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::AddDnsGtmAccessStrategyRequest; - -AddDnsGtmAccessStrategyRequest::AddDnsGtmAccessStrategyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddDnsGtmAccessStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -AddDnsGtmAccessStrategyRequest::~AddDnsGtmAccessStrategyRequest() -{} - -std::string AddDnsGtmAccessStrategyRequest::getDefaultLbaStrategy()const -{ - return defaultLbaStrategy_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddDnsGtmAccessStrategyRequest; + +AddDnsGtmAccessStrategyRequest::AddDnsGtmAccessStrategyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddDnsGtmAccessStrategy") { + setMethod(HttpRequest::Method::Post); } -void AddDnsGtmAccessStrategyRequest::setDefaultLbaStrategy(const std::string& defaultLbaStrategy) -{ - defaultLbaStrategy_ = defaultLbaStrategy; - setParameter("DefaultLbaStrategy", defaultLbaStrategy); +AddDnsGtmAccessStrategyRequest::~AddDnsGtmAccessStrategyRequest() {} + +std::string AddDnsGtmAccessStrategyRequest::getDefaultLbaStrategy() const { + return defaultLbaStrategy_; } -std::string AddDnsGtmAccessStrategyRequest::getFailoverAddrPoolType()const -{ - return failoverAddrPoolType_; +void AddDnsGtmAccessStrategyRequest::setDefaultLbaStrategy(const std::string &defaultLbaStrategy) { + defaultLbaStrategy_ = defaultLbaStrategy; + setParameter(std::string("DefaultLbaStrategy"), defaultLbaStrategy); } -void AddDnsGtmAccessStrategyRequest::setFailoverAddrPoolType(const std::string& failoverAddrPoolType) -{ - failoverAddrPoolType_ = failoverAddrPoolType; - setParameter("FailoverAddrPoolType", failoverAddrPoolType); +std::string AddDnsGtmAccessStrategyRequest::getFailoverAddrPoolType() const { + return failoverAddrPoolType_; } -std::string AddDnsGtmAccessStrategyRequest::getDefaultAddrPoolType()const -{ - return defaultAddrPoolType_; +void AddDnsGtmAccessStrategyRequest::setFailoverAddrPoolType(const std::string &failoverAddrPoolType) { + failoverAddrPoolType_ = failoverAddrPoolType; + setParameter(std::string("FailoverAddrPoolType"), failoverAddrPoolType); } -void AddDnsGtmAccessStrategyRequest::setDefaultAddrPoolType(const std::string& defaultAddrPoolType) -{ - defaultAddrPoolType_ = defaultAddrPoolType; - setParameter("DefaultAddrPoolType", defaultAddrPoolType); +std::string AddDnsGtmAccessStrategyRequest::getDefaultAddrPoolType() const { + return defaultAddrPoolType_; } -int AddDnsGtmAccessStrategyRequest::getFailoverMaxReturnAddrNum()const -{ - return failoverMaxReturnAddrNum_; +void AddDnsGtmAccessStrategyRequest::setDefaultAddrPoolType(const std::string &defaultAddrPoolType) { + defaultAddrPoolType_ = defaultAddrPoolType; + setParameter(std::string("DefaultAddrPoolType"), defaultAddrPoolType); } -void AddDnsGtmAccessStrategyRequest::setFailoverMaxReturnAddrNum(int failoverMaxReturnAddrNum) -{ - failoverMaxReturnAddrNum_ = failoverMaxReturnAddrNum; - setParameter("FailoverMaxReturnAddrNum", std::to_string(failoverMaxReturnAddrNum)); +int AddDnsGtmAccessStrategyRequest::getFailoverMaxReturnAddrNum() const { + return failoverMaxReturnAddrNum_; } -std::string AddDnsGtmAccessStrategyRequest::getFailoverLbaStrategy()const -{ - return failoverLbaStrategy_; +void AddDnsGtmAccessStrategyRequest::setFailoverMaxReturnAddrNum(int failoverMaxReturnAddrNum) { + failoverMaxReturnAddrNum_ = failoverMaxReturnAddrNum; + setParameter(std::string("FailoverMaxReturnAddrNum"), std::to_string(failoverMaxReturnAddrNum)); } -void AddDnsGtmAccessStrategyRequest::setFailoverLbaStrategy(const std::string& failoverLbaStrategy) -{ - failoverLbaStrategy_ = failoverLbaStrategy; - setParameter("FailoverLbaStrategy", failoverLbaStrategy); +std::string AddDnsGtmAccessStrategyRequest::getFailoverLbaStrategy() const { + return failoverLbaStrategy_; } -std::vector AddDnsGtmAccessStrategyRequest::getDefaultAddrPool()const -{ - return defaultAddrPool_; +void AddDnsGtmAccessStrategyRequest::setFailoverLbaStrategy(const std::string &failoverLbaStrategy) { + failoverLbaStrategy_ = failoverLbaStrategy; + setParameter(std::string("FailoverLbaStrategy"), failoverLbaStrategy); } -void AddDnsGtmAccessStrategyRequest::setDefaultAddrPool(const std::vector& defaultAddrPool) -{ - defaultAddrPool_ = defaultAddrPool; - for(int dep1 = 0; dep1!= defaultAddrPool.size(); dep1++) { - auto defaultAddrPoolObj = defaultAddrPool.at(dep1); - std::string defaultAddrPoolObjStr = "DefaultAddrPool." + std::to_string(dep1 + 1); - setParameter(defaultAddrPoolObjStr + ".Id", defaultAddrPoolObj.id); - setParameter(defaultAddrPoolObjStr + ".LbaWeight", std::to_string(defaultAddrPoolObj.lbaWeight)); - } +std::vector AddDnsGtmAccessStrategyRequest::getDefaultAddrPool() const { + return defaultAddrPool_; } -int AddDnsGtmAccessStrategyRequest::getFailoverMinAvailableAddrNum()const -{ - return failoverMinAvailableAddrNum_; +void AddDnsGtmAccessStrategyRequest::setDefaultAddrPool(const std::vector &defaultAddrPool) { + defaultAddrPool_ = defaultAddrPool; + for(int dep1 = 0; dep1 != defaultAddrPool.size(); dep1++) { + auto defaultAddrPoolObj = defaultAddrPool.at(dep1); + std::string defaultAddrPoolObjStr = std::string("DefaultAddrPool") + "." + std::to_string(dep1 + 1); + setParameter(defaultAddrPoolObjStr + ".Id", defaultAddrPoolObj.id); + setParameter(defaultAddrPoolObjStr + ".LbaWeight", std::to_string(defaultAddrPoolObj.lbaWeight)); + } } -void AddDnsGtmAccessStrategyRequest::setFailoverMinAvailableAddrNum(int failoverMinAvailableAddrNum) -{ - failoverMinAvailableAddrNum_ = failoverMinAvailableAddrNum; - setParameter("FailoverMinAvailableAddrNum", std::to_string(failoverMinAvailableAddrNum)); +int AddDnsGtmAccessStrategyRequest::getFailoverMinAvailableAddrNum() const { + return failoverMinAvailableAddrNum_; } -int AddDnsGtmAccessStrategyRequest::getDefaultMaxReturnAddrNum()const -{ - return defaultMaxReturnAddrNum_; +void AddDnsGtmAccessStrategyRequest::setFailoverMinAvailableAddrNum(int failoverMinAvailableAddrNum) { + failoverMinAvailableAddrNum_ = failoverMinAvailableAddrNum; + setParameter(std::string("FailoverMinAvailableAddrNum"), std::to_string(failoverMinAvailableAddrNum)); } -void AddDnsGtmAccessStrategyRequest::setDefaultMaxReturnAddrNum(int defaultMaxReturnAddrNum) -{ - defaultMaxReturnAddrNum_ = defaultMaxReturnAddrNum; - setParameter("DefaultMaxReturnAddrNum", std::to_string(defaultMaxReturnAddrNum)); +int AddDnsGtmAccessStrategyRequest::getDefaultMaxReturnAddrNum() const { + return defaultMaxReturnAddrNum_; } -int AddDnsGtmAccessStrategyRequest::getDefaultMinAvailableAddrNum()const -{ - return defaultMinAvailableAddrNum_; +void AddDnsGtmAccessStrategyRequest::setDefaultMaxReturnAddrNum(int defaultMaxReturnAddrNum) { + defaultMaxReturnAddrNum_ = defaultMaxReturnAddrNum; + setParameter(std::string("DefaultMaxReturnAddrNum"), std::to_string(defaultMaxReturnAddrNum)); } -void AddDnsGtmAccessStrategyRequest::setDefaultMinAvailableAddrNum(int defaultMinAvailableAddrNum) -{ - defaultMinAvailableAddrNum_ = defaultMinAvailableAddrNum; - setParameter("DefaultMinAvailableAddrNum", std::to_string(defaultMinAvailableAddrNum)); +int AddDnsGtmAccessStrategyRequest::getDefaultMinAvailableAddrNum() const { + return defaultMinAvailableAddrNum_; } -std::string AddDnsGtmAccessStrategyRequest::getStrategyMode()const -{ - return strategyMode_; +void AddDnsGtmAccessStrategyRequest::setDefaultMinAvailableAddrNum(int defaultMinAvailableAddrNum) { + defaultMinAvailableAddrNum_ = defaultMinAvailableAddrNum; + setParameter(std::string("DefaultMinAvailableAddrNum"), std::to_string(defaultMinAvailableAddrNum)); } -void AddDnsGtmAccessStrategyRequest::setStrategyMode(const std::string& strategyMode) -{ - strategyMode_ = strategyMode; - setParameter("StrategyMode", strategyMode); +std::string AddDnsGtmAccessStrategyRequest::getStrategyMode() const { + return strategyMode_; } -std::string AddDnsGtmAccessStrategyRequest::getLang()const -{ - return lang_; +void AddDnsGtmAccessStrategyRequest::setStrategyMode(const std::string &strategyMode) { + strategyMode_ = strategyMode; + setParameter(std::string("StrategyMode"), strategyMode); } -void AddDnsGtmAccessStrategyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddDnsGtmAccessStrategyRequest::getLang() const { + return lang_; } -std::string AddDnsGtmAccessStrategyRequest::getLines()const -{ - return lines_; +void AddDnsGtmAccessStrategyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void AddDnsGtmAccessStrategyRequest::setLines(const std::string& lines) -{ - lines_ = lines; - setParameter("Lines", lines); +std::string AddDnsGtmAccessStrategyRequest::getLines() const { + return lines_; } -std::string AddDnsGtmAccessStrategyRequest::getStrategyName()const -{ - return strategyName_; +void AddDnsGtmAccessStrategyRequest::setLines(const std::string &lines) { + lines_ = lines; + setParameter(std::string("Lines"), lines); } -void AddDnsGtmAccessStrategyRequest::setStrategyName(const std::string& strategyName) -{ - strategyName_ = strategyName; - setParameter("StrategyName", strategyName); +std::string AddDnsGtmAccessStrategyRequest::getStrategyName() const { + return strategyName_; } -std::string AddDnsGtmAccessStrategyRequest::getDefaultLatencyOptimization()const -{ - return defaultLatencyOptimization_; +void AddDnsGtmAccessStrategyRequest::setStrategyName(const std::string &strategyName) { + strategyName_ = strategyName; + setParameter(std::string("StrategyName"), strategyName); } -void AddDnsGtmAccessStrategyRequest::setDefaultLatencyOptimization(const std::string& defaultLatencyOptimization) -{ - defaultLatencyOptimization_ = defaultLatencyOptimization; - setParameter("DefaultLatencyOptimization", defaultLatencyOptimization); +std::string AddDnsGtmAccessStrategyRequest::getDefaultLatencyOptimization() const { + return defaultLatencyOptimization_; } -std::string AddDnsGtmAccessStrategyRequest::getInstanceId()const -{ - return instanceId_; +void AddDnsGtmAccessStrategyRequest::setDefaultLatencyOptimization(const std::string &defaultLatencyOptimization) { + defaultLatencyOptimization_ = defaultLatencyOptimization; + setParameter(std::string("DefaultLatencyOptimization"), defaultLatencyOptimization); } -void AddDnsGtmAccessStrategyRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AddDnsGtmAccessStrategyRequest::getInstanceId() const { + return instanceId_; } -std::string AddDnsGtmAccessStrategyRequest::getFailoverLatencyOptimization()const -{ - return failoverLatencyOptimization_; +void AddDnsGtmAccessStrategyRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AddDnsGtmAccessStrategyRequest::setFailoverLatencyOptimization(const std::string& failoverLatencyOptimization) -{ - failoverLatencyOptimization_ = failoverLatencyOptimization; - setParameter("FailoverLatencyOptimization", failoverLatencyOptimization); +std::string AddDnsGtmAccessStrategyRequest::getFailoverLatencyOptimization() const { + return failoverLatencyOptimization_; } -std::string AddDnsGtmAccessStrategyRequest::getUserClientIp()const -{ - return userClientIp_; +void AddDnsGtmAccessStrategyRequest::setFailoverLatencyOptimization(const std::string &failoverLatencyOptimization) { + failoverLatencyOptimization_ = failoverLatencyOptimization; + setParameter(std::string("FailoverLatencyOptimization"), failoverLatencyOptimization); } -void AddDnsGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddDnsGtmAccessStrategyRequest::getUserClientIp() const { + return userClientIp_; } -std::vector AddDnsGtmAccessStrategyRequest::getFailoverAddrPool()const -{ - return failoverAddrPool_; +void AddDnsGtmAccessStrategyRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddDnsGtmAccessStrategyRequest::setFailoverAddrPool(const std::vector& failoverAddrPool) -{ - failoverAddrPool_ = failoverAddrPool; - for(int dep1 = 0; dep1!= failoverAddrPool.size(); dep1++) { - auto failoverAddrPoolObj = failoverAddrPool.at(dep1); - std::string failoverAddrPoolObjStr = "FailoverAddrPool." + std::to_string(dep1 + 1); - setParameter(failoverAddrPoolObjStr + ".Id", failoverAddrPoolObj.id); - setParameter(failoverAddrPoolObjStr + ".LbaWeight", std::to_string(failoverAddrPoolObj.lbaWeight)); - } +std::vector AddDnsGtmAccessStrategyRequest::getFailoverAddrPool() const { + return failoverAddrPool_; +} + +void AddDnsGtmAccessStrategyRequest::setFailoverAddrPool(const std::vector &failoverAddrPool) { + failoverAddrPool_ = failoverAddrPool; + for(int dep1 = 0; dep1 != failoverAddrPool.size(); dep1++) { + auto failoverAddrPoolObj = failoverAddrPool.at(dep1); + std::string failoverAddrPoolObjStr = std::string("FailoverAddrPool") + "." + std::to_string(dep1 + 1); + setParameter(failoverAddrPoolObjStr + ".Id", failoverAddrPoolObj.id); + setParameter(failoverAddrPoolObjStr + ".LbaWeight", std::to_string(failoverAddrPoolObj.lbaWeight)); + } } diff --git a/alidns/src/model/AddDnsGtmAddressPoolRequest.cc b/alidns/src/model/AddDnsGtmAddressPoolRequest.cc index 8f14e7370..d7aaa62cd 100644 --- a/alidns/src/model/AddDnsGtmAddressPoolRequest.cc +++ b/alidns/src/model/AddDnsGtmAddressPoolRequest.cc @@ -1,196 +1,166 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::AddDnsGtmAddressPoolRequest; - -AddDnsGtmAddressPoolRequest::AddDnsGtmAddressPoolRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddDnsGtmAddressPool") -{ - setMethod(HttpRequest::Method::Post); -} - -AddDnsGtmAddressPoolRequest::~AddDnsGtmAddressPoolRequest() -{} - -std::string AddDnsGtmAddressPoolRequest::getMonitorExtendInfo()const -{ - return monitorExtendInfo_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddDnsGtmAddressPoolRequest; + +AddDnsGtmAddressPoolRequest::AddDnsGtmAddressPoolRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddDnsGtmAddressPool") { + setMethod(HttpRequest::Method::Post); } -void AddDnsGtmAddressPoolRequest::setMonitorExtendInfo(const std::string& monitorExtendInfo) -{ - monitorExtendInfo_ = monitorExtendInfo; - setParameter("MonitorExtendInfo", monitorExtendInfo); +AddDnsGtmAddressPoolRequest::~AddDnsGtmAddressPoolRequest() {} + +std::string AddDnsGtmAddressPoolRequest::getMonitorExtendInfo() const { + return monitorExtendInfo_; } -std::string AddDnsGtmAddressPoolRequest::getLbaStrategy()const -{ - return lbaStrategy_; +void AddDnsGtmAddressPoolRequest::setMonitorExtendInfo(const std::string &monitorExtendInfo) { + monitorExtendInfo_ = monitorExtendInfo; + setParameter(std::string("MonitorExtendInfo"), monitorExtendInfo); } -void AddDnsGtmAddressPoolRequest::setLbaStrategy(const std::string& lbaStrategy) -{ - lbaStrategy_ = lbaStrategy; - setParameter("LbaStrategy", lbaStrategy); +std::string AddDnsGtmAddressPoolRequest::getLbaStrategy() const { + return lbaStrategy_; } -std::string AddDnsGtmAddressPoolRequest::getType()const -{ - return type_; +void AddDnsGtmAddressPoolRequest::setLbaStrategy(const std::string &lbaStrategy) { + lbaStrategy_ = lbaStrategy; + setParameter(std::string("LbaStrategy"), lbaStrategy); } -void AddDnsGtmAddressPoolRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string AddDnsGtmAddressPoolRequest::getType() const { + return type_; } -int AddDnsGtmAddressPoolRequest::getTimeout()const -{ - return timeout_; +void AddDnsGtmAddressPoolRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void AddDnsGtmAddressPoolRequest::setTimeout(int timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); +int AddDnsGtmAddressPoolRequest::getTimeout() const { + return timeout_; } -int AddDnsGtmAddressPoolRequest::getEvaluationCount()const -{ - return evaluationCount_; +void AddDnsGtmAddressPoolRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); } -void AddDnsGtmAddressPoolRequest::setEvaluationCount(int evaluationCount) -{ - evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); +int AddDnsGtmAddressPoolRequest::getEvaluationCount() const { + return evaluationCount_; } -std::string AddDnsGtmAddressPoolRequest::getLang()const -{ - return lang_; +void AddDnsGtmAddressPoolRequest::setEvaluationCount(int evaluationCount) { + evaluationCount_ = evaluationCount; + setParameter(std::string("EvaluationCount"), std::to_string(evaluationCount)); } -void AddDnsGtmAddressPoolRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddDnsGtmAddressPoolRequest::getLang() const { + return lang_; } -std::vector AddDnsGtmAddressPoolRequest::getAddr()const -{ - return addr_; +void AddDnsGtmAddressPoolRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void AddDnsGtmAddressPoolRequest::setAddr(const std::vector& addr) -{ - addr_ = addr; - for(int dep1 = 0; dep1!= addr.size(); dep1++) { - auto addrObj = addr.at(dep1); - std::string addrObjStr = "Addr." + std::to_string(dep1 + 1); - setParameter(addrObjStr + ".Mode", addrObj.mode); - setParameter(addrObjStr + ".AttributeInfo", addrObj.attributeInfo); - setParameter(addrObjStr + ".Remark", addrObj.remark); - setParameter(addrObjStr + ".Addr", addrObj.addr); - setParameter(addrObjStr + ".LbaWeight", std::to_string(addrObj.lbaWeight)); - } +std::vector AddDnsGtmAddressPoolRequest::getAddr() const { + return addr_; } -std::string AddDnsGtmAddressPoolRequest::getMonitorStatus()const -{ - return monitorStatus_; +void AddDnsGtmAddressPoolRequest::setAddr(const std::vector &addr) { + addr_ = addr; + for(int dep1 = 0; dep1 != addr.size(); dep1++) { + auto addrObj = addr.at(dep1); + std::string addrObjStr = std::string("Addr") + "." + std::to_string(dep1 + 1); + setParameter(addrObjStr + ".AttributeInfo", addrObj.attributeInfo); + setParameter(addrObjStr + ".Mode", addrObj.mode); + setParameter(addrObjStr + ".Remark", addrObj.remark); + setParameter(addrObjStr + ".LbaWeight", std::to_string(addrObj.lbaWeight)); + setParameter(addrObjStr + ".Addr", addrObj.addr); + } } -void AddDnsGtmAddressPoolRequest::setMonitorStatus(const std::string& monitorStatus) -{ - monitorStatus_ = monitorStatus; - setParameter("MonitorStatus", monitorStatus); +std::string AddDnsGtmAddressPoolRequest::getMonitorStatus() const { + return monitorStatus_; } -std::string AddDnsGtmAddressPoolRequest::getInstanceId()const -{ - return instanceId_; +void AddDnsGtmAddressPoolRequest::setMonitorStatus(const std::string &monitorStatus) { + monitorStatus_ = monitorStatus; + setParameter(std::string("MonitorStatus"), monitorStatus); } -void AddDnsGtmAddressPoolRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AddDnsGtmAddressPoolRequest::getInstanceId() const { + return instanceId_; } -std::string AddDnsGtmAddressPoolRequest::getUserClientIp()const -{ - return userClientIp_; +void AddDnsGtmAddressPoolRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AddDnsGtmAddressPoolRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddDnsGtmAddressPoolRequest::getUserClientIp() const { + return userClientIp_; } -std::string AddDnsGtmAddressPoolRequest::getName()const -{ - return name_; +void AddDnsGtmAddressPoolRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddDnsGtmAddressPoolRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddDnsGtmAddressPoolRequest::getName() const { + return name_; } -std::string AddDnsGtmAddressPoolRequest::getProtocolType()const -{ - return protocolType_; +void AddDnsGtmAddressPoolRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void AddDnsGtmAddressPoolRequest::setProtocolType(const std::string& protocolType) -{ - protocolType_ = protocolType; - setParameter("ProtocolType", protocolType); +std::string AddDnsGtmAddressPoolRequest::getProtocolType() const { + return protocolType_; } -int AddDnsGtmAddressPoolRequest::getInterval()const -{ - return interval_; +void AddDnsGtmAddressPoolRequest::setProtocolType(const std::string &protocolType) { + protocolType_ = protocolType; + setParameter(std::string("ProtocolType"), protocolType); } -void AddDnsGtmAddressPoolRequest::setInterval(int interval) -{ - interval_ = interval; - setParameter("Interval", std::to_string(interval)); +int AddDnsGtmAddressPoolRequest::getInterval() const { + return interval_; } -std::vector AddDnsGtmAddressPoolRequest::getIspCityNode()const -{ - return ispCityNode_; +void AddDnsGtmAddressPoolRequest::setInterval(int interval) { + interval_ = interval; + setParameter(std::string("Interval"), std::to_string(interval)); } -void AddDnsGtmAddressPoolRequest::setIspCityNode(const std::vector& ispCityNode) -{ - ispCityNode_ = ispCityNode; - for(int dep1 = 0; dep1!= ispCityNode.size(); dep1++) { - auto ispCityNodeObj = ispCityNode.at(dep1); - std::string ispCityNodeObjStr = "IspCityNode." + std::to_string(dep1 + 1); - setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); - setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); - } +std::vector AddDnsGtmAddressPoolRequest::getIspCityNode() const { + return ispCityNode_; +} + +void AddDnsGtmAddressPoolRequest::setIspCityNode(const std::vector &ispCityNode) { + ispCityNode_ = ispCityNode; + for(int dep1 = 0; dep1 != ispCityNode.size(); dep1++) { + auto ispCityNodeObj = ispCityNode.at(dep1); + std::string ispCityNodeObjStr = std::string("IspCityNode") + "." + std::to_string(dep1 + 1); + setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); + setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); + } } diff --git a/alidns/src/model/AddDnsGtmMonitorRequest.cc b/alidns/src/model/AddDnsGtmMonitorRequest.cc index c2abf171d..39a19aa0e 100644 --- a/alidns/src/model/AddDnsGtmMonitorRequest.cc +++ b/alidns/src/model/AddDnsGtmMonitorRequest.cc @@ -1,133 +1,113 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::AddDnsGtmMonitorRequest; - -AddDnsGtmMonitorRequest::AddDnsGtmMonitorRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddDnsGtmMonitor") -{ - setMethod(HttpRequest::Method::Post); -} - -AddDnsGtmMonitorRequest::~AddDnsGtmMonitorRequest() -{} - -std::string AddDnsGtmMonitorRequest::getMonitorExtendInfo()const -{ - return monitorExtendInfo_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddDnsGtmMonitorRequest; + +AddDnsGtmMonitorRequest::AddDnsGtmMonitorRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddDnsGtmMonitor") { + setMethod(HttpRequest::Method::Post); } -void AddDnsGtmMonitorRequest::setMonitorExtendInfo(const std::string& monitorExtendInfo) -{ - monitorExtendInfo_ = monitorExtendInfo; - setParameter("MonitorExtendInfo", monitorExtendInfo); +AddDnsGtmMonitorRequest::~AddDnsGtmMonitorRequest() {} + +std::string AddDnsGtmMonitorRequest::getMonitorExtendInfo() const { + return monitorExtendInfo_; } -int AddDnsGtmMonitorRequest::getTimeout()const -{ - return timeout_; +void AddDnsGtmMonitorRequest::setMonitorExtendInfo(const std::string &monitorExtendInfo) { + monitorExtendInfo_ = monitorExtendInfo; + setParameter(std::string("MonitorExtendInfo"), monitorExtendInfo); } -void AddDnsGtmMonitorRequest::setTimeout(int timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); +int AddDnsGtmMonitorRequest::getTimeout() const { + return timeout_; } -std::string AddDnsGtmMonitorRequest::getAddrPoolId()const -{ - return addrPoolId_; +void AddDnsGtmMonitorRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); } -void AddDnsGtmMonitorRequest::setAddrPoolId(const std::string& addrPoolId) -{ - addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); +std::string AddDnsGtmMonitorRequest::getAddrPoolId() const { + return addrPoolId_; } -std::string AddDnsGtmMonitorRequest::getUserClientIp()const -{ - return userClientIp_; +void AddDnsGtmMonitorRequest::setAddrPoolId(const std::string &addrPoolId) { + addrPoolId_ = addrPoolId; + setParameter(std::string("AddrPoolId"), addrPoolId); } -void AddDnsGtmMonitorRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddDnsGtmMonitorRequest::getUserClientIp() const { + return userClientIp_; } -int AddDnsGtmMonitorRequest::getEvaluationCount()const -{ - return evaluationCount_; +void AddDnsGtmMonitorRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddDnsGtmMonitorRequest::setEvaluationCount(int evaluationCount) -{ - evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); +int AddDnsGtmMonitorRequest::getEvaluationCount() const { + return evaluationCount_; } -std::string AddDnsGtmMonitorRequest::getProtocolType()const -{ - return protocolType_; +void AddDnsGtmMonitorRequest::setEvaluationCount(int evaluationCount) { + evaluationCount_ = evaluationCount; + setParameter(std::string("EvaluationCount"), std::to_string(evaluationCount)); } -void AddDnsGtmMonitorRequest::setProtocolType(const std::string& protocolType) -{ - protocolType_ = protocolType; - setParameter("ProtocolType", protocolType); +std::string AddDnsGtmMonitorRequest::getProtocolType() const { + return protocolType_; } -int AddDnsGtmMonitorRequest::getInterval()const -{ - return interval_; +void AddDnsGtmMonitorRequest::setProtocolType(const std::string &protocolType) { + protocolType_ = protocolType; + setParameter(std::string("ProtocolType"), protocolType); } -void AddDnsGtmMonitorRequest::setInterval(int interval) -{ - interval_ = interval; - setParameter("Interval", std::to_string(interval)); +int AddDnsGtmMonitorRequest::getInterval() const { + return interval_; } -std::string AddDnsGtmMonitorRequest::getLang()const -{ - return lang_; +void AddDnsGtmMonitorRequest::setInterval(int interval) { + interval_ = interval; + setParameter(std::string("Interval"), std::to_string(interval)); } -void AddDnsGtmMonitorRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddDnsGtmMonitorRequest::getLang() const { + return lang_; } -std::vector AddDnsGtmMonitorRequest::getIspCityNode()const -{ - return ispCityNode_; +void AddDnsGtmMonitorRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void AddDnsGtmMonitorRequest::setIspCityNode(const std::vector& ispCityNode) -{ - ispCityNode_ = ispCityNode; - for(int dep1 = 0; dep1!= ispCityNode.size(); dep1++) { - auto ispCityNodeObj = ispCityNode.at(dep1); - std::string ispCityNodeObjStr = "IspCityNode." + std::to_string(dep1 + 1); - setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); - setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); - } +std::vector AddDnsGtmMonitorRequest::getIspCityNode() const { + return ispCityNode_; +} + +void AddDnsGtmMonitorRequest::setIspCityNode(const std::vector &ispCityNode) { + ispCityNode_ = ispCityNode; + for(int dep1 = 0; dep1 != ispCityNode.size(); dep1++) { + auto ispCityNodeObj = ispCityNode.at(dep1); + std::string ispCityNodeObjStr = std::string("IspCityNode") + "." + std::to_string(dep1 + 1); + setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); + setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); + } } diff --git a/alidns/src/model/AddDomainBackupRequest.cc b/alidns/src/model/AddDomainBackupRequest.cc index bbd4c321b..063888085 100644 --- a/alidns/src/model/AddDomainBackupRequest.cc +++ b/alidns/src/model/AddDomainBackupRequest.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::Alidns::Model::AddDomainBackupRequest; - -AddDomainBackupRequest::AddDomainBackupRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddDomainBackup") -{ - setMethod(HttpRequest::Method::Post); -} - -AddDomainBackupRequest::~AddDomainBackupRequest() -{} - -std::string AddDomainBackupRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddDomainBackupRequest; + +AddDomainBackupRequest::AddDomainBackupRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddDomainBackup") { + setMethod(HttpRequest::Method::Post); } -void AddDomainBackupRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +AddDomainBackupRequest::~AddDomainBackupRequest() {} + +std::string AddDomainBackupRequest::getDomainName() const { + return domainName_; } -std::string AddDomainBackupRequest::getPeriodType()const -{ - return periodType_; +void AddDomainBackupRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void AddDomainBackupRequest::setPeriodType(const std::string& periodType) -{ - periodType_ = periodType; - setParameter("PeriodType", periodType); +std::string AddDomainBackupRequest::getPeriodType() const { + return periodType_; } -std::string AddDomainBackupRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddDomainBackupRequest::setPeriodType(const std::string &periodType) { + periodType_ = periodType; + setParameter(std::string("PeriodType"), periodType); } -void AddDomainBackupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddDomainBackupRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddDomainBackupRequest::getUserClientIp()const -{ - return userClientIp_; +void AddDomainBackupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddDomainBackupRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddDomainBackupRequest::getUserClientIp() const { + return userClientIp_; } -std::string AddDomainBackupRequest::getLang()const -{ - return lang_; +void AddDomainBackupRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddDomainBackupRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddDomainBackupRequest::getLang() const { + return lang_; +} + +void AddDomainBackupRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/AddDomainBackupResult.cc b/alidns/src/model/AddDomainBackupResult.cc index 5f4da9100..a18dda169 100644 --- a/alidns/src/model/AddDomainBackupResult.cc +++ b/alidns/src/model/AddDomainBackupResult.cc @@ -39,10 +39,10 @@ void AddDomainBackupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["DomainName"].isNull()) - domainName_ = value["DomainName"].asString(); if(!value["PeriodType"].isNull()) periodType_ = value["PeriodType"].asString(); + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); } diff --git a/alidns/src/model/AddDomainGroupRequest.cc b/alidns/src/model/AddDomainGroupRequest.cc index 5961175cc..2df4ead75 100644 --- a/alidns/src/model/AddDomainGroupRequest.cc +++ b/alidns/src/model/AddDomainGroupRequest.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::Alidns::Model::AddDomainGroupRequest; - -AddDomainGroupRequest::AddDomainGroupRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddDomainGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -AddDomainGroupRequest::~AddDomainGroupRequest() -{} - -std::string AddDomainGroupRequest::getGroupName()const -{ - return groupName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddDomainGroupRequest; + +AddDomainGroupRequest::AddDomainGroupRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddDomainGroup") { + setMethod(HttpRequest::Method::Post); } -void AddDomainGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +AddDomainGroupRequest::~AddDomainGroupRequest() {} + +std::string AddDomainGroupRequest::getGroupName() const { + return groupName_; } -std::string AddDomainGroupRequest::getUserClientIp()const -{ - return userClientIp_; +void AddDomainGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -void AddDomainGroupRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddDomainGroupRequest::getUserClientIp() const { + return userClientIp_; } -std::string AddDomainGroupRequest::getLang()const -{ - return lang_; +void AddDomainGroupRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddDomainGroupRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddDomainGroupRequest::getLang() const { + return lang_; +} + +void AddDomainGroupRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/AddDomainGroupResult.cc b/alidns/src/model/AddDomainGroupResult.cc index 78794958c..b3b96be90 100644 --- a/alidns/src/model/AddDomainGroupResult.cc +++ b/alidns/src/model/AddDomainGroupResult.cc @@ -39,10 +39,10 @@ void AddDomainGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["GroupId"].isNull()) - groupId_ = value["GroupId"].asString(); if(!value["GroupName"].isNull()) groupName_ = value["GroupName"].asString(); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); } diff --git a/alidns/src/model/AddDomainRecordRequest.cc b/alidns/src/model/AddDomainRecordRequest.cc index df0c41c1b..7c564ae3c 100644 --- a/alidns/src/model/AddDomainRecordRequest.cc +++ b/alidns/src/model/AddDomainRecordRequest.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::Alidns::Model::AddDomainRecordRequest; - -AddDomainRecordRequest::AddDomainRecordRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddDomainRecord") -{ - setMethod(HttpRequest::Method::Post); -} - -AddDomainRecordRequest::~AddDomainRecordRequest() -{} - -std::string AddDomainRecordRequest::getRR()const -{ - return rR_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddDomainRecordRequest; + +AddDomainRecordRequest::AddDomainRecordRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddDomainRecord") { + setMethod(HttpRequest::Method::Post); } -void AddDomainRecordRequest::setRR(const std::string& rR) -{ - rR_ = rR; - setParameter("RR", rR); +AddDomainRecordRequest::~AddDomainRecordRequest() {} + +std::string AddDomainRecordRequest::getRR() const { + return rR_; } -std::string AddDomainRecordRequest::getLine()const -{ - return line_; +void AddDomainRecordRequest::setRR(const std::string &rR) { + rR_ = rR; + setParameter(std::string("RR"), rR); } -void AddDomainRecordRequest::setLine(const std::string& line) -{ - line_ = line; - setParameter("Line", line); +std::string AddDomainRecordRequest::getLine() const { + return line_; } -std::string AddDomainRecordRequest::getType()const -{ - return type_; +void AddDomainRecordRequest::setLine(const std::string &line) { + line_ = line; + setParameter(std::string("Line"), line); } -void AddDomainRecordRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string AddDomainRecordRequest::getType() const { + return type_; } -std::string AddDomainRecordRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddDomainRecordRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void AddDomainRecordRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddDomainRecordRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddDomainRecordRequest::getLang()const -{ - return lang_; +void AddDomainRecordRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddDomainRecordRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddDomainRecordRequest::getLang() const { + return lang_; } -std::string AddDomainRecordRequest::getValue()const -{ - return value_; +void AddDomainRecordRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void AddDomainRecordRequest::setValue(const std::string& value) -{ - value_ = value; - setParameter("Value", value); +std::string AddDomainRecordRequest::getValue() const { + return value_; } -std::string AddDomainRecordRequest::getDomainName()const -{ - return domainName_; +void AddDomainRecordRequest::setValue(const std::string &value) { + value_ = value; + setParameter(std::string("Value"), value); } -void AddDomainRecordRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string AddDomainRecordRequest::getDomainName() const { + return domainName_; } -long AddDomainRecordRequest::getPriority()const -{ - return priority_; +void AddDomainRecordRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void AddDomainRecordRequest::setPriority(long priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +long AddDomainRecordRequest::getPriority() const { + return priority_; } -long AddDomainRecordRequest::getTTL()const -{ - return tTL_; +void AddDomainRecordRequest::setPriority(long priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void AddDomainRecordRequest::setTTL(long tTL) -{ - tTL_ = tTL; - setParameter("TTL", std::to_string(tTL)); +long AddDomainRecordRequest::getTTL() const { + return tTL_; } -std::string AddDomainRecordRequest::getUserClientIp()const -{ - return userClientIp_; +void AddDomainRecordRequest::setTTL(long tTL) { + tTL_ = tTL; + setParameter(std::string("TTL"), std::to_string(tTL)); } -void AddDomainRecordRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddDomainRecordRequest::getUserClientIp() const { + return userClientIp_; +} + +void AddDomainRecordRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } diff --git a/alidns/src/model/AddDomainRequest.cc b/alidns/src/model/AddDomainRequest.cc index 125a8a06e..390fee38d 100644 --- a/alidns/src/model/AddDomainRequest.cc +++ b/alidns/src/model/AddDomainRequest.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::Alidns::Model::AddDomainRequest; - -AddDomainRequest::AddDomainRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddDomain") -{ - setMethod(HttpRequest::Method::Post); -} - -AddDomainRequest::~AddDomainRequest() -{} - -std::string AddDomainRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddDomainRequest; + +AddDomainRequest::AddDomainRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddDomain") { + setMethod(HttpRequest::Method::Post); } -void AddDomainRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +AddDomainRequest::~AddDomainRequest() {} + +std::string AddDomainRequest::getGroupId() const { + return groupId_; } -std::string AddDomainRequest::getDomainName()const -{ - return domainName_; +void AddDomainRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void AddDomainRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string AddDomainRequest::getDomainName() const { + return domainName_; } -std::string AddDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddDomainRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void AddDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddDomainRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddDomainRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void AddDomainRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddDomainRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string AddDomainRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string AddDomainRequest::getUserClientIp()const -{ - return userClientIp_; +void AddDomainRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void AddDomainRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddDomainRequest::getUserClientIp() const { + return userClientIp_; } -std::string AddDomainRequest::getLang()const -{ - return lang_; +void AddDomainRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddDomainRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddDomainRequest::getLang() const { + return lang_; +} + +void AddDomainRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/AddDomainResult.cc b/alidns/src/model/AddDomainResult.cc index 11a5f881c..7aba21950 100644 --- a/alidns/src/model/AddDomainResult.cc +++ b/alidns/src/model/AddDomainResult.cc @@ -42,6 +42,8 @@ void AddDomainResult::parse(const std::string &payload) auto allDnsServers = value["DnsServers"]["DnsServer"]; for (const auto &item : allDnsServers) dnsServers_.push_back(item.asString()); + if(!value["GroupName"].isNull()) + groupName_ = value["GroupName"].asString(); if(!value["DomainId"].isNull()) domainId_ = value["DomainId"].asString(); if(!value["DomainName"].isNull()) @@ -50,8 +52,6 @@ void AddDomainResult::parse(const std::string &payload) punyCode_ = value["PunyCode"].asString(); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); - if(!value["GroupName"].isNull()) - groupName_ = value["GroupName"].asString(); } diff --git a/alidns/src/model/AddGtmAccessStrategyRequest.cc b/alidns/src/model/AddGtmAccessStrategyRequest.cc index 94addc193..9100757c1 100644 --- a/alidns/src/model/AddGtmAccessStrategyRequest.cc +++ b/alidns/src/model/AddGtmAccessStrategyRequest.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::Alidns::Model::AddGtmAccessStrategyRequest; - -AddGtmAccessStrategyRequest::AddGtmAccessStrategyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddGtmAccessStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -AddGtmAccessStrategyRequest::~AddGtmAccessStrategyRequest() -{} - -std::string AddGtmAccessStrategyRequest::getDefaultAddrPoolId()const -{ - return defaultAddrPoolId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddGtmAccessStrategyRequest; + +AddGtmAccessStrategyRequest::AddGtmAccessStrategyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddGtmAccessStrategy") { + setMethod(HttpRequest::Method::Post); } -void AddGtmAccessStrategyRequest::setDefaultAddrPoolId(const std::string& defaultAddrPoolId) -{ - defaultAddrPoolId_ = defaultAddrPoolId; - setParameter("DefaultAddrPoolId", defaultAddrPoolId); +AddGtmAccessStrategyRequest::~AddGtmAccessStrategyRequest() {} + +std::string AddGtmAccessStrategyRequest::getDefaultAddrPoolId() const { + return defaultAddrPoolId_; } -std::string AddGtmAccessStrategyRequest::getFailoverAddrPoolId()const -{ - return failoverAddrPoolId_; +void AddGtmAccessStrategyRequest::setDefaultAddrPoolId(const std::string &defaultAddrPoolId) { + defaultAddrPoolId_ = defaultAddrPoolId; + setParameter(std::string("DefaultAddrPoolId"), defaultAddrPoolId); } -void AddGtmAccessStrategyRequest::setFailoverAddrPoolId(const std::string& failoverAddrPoolId) -{ - failoverAddrPoolId_ = failoverAddrPoolId; - setParameter("FailoverAddrPoolId", failoverAddrPoolId); +std::string AddGtmAccessStrategyRequest::getFailoverAddrPoolId() const { + return failoverAddrPoolId_; } -std::string AddGtmAccessStrategyRequest::getStrategyName()const -{ - return strategyName_; +void AddGtmAccessStrategyRequest::setFailoverAddrPoolId(const std::string &failoverAddrPoolId) { + failoverAddrPoolId_ = failoverAddrPoolId; + setParameter(std::string("FailoverAddrPoolId"), failoverAddrPoolId); } -void AddGtmAccessStrategyRequest::setStrategyName(const std::string& strategyName) -{ - strategyName_ = strategyName; - setParameter("StrategyName", strategyName); +std::string AddGtmAccessStrategyRequest::getStrategyName() const { + return strategyName_; } -std::string AddGtmAccessStrategyRequest::getAccessLines()const -{ - return accessLines_; +void AddGtmAccessStrategyRequest::setStrategyName(const std::string &strategyName) { + strategyName_ = strategyName; + setParameter(std::string("StrategyName"), strategyName); } -void AddGtmAccessStrategyRequest::setAccessLines(const std::string& accessLines) -{ - accessLines_ = accessLines; - setParameter("AccessLines", accessLines); +std::string AddGtmAccessStrategyRequest::getAccessLines() const { + return accessLines_; } -std::string AddGtmAccessStrategyRequest::getInstanceId()const -{ - return instanceId_; +void AddGtmAccessStrategyRequest::setAccessLines(const std::string &accessLines) { + accessLines_ = accessLines; + setParameter(std::string("AccessLines"), accessLines); } -void AddGtmAccessStrategyRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AddGtmAccessStrategyRequest::getInstanceId() const { + return instanceId_; } -std::string AddGtmAccessStrategyRequest::getUserClientIp()const -{ - return userClientIp_; +void AddGtmAccessStrategyRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AddGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddGtmAccessStrategyRequest::getUserClientIp() const { + return userClientIp_; } -std::string AddGtmAccessStrategyRequest::getLang()const -{ - return lang_; +void AddGtmAccessStrategyRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddGtmAccessStrategyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddGtmAccessStrategyRequest::getLang() const { + return lang_; +} + +void AddGtmAccessStrategyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/AddGtmAddressPoolRequest.cc b/alidns/src/model/AddGtmAddressPoolRequest.cc index 948603ca9..9787f4e0d 100644 --- a/alidns/src/model/AddGtmAddressPoolRequest.cc +++ b/alidns/src/model/AddGtmAddressPoolRequest.cc @@ -1,194 +1,164 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::AddGtmAddressPoolRequest; - -AddGtmAddressPoolRequest::AddGtmAddressPoolRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddGtmAddressPool") -{ - setMethod(HttpRequest::Method::Post); -} - -AddGtmAddressPoolRequest::~AddGtmAddressPoolRequest() -{} - -std::string AddGtmAddressPoolRequest::getMonitorExtendInfo()const -{ - return monitorExtendInfo_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddGtmAddressPoolRequest; + +AddGtmAddressPoolRequest::AddGtmAddressPoolRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddGtmAddressPool") { + setMethod(HttpRequest::Method::Post); } -void AddGtmAddressPoolRequest::setMonitorExtendInfo(const std::string& monitorExtendInfo) -{ - monitorExtendInfo_ = monitorExtendInfo; - setParameter("MonitorExtendInfo", monitorExtendInfo); +AddGtmAddressPoolRequest::~AddGtmAddressPoolRequest() {} + +std::string AddGtmAddressPoolRequest::getMonitorExtendInfo() const { + return monitorExtendInfo_; } -std::string AddGtmAddressPoolRequest::getType()const -{ - return type_; +void AddGtmAddressPoolRequest::setMonitorExtendInfo(const std::string &monitorExtendInfo) { + monitorExtendInfo_ = monitorExtendInfo; + setParameter(std::string("MonitorExtendInfo"), monitorExtendInfo); } -void AddGtmAddressPoolRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string AddGtmAddressPoolRequest::getType() const { + return type_; } -int AddGtmAddressPoolRequest::getTimeout()const -{ - return timeout_; +void AddGtmAddressPoolRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void AddGtmAddressPoolRequest::setTimeout(int timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); +int AddGtmAddressPoolRequest::getTimeout() const { + return timeout_; } -int AddGtmAddressPoolRequest::getMinAvailableAddrNum()const -{ - return minAvailableAddrNum_; +void AddGtmAddressPoolRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); } -void AddGtmAddressPoolRequest::setMinAvailableAddrNum(int minAvailableAddrNum) -{ - minAvailableAddrNum_ = minAvailableAddrNum; - setParameter("MinAvailableAddrNum", std::to_string(minAvailableAddrNum)); +int AddGtmAddressPoolRequest::getMinAvailableAddrNum() const { + return minAvailableAddrNum_; } -int AddGtmAddressPoolRequest::getEvaluationCount()const -{ - return evaluationCount_; +void AddGtmAddressPoolRequest::setMinAvailableAddrNum(int minAvailableAddrNum) { + minAvailableAddrNum_ = minAvailableAddrNum; + setParameter(std::string("MinAvailableAddrNum"), std::to_string(minAvailableAddrNum)); } -void AddGtmAddressPoolRequest::setEvaluationCount(int evaluationCount) -{ - evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); +int AddGtmAddressPoolRequest::getEvaluationCount() const { + return evaluationCount_; } -std::string AddGtmAddressPoolRequest::getLang()const -{ - return lang_; +void AddGtmAddressPoolRequest::setEvaluationCount(int evaluationCount) { + evaluationCount_ = evaluationCount; + setParameter(std::string("EvaluationCount"), std::to_string(evaluationCount)); } -void AddGtmAddressPoolRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddGtmAddressPoolRequest::getLang() const { + return lang_; } -std::vector AddGtmAddressPoolRequest::getAddr()const -{ - return addr_; +void AddGtmAddressPoolRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void AddGtmAddressPoolRequest::setAddr(const std::vector& addr) -{ - addr_ = addr; - for(int dep1 = 0; dep1!= addr.size(); dep1++) { - auto addrObj = addr.at(dep1); - std::string addrObjStr = "Addr." + std::to_string(dep1 + 1); - setParameter(addrObjStr + ".Mode", addrObj.mode); - setParameter(addrObjStr + ".LbaWeight", std::to_string(addrObj.lbaWeight)); - setParameter(addrObjStr + ".Value", addrObj.value); - } +std::vector AddGtmAddressPoolRequest::getAddr() const { + return addr_; } -std::string AddGtmAddressPoolRequest::getMonitorStatus()const -{ - return monitorStatus_; +void AddGtmAddressPoolRequest::setAddr(const std::vector &addr) { + addr_ = addr; + for(int dep1 = 0; dep1 != addr.size(); dep1++) { + auto addrObj = addr.at(dep1); + std::string addrObjStr = std::string("Addr") + "." + std::to_string(dep1 + 1); + setParameter(addrObjStr + ".Mode", addrObj.mode); + setParameter(addrObjStr + ".LbaWeight", std::to_string(addrObj.lbaWeight)); + setParameter(addrObjStr + ".Value", addrObj.value); + } } -void AddGtmAddressPoolRequest::setMonitorStatus(const std::string& monitorStatus) -{ - monitorStatus_ = monitorStatus; - setParameter("MonitorStatus", monitorStatus); +std::string AddGtmAddressPoolRequest::getMonitorStatus() const { + return monitorStatus_; } -std::string AddGtmAddressPoolRequest::getInstanceId()const -{ - return instanceId_; +void AddGtmAddressPoolRequest::setMonitorStatus(const std::string &monitorStatus) { + monitorStatus_ = monitorStatus; + setParameter(std::string("MonitorStatus"), monitorStatus); } -void AddGtmAddressPoolRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AddGtmAddressPoolRequest::getInstanceId() const { + return instanceId_; } -std::string AddGtmAddressPoolRequest::getUserClientIp()const -{ - return userClientIp_; +void AddGtmAddressPoolRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AddGtmAddressPoolRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddGtmAddressPoolRequest::getUserClientIp() const { + return userClientIp_; } -std::string AddGtmAddressPoolRequest::getName()const -{ - return name_; +void AddGtmAddressPoolRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddGtmAddressPoolRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddGtmAddressPoolRequest::getName() const { + return name_; } -std::string AddGtmAddressPoolRequest::getProtocolType()const -{ - return protocolType_; +void AddGtmAddressPoolRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void AddGtmAddressPoolRequest::setProtocolType(const std::string& protocolType) -{ - protocolType_ = protocolType; - setParameter("ProtocolType", protocolType); +std::string AddGtmAddressPoolRequest::getProtocolType() const { + return protocolType_; } -int AddGtmAddressPoolRequest::getInterval()const -{ - return interval_; +void AddGtmAddressPoolRequest::setProtocolType(const std::string &protocolType) { + protocolType_ = protocolType; + setParameter(std::string("ProtocolType"), protocolType); } -void AddGtmAddressPoolRequest::setInterval(int interval) -{ - interval_ = interval; - setParameter("Interval", std::to_string(interval)); +int AddGtmAddressPoolRequest::getInterval() const { + return interval_; } -std::vector AddGtmAddressPoolRequest::getIspCityNode()const -{ - return ispCityNode_; +void AddGtmAddressPoolRequest::setInterval(int interval) { + interval_ = interval; + setParameter(std::string("Interval"), std::to_string(interval)); } -void AddGtmAddressPoolRequest::setIspCityNode(const std::vector& ispCityNode) -{ - ispCityNode_ = ispCityNode; - for(int dep1 = 0; dep1!= ispCityNode.size(); dep1++) { - auto ispCityNodeObj = ispCityNode.at(dep1); - std::string ispCityNodeObjStr = "IspCityNode." + std::to_string(dep1 + 1); - setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); - setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); - } +std::vector AddGtmAddressPoolRequest::getIspCityNode() const { + return ispCityNode_; +} + +void AddGtmAddressPoolRequest::setIspCityNode(const std::vector &ispCityNode) { + ispCityNode_ = ispCityNode; + for(int dep1 = 0; dep1 != ispCityNode.size(); dep1++) { + auto ispCityNodeObj = ispCityNode.at(dep1); + std::string ispCityNodeObjStr = std::string("IspCityNode") + "." + std::to_string(dep1 + 1); + setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); + setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); + } } diff --git a/alidns/src/model/AddGtmMonitorRequest.cc b/alidns/src/model/AddGtmMonitorRequest.cc index 8824ac641..8c9e5bc5e 100644 --- a/alidns/src/model/AddGtmMonitorRequest.cc +++ b/alidns/src/model/AddGtmMonitorRequest.cc @@ -1,133 +1,113 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::AddGtmMonitorRequest; - -AddGtmMonitorRequest::AddGtmMonitorRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddGtmMonitor") -{ - setMethod(HttpRequest::Method::Post); -} - -AddGtmMonitorRequest::~AddGtmMonitorRequest() -{} - -std::string AddGtmMonitorRequest::getMonitorExtendInfo()const -{ - return monitorExtendInfo_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddGtmMonitorRequest; + +AddGtmMonitorRequest::AddGtmMonitorRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddGtmMonitor") { + setMethod(HttpRequest::Method::Post); } -void AddGtmMonitorRequest::setMonitorExtendInfo(const std::string& monitorExtendInfo) -{ - monitorExtendInfo_ = monitorExtendInfo; - setParameter("MonitorExtendInfo", monitorExtendInfo); +AddGtmMonitorRequest::~AddGtmMonitorRequest() {} + +std::string AddGtmMonitorRequest::getMonitorExtendInfo() const { + return monitorExtendInfo_; } -int AddGtmMonitorRequest::getTimeout()const -{ - return timeout_; +void AddGtmMonitorRequest::setMonitorExtendInfo(const std::string &monitorExtendInfo) { + monitorExtendInfo_ = monitorExtendInfo; + setParameter(std::string("MonitorExtendInfo"), monitorExtendInfo); } -void AddGtmMonitorRequest::setTimeout(int timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); +int AddGtmMonitorRequest::getTimeout() const { + return timeout_; } -std::string AddGtmMonitorRequest::getAddrPoolId()const -{ - return addrPoolId_; +void AddGtmMonitorRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); } -void AddGtmMonitorRequest::setAddrPoolId(const std::string& addrPoolId) -{ - addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); +std::string AddGtmMonitorRequest::getAddrPoolId() const { + return addrPoolId_; } -std::string AddGtmMonitorRequest::getUserClientIp()const -{ - return userClientIp_; +void AddGtmMonitorRequest::setAddrPoolId(const std::string &addrPoolId) { + addrPoolId_ = addrPoolId; + setParameter(std::string("AddrPoolId"), addrPoolId); } -void AddGtmMonitorRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddGtmMonitorRequest::getUserClientIp() const { + return userClientIp_; } -int AddGtmMonitorRequest::getEvaluationCount()const -{ - return evaluationCount_; +void AddGtmMonitorRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddGtmMonitorRequest::setEvaluationCount(int evaluationCount) -{ - evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); +int AddGtmMonitorRequest::getEvaluationCount() const { + return evaluationCount_; } -std::string AddGtmMonitorRequest::getProtocolType()const -{ - return protocolType_; +void AddGtmMonitorRequest::setEvaluationCount(int evaluationCount) { + evaluationCount_ = evaluationCount; + setParameter(std::string("EvaluationCount"), std::to_string(evaluationCount)); } -void AddGtmMonitorRequest::setProtocolType(const std::string& protocolType) -{ - protocolType_ = protocolType; - setParameter("ProtocolType", protocolType); +std::string AddGtmMonitorRequest::getProtocolType() const { + return protocolType_; } -int AddGtmMonitorRequest::getInterval()const -{ - return interval_; +void AddGtmMonitorRequest::setProtocolType(const std::string &protocolType) { + protocolType_ = protocolType; + setParameter(std::string("ProtocolType"), protocolType); } -void AddGtmMonitorRequest::setInterval(int interval) -{ - interval_ = interval; - setParameter("Interval", std::to_string(interval)); +int AddGtmMonitorRequest::getInterval() const { + return interval_; } -std::string AddGtmMonitorRequest::getLang()const -{ - return lang_; +void AddGtmMonitorRequest::setInterval(int interval) { + interval_ = interval; + setParameter(std::string("Interval"), std::to_string(interval)); } -void AddGtmMonitorRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddGtmMonitorRequest::getLang() const { + return lang_; } -std::vector AddGtmMonitorRequest::getIspCityNode()const -{ - return ispCityNode_; +void AddGtmMonitorRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void AddGtmMonitorRequest::setIspCityNode(const std::vector& ispCityNode) -{ - ispCityNode_ = ispCityNode; - for(int dep1 = 0; dep1!= ispCityNode.size(); dep1++) { - auto ispCityNodeObj = ispCityNode.at(dep1); - std::string ispCityNodeObjStr = "IspCityNode." + std::to_string(dep1 + 1); - setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); - setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); - } +std::vector AddGtmMonitorRequest::getIspCityNode() const { + return ispCityNode_; +} + +void AddGtmMonitorRequest::setIspCityNode(const std::vector &ispCityNode) { + ispCityNode_ = ispCityNode; + for(int dep1 = 0; dep1 != ispCityNode.size(); dep1++) { + auto ispCityNodeObj = ispCityNode.at(dep1); + std::string ispCityNodeObjStr = std::string("IspCityNode") + "." + std::to_string(dep1 + 1); + setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); + setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); + } } diff --git a/alidns/src/model/AddGtmRecoveryPlanRequest.cc b/alidns/src/model/AddGtmRecoveryPlanRequest.cc index 1122c3de9..9cba7e452 100644 --- a/alidns/src/model/AddGtmRecoveryPlanRequest.cc +++ b/alidns/src/model/AddGtmRecoveryPlanRequest.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::Alidns::Model::AddGtmRecoveryPlanRequest; - -AddGtmRecoveryPlanRequest::AddGtmRecoveryPlanRequest() : - RpcServiceRequest("alidns", "2015-01-09", "AddGtmRecoveryPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -AddGtmRecoveryPlanRequest::~AddGtmRecoveryPlanRequest() -{} - -std::string AddGtmRecoveryPlanRequest::getFaultAddrPool()const -{ - return faultAddrPool_; + */ + +#include + +using AlibabaCloud::Alidns::Model::AddGtmRecoveryPlanRequest; + +AddGtmRecoveryPlanRequest::AddGtmRecoveryPlanRequest() + : RpcServiceRequest("alidns", "2015-01-09", "AddGtmRecoveryPlan") { + setMethod(HttpRequest::Method::Post); } -void AddGtmRecoveryPlanRequest::setFaultAddrPool(const std::string& faultAddrPool) -{ - faultAddrPool_ = faultAddrPool; - setParameter("FaultAddrPool", faultAddrPool); +AddGtmRecoveryPlanRequest::~AddGtmRecoveryPlanRequest() {} + +std::string AddGtmRecoveryPlanRequest::getFaultAddrPool() const { + return faultAddrPool_; } -std::string AddGtmRecoveryPlanRequest::getRemark()const -{ - return remark_; +void AddGtmRecoveryPlanRequest::setFaultAddrPool(const std::string &faultAddrPool) { + faultAddrPool_ = faultAddrPool; + setParameter(std::string("FaultAddrPool"), faultAddrPool); } -void AddGtmRecoveryPlanRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setParameter("Remark", remark); +std::string AddGtmRecoveryPlanRequest::getRemark() const { + return remark_; } -std::string AddGtmRecoveryPlanRequest::getUserClientIp()const -{ - return userClientIp_; +void AddGtmRecoveryPlanRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); } -void AddGtmRecoveryPlanRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string AddGtmRecoveryPlanRequest::getUserClientIp() const { + return userClientIp_; } -std::string AddGtmRecoveryPlanRequest::getName()const -{ - return name_; +void AddGtmRecoveryPlanRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void AddGtmRecoveryPlanRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddGtmRecoveryPlanRequest::getName() const { + return name_; } -std::string AddGtmRecoveryPlanRequest::getLang()const -{ - return lang_; +void AddGtmRecoveryPlanRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void AddGtmRecoveryPlanRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string AddGtmRecoveryPlanRequest::getLang() const { + return lang_; +} + +void AddGtmRecoveryPlanRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/BindInstanceDomainsRequest.cc b/alidns/src/model/BindInstanceDomainsRequest.cc index dee4c792a..2e4502e32 100644 --- a/alidns/src/model/BindInstanceDomainsRequest.cc +++ b/alidns/src/model/BindInstanceDomainsRequest.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::Alidns::Model::BindInstanceDomainsRequest; - -BindInstanceDomainsRequest::BindInstanceDomainsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "BindInstanceDomains") -{ - setMethod(HttpRequest::Method::Post); -} - -BindInstanceDomainsRequest::~BindInstanceDomainsRequest() -{} - -std::string BindInstanceDomainsRequest::getDomainNames()const -{ - return domainNames_; + */ + +#include + +using AlibabaCloud::Alidns::Model::BindInstanceDomainsRequest; + +BindInstanceDomainsRequest::BindInstanceDomainsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "BindInstanceDomains") { + setMethod(HttpRequest::Method::Post); } -void BindInstanceDomainsRequest::setDomainNames(const std::string& domainNames) -{ - domainNames_ = domainNames; - setParameter("DomainNames", domainNames); +BindInstanceDomainsRequest::~BindInstanceDomainsRequest() {} + +std::string BindInstanceDomainsRequest::getDomainNames() const { + return domainNames_; } -std::string BindInstanceDomainsRequest::getInstanceId()const -{ - return instanceId_; +void BindInstanceDomainsRequest::setDomainNames(const std::string &domainNames) { + domainNames_ = domainNames; + setParameter(std::string("DomainNames"), domainNames); } -void BindInstanceDomainsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string BindInstanceDomainsRequest::getInstanceId() const { + return instanceId_; } -std::string BindInstanceDomainsRequest::getUserClientIp()const -{ - return userClientIp_; +void BindInstanceDomainsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void BindInstanceDomainsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string BindInstanceDomainsRequest::getUserClientIp() const { + return userClientIp_; } -std::string BindInstanceDomainsRequest::getLang()const -{ - return lang_; +void BindInstanceDomainsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void BindInstanceDomainsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string BindInstanceDomainsRequest::getLang() const { + return lang_; +} + +void BindInstanceDomainsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/BindInstanceDomainsResult.cc b/alidns/src/model/BindInstanceDomainsResult.cc index 559b03825..804ac6a30 100644 --- a/alidns/src/model/BindInstanceDomainsResult.cc +++ b/alidns/src/model/BindInstanceDomainsResult.cc @@ -39,10 +39,10 @@ void BindInstanceDomainsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["SuccessCount"].isNull()) - successCount_ = std::stoi(value["SuccessCount"].asString()); if(!value["FailedCount"].isNull()) failedCount_ = std::stoi(value["FailedCount"].asString()); + if(!value["SuccessCount"].isNull()) + successCount_ = std::stoi(value["SuccessCount"].asString()); } diff --git a/alidns/src/model/ChangeDomainGroupRequest.cc b/alidns/src/model/ChangeDomainGroupRequest.cc index 99f4fb6a8..568619376 100644 --- a/alidns/src/model/ChangeDomainGroupRequest.cc +++ b/alidns/src/model/ChangeDomainGroupRequest.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::Alidns::Model::ChangeDomainGroupRequest; - -ChangeDomainGroupRequest::ChangeDomainGroupRequest() : - RpcServiceRequest("alidns", "2015-01-09", "ChangeDomainGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ChangeDomainGroupRequest::~ChangeDomainGroupRequest() -{} - -std::string ChangeDomainGroupRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::ChangeDomainGroupRequest; + +ChangeDomainGroupRequest::ChangeDomainGroupRequest() + : RpcServiceRequest("alidns", "2015-01-09", "ChangeDomainGroup") { + setMethod(HttpRequest::Method::Post); } -void ChangeDomainGroupRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +ChangeDomainGroupRequest::~ChangeDomainGroupRequest() {} + +std::string ChangeDomainGroupRequest::getGroupId() const { + return groupId_; } -std::string ChangeDomainGroupRequest::getDomainName()const -{ - return domainName_; +void ChangeDomainGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void ChangeDomainGroupRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string ChangeDomainGroupRequest::getDomainName() const { + return domainName_; } -std::string ChangeDomainGroupRequest::getUserClientIp()const -{ - return userClientIp_; +void ChangeDomainGroupRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void ChangeDomainGroupRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string ChangeDomainGroupRequest::getUserClientIp() const { + return userClientIp_; } -std::string ChangeDomainGroupRequest::getLang()const -{ - return lang_; +void ChangeDomainGroupRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void ChangeDomainGroupRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string ChangeDomainGroupRequest::getLang() const { + return lang_; +} + +void ChangeDomainGroupRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/ChangeDomainGroupResult.cc b/alidns/src/model/ChangeDomainGroupResult.cc index 31cacb59b..9d896cb35 100644 --- a/alidns/src/model/ChangeDomainGroupResult.cc +++ b/alidns/src/model/ChangeDomainGroupResult.cc @@ -39,10 +39,10 @@ void ChangeDomainGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["GroupId"].isNull()) - groupId_ = value["GroupId"].asString(); if(!value["GroupName"].isNull()) groupName_ = value["GroupName"].asString(); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); } diff --git a/alidns/src/model/ChangeDomainOfDnsProductRequest.cc b/alidns/src/model/ChangeDomainOfDnsProductRequest.cc index a1847a24f..295a3fff1 100644 --- a/alidns/src/model/ChangeDomainOfDnsProductRequest.cc +++ b/alidns/src/model/ChangeDomainOfDnsProductRequest.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::Alidns::Model::ChangeDomainOfDnsProductRequest; - -ChangeDomainOfDnsProductRequest::ChangeDomainOfDnsProductRequest() : - RpcServiceRequest("alidns", "2015-01-09", "ChangeDomainOfDnsProduct") -{ - setMethod(HttpRequest::Method::Post); -} - -ChangeDomainOfDnsProductRequest::~ChangeDomainOfDnsProductRequest() -{} - -std::string ChangeDomainOfDnsProductRequest::getAccessKeyId()const -{ - return accessKeyId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::ChangeDomainOfDnsProductRequest; + +ChangeDomainOfDnsProductRequest::ChangeDomainOfDnsProductRequest() + : RpcServiceRequest("alidns", "2015-01-09", "ChangeDomainOfDnsProduct") { + setMethod(HttpRequest::Method::Post); } -void ChangeDomainOfDnsProductRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +ChangeDomainOfDnsProductRequest::~ChangeDomainOfDnsProductRequest() {} + +std::string ChangeDomainOfDnsProductRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ChangeDomainOfDnsProductRequest::getInstanceId()const -{ - return instanceId_; +void ChangeDomainOfDnsProductRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ChangeDomainOfDnsProductRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ChangeDomainOfDnsProductRequest::getInstanceId() const { + return instanceId_; } -std::string ChangeDomainOfDnsProductRequest::getNewDomain()const -{ - return newDomain_; +void ChangeDomainOfDnsProductRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ChangeDomainOfDnsProductRequest::setNewDomain(const std::string& newDomain) -{ - newDomain_ = newDomain; - setParameter("NewDomain", newDomain); +std::string ChangeDomainOfDnsProductRequest::getNewDomain() const { + return newDomain_; } -std::string ChangeDomainOfDnsProductRequest::getUserClientIp()const -{ - return userClientIp_; +void ChangeDomainOfDnsProductRequest::setNewDomain(const std::string &newDomain) { + newDomain_ = newDomain; + setParameter(std::string("NewDomain"), newDomain); } -void ChangeDomainOfDnsProductRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string ChangeDomainOfDnsProductRequest::getUserClientIp() const { + return userClientIp_; } -bool ChangeDomainOfDnsProductRequest::getForce()const -{ - return force_; +void ChangeDomainOfDnsProductRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void ChangeDomainOfDnsProductRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +bool ChangeDomainOfDnsProductRequest::getForce() const { + return force_; } -std::string ChangeDomainOfDnsProductRequest::getLang()const -{ - return lang_; +void ChangeDomainOfDnsProductRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); } -void ChangeDomainOfDnsProductRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string ChangeDomainOfDnsProductRequest::getLang() const { + return lang_; +} + +void ChangeDomainOfDnsProductRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/CopyGtmConfigRequest.cc b/alidns/src/model/CopyGtmConfigRequest.cc index 5f138f652..b35ff7a97 100644 --- a/alidns/src/model/CopyGtmConfigRequest.cc +++ b/alidns/src/model/CopyGtmConfigRequest.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::Alidns::Model::CopyGtmConfigRequest; - -CopyGtmConfigRequest::CopyGtmConfigRequest() : - RpcServiceRequest("alidns", "2015-01-09", "CopyGtmConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -CopyGtmConfigRequest::~CopyGtmConfigRequest() -{} - -std::string CopyGtmConfigRequest::getSourceId()const -{ - return sourceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::CopyGtmConfigRequest; + +CopyGtmConfigRequest::CopyGtmConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "CopyGtmConfig") { + setMethod(HttpRequest::Method::Post); } -void CopyGtmConfigRequest::setSourceId(const std::string& sourceId) -{ - sourceId_ = sourceId; - setParameter("SourceId", sourceId); +CopyGtmConfigRequest::~CopyGtmConfigRequest() {} + +std::string CopyGtmConfigRequest::getSourceId() const { + return sourceId_; } -std::string CopyGtmConfigRequest::getTargetId()const -{ - return targetId_; +void CopyGtmConfigRequest::setSourceId(const std::string &sourceId) { + sourceId_ = sourceId; + setParameter(std::string("SourceId"), sourceId); } -void CopyGtmConfigRequest::setTargetId(const std::string& targetId) -{ - targetId_ = targetId; - setParameter("TargetId", targetId); +std::string CopyGtmConfigRequest::getTargetId() const { + return targetId_; } -std::string CopyGtmConfigRequest::getCopyType()const -{ - return copyType_; +void CopyGtmConfigRequest::setTargetId(const std::string &targetId) { + targetId_ = targetId; + setParameter(std::string("TargetId"), targetId); } -void CopyGtmConfigRequest::setCopyType(const std::string& copyType) -{ - copyType_ = copyType; - setParameter("CopyType", copyType); +std::string CopyGtmConfigRequest::getCopyType() const { + return copyType_; } -std::string CopyGtmConfigRequest::getUserClientIp()const -{ - return userClientIp_; +void CopyGtmConfigRequest::setCopyType(const std::string ©Type) { + copyType_ = copyType; + setParameter(std::string("CopyType"), copyType); } -void CopyGtmConfigRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string CopyGtmConfigRequest::getUserClientIp() const { + return userClientIp_; } -std::string CopyGtmConfigRequest::getLang()const -{ - return lang_; +void CopyGtmConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void CopyGtmConfigRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string CopyGtmConfigRequest::getLang() const { + return lang_; +} + +void CopyGtmConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/CreatePdnsAppKeyRequest.cc b/alidns/src/model/CreatePdnsAppKeyRequest.cc index 93fb6a9fb..7adb1e124 100644 --- a/alidns/src/model/CreatePdnsAppKeyRequest.cc +++ b/alidns/src/model/CreatePdnsAppKeyRequest.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::Alidns::Model::CreatePdnsAppKeyRequest; - -CreatePdnsAppKeyRequest::CreatePdnsAppKeyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "CreatePdnsAppKey") -{ - setMethod(HttpRequest::Method::Post); -} - -CreatePdnsAppKeyRequest::~CreatePdnsAppKeyRequest() -{} - -std::string CreatePdnsAppKeyRequest::getLang()const -{ - return lang_; + */ + +#include + +using AlibabaCloud::Alidns::Model::CreatePdnsAppKeyRequest; + +CreatePdnsAppKeyRequest::CreatePdnsAppKeyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "CreatePdnsAppKey") { + setMethod(HttpRequest::Method::Post); } -void CreatePdnsAppKeyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +CreatePdnsAppKeyRequest::~CreatePdnsAppKeyRequest() {} + +std::string CreatePdnsAppKeyRequest::getLang() const { + return lang_; +} + +void CreatePdnsAppKeyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/CreatePdnsUdpIpSegmentRequest.cc b/alidns/src/model/CreatePdnsUdpIpSegmentRequest.cc index ecd95a9b7..859c6b17f 100644 --- a/alidns/src/model/CreatePdnsUdpIpSegmentRequest.cc +++ b/alidns/src/model/CreatePdnsUdpIpSegmentRequest.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::Alidns::Model::CreatePdnsUdpIpSegmentRequest; - -CreatePdnsUdpIpSegmentRequest::CreatePdnsUdpIpSegmentRequest() : - RpcServiceRequest("alidns", "2015-01-09", "CreatePdnsUdpIpSegment") -{ - setMethod(HttpRequest::Method::Post); -} - -CreatePdnsUdpIpSegmentRequest::~CreatePdnsUdpIpSegmentRequest() -{} - -std::string CreatePdnsUdpIpSegmentRequest::getIp()const -{ - return ip_; + */ + +#include + +using AlibabaCloud::Alidns::Model::CreatePdnsUdpIpSegmentRequest; + +CreatePdnsUdpIpSegmentRequest::CreatePdnsUdpIpSegmentRequest() + : RpcServiceRequest("alidns", "2015-01-09", "CreatePdnsUdpIpSegment") { + setMethod(HttpRequest::Method::Post); } -void CreatePdnsUdpIpSegmentRequest::setIp(const std::string& ip) -{ - ip_ = ip; - setParameter("Ip", ip); +CreatePdnsUdpIpSegmentRequest::~CreatePdnsUdpIpSegmentRequest() {} + +std::string CreatePdnsUdpIpSegmentRequest::getIp() const { + return ip_; } -std::string CreatePdnsUdpIpSegmentRequest::getName()const -{ - return name_; +void CreatePdnsUdpIpSegmentRequest::setIp(const std::string &ip) { + ip_ = ip; + setParameter(std::string("Ip"), ip); } -void CreatePdnsUdpIpSegmentRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreatePdnsUdpIpSegmentRequest::getName() const { + return name_; } -std::string CreatePdnsUdpIpSegmentRequest::getLang()const -{ - return lang_; +void CreatePdnsUdpIpSegmentRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreatePdnsUdpIpSegmentRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string CreatePdnsUdpIpSegmentRequest::getLang() const { + return lang_; +} + +void CreatePdnsUdpIpSegmentRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DeleteCustomLinesRequest.cc b/alidns/src/model/DeleteCustomLinesRequest.cc index ce446d0a7..c1f30a665 100644 --- a/alidns/src/model/DeleteCustomLinesRequest.cc +++ b/alidns/src/model/DeleteCustomLinesRequest.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::Alidns::Model::DeleteCustomLinesRequest; - -DeleteCustomLinesRequest::DeleteCustomLinesRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DeleteCustomLines") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteCustomLinesRequest::~DeleteCustomLinesRequest() -{} - -std::string DeleteCustomLinesRequest::getLineIds()const -{ - return lineIds_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DeleteCustomLinesRequest; + +DeleteCustomLinesRequest::DeleteCustomLinesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DeleteCustomLines") { + setMethod(HttpRequest::Method::Post); } -void DeleteCustomLinesRequest::setLineIds(const std::string& lineIds) -{ - lineIds_ = lineIds; - setParameter("LineIds", lineIds); +DeleteCustomLinesRequest::~DeleteCustomLinesRequest() {} + +std::string DeleteCustomLinesRequest::getLineIds() const { + return lineIds_; } -std::string DeleteCustomLinesRequest::getUserClientIp()const -{ - return userClientIp_; +void DeleteCustomLinesRequest::setLineIds(const std::string &lineIds) { + lineIds_ = lineIds; + setParameter(std::string("LineIds"), lineIds); } -void DeleteCustomLinesRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DeleteCustomLinesRequest::getUserClientIp() const { + return userClientIp_; } -std::string DeleteCustomLinesRequest::getLang()const -{ - return lang_; +void DeleteCustomLinesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DeleteCustomLinesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DeleteCustomLinesRequest::getLang() const { + return lang_; +} + +void DeleteCustomLinesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DeleteDnsCacheDomainRequest.cc b/alidns/src/model/DeleteDnsCacheDomainRequest.cc index 01d91ee08..c60e2d401 100644 --- a/alidns/src/model/DeleteDnsCacheDomainRequest.cc +++ b/alidns/src/model/DeleteDnsCacheDomainRequest.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::Alidns::Model::DeleteDnsCacheDomainRequest; - -DeleteDnsCacheDomainRequest::DeleteDnsCacheDomainRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DeleteDnsCacheDomain") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDnsCacheDomainRequest::~DeleteDnsCacheDomainRequest() -{} - -std::string DeleteDnsCacheDomainRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DeleteDnsCacheDomainRequest; + +DeleteDnsCacheDomainRequest::DeleteDnsCacheDomainRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DeleteDnsCacheDomain") { + setMethod(HttpRequest::Method::Post); } -void DeleteDnsCacheDomainRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DeleteDnsCacheDomainRequest::~DeleteDnsCacheDomainRequest() {} + +std::string DeleteDnsCacheDomainRequest::getDomainName() const { + return domainName_; } -std::string DeleteDnsCacheDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteDnsCacheDomainRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DeleteDnsCacheDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteDnsCacheDomainRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteDnsCacheDomainRequest::getUserClientIp()const -{ - return userClientIp_; +void DeleteDnsCacheDomainRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteDnsCacheDomainRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DeleteDnsCacheDomainRequest::getUserClientIp() const { + return userClientIp_; } -std::string DeleteDnsCacheDomainRequest::getLang()const -{ - return lang_; +void DeleteDnsCacheDomainRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DeleteDnsCacheDomainRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DeleteDnsCacheDomainRequest::getLang() const { + return lang_; +} + +void DeleteDnsCacheDomainRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DeleteDnsGtmAccessStrategyRequest.cc b/alidns/src/model/DeleteDnsGtmAccessStrategyRequest.cc index 832842c6f..ec6a3d5b5 100644 --- a/alidns/src/model/DeleteDnsGtmAccessStrategyRequest.cc +++ b/alidns/src/model/DeleteDnsGtmAccessStrategyRequest.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::Alidns::Model::DeleteDnsGtmAccessStrategyRequest; - -DeleteDnsGtmAccessStrategyRequest::DeleteDnsGtmAccessStrategyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DeleteDnsGtmAccessStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDnsGtmAccessStrategyRequest::~DeleteDnsGtmAccessStrategyRequest() -{} - -std::string DeleteDnsGtmAccessStrategyRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DeleteDnsGtmAccessStrategyRequest; + +DeleteDnsGtmAccessStrategyRequest::DeleteDnsGtmAccessStrategyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DeleteDnsGtmAccessStrategy") { + setMethod(HttpRequest::Method::Post); } -void DeleteDnsGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +DeleteDnsGtmAccessStrategyRequest::~DeleteDnsGtmAccessStrategyRequest() {} + +std::string DeleteDnsGtmAccessStrategyRequest::getUserClientIp() const { + return userClientIp_; } -std::string DeleteDnsGtmAccessStrategyRequest::getStrategyId()const -{ - return strategyId_; +void DeleteDnsGtmAccessStrategyRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DeleteDnsGtmAccessStrategyRequest::setStrategyId(const std::string& strategyId) -{ - strategyId_ = strategyId; - setParameter("StrategyId", strategyId); +std::string DeleteDnsGtmAccessStrategyRequest::getStrategyId() const { + return strategyId_; } -std::string DeleteDnsGtmAccessStrategyRequest::getLang()const -{ - return lang_; +void DeleteDnsGtmAccessStrategyRequest::setStrategyId(const std::string &strategyId) { + strategyId_ = strategyId; + setParameter(std::string("StrategyId"), strategyId); } -void DeleteDnsGtmAccessStrategyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DeleteDnsGtmAccessStrategyRequest::getLang() const { + return lang_; +} + +void DeleteDnsGtmAccessStrategyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DeleteDnsGtmAddressPoolRequest.cc b/alidns/src/model/DeleteDnsGtmAddressPoolRequest.cc index 5cbb74b86..ffc696515 100644 --- a/alidns/src/model/DeleteDnsGtmAddressPoolRequest.cc +++ b/alidns/src/model/DeleteDnsGtmAddressPoolRequest.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::Alidns::Model::DeleteDnsGtmAddressPoolRequest; - -DeleteDnsGtmAddressPoolRequest::DeleteDnsGtmAddressPoolRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DeleteDnsGtmAddressPool") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDnsGtmAddressPoolRequest::~DeleteDnsGtmAddressPoolRequest() -{} - -std::string DeleteDnsGtmAddressPoolRequest::getAddrPoolId()const -{ - return addrPoolId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DeleteDnsGtmAddressPoolRequest; + +DeleteDnsGtmAddressPoolRequest::DeleteDnsGtmAddressPoolRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DeleteDnsGtmAddressPool") { + setMethod(HttpRequest::Method::Post); } -void DeleteDnsGtmAddressPoolRequest::setAddrPoolId(const std::string& addrPoolId) -{ - addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); +DeleteDnsGtmAddressPoolRequest::~DeleteDnsGtmAddressPoolRequest() {} + +std::string DeleteDnsGtmAddressPoolRequest::getAddrPoolId() const { + return addrPoolId_; } -std::string DeleteDnsGtmAddressPoolRequest::getUserClientIp()const -{ - return userClientIp_; +void DeleteDnsGtmAddressPoolRequest::setAddrPoolId(const std::string &addrPoolId) { + addrPoolId_ = addrPoolId; + setParameter(std::string("AddrPoolId"), addrPoolId); } -void DeleteDnsGtmAddressPoolRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DeleteDnsGtmAddressPoolRequest::getUserClientIp() const { + return userClientIp_; } -std::string DeleteDnsGtmAddressPoolRequest::getLang()const -{ - return lang_; +void DeleteDnsGtmAddressPoolRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DeleteDnsGtmAddressPoolRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DeleteDnsGtmAddressPoolRequest::getLang() const { + return lang_; +} + +void DeleteDnsGtmAddressPoolRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DeleteDomainGroupRequest.cc b/alidns/src/model/DeleteDomainGroupRequest.cc index 6c1beeb68..6949063a7 100644 --- a/alidns/src/model/DeleteDomainGroupRequest.cc +++ b/alidns/src/model/DeleteDomainGroupRequest.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::Alidns::Model::DeleteDomainGroupRequest; - -DeleteDomainGroupRequest::DeleteDomainGroupRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DeleteDomainGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDomainGroupRequest::~DeleteDomainGroupRequest() -{} - -std::string DeleteDomainGroupRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DeleteDomainGroupRequest; + +DeleteDomainGroupRequest::DeleteDomainGroupRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DeleteDomainGroup") { + setMethod(HttpRequest::Method::Post); } -void DeleteDomainGroupRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +DeleteDomainGroupRequest::~DeleteDomainGroupRequest() {} + +std::string DeleteDomainGroupRequest::getGroupId() const { + return groupId_; } -std::string DeleteDomainGroupRequest::getUserClientIp()const -{ - return userClientIp_; +void DeleteDomainGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DeleteDomainGroupRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DeleteDomainGroupRequest::getUserClientIp() const { + return userClientIp_; } -std::string DeleteDomainGroupRequest::getLang()const -{ - return lang_; +void DeleteDomainGroupRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DeleteDomainGroupRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DeleteDomainGroupRequest::getLang() const { + return lang_; +} + +void DeleteDomainGroupRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DeleteDomainRecordRequest.cc b/alidns/src/model/DeleteDomainRecordRequest.cc index a9e4bd0d4..c69061d82 100644 --- a/alidns/src/model/DeleteDomainRecordRequest.cc +++ b/alidns/src/model/DeleteDomainRecordRequest.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::Alidns::Model::DeleteDomainRecordRequest; - -DeleteDomainRecordRequest::DeleteDomainRecordRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DeleteDomainRecord") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDomainRecordRequest::~DeleteDomainRecordRequest() -{} - -std::string DeleteDomainRecordRequest::getAccessKeyId()const -{ - return accessKeyId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DeleteDomainRecordRequest; + +DeleteDomainRecordRequest::DeleteDomainRecordRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DeleteDomainRecord") { + setMethod(HttpRequest::Method::Post); } -void DeleteDomainRecordRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +DeleteDomainRecordRequest::~DeleteDomainRecordRequest() {} + +std::string DeleteDomainRecordRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteDomainRecordRequest::getRecordId()const -{ - return recordId_; +void DeleteDomainRecordRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteDomainRecordRequest::setRecordId(const std::string& recordId) -{ - recordId_ = recordId; - setParameter("RecordId", recordId); +std::string DeleteDomainRecordRequest::getRecordId() const { + return recordId_; } -std::string DeleteDomainRecordRequest::getUserClientIp()const -{ - return userClientIp_; +void DeleteDomainRecordRequest::setRecordId(const std::string &recordId) { + recordId_ = recordId; + setParameter(std::string("RecordId"), recordId); } -void DeleteDomainRecordRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DeleteDomainRecordRequest::getUserClientIp() const { + return userClientIp_; } -std::string DeleteDomainRecordRequest::getLang()const -{ - return lang_; +void DeleteDomainRecordRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DeleteDomainRecordRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DeleteDomainRecordRequest::getLang() const { + return lang_; +} + +void DeleteDomainRecordRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DeleteDomainRequest.cc b/alidns/src/model/DeleteDomainRequest.cc index bb18aed71..d21b3a1ae 100644 --- a/alidns/src/model/DeleteDomainRequest.cc +++ b/alidns/src/model/DeleteDomainRequest.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::Alidns::Model::DeleteDomainRequest; - -DeleteDomainRequest::DeleteDomainRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DeleteDomain") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDomainRequest::~DeleteDomainRequest() -{} - -std::string DeleteDomainRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DeleteDomainRequest; + +DeleteDomainRequest::DeleteDomainRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DeleteDomain") { + setMethod(HttpRequest::Method::Post); } -void DeleteDomainRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DeleteDomainRequest::~DeleteDomainRequest() {} + +std::string DeleteDomainRequest::getDomainName() const { + return domainName_; } -std::string DeleteDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteDomainRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DeleteDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteDomainRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteDomainRequest::getUserClientIp()const -{ - return userClientIp_; +void DeleteDomainRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteDomainRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DeleteDomainRequest::getUserClientIp() const { + return userClientIp_; } -std::string DeleteDomainRequest::getLang()const -{ - return lang_; +void DeleteDomainRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DeleteDomainRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DeleteDomainRequest::getLang() const { + return lang_; +} + +void DeleteDomainRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DeleteGtmAccessStrategyRequest.cc b/alidns/src/model/DeleteGtmAccessStrategyRequest.cc index cca01d41f..fbf21b6f3 100644 --- a/alidns/src/model/DeleteGtmAccessStrategyRequest.cc +++ b/alidns/src/model/DeleteGtmAccessStrategyRequest.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::Alidns::Model::DeleteGtmAccessStrategyRequest; - -DeleteGtmAccessStrategyRequest::DeleteGtmAccessStrategyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DeleteGtmAccessStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteGtmAccessStrategyRequest::~DeleteGtmAccessStrategyRequest() -{} - -std::string DeleteGtmAccessStrategyRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DeleteGtmAccessStrategyRequest; + +DeleteGtmAccessStrategyRequest::DeleteGtmAccessStrategyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DeleteGtmAccessStrategy") { + setMethod(HttpRequest::Method::Post); } -void DeleteGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +DeleteGtmAccessStrategyRequest::~DeleteGtmAccessStrategyRequest() {} + +std::string DeleteGtmAccessStrategyRequest::getUserClientIp() const { + return userClientIp_; } -std::string DeleteGtmAccessStrategyRequest::getStrategyId()const -{ - return strategyId_; +void DeleteGtmAccessStrategyRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DeleteGtmAccessStrategyRequest::setStrategyId(const std::string& strategyId) -{ - strategyId_ = strategyId; - setParameter("StrategyId", strategyId); +std::string DeleteGtmAccessStrategyRequest::getStrategyId() const { + return strategyId_; } -std::string DeleteGtmAccessStrategyRequest::getLang()const -{ - return lang_; +void DeleteGtmAccessStrategyRequest::setStrategyId(const std::string &strategyId) { + strategyId_ = strategyId; + setParameter(std::string("StrategyId"), strategyId); } -void DeleteGtmAccessStrategyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DeleteGtmAccessStrategyRequest::getLang() const { + return lang_; +} + +void DeleteGtmAccessStrategyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DeleteGtmAddressPoolRequest.cc b/alidns/src/model/DeleteGtmAddressPoolRequest.cc index bfb223eeb..798cf9ccc 100644 --- a/alidns/src/model/DeleteGtmAddressPoolRequest.cc +++ b/alidns/src/model/DeleteGtmAddressPoolRequest.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::Alidns::Model::DeleteGtmAddressPoolRequest; - -DeleteGtmAddressPoolRequest::DeleteGtmAddressPoolRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DeleteGtmAddressPool") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteGtmAddressPoolRequest::~DeleteGtmAddressPoolRequest() -{} - -std::string DeleteGtmAddressPoolRequest::getAddrPoolId()const -{ - return addrPoolId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DeleteGtmAddressPoolRequest; + +DeleteGtmAddressPoolRequest::DeleteGtmAddressPoolRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DeleteGtmAddressPool") { + setMethod(HttpRequest::Method::Post); } -void DeleteGtmAddressPoolRequest::setAddrPoolId(const std::string& addrPoolId) -{ - addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); +DeleteGtmAddressPoolRequest::~DeleteGtmAddressPoolRequest() {} + +std::string DeleteGtmAddressPoolRequest::getAddrPoolId() const { + return addrPoolId_; } -std::string DeleteGtmAddressPoolRequest::getUserClientIp()const -{ - return userClientIp_; +void DeleteGtmAddressPoolRequest::setAddrPoolId(const std::string &addrPoolId) { + addrPoolId_ = addrPoolId; + setParameter(std::string("AddrPoolId"), addrPoolId); } -void DeleteGtmAddressPoolRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DeleteGtmAddressPoolRequest::getUserClientIp() const { + return userClientIp_; } -std::string DeleteGtmAddressPoolRequest::getLang()const -{ - return lang_; +void DeleteGtmAddressPoolRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DeleteGtmAddressPoolRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DeleteGtmAddressPoolRequest::getLang() const { + return lang_; +} + +void DeleteGtmAddressPoolRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DeleteGtmRecoveryPlanRequest.cc b/alidns/src/model/DeleteGtmRecoveryPlanRequest.cc index cfce90bc1..d31d8b0fc 100644 --- a/alidns/src/model/DeleteGtmRecoveryPlanRequest.cc +++ b/alidns/src/model/DeleteGtmRecoveryPlanRequest.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::Alidns::Model::DeleteGtmRecoveryPlanRequest; - -DeleteGtmRecoveryPlanRequest::DeleteGtmRecoveryPlanRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DeleteGtmRecoveryPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteGtmRecoveryPlanRequest::~DeleteGtmRecoveryPlanRequest() -{} - -std::string DeleteGtmRecoveryPlanRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DeleteGtmRecoveryPlanRequest; + +DeleteGtmRecoveryPlanRequest::DeleteGtmRecoveryPlanRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DeleteGtmRecoveryPlan") { + setMethod(HttpRequest::Method::Post); } -void DeleteGtmRecoveryPlanRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +DeleteGtmRecoveryPlanRequest::~DeleteGtmRecoveryPlanRequest() {} + +std::string DeleteGtmRecoveryPlanRequest::getUserClientIp() const { + return userClientIp_; } -long DeleteGtmRecoveryPlanRequest::getRecoveryPlanId()const -{ - return recoveryPlanId_; +void DeleteGtmRecoveryPlanRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DeleteGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) -{ - recoveryPlanId_ = recoveryPlanId; - setParameter("RecoveryPlanId", std::to_string(recoveryPlanId)); +long DeleteGtmRecoveryPlanRequest::getRecoveryPlanId() const { + return recoveryPlanId_; } -std::string DeleteGtmRecoveryPlanRequest::getLang()const -{ - return lang_; +void DeleteGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) { + recoveryPlanId_ = recoveryPlanId; + setParameter(std::string("RecoveryPlanId"), std::to_string(recoveryPlanId)); } -void DeleteGtmRecoveryPlanRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DeleteGtmRecoveryPlanRequest::getLang() const { + return lang_; +} + +void DeleteGtmRecoveryPlanRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DeleteSubDomainRecordsRequest.cc b/alidns/src/model/DeleteSubDomainRecordsRequest.cc index a50ebc195..d4c8a8e68 100644 --- a/alidns/src/model/DeleteSubDomainRecordsRequest.cc +++ b/alidns/src/model/DeleteSubDomainRecordsRequest.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::Alidns::Model::DeleteSubDomainRecordsRequest; - -DeleteSubDomainRecordsRequest::DeleteSubDomainRecordsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DeleteSubDomainRecords") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSubDomainRecordsRequest::~DeleteSubDomainRecordsRequest() -{} - -std::string DeleteSubDomainRecordsRequest::getRR()const -{ - return rR_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DeleteSubDomainRecordsRequest; + +DeleteSubDomainRecordsRequest::DeleteSubDomainRecordsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DeleteSubDomainRecords") { + setMethod(HttpRequest::Method::Post); } -void DeleteSubDomainRecordsRequest::setRR(const std::string& rR) -{ - rR_ = rR; - setParameter("RR", rR); +DeleteSubDomainRecordsRequest::~DeleteSubDomainRecordsRequest() {} + +std::string DeleteSubDomainRecordsRequest::getRR() const { + return rR_; } -std::string DeleteSubDomainRecordsRequest::getDomainName()const -{ - return domainName_; +void DeleteSubDomainRecordsRequest::setRR(const std::string &rR) { + rR_ = rR; + setParameter(std::string("RR"), rR); } -void DeleteSubDomainRecordsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string DeleteSubDomainRecordsRequest::getDomainName() const { + return domainName_; } -std::string DeleteSubDomainRecordsRequest::getType()const -{ - return type_; +void DeleteSubDomainRecordsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DeleteSubDomainRecordsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DeleteSubDomainRecordsRequest::getType() const { + return type_; } -std::string DeleteSubDomainRecordsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteSubDomainRecordsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DeleteSubDomainRecordsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteSubDomainRecordsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteSubDomainRecordsRequest::getUserClientIp()const -{ - return userClientIp_; +void DeleteSubDomainRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteSubDomainRecordsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DeleteSubDomainRecordsRequest::getUserClientIp() const { + return userClientIp_; } -std::string DeleteSubDomainRecordsRequest::getLang()const -{ - return lang_; +void DeleteSubDomainRecordsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DeleteSubDomainRecordsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DeleteSubDomainRecordsRequest::getLang() const { + return lang_; +} + +void DeleteSubDomainRecordsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeBatchResultCountRequest.cc b/alidns/src/model/DescribeBatchResultCountRequest.cc index 20c4ded88..d659f2232 100644 --- a/alidns/src/model/DescribeBatchResultCountRequest.cc +++ b/alidns/src/model/DescribeBatchResultCountRequest.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::Alidns::Model::DescribeBatchResultCountRequest; - -DescribeBatchResultCountRequest::DescribeBatchResultCountRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeBatchResultCount") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBatchResultCountRequest::~DescribeBatchResultCountRequest() -{} - -std::string DescribeBatchResultCountRequest::getBatchType()const -{ - return batchType_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeBatchResultCountRequest; + +DescribeBatchResultCountRequest::DescribeBatchResultCountRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeBatchResultCount") { + setMethod(HttpRequest::Method::Post); } -void DescribeBatchResultCountRequest::setBatchType(const std::string& batchType) -{ - batchType_ = batchType; - setParameter("BatchType", batchType); +DescribeBatchResultCountRequest::~DescribeBatchResultCountRequest() {} + +std::string DescribeBatchResultCountRequest::getBatchType() const { + return batchType_; } -std::string DescribeBatchResultCountRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeBatchResultCountRequest::setBatchType(const std::string &batchType) { + batchType_ = batchType; + setParameter(std::string("BatchType"), batchType); } -void DescribeBatchResultCountRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeBatchResultCountRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeBatchResultCountRequest::getLang()const -{ - return lang_; +void DescribeBatchResultCountRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeBatchResultCountRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeBatchResultCountRequest::getLang() const { + return lang_; } -long DescribeBatchResultCountRequest::getTaskId()const -{ - return taskId_; +void DescribeBatchResultCountRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeBatchResultCountRequest::setTaskId(long taskId) -{ - taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); +long DescribeBatchResultCountRequest::getTaskId() const { + return taskId_; +} + +void DescribeBatchResultCountRequest::setTaskId(long taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), std::to_string(taskId)); } diff --git a/alidns/src/model/DescribeBatchResultCountResult.cc b/alidns/src/model/DescribeBatchResultCountResult.cc index aeb4b8ab2..9ed5c1cda 100644 --- a/alidns/src/model/DescribeBatchResultCountResult.cc +++ b/alidns/src/model/DescribeBatchResultCountResult.cc @@ -43,16 +43,16 @@ void DescribeBatchResultCountResult::parse(const std::string &payload) status_ = std::stoi(value["Status"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["SuccessCount"].isNull()) - successCount_ = std::stoi(value["SuccessCount"].asString()); - if(!value["FailedCount"].isNull()) - failedCount_ = std::stoi(value["FailedCount"].asString()); - if(!value["Reason"].isNull()) - reason_ = value["Reason"].asString(); - if(!value["BatchType"].isNull()) - batchType_ = value["BatchType"].asString(); if(!value["TaskId"].isNull()) taskId_ = std::stol(value["TaskId"].asString()); + if(!value["FailedCount"].isNull()) + failedCount_ = std::stoi(value["FailedCount"].asString()); + if(!value["SuccessCount"].isNull()) + successCount_ = std::stoi(value["SuccessCount"].asString()); + if(!value["BatchType"].isNull()) + batchType_ = value["BatchType"].asString(); + if(!value["Reason"].isNull()) + reason_ = value["Reason"].asString(); } @@ -81,13 +81,13 @@ int DescribeBatchResultCountResult::getSuccessCount()const return successCount_; } -std::string DescribeBatchResultCountResult::getReason()const -{ - return reason_; -} - std::string DescribeBatchResultCountResult::getBatchType()const { return batchType_; } +std::string DescribeBatchResultCountResult::getReason()const +{ + return reason_; +} + diff --git a/alidns/src/model/DescribeBatchResultDetailRequest.cc b/alidns/src/model/DescribeBatchResultDetailRequest.cc index f0b77e0ba..2f1c37843 100644 --- a/alidns/src/model/DescribeBatchResultDetailRequest.cc +++ b/alidns/src/model/DescribeBatchResultDetailRequest.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::Alidns::Model::DescribeBatchResultDetailRequest; - -DescribeBatchResultDetailRequest::DescribeBatchResultDetailRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeBatchResultDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBatchResultDetailRequest::~DescribeBatchResultDetailRequest() -{} - -std::string DescribeBatchResultDetailRequest::getBatchType()const -{ - return batchType_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeBatchResultDetailRequest; + +DescribeBatchResultDetailRequest::DescribeBatchResultDetailRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeBatchResultDetail") { + setMethod(HttpRequest::Method::Post); } -void DescribeBatchResultDetailRequest::setBatchType(const std::string& batchType) -{ - batchType_ = batchType; - setParameter("BatchType", batchType); +DescribeBatchResultDetailRequest::~DescribeBatchResultDetailRequest() {} + +std::string DescribeBatchResultDetailRequest::getBatchType() const { + return batchType_; } -int DescribeBatchResultDetailRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeBatchResultDetailRequest::setBatchType(const std::string &batchType) { + batchType_ = batchType; + setParameter(std::string("BatchType"), batchType); } -void DescribeBatchResultDetailRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeBatchResultDetailRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeBatchResultDetailRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeBatchResultDetailRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeBatchResultDetailRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeBatchResultDetailRequest::getUserClientIp() const { + return userClientIp_; } -int DescribeBatchResultDetailRequest::getPageSize()const -{ - return pageSize_; +void DescribeBatchResultDetailRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeBatchResultDetailRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeBatchResultDetailRequest::getPageSize() const { + return pageSize_; } -std::string DescribeBatchResultDetailRequest::getLang()const -{ - return lang_; +void DescribeBatchResultDetailRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeBatchResultDetailRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeBatchResultDetailRequest::getLang() const { + return lang_; } -long DescribeBatchResultDetailRequest::getTaskId()const -{ - return taskId_; +void DescribeBatchResultDetailRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeBatchResultDetailRequest::setTaskId(long taskId) -{ - taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); +long DescribeBatchResultDetailRequest::getTaskId() const { + return taskId_; } -std::string DescribeBatchResultDetailRequest::getStatus()const -{ - return status_; +void DescribeBatchResultDetailRequest::setTaskId(long taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), std::to_string(taskId)); } -void DescribeBatchResultDetailRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeBatchResultDetailRequest::getStatus() const { + return status_; +} + +void DescribeBatchResultDetailRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/alidns/src/model/DescribeBatchResultDetailResult.cc b/alidns/src/model/DescribeBatchResultDetailResult.cc index d136f611b..766f19eb6 100644 --- a/alidns/src/model/DescribeBatchResultDetailResult.cc +++ b/alidns/src/model/DescribeBatchResultDetailResult.cc @@ -43,46 +43,46 @@ void DescribeBatchResultDetailResult::parse(const std::string &payload) for (auto valueBatchResultDetailsBatchResultDetail : allBatchResultDetailsNode) { BatchResultDetail batchResultDetailsObject; - if(!valueBatchResultDetailsBatchResultDetail["Domain"].isNull()) - batchResultDetailsObject.domain = valueBatchResultDetailsBatchResultDetail["Domain"].asString(); - if(!valueBatchResultDetailsBatchResultDetail["Type"].isNull()) - batchResultDetailsObject.type = valueBatchResultDetailsBatchResultDetail["Type"].asString(); - if(!valueBatchResultDetailsBatchResultDetail["Rr"].isNull()) - batchResultDetailsObject.rr = valueBatchResultDetailsBatchResultDetail["Rr"].asString(); - if(!valueBatchResultDetailsBatchResultDetail["Value"].isNull()) - batchResultDetailsObject.value = valueBatchResultDetailsBatchResultDetail["Value"].asString(); if(!valueBatchResultDetailsBatchResultDetail["Status"].isNull()) batchResultDetailsObject.status = valueBatchResultDetailsBatchResultDetail["Status"].asString() == "true"; - if(!valueBatchResultDetailsBatchResultDetail["Reason"].isNull()) - batchResultDetailsObject.reason = valueBatchResultDetailsBatchResultDetail["Reason"].asString(); - if(!valueBatchResultDetailsBatchResultDetail["NewRr"].isNull()) - batchResultDetailsObject.newRr = valueBatchResultDetailsBatchResultDetail["NewRr"].asString(); - if(!valueBatchResultDetailsBatchResultDetail["NewValue"].isNull()) - batchResultDetailsObject.newValue = valueBatchResultDetailsBatchResultDetail["NewValue"].asString(); - if(!valueBatchResultDetailsBatchResultDetail["BatchType"].isNull()) - batchResultDetailsObject.batchType = valueBatchResultDetailsBatchResultDetail["BatchType"].asString(); - if(!valueBatchResultDetailsBatchResultDetail["OperateDateStr"].isNull()) - batchResultDetailsObject.operateDateStr = valueBatchResultDetailsBatchResultDetail["OperateDateStr"].asString(); - if(!valueBatchResultDetailsBatchResultDetail["Line"].isNull()) - batchResultDetailsObject.line = valueBatchResultDetailsBatchResultDetail["Line"].asString(); - if(!valueBatchResultDetailsBatchResultDetail["Priority"].isNull()) - batchResultDetailsObject.priority = valueBatchResultDetailsBatchResultDetail["Priority"].asString(); - if(!valueBatchResultDetailsBatchResultDetail["Ttl"].isNull()) - batchResultDetailsObject.ttl = valueBatchResultDetailsBatchResultDetail["Ttl"].asString(); - if(!valueBatchResultDetailsBatchResultDetail["RecordId"].isNull()) - batchResultDetailsObject.recordId = valueBatchResultDetailsBatchResultDetail["RecordId"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["Type"].isNull()) + batchResultDetailsObject.type = valueBatchResultDetailsBatchResultDetail["Type"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["Domain"].isNull()) + batchResultDetailsObject.domain = valueBatchResultDetailsBatchResultDetail["Domain"].asString(); if(!valueBatchResultDetailsBatchResultDetail["Remark"].isNull()) batchResultDetailsObject.remark = valueBatchResultDetailsBatchResultDetail["Remark"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["RecordId"].isNull()) + batchResultDetailsObject.recordId = valueBatchResultDetailsBatchResultDetail["RecordId"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["Rr"].isNull()) + batchResultDetailsObject.rr = valueBatchResultDetailsBatchResultDetail["Rr"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["Priority"].isNull()) + batchResultDetailsObject.priority = valueBatchResultDetailsBatchResultDetail["Priority"].asString(); if(!valueBatchResultDetailsBatchResultDetail["RrStatus"].isNull()) batchResultDetailsObject.rrStatus = valueBatchResultDetailsBatchResultDetail["RrStatus"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["OperateDateStr"].isNull()) + batchResultDetailsObject.operateDateStr = valueBatchResultDetailsBatchResultDetail["OperateDateStr"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["NewValue"].isNull()) + batchResultDetailsObject.newValue = valueBatchResultDetailsBatchResultDetail["NewValue"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["Value"].isNull()) + batchResultDetailsObject.value = valueBatchResultDetailsBatchResultDetail["Value"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["Ttl"].isNull()) + batchResultDetailsObject.ttl = valueBatchResultDetailsBatchResultDetail["Ttl"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["BatchType"].isNull()) + batchResultDetailsObject.batchType = valueBatchResultDetailsBatchResultDetail["BatchType"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["Line"].isNull()) + batchResultDetailsObject.line = valueBatchResultDetailsBatchResultDetail["Line"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["NewRr"].isNull()) + batchResultDetailsObject.newRr = valueBatchResultDetailsBatchResultDetail["NewRr"].asString(); + if(!valueBatchResultDetailsBatchResultDetail["Reason"].isNull()) + batchResultDetailsObject.reason = valueBatchResultDetailsBatchResultDetail["Reason"].asString(); batchResultDetails_.push_back(batchResultDetailsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/DescribeCustomLineRequest.cc b/alidns/src/model/DescribeCustomLineRequest.cc index ed13a83a9..a9de18ac3 100644 --- a/alidns/src/model/DescribeCustomLineRequest.cc +++ b/alidns/src/model/DescribeCustomLineRequest.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::Alidns::Model::DescribeCustomLineRequest; - -DescribeCustomLineRequest::DescribeCustomLineRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeCustomLine") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCustomLineRequest::~DescribeCustomLineRequest() -{} - -long DescribeCustomLineRequest::getLineId()const -{ - return lineId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeCustomLineRequest; + +DescribeCustomLineRequest::DescribeCustomLineRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeCustomLine") { + setMethod(HttpRequest::Method::Post); } -void DescribeCustomLineRequest::setLineId(long lineId) -{ - lineId_ = lineId; - setParameter("LineId", std::to_string(lineId)); +DescribeCustomLineRequest::~DescribeCustomLineRequest() {} + +long DescribeCustomLineRequest::getLineId() const { + return lineId_; } -std::string DescribeCustomLineRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeCustomLineRequest::setLineId(long lineId) { + lineId_ = lineId; + setParameter(std::string("LineId"), std::to_string(lineId)); } -void DescribeCustomLineRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeCustomLineRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeCustomLineRequest::getLang()const -{ - return lang_; +void DescribeCustomLineRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeCustomLineRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeCustomLineRequest::getLang() const { + return lang_; +} + +void DescribeCustomLineRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeCustomLineResult.cc b/alidns/src/model/DescribeCustomLineResult.cc index e1fdecc72..8df9dd2be 100644 --- a/alidns/src/model/DescribeCustomLineResult.cc +++ b/alidns/src/model/DescribeCustomLineResult.cc @@ -43,28 +43,28 @@ void DescribeCustomLineResult::parse(const std::string &payload) for (auto valueIpSegmentListIpSegment : allIpSegmentListNode) { IpSegment ipSegmentListObject; - if(!valueIpSegmentListIpSegment["Name"].isNull()) - ipSegmentListObject.name = valueIpSegmentListIpSegment["Name"].asString(); - if(!valueIpSegmentListIpSegment["StartIp"].isNull()) - ipSegmentListObject.startIp = valueIpSegmentListIpSegment["StartIp"].asString(); if(!valueIpSegmentListIpSegment["EndIp"].isNull()) ipSegmentListObject.endIp = valueIpSegmentListIpSegment["EndIp"].asString(); + if(!valueIpSegmentListIpSegment["StartIp"].isNull()) + ipSegmentListObject.startIp = valueIpSegmentListIpSegment["StartIp"].asString(); + if(!valueIpSegmentListIpSegment["Name"].isNull()) + ipSegmentListObject.name = valueIpSegmentListIpSegment["Name"].asString(); ipSegmentList_.push_back(ipSegmentListObject); } - if(!value["Id"].isNull()) - id_ = std::stol(value["Id"].asString()); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); if(!value["DomainName"].isNull()) domainName_ = value["DomainName"].asString(); if(!value["CreateTime"].isNull()) createTime_ = value["CreateTime"].asString(); - if(!value["CreateTimestamp"].isNull()) - createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); + if(!value["Id"].isNull()) + id_ = std::stol(value["Id"].asString()); if(!value["IpSegments"].isNull()) ipSegments_ = value["IpSegments"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["CreateTimestamp"].isNull()) + createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); } @@ -93,16 +93,16 @@ std::string DescribeCustomLineResult::getIpSegments()const return ipSegments_; } -long DescribeCustomLineResult::getCreateTimestamp()const -{ - return createTimestamp_; -} - std::string DescribeCustomLineResult::getCode()const { return code_; } +long DescribeCustomLineResult::getCreateTimestamp()const +{ + return createTimestamp_; +} + std::string DescribeCustomLineResult::getName()const { return name_; diff --git a/alidns/src/model/DescribeCustomLinesRequest.cc b/alidns/src/model/DescribeCustomLinesRequest.cc index 5ff57a713..6dd613d8c 100644 --- a/alidns/src/model/DescribeCustomLinesRequest.cc +++ b/alidns/src/model/DescribeCustomLinesRequest.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::Alidns::Model::DescribeCustomLinesRequest; - -DescribeCustomLinesRequest::DescribeCustomLinesRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeCustomLines") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCustomLinesRequest::~DescribeCustomLinesRequest() -{} - -std::string DescribeCustomLinesRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeCustomLinesRequest; + +DescribeCustomLinesRequest::DescribeCustomLinesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeCustomLines") { + setMethod(HttpRequest::Method::Post); } -void DescribeCustomLinesRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribeCustomLinesRequest::~DescribeCustomLinesRequest() {} + +std::string DescribeCustomLinesRequest::getDomainName() const { + return domainName_; } -long DescribeCustomLinesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeCustomLinesRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeCustomLinesRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeCustomLinesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeCustomLinesRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeCustomLinesRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeCustomLinesRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeCustomLinesRequest::getUserClientIp() const { + return userClientIp_; } -long DescribeCustomLinesRequest::getPageSize()const -{ - return pageSize_; +void DescribeCustomLinesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeCustomLinesRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeCustomLinesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeCustomLinesRequest::getLang()const -{ - return lang_; +void DescribeCustomLinesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeCustomLinesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeCustomLinesRequest::getLang() const { + return lang_; +} + +void DescribeCustomLinesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeCustomLinesResult.cc b/alidns/src/model/DescribeCustomLinesResult.cc index 8f7df8d60..4bde249c6 100644 --- a/alidns/src/model/DescribeCustomLinesResult.cc +++ b/alidns/src/model/DescribeCustomLinesResult.cc @@ -43,40 +43,40 @@ void DescribeCustomLinesResult::parse(const std::string &payload) for (auto valueCustomLinesCustomLine : allCustomLinesNode) { CustomLine customLinesObject; - if(!valueCustomLinesCustomLine["Id"].isNull()) - customLinesObject.id = std::stol(valueCustomLinesCustomLine["Id"].asString()); - if(!valueCustomLinesCustomLine["Name"].isNull()) - customLinesObject.name = valueCustomLinesCustomLine["Name"].asString(); if(!valueCustomLinesCustomLine["CreateTime"].isNull()) customLinesObject.createTime = valueCustomLinesCustomLine["CreateTime"].asString(); - if(!valueCustomLinesCustomLine["CreateTimestamp"].isNull()) - customLinesObject.createTimestamp = std::stol(valueCustomLinesCustomLine["CreateTimestamp"].asString()); - if(!valueCustomLinesCustomLine["IpSegments"].isNull()) - customLinesObject.ipSegments = valueCustomLinesCustomLine["IpSegments"].asString(); if(!valueCustomLinesCustomLine["Code"].isNull()) customLinesObject.code = valueCustomLinesCustomLine["Code"].asString(); + if(!valueCustomLinesCustomLine["Name"].isNull()) + customLinesObject.name = valueCustomLinesCustomLine["Name"].asString(); + if(!valueCustomLinesCustomLine["IpSegments"].isNull()) + customLinesObject.ipSegments = valueCustomLinesCustomLine["IpSegments"].asString(); + if(!valueCustomLinesCustomLine["Id"].isNull()) + customLinesObject.id = std::stol(valueCustomLinesCustomLine["Id"].asString()); + if(!valueCustomLinesCustomLine["CreateTimestamp"].isNull()) + customLinesObject.createTimestamp = std::stol(valueCustomLinesCustomLine["CreateTimestamp"].asString()); auto allIpSegmentListNode = valueCustomLinesCustomLine["IpSegmentList"]["IpSegment"]; for (auto valueCustomLinesCustomLineIpSegmentListIpSegment : allIpSegmentListNode) { CustomLine::IpSegment ipSegmentListObject; - if(!valueCustomLinesCustomLineIpSegmentListIpSegment["Name"].isNull()) - ipSegmentListObject.name = valueCustomLinesCustomLineIpSegmentListIpSegment["Name"].asString(); - if(!valueCustomLinesCustomLineIpSegmentListIpSegment["StartIp"].isNull()) - ipSegmentListObject.startIp = valueCustomLinesCustomLineIpSegmentListIpSegment["StartIp"].asString(); if(!valueCustomLinesCustomLineIpSegmentListIpSegment["EndIp"].isNull()) ipSegmentListObject.endIp = valueCustomLinesCustomLineIpSegmentListIpSegment["EndIp"].asString(); + if(!valueCustomLinesCustomLineIpSegmentListIpSegment["StartIp"].isNull()) + ipSegmentListObject.startIp = valueCustomLinesCustomLineIpSegmentListIpSegment["StartIp"].asString(); + if(!valueCustomLinesCustomLineIpSegmentListIpSegment["Name"].isNull()) + ipSegmentListObject.name = valueCustomLinesCustomLineIpSegmentListIpSegment["Name"].asString(); customLinesObject.ipSegmentList.push_back(ipSegmentListObject); } customLines_.push_back(customLinesObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].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["TotalPages"].isNull()) totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeDNSSLBSubDomainsRequest.cc b/alidns/src/model/DescribeDNSSLBSubDomainsRequest.cc index f5c1b7c7e..3744300cc 100644 --- a/alidns/src/model/DescribeDNSSLBSubDomainsRequest.cc +++ b/alidns/src/model/DescribeDNSSLBSubDomainsRequest.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::Alidns::Model::DescribeDNSSLBSubDomainsRequest; - -DescribeDNSSLBSubDomainsRequest::DescribeDNSSLBSubDomainsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDNSSLBSubDomains") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDNSSLBSubDomainsRequest::~DescribeDNSSLBSubDomainsRequest() -{} - -std::string DescribeDNSSLBSubDomainsRequest::getRr()const -{ - return rr_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDNSSLBSubDomainsRequest; + +DescribeDNSSLBSubDomainsRequest::DescribeDNSSLBSubDomainsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDNSSLBSubDomains") { + setMethod(HttpRequest::Method::Post); } -void DescribeDNSSLBSubDomainsRequest::setRr(const std::string& rr) -{ - rr_ = rr; - setParameter("Rr", rr); +DescribeDNSSLBSubDomainsRequest::~DescribeDNSSLBSubDomainsRequest() {} + +std::string DescribeDNSSLBSubDomainsRequest::getRr() const { + return rr_; } -std::string DescribeDNSSLBSubDomainsRequest::getDomainName()const -{ - return domainName_; +void DescribeDNSSLBSubDomainsRequest::setRr(const std::string &rr) { + rr_ = rr; + setParameter(std::string("Rr"), rr); } -void DescribeDNSSLBSubDomainsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string DescribeDNSSLBSubDomainsRequest::getDomainName() const { + return domainName_; } -long DescribeDNSSLBSubDomainsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDNSSLBSubDomainsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeDNSSLBSubDomainsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeDNSSLBSubDomainsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDNSSLBSubDomainsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeDNSSLBSubDomainsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDNSSLBSubDomainsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeDNSSLBSubDomainsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDNSSLBSubDomainsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDNSSLBSubDomainsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDNSSLBSubDomainsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDNSSLBSubDomainsRequest::getUserClientIp() const { + return userClientIp_; } -long DescribeDNSSLBSubDomainsRequest::getPageSize()const -{ - return pageSize_; +void DescribeDNSSLBSubDomainsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDNSSLBSubDomainsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeDNSSLBSubDomainsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDNSSLBSubDomainsRequest::getLang()const -{ - return lang_; +void DescribeDNSSLBSubDomainsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDNSSLBSubDomainsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDNSSLBSubDomainsRequest::getLang() const { + return lang_; +} + +void DescribeDNSSLBSubDomainsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDNSSLBSubDomainsResult.cc b/alidns/src/model/DescribeDNSSLBSubDomainsResult.cc index 25bca7c4a..6df864816 100644 --- a/alidns/src/model/DescribeDNSSLBSubDomainsResult.cc +++ b/alidns/src/model/DescribeDNSSLBSubDomainsResult.cc @@ -43,14 +43,14 @@ void DescribeDNSSLBSubDomainsResult::parse(const std::string &payload) for (auto valueSlbSubDomainsSlbSubDomain : allSlbSubDomainsNode) { SlbSubDomain slbSubDomainsObject; - if(!valueSlbSubDomainsSlbSubDomain["SubDomain"].isNull()) - slbSubDomainsObject.subDomain = valueSlbSubDomainsSlbSubDomain["SubDomain"].asString(); + if(!valueSlbSubDomainsSlbSubDomain["Type"].isNull()) + slbSubDomainsObject.type = valueSlbSubDomainsSlbSubDomain["Type"].asString(); if(!valueSlbSubDomainsSlbSubDomain["RecordCount"].isNull()) slbSubDomainsObject.recordCount = std::stol(valueSlbSubDomainsSlbSubDomain["RecordCount"].asString()); if(!valueSlbSubDomainsSlbSubDomain["Open"].isNull()) slbSubDomainsObject.open = valueSlbSubDomainsSlbSubDomain["Open"].asString() == "true"; - if(!valueSlbSubDomainsSlbSubDomain["Type"].isNull()) - slbSubDomainsObject.type = valueSlbSubDomainsSlbSubDomain["Type"].asString(); + if(!valueSlbSubDomainsSlbSubDomain["SubDomain"].isNull()) + slbSubDomainsObject.subDomain = valueSlbSubDomainsSlbSubDomain["SubDomain"].asString(); auto allLineAlgorithmsNode = valueSlbSubDomainsSlbSubDomain["LineAlgorithms"]["LineAlgorithm"]; for (auto valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm : allLineAlgorithmsNode) { @@ -65,10 +65,10 @@ void DescribeDNSSLBSubDomainsResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/DescribeDnsCacheDomainsRequest.cc b/alidns/src/model/DescribeDnsCacheDomainsRequest.cc index ef2a5389f..f74ad1459 100644 --- a/alidns/src/model/DescribeDnsCacheDomainsRequest.cc +++ b/alidns/src/model/DescribeDnsCacheDomainsRequest.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::Alidns::Model::DescribeDnsCacheDomainsRequest; - -DescribeDnsCacheDomainsRequest::DescribeDnsCacheDomainsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsCacheDomains") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsCacheDomainsRequest::~DescribeDnsCacheDomainsRequest() -{} - -long DescribeDnsCacheDomainsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsCacheDomainsRequest; + +DescribeDnsCacheDomainsRequest::DescribeDnsCacheDomainsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsCacheDomains") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsCacheDomainsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeDnsCacheDomainsRequest::~DescribeDnsCacheDomainsRequest() {} + +long DescribeDnsCacheDomainsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDnsCacheDomainsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsCacheDomainsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDnsCacheDomainsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsCacheDomainsRequest::getUserClientIp() const { + return userClientIp_; } -long DescribeDnsCacheDomainsRequest::getPageSize()const -{ - return pageSize_; +void DescribeDnsCacheDomainsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsCacheDomainsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeDnsCacheDomainsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDnsCacheDomainsRequest::getLang()const -{ - return lang_; +void DescribeDnsCacheDomainsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDnsCacheDomainsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsCacheDomainsRequest::getLang() const { + return lang_; } -std::string DescribeDnsCacheDomainsRequest::getKeyword()const -{ - return keyword_; +void DescribeDnsCacheDomainsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDnsCacheDomainsRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeDnsCacheDomainsRequest::getKeyword() const { + return keyword_; +} + +void DescribeDnsCacheDomainsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } diff --git a/alidns/src/model/DescribeDnsCacheDomainsResult.cc b/alidns/src/model/DescribeDnsCacheDomainsResult.cc index 029b90a0a..9a8ddc62e 100644 --- a/alidns/src/model/DescribeDnsCacheDomainsResult.cc +++ b/alidns/src/model/DescribeDnsCacheDomainsResult.cc @@ -43,36 +43,36 @@ void DescribeDnsCacheDomainsResult::parse(const std::string &payload) for (auto valueDomainsDomain : allDomainsNode) { Domain domainsObject; - if(!valueDomainsDomain["DomainId"].isNull()) - domainsObject.domainId = valueDomainsDomain["DomainId"].asString(); - if(!valueDomainsDomain["DomainName"].isNull()) - domainsObject.domainName = valueDomainsDomain["DomainName"].asString(); - if(!valueDomainsDomain["InstanceId"].isNull()) - domainsObject.instanceId = valueDomainsDomain["InstanceId"].asString(); - if(!valueDomainsDomain["VersionCode"].isNull()) - domainsObject.versionCode = valueDomainsDomain["VersionCode"].asString(); - if(!valueDomainsDomain["Remark"].isNull()) - domainsObject.remark = valueDomainsDomain["Remark"].asString(); - if(!valueDomainsDomain["UpdateTime"].isNull()) - domainsObject.updateTime = valueDomainsDomain["UpdateTime"].asString(); - if(!valueDomainsDomain["UpdateTimestamp"].isNull()) - domainsObject.updateTimestamp = std::stol(valueDomainsDomain["UpdateTimestamp"].asString()); - if(!valueDomainsDomain["CreateTime"].isNull()) - domainsObject.createTime = valueDomainsDomain["CreateTime"].asString(); - if(!valueDomainsDomain["CreateTimestamp"].isNull()) - domainsObject.createTimestamp = std::stol(valueDomainsDomain["CreateTimestamp"].asString()); - if(!valueDomainsDomain["CacheTtlMin"].isNull()) - domainsObject.cacheTtlMin = std::stoi(valueDomainsDomain["CacheTtlMin"].asString()); - if(!valueDomainsDomain["CacheTtlMax"].isNull()) - domainsObject.cacheTtlMax = std::stoi(valueDomainsDomain["CacheTtlMax"].asString()); if(!valueDomainsDomain["SourceProtocol"].isNull()) domainsObject.sourceProtocol = valueDomainsDomain["SourceProtocol"].asString(); - if(!valueDomainsDomain["SourceEdns"].isNull()) - domainsObject.sourceEdns = valueDomainsDomain["SourceEdns"].asString(); + if(!valueDomainsDomain["UpdateTime"].isNull()) + domainsObject.updateTime = valueDomainsDomain["UpdateTime"].asString(); + if(!valueDomainsDomain["Remark"].isNull()) + domainsObject.remark = valueDomainsDomain["Remark"].asString(); if(!valueDomainsDomain["ExpireTime"].isNull()) domainsObject.expireTime = valueDomainsDomain["ExpireTime"].asString(); + if(!valueDomainsDomain["CreateTime"].isNull()) + domainsObject.createTime = valueDomainsDomain["CreateTime"].asString(); + if(!valueDomainsDomain["InstanceId"].isNull()) + domainsObject.instanceId = valueDomainsDomain["InstanceId"].asString(); + if(!valueDomainsDomain["SourceEdns"].isNull()) + domainsObject.sourceEdns = valueDomainsDomain["SourceEdns"].asString(); + if(!valueDomainsDomain["DomainName"].isNull()) + domainsObject.domainName = valueDomainsDomain["DomainName"].asString(); + if(!valueDomainsDomain["DomainId"].isNull()) + domainsObject.domainId = valueDomainsDomain["DomainId"].asString(); + if(!valueDomainsDomain["UpdateTimestamp"].isNull()) + domainsObject.updateTimestamp = std::stol(valueDomainsDomain["UpdateTimestamp"].asString()); if(!valueDomainsDomain["ExpireTimestamp"].isNull()) domainsObject.expireTimestamp = std::stol(valueDomainsDomain["ExpireTimestamp"].asString()); + if(!valueDomainsDomain["CacheTtlMax"].isNull()) + domainsObject.cacheTtlMax = std::stoi(valueDomainsDomain["CacheTtlMax"].asString()); + if(!valueDomainsDomain["CacheTtlMin"].isNull()) + domainsObject.cacheTtlMin = std::stoi(valueDomainsDomain["CacheTtlMin"].asString()); + if(!valueDomainsDomain["VersionCode"].isNull()) + domainsObject.versionCode = valueDomainsDomain["VersionCode"].asString(); + if(!valueDomainsDomain["CreateTimestamp"].isNull()) + domainsObject.createTimestamp = std::stol(valueDomainsDomain["CreateTimestamp"].asString()); auto allSourceDnsServersNode = valueDomainsDomain["SourceDnsServers"]["SourceDnsServer"]; for (auto valueDomainsDomainSourceDnsServersSourceDnsServer : allSourceDnsServersNode) { @@ -87,10 +87,10 @@ void DescribeDnsCacheDomainsResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/DescribeDnsGtmAccessStrategiesRequest.cc b/alidns/src/model/DescribeDnsGtmAccessStrategiesRequest.cc index 06da6e2b9..b49de34d5 100644 --- a/alidns/src/model/DescribeDnsGtmAccessStrategiesRequest.cc +++ b/alidns/src/model/DescribeDnsGtmAccessStrategiesRequest.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::Alidns::Model::DescribeDnsGtmAccessStrategiesRequest; - -DescribeDnsGtmAccessStrategiesRequest::DescribeDnsGtmAccessStrategiesRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAccessStrategies") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmAccessStrategiesRequest::~DescribeDnsGtmAccessStrategiesRequest() -{} - -int DescribeDnsGtmAccessStrategiesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmAccessStrategiesRequest; + +DescribeDnsGtmAccessStrategiesRequest::DescribeDnsGtmAccessStrategiesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAccessStrategies") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmAccessStrategiesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeDnsGtmAccessStrategiesRequest::~DescribeDnsGtmAccessStrategiesRequest() {} + +int DescribeDnsGtmAccessStrategiesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDnsGtmAccessStrategiesRequest::getInstanceId()const -{ - return instanceId_; +void DescribeDnsGtmAccessStrategiesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDnsGtmAccessStrategiesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeDnsGtmAccessStrategiesRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeDnsGtmAccessStrategiesRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmAccessStrategiesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeDnsGtmAccessStrategiesRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmAccessStrategiesRequest::getUserClientIp() const { + return userClientIp_; } -int DescribeDnsGtmAccessStrategiesRequest::getPageSize()const -{ - return pageSize_; +void DescribeDnsGtmAccessStrategiesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmAccessStrategiesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDnsGtmAccessStrategiesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDnsGtmAccessStrategiesRequest::getStrategyMode()const -{ - return strategyMode_; +void DescribeDnsGtmAccessStrategiesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDnsGtmAccessStrategiesRequest::setStrategyMode(const std::string& strategyMode) -{ - strategyMode_ = strategyMode; - setParameter("StrategyMode", strategyMode); +std::string DescribeDnsGtmAccessStrategiesRequest::getStrategyMode() const { + return strategyMode_; } -std::string DescribeDnsGtmAccessStrategiesRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmAccessStrategiesRequest::setStrategyMode(const std::string &strategyMode) { + strategyMode_ = strategyMode; + setParameter(std::string("StrategyMode"), strategyMode); } -void DescribeDnsGtmAccessStrategiesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmAccessStrategiesRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmAccessStrategiesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmAccessStrategiesResult.cc b/alidns/src/model/DescribeDnsGtmAccessStrategiesResult.cc index b5d7d8285..243be1808 100644 --- a/alidns/src/model/DescribeDnsGtmAccessStrategiesResult.cc +++ b/alidns/src/model/DescribeDnsGtmAccessStrategiesResult.cc @@ -43,58 +43,58 @@ void DescribeDnsGtmAccessStrategiesResult::parse(const std::string &payload) for (auto valueStrategiesStrategy : allStrategiesNode) { Strategy strategiesObject; + if(!valueStrategiesStrategy["EffectiveLbaStrategy"].isNull()) + strategiesObject.effectiveLbaStrategy = valueStrategiesStrategy["EffectiveLbaStrategy"].asString(); if(!valueStrategiesStrategy["StrategyId"].isNull()) strategiesObject.strategyId = valueStrategiesStrategy["StrategyId"].asString(); if(!valueStrategiesStrategy["StrategyName"].isNull()) strategiesObject.strategyName = valueStrategiesStrategy["StrategyName"].asString(); + if(!valueStrategiesStrategy["EffectiveAddrPoolGroupType"].isNull()) + strategiesObject.effectiveAddrPoolGroupType = valueStrategiesStrategy["EffectiveAddrPoolGroupType"].asString(); if(!valueStrategiesStrategy["CreateTime"].isNull()) strategiesObject.createTime = valueStrategiesStrategy["CreateTime"].asString(); if(!valueStrategiesStrategy["CreateTimestamp"].isNull()) strategiesObject.createTimestamp = std::stol(valueStrategiesStrategy["CreateTimestamp"].asString()); - if(!valueStrategiesStrategy["EffectiveAddrPoolGroupType"].isNull()) - strategiesObject.effectiveAddrPoolGroupType = valueStrategiesStrategy["EffectiveAddrPoolGroupType"].asString(); if(!valueStrategiesStrategy["EffectiveAddrPoolType"].isNull()) strategiesObject.effectiveAddrPoolType = valueStrategiesStrategy["EffectiveAddrPoolType"].asString(); - if(!valueStrategiesStrategy["EffectiveLbaStrategy"].isNull()) - strategiesObject.effectiveLbaStrategy = valueStrategiesStrategy["EffectiveLbaStrategy"].asString(); + auto allEffectiveAddrPoolsNode = valueStrategiesStrategy["EffectiveAddrPools"]["EffectiveAddrPool"]; + for (auto valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool : allEffectiveAddrPoolsNode) + { + Strategy::EffectiveAddrPool effectiveAddrPoolsObject; + if(!valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["LbaWeight"].isNull()) + effectiveAddrPoolsObject.lbaWeight = std::stoi(valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["LbaWeight"].asString()); + if(!valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["Name"].isNull()) + effectiveAddrPoolsObject.name = valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["Name"].asString(); + if(!valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["AddrCount"].isNull()) + effectiveAddrPoolsObject.addrCount = std::stoi(valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["AddrCount"].asString()); + if(!valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["Id"].isNull()) + effectiveAddrPoolsObject.id = valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["Id"].asString(); + strategiesObject.effectiveAddrPools.push_back(effectiveAddrPoolsObject); + } auto allLinesNode = valueStrategiesStrategy["Lines"]["Line"]; for (auto valueStrategiesStrategyLinesLine : allLinesNode) { Strategy::Line linesObject; + if(!valueStrategiesStrategyLinesLine["GroupName"].isNull()) + linesObject.groupName = valueStrategiesStrategyLinesLine["GroupName"].asString(); if(!valueStrategiesStrategyLinesLine["LineCode"].isNull()) linesObject.lineCode = valueStrategiesStrategyLinesLine["LineCode"].asString(); if(!valueStrategiesStrategyLinesLine["LineName"].isNull()) linesObject.lineName = valueStrategiesStrategyLinesLine["LineName"].asString(); if(!valueStrategiesStrategyLinesLine["GroupCode"].isNull()) linesObject.groupCode = valueStrategiesStrategyLinesLine["GroupCode"].asString(); - if(!valueStrategiesStrategyLinesLine["GroupName"].isNull()) - linesObject.groupName = valueStrategiesStrategyLinesLine["GroupName"].asString(); strategiesObject.lines.push_back(linesObject); } - auto allEffectiveAddrPoolsNode = valueStrategiesStrategy["EffectiveAddrPools"]["EffectiveAddrPool"]; - for (auto valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool : allEffectiveAddrPoolsNode) - { - Strategy::EffectiveAddrPool effectiveAddrPoolsObject; - if(!valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["Id"].isNull()) - effectiveAddrPoolsObject.id = valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["Id"].asString(); - if(!valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["Name"].isNull()) - effectiveAddrPoolsObject.name = valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["Name"].asString(); - if(!valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["AddrCount"].isNull()) - effectiveAddrPoolsObject.addrCount = std::stoi(valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["AddrCount"].asString()); - if(!valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["LbaWeight"].isNull()) - effectiveAddrPoolsObject.lbaWeight = std::stoi(valueStrategiesStrategyEffectiveAddrPoolsEffectiveAddrPool["LbaWeight"].asString()); - strategiesObject.effectiveAddrPools.push_back(effectiveAddrPoolsObject); - } strategies_.push_back(strategiesObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].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["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeDnsGtmAccessStrategyAvailableConfigRequest.cc b/alidns/src/model/DescribeDnsGtmAccessStrategyAvailableConfigRequest.cc index d939be123..2392310bf 100644 --- a/alidns/src/model/DescribeDnsGtmAccessStrategyAvailableConfigRequest.cc +++ b/alidns/src/model/DescribeDnsGtmAccessStrategyAvailableConfigRequest.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::Alidns::Model::DescribeDnsGtmAccessStrategyAvailableConfigRequest; - -DescribeDnsGtmAccessStrategyAvailableConfigRequest::DescribeDnsGtmAccessStrategyAvailableConfigRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAccessStrategyAvailableConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmAccessStrategyAvailableConfigRequest::~DescribeDnsGtmAccessStrategyAvailableConfigRequest() -{} - -std::string DescribeDnsGtmAccessStrategyAvailableConfigRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmAccessStrategyAvailableConfigRequest; + +DescribeDnsGtmAccessStrategyAvailableConfigRequest::DescribeDnsGtmAccessStrategyAvailableConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAccessStrategyAvailableConfig") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmAccessStrategyAvailableConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeDnsGtmAccessStrategyAvailableConfigRequest::~DescribeDnsGtmAccessStrategyAvailableConfigRequest() {} + +std::string DescribeDnsGtmAccessStrategyAvailableConfigRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeDnsGtmAccessStrategyAvailableConfigRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmAccessStrategyAvailableConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeDnsGtmAccessStrategyAvailableConfigRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmAccessStrategyAvailableConfigRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsGtmAccessStrategyAvailableConfigRequest::getStrategyMode()const -{ - return strategyMode_; +void DescribeDnsGtmAccessStrategyAvailableConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmAccessStrategyAvailableConfigRequest::setStrategyMode(const std::string& strategyMode) -{ - strategyMode_ = strategyMode; - setParameter("StrategyMode", strategyMode); +std::string DescribeDnsGtmAccessStrategyAvailableConfigRequest::getStrategyMode() const { + return strategyMode_; } -std::string DescribeDnsGtmAccessStrategyAvailableConfigRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmAccessStrategyAvailableConfigRequest::setStrategyMode(const std::string &strategyMode) { + strategyMode_ = strategyMode; + setParameter(std::string("StrategyMode"), strategyMode); } -void DescribeDnsGtmAccessStrategyAvailableConfigRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmAccessStrategyAvailableConfigRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmAccessStrategyAvailableConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmAccessStrategyAvailableConfigResult.cc b/alidns/src/model/DescribeDnsGtmAccessStrategyAvailableConfigResult.cc index 16e68775c..dc90419b3 100644 --- a/alidns/src/model/DescribeDnsGtmAccessStrategyAvailableConfigResult.cc +++ b/alidns/src/model/DescribeDnsGtmAccessStrategyAvailableConfigResult.cc @@ -39,82 +39,82 @@ void DescribeDnsGtmAccessStrategyAvailableConfigResult::parse(const std::string Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allDomainAddrPoolsNode = value["DomainAddrPools"]["DomainAddrPool"]; + for (auto valueDomainAddrPoolsDomainAddrPool : allDomainAddrPoolsNode) + { + DomainAddrPool domainAddrPoolsObject; + if(!valueDomainAddrPoolsDomainAddrPool["Name"].isNull()) + domainAddrPoolsObject.name = valueDomainAddrPoolsDomainAddrPool["Name"].asString(); + if(!valueDomainAddrPoolsDomainAddrPool["AddrCount"].isNull()) + domainAddrPoolsObject.addrCount = std::stoi(valueDomainAddrPoolsDomainAddrPool["AddrCount"].asString()); + if(!valueDomainAddrPoolsDomainAddrPool["Id"].isNull()) + domainAddrPoolsObject.id = valueDomainAddrPoolsDomainAddrPool["Id"].asString(); + domainAddrPools_.push_back(domainAddrPoolsObject); + } auto allIpv4AddrPoolsNode = value["Ipv4AddrPools"]["Ipv4AddrPool"]; for (auto valueIpv4AddrPoolsIpv4AddrPool : allIpv4AddrPoolsNode) { Ipv4AddrPool ipv4AddrPoolsObject; - if(!valueIpv4AddrPoolsIpv4AddrPool["Id"].isNull()) - ipv4AddrPoolsObject.id = valueIpv4AddrPoolsIpv4AddrPool["Id"].asString(); if(!valueIpv4AddrPoolsIpv4AddrPool["Name"].isNull()) ipv4AddrPoolsObject.name = valueIpv4AddrPoolsIpv4AddrPool["Name"].asString(); if(!valueIpv4AddrPoolsIpv4AddrPool["AddrCount"].isNull()) ipv4AddrPoolsObject.addrCount = std::stoi(valueIpv4AddrPoolsIpv4AddrPool["AddrCount"].asString()); + if(!valueIpv4AddrPoolsIpv4AddrPool["Id"].isNull()) + ipv4AddrPoolsObject.id = valueIpv4AddrPoolsIpv4AddrPool["Id"].asString(); ipv4AddrPools_.push_back(ipv4AddrPoolsObject); } + auto allIpv6AddrPoolsNode = value["Ipv6AddrPools"]["Ipv6AddrPool"]; + for (auto valueIpv6AddrPoolsIpv6AddrPool : allIpv6AddrPoolsNode) + { + Ipv6AddrPool ipv6AddrPoolsObject; + if(!valueIpv6AddrPoolsIpv6AddrPool["Name"].isNull()) + ipv6AddrPoolsObject.name = valueIpv6AddrPoolsIpv6AddrPool["Name"].asString(); + if(!valueIpv6AddrPoolsIpv6AddrPool["AddrCount"].isNull()) + ipv6AddrPoolsObject.addrCount = std::stoi(valueIpv6AddrPoolsIpv6AddrPool["AddrCount"].asString()); + if(!valueIpv6AddrPoolsIpv6AddrPool["Id"].isNull()) + ipv6AddrPoolsObject.id = valueIpv6AddrPoolsIpv6AddrPool["Id"].asString(); + ipv6AddrPools_.push_back(ipv6AddrPoolsObject); + } auto allLinesNode = value["Lines"]["Line"]; for (auto valueLinesLine : allLinesNode) { Line linesObject; + if(!valueLinesLine["FatherCode"].isNull()) + linesObject.fatherCode = valueLinesLine["FatherCode"].asString(); + if(!valueLinesLine["GroupName"].isNull()) + linesObject.groupName = valueLinesLine["GroupName"].asString(); if(!valueLinesLine["LineCode"].isNull()) linesObject.lineCode = valueLinesLine["LineCode"].asString(); if(!valueLinesLine["LineName"].isNull()) linesObject.lineName = valueLinesLine["LineName"].asString(); if(!valueLinesLine["GroupCode"].isNull()) linesObject.groupCode = valueLinesLine["GroupCode"].asString(); - if(!valueLinesLine["GroupName"].isNull()) - linesObject.groupName = valueLinesLine["GroupName"].asString(); - if(!valueLinesLine["FatherCode"].isNull()) - linesObject.fatherCode = valueLinesLine["FatherCode"].asString(); lines_.push_back(linesObject); } - auto allIpv6AddrPoolsNode = value["Ipv6AddrPools"]["Ipv6AddrPool"]; - for (auto valueIpv6AddrPoolsIpv6AddrPool : allIpv6AddrPoolsNode) - { - Ipv6AddrPool ipv6AddrPoolsObject; - if(!valueIpv6AddrPoolsIpv6AddrPool["Id"].isNull()) - ipv6AddrPoolsObject.id = valueIpv6AddrPoolsIpv6AddrPool["Id"].asString(); - if(!valueIpv6AddrPoolsIpv6AddrPool["Name"].isNull()) - ipv6AddrPoolsObject.name = valueIpv6AddrPoolsIpv6AddrPool["Name"].asString(); - if(!valueIpv6AddrPoolsIpv6AddrPool["AddrCount"].isNull()) - ipv6AddrPoolsObject.addrCount = std::stoi(valueIpv6AddrPoolsIpv6AddrPool["AddrCount"].asString()); - ipv6AddrPools_.push_back(ipv6AddrPoolsObject); - } - auto allDomainAddrPoolsNode = value["DomainAddrPools"]["DomainAddrPool"]; - for (auto valueDomainAddrPoolsDomainAddrPool : allDomainAddrPoolsNode) - { - DomainAddrPool domainAddrPoolsObject; - if(!valueDomainAddrPoolsDomainAddrPool["Id"].isNull()) - domainAddrPoolsObject.id = valueDomainAddrPoolsDomainAddrPool["Id"].asString(); - if(!valueDomainAddrPoolsDomainAddrPool["Name"].isNull()) - domainAddrPoolsObject.name = valueDomainAddrPoolsDomainAddrPool["Name"].asString(); - if(!valueDomainAddrPoolsDomainAddrPool["AddrCount"].isNull()) - domainAddrPoolsObject.addrCount = std::stoi(valueDomainAddrPoolsDomainAddrPool["AddrCount"].asString()); - domainAddrPools_.push_back(domainAddrPoolsObject); - } + auto allSelectedDomainLines = value["SelectedDomainLines"]["SelectedDomainLine"]; + for (const auto &item : allSelectedDomainLines) + selectedDomainLines_.push_back(item.asString()); auto allSelectedIpv4Lines = value["SelectedIpv4Lines"]["SelectedIpv4Line"]; for (const auto &item : allSelectedIpv4Lines) selectedIpv4Lines_.push_back(item.asString()); auto allSelectedIpv6Lines = value["SelectedIpv6Lines"]["SelectedIpv6Line"]; for (const auto &item : allSelectedIpv6Lines) selectedIpv6Lines_.push_back(item.asString()); - auto allSelectedDomainLines = value["SelectedDomainLines"]["SelectedDomainLine"]; - for (const auto &item : allSelectedDomainLines) - selectedDomainLines_.push_back(item.asString()); if(!value["SuggestSetDefaultLine"].isNull()) suggestSetDefaultLine_ = value["SuggestSetDefaultLine"].asString() == "true"; } -std::vector DescribeDnsGtmAccessStrategyAvailableConfigResult::getIpv4AddrPools()const -{ - return ipv4AddrPools_; -} - std::vector DescribeDnsGtmAccessStrategyAvailableConfigResult::getDomainAddrPools()const { return domainAddrPools_; } +std::vector DescribeDnsGtmAccessStrategyAvailableConfigResult::getIpv4AddrPools()const +{ + return ipv4AddrPools_; +} + std::vector DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedDomainLines()const { return selectedDomainLines_; diff --git a/alidns/src/model/DescribeDnsGtmAccessStrategyRequest.cc b/alidns/src/model/DescribeDnsGtmAccessStrategyRequest.cc index 04c3c63c8..5c732d6c4 100644 --- a/alidns/src/model/DescribeDnsGtmAccessStrategyRequest.cc +++ b/alidns/src/model/DescribeDnsGtmAccessStrategyRequest.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::Alidns::Model::DescribeDnsGtmAccessStrategyRequest; - -DescribeDnsGtmAccessStrategyRequest::DescribeDnsGtmAccessStrategyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAccessStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmAccessStrategyRequest::~DescribeDnsGtmAccessStrategyRequest() -{} - -std::string DescribeDnsGtmAccessStrategyRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmAccessStrategyRequest; + +DescribeDnsGtmAccessStrategyRequest::DescribeDnsGtmAccessStrategyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAccessStrategy") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +DescribeDnsGtmAccessStrategyRequest::~DescribeDnsGtmAccessStrategyRequest() {} + +std::string DescribeDnsGtmAccessStrategyRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsGtmAccessStrategyRequest::getStrategyId()const -{ - return strategyId_; +void DescribeDnsGtmAccessStrategyRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmAccessStrategyRequest::setStrategyId(const std::string& strategyId) -{ - strategyId_ = strategyId; - setParameter("StrategyId", strategyId); +std::string DescribeDnsGtmAccessStrategyRequest::getStrategyId() const { + return strategyId_; } -std::string DescribeDnsGtmAccessStrategyRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmAccessStrategyRequest::setStrategyId(const std::string &strategyId) { + strategyId_ = strategyId; + setParameter(std::string("StrategyId"), strategyId); } -void DescribeDnsGtmAccessStrategyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmAccessStrategyRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmAccessStrategyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmAccessStrategyResult.cc b/alidns/src/model/DescribeDnsGtmAccessStrategyResult.cc index 1cd7984d7..77b978f98 100644 --- a/alidns/src/model/DescribeDnsGtmAccessStrategyResult.cc +++ b/alidns/src/model/DescribeDnsGtmAccessStrategyResult.cc @@ -39,92 +39,92 @@ void DescribeDnsGtmAccessStrategyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allFailoverAddrPoolsNode = value["FailoverAddrPools"]["FailoverAddrPool"]; + for (auto valueFailoverAddrPoolsFailoverAddrPool : allFailoverAddrPoolsNode) + { + FailoverAddrPool failoverAddrPoolsObject; + if(!valueFailoverAddrPoolsFailoverAddrPool["LbaWeight"].isNull()) + failoverAddrPoolsObject.lbaWeight = std::stoi(valueFailoverAddrPoolsFailoverAddrPool["LbaWeight"].asString()); + if(!valueFailoverAddrPoolsFailoverAddrPool["Name"].isNull()) + failoverAddrPoolsObject.name = valueFailoverAddrPoolsFailoverAddrPool["Name"].asString(); + if(!valueFailoverAddrPoolsFailoverAddrPool["AddrCount"].isNull()) + failoverAddrPoolsObject.addrCount = std::stoi(valueFailoverAddrPoolsFailoverAddrPool["AddrCount"].asString()); + if(!valueFailoverAddrPoolsFailoverAddrPool["Id"].isNull()) + failoverAddrPoolsObject.id = valueFailoverAddrPoolsFailoverAddrPool["Id"].asString(); + failoverAddrPools_.push_back(failoverAddrPoolsObject); + } + auto allDefaultAddrPoolsNode = value["DefaultAddrPools"]["DefaultAddrPool"]; + for (auto valueDefaultAddrPoolsDefaultAddrPool : allDefaultAddrPoolsNode) + { + DefaultAddrPool defaultAddrPoolsObject; + if(!valueDefaultAddrPoolsDefaultAddrPool["LbaWeight"].isNull()) + defaultAddrPoolsObject.lbaWeight = std::stoi(valueDefaultAddrPoolsDefaultAddrPool["LbaWeight"].asString()); + if(!valueDefaultAddrPoolsDefaultAddrPool["Name"].isNull()) + defaultAddrPoolsObject.name = valueDefaultAddrPoolsDefaultAddrPool["Name"].asString(); + if(!valueDefaultAddrPoolsDefaultAddrPool["AddrCount"].isNull()) + defaultAddrPoolsObject.addrCount = std::stoi(valueDefaultAddrPoolsDefaultAddrPool["AddrCount"].asString()); + if(!valueDefaultAddrPoolsDefaultAddrPool["Id"].isNull()) + defaultAddrPoolsObject.id = valueDefaultAddrPoolsDefaultAddrPool["Id"].asString(); + defaultAddrPools_.push_back(defaultAddrPoolsObject); + } auto allLinesNode = value["Lines"]["Line"]; for (auto valueLinesLine : allLinesNode) { Line linesObject; + if(!valueLinesLine["GroupName"].isNull()) + linesObject.groupName = valueLinesLine["GroupName"].asString(); if(!valueLinesLine["LineCode"].isNull()) linesObject.lineCode = valueLinesLine["LineCode"].asString(); if(!valueLinesLine["LineName"].isNull()) linesObject.lineName = valueLinesLine["LineName"].asString(); if(!valueLinesLine["GroupCode"].isNull()) linesObject.groupCode = valueLinesLine["GroupCode"].asString(); - if(!valueLinesLine["GroupName"].isNull()) - linesObject.groupName = valueLinesLine["GroupName"].asString(); lines_.push_back(linesObject); } - auto allDefaultAddrPoolsNode = value["DefaultAddrPools"]["DefaultAddrPool"]; - for (auto valueDefaultAddrPoolsDefaultAddrPool : allDefaultAddrPoolsNode) - { - DefaultAddrPool defaultAddrPoolsObject; - if(!valueDefaultAddrPoolsDefaultAddrPool["Id"].isNull()) - defaultAddrPoolsObject.id = valueDefaultAddrPoolsDefaultAddrPool["Id"].asString(); - if(!valueDefaultAddrPoolsDefaultAddrPool["Name"].isNull()) - defaultAddrPoolsObject.name = valueDefaultAddrPoolsDefaultAddrPool["Name"].asString(); - if(!valueDefaultAddrPoolsDefaultAddrPool["AddrCount"].isNull()) - defaultAddrPoolsObject.addrCount = std::stoi(valueDefaultAddrPoolsDefaultAddrPool["AddrCount"].asString()); - if(!valueDefaultAddrPoolsDefaultAddrPool["LbaWeight"].isNull()) - defaultAddrPoolsObject.lbaWeight = std::stoi(valueDefaultAddrPoolsDefaultAddrPool["LbaWeight"].asString()); - defaultAddrPools_.push_back(defaultAddrPoolsObject); - } - auto allFailoverAddrPoolsNode = value["FailoverAddrPools"]["FailoverAddrPool"]; - for (auto valueFailoverAddrPoolsFailoverAddrPool : allFailoverAddrPoolsNode) - { - FailoverAddrPool failoverAddrPoolsObject; - if(!valueFailoverAddrPoolsFailoverAddrPool["Id"].isNull()) - failoverAddrPoolsObject.id = valueFailoverAddrPoolsFailoverAddrPool["Id"].asString(); - if(!valueFailoverAddrPoolsFailoverAddrPool["Name"].isNull()) - failoverAddrPoolsObject.name = valueFailoverAddrPoolsFailoverAddrPool["Name"].asString(); - if(!valueFailoverAddrPoolsFailoverAddrPool["AddrCount"].isNull()) - failoverAddrPoolsObject.addrCount = std::stoi(valueFailoverAddrPoolsFailoverAddrPool["AddrCount"].asString()); - if(!valueFailoverAddrPoolsFailoverAddrPool["LbaWeight"].isNull()) - failoverAddrPoolsObject.lbaWeight = std::stoi(valueFailoverAddrPoolsFailoverAddrPool["LbaWeight"].asString()); - failoverAddrPools_.push_back(failoverAddrPoolsObject); - } - if(!value["StrategyId"].isNull()) - strategyId_ = value["StrategyId"].asString(); - if(!value["StrategyName"].isNull()) - strategyName_ = value["StrategyName"].asString(); - if(!value["StrategyMode"].isNull()) - strategyMode_ = value["StrategyMode"].asString(); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); + if(!value["FailoverMinAvailableAddrNum"].isNull()) + failoverMinAvailableAddrNum_ = std::stoi(value["FailoverMinAvailableAddrNum"].asString()); if(!value["DefaultAddrPoolType"].isNull()) defaultAddrPoolType_ = value["DefaultAddrPoolType"].asString(); - if(!value["DefaultLbaStrategy"].isNull()) - defaultLbaStrategy_ = value["DefaultLbaStrategy"].asString(); - if(!value["DefaultMinAvailableAddrNum"].isNull()) - defaultMinAvailableAddrNum_ = std::stoi(value["DefaultMinAvailableAddrNum"].asString()); + if(!value["DefaultAvailableAddrNum"].isNull()) + defaultAvailableAddrNum_ = std::stoi(value["DefaultAvailableAddrNum"].asString()); + if(!value["StrategyId"].isNull()) + strategyId_ = value["StrategyId"].asString(); + if(!value["FailoverAddrPoolGroupStatus"].isNull()) + failoverAddrPoolGroupStatus_ = value["FailoverAddrPoolGroupStatus"].asString(); + if(!value["FailoverAvailableAddrNum"].isNull()) + failoverAvailableAddrNum_ = std::stoi(value["FailoverAvailableAddrNum"].asString()); + if(!value["FailoverLbaStrategy"].isNull()) + failoverLbaStrategy_ = value["FailoverLbaStrategy"].asString(); if(!value["DefaultMaxReturnAddrNum"].isNull()) defaultMaxReturnAddrNum_ = std::stoi(value["DefaultMaxReturnAddrNum"].asString()); - if(!value["DefaultLatencyOptimization"].isNull()) - defaultLatencyOptimization_ = value["DefaultLatencyOptimization"].asString(); + if(!value["StrategyMode"].isNull()) + strategyMode_ = value["StrategyMode"].asString(); + if(!value["CreateTimestamp"].isNull()) + createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); + if(!value["DefaultLbaStrategy"].isNull()) + defaultLbaStrategy_ = value["DefaultLbaStrategy"].asString(); if(!value["DefaultAddrPoolGroupStatus"].isNull()) defaultAddrPoolGroupStatus_ = value["DefaultAddrPoolGroupStatus"].asString(); if(!value["FailoverAddrPoolType"].isNull()) failoverAddrPoolType_ = value["FailoverAddrPoolType"].asString(); - if(!value["FailoverLbaStrategy"].isNull()) - failoverLbaStrategy_ = value["FailoverLbaStrategy"].asString(); - if(!value["FailoverMinAvailableAddrNum"].isNull()) - failoverMinAvailableAddrNum_ = std::stoi(value["FailoverMinAvailableAddrNum"].asString()); - if(!value["FailoverMaxReturnAddrNum"].isNull()) - failoverMaxReturnAddrNum_ = std::stoi(value["FailoverMaxReturnAddrNum"].asString()); - if(!value["FailoverLatencyOptimization"].isNull()) - failoverLatencyOptimization_ = value["FailoverLatencyOptimization"].asString(); - if(!value["FailoverAddrPoolGroupStatus"].isNull()) - failoverAddrPoolGroupStatus_ = value["FailoverAddrPoolGroupStatus"].asString(); - if(!value["AccessMode"].isNull()) - accessMode_ = value["AccessMode"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["DefaultLatencyOptimization"].isNull()) + defaultLatencyOptimization_ = value["DefaultLatencyOptimization"].asString(); if(!value["EffectiveAddrPoolGroupType"].isNull()) effectiveAddrPoolGroupType_ = value["EffectiveAddrPoolGroupType"].asString(); if(!value["CreateTime"].isNull()) createTime_ = value["CreateTime"].asString(); - if(!value["CreateTimestamp"].isNull()) - createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); - if(!value["DefaultAvailableAddrNum"].isNull()) - defaultAvailableAddrNum_ = std::stoi(value["DefaultAvailableAddrNum"].asString()); - if(!value["FailoverAvailableAddrNum"].isNull()) - failoverAvailableAddrNum_ = std::stoi(value["FailoverAvailableAddrNum"].asString()); + if(!value["DefaultMinAvailableAddrNum"].isNull()) + defaultMinAvailableAddrNum_ = std::stoi(value["DefaultMinAvailableAddrNum"].asString()); + if(!value["FailoverLatencyOptimization"].isNull()) + failoverLatencyOptimization_ = value["FailoverLatencyOptimization"].asString(); + if(!value["StrategyName"].isNull()) + strategyName_ = value["StrategyName"].asString(); + if(!value["FailoverMaxReturnAddrNum"].isNull()) + failoverMaxReturnAddrNum_ = std::stoi(value["FailoverMaxReturnAddrNum"].asString()); + if(!value["AccessMode"].isNull()) + accessMode_ = value["AccessMode"].asString(); } @@ -138,6 +138,11 @@ std::string DescribeDnsGtmAccessStrategyResult::getDefaultAddrPoolType()const return defaultAddrPoolType_; } +int DescribeDnsGtmAccessStrategyResult::getDefaultAvailableAddrNum()const +{ + return defaultAvailableAddrNum_; +} + std::string DescribeDnsGtmAccessStrategyResult::getStrategyId()const { return strategyId_; @@ -148,11 +153,6 @@ std::string DescribeDnsGtmAccessStrategyResult::getFailoverAddrPoolGroupStatus() return failoverAddrPoolGroupStatus_; } -int DescribeDnsGtmAccessStrategyResult::getDefaultAvailableAddrNum()const -{ - return defaultAvailableAddrNum_; -} - int DescribeDnsGtmAccessStrategyResult::getFailoverAvailableAddrNum()const { return failoverAvailableAddrNum_; diff --git a/alidns/src/model/DescribeDnsGtmAddrAttributeInfoRequest.cc b/alidns/src/model/DescribeDnsGtmAddrAttributeInfoRequest.cc index 5d882c674..2faaa5d54 100644 --- a/alidns/src/model/DescribeDnsGtmAddrAttributeInfoRequest.cc +++ b/alidns/src/model/DescribeDnsGtmAddrAttributeInfoRequest.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::Alidns::Model::DescribeDnsGtmAddrAttributeInfoRequest; - -DescribeDnsGtmAddrAttributeInfoRequest::DescribeDnsGtmAddrAttributeInfoRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAddrAttributeInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmAddrAttributeInfoRequest::~DescribeDnsGtmAddrAttributeInfoRequest() -{} - -std::string DescribeDnsGtmAddrAttributeInfoRequest::getAddrs()const -{ - return addrs_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmAddrAttributeInfoRequest; + +DescribeDnsGtmAddrAttributeInfoRequest::DescribeDnsGtmAddrAttributeInfoRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAddrAttributeInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmAddrAttributeInfoRequest::setAddrs(const std::string& addrs) -{ - addrs_ = addrs; - setParameter("Addrs", addrs); +DescribeDnsGtmAddrAttributeInfoRequest::~DescribeDnsGtmAddrAttributeInfoRequest() {} + +std::string DescribeDnsGtmAddrAttributeInfoRequest::getAddrs() const { + return addrs_; } -std::string DescribeDnsGtmAddrAttributeInfoRequest::getType()const -{ - return type_; +void DescribeDnsGtmAddrAttributeInfoRequest::setAddrs(const std::string &addrs) { + addrs_ = addrs; + setParameter(std::string("Addrs"), addrs); } -void DescribeDnsGtmAddrAttributeInfoRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeDnsGtmAddrAttributeInfoRequest::getType() const { + return type_; } -std::string DescribeDnsGtmAddrAttributeInfoRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmAddrAttributeInfoRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeDnsGtmAddrAttributeInfoRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmAddrAttributeInfoRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsGtmAddrAttributeInfoRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmAddrAttributeInfoRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmAddrAttributeInfoRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmAddrAttributeInfoRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmAddrAttributeInfoRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmAddrAttributeInfoResult.cc b/alidns/src/model/DescribeDnsGtmAddrAttributeInfoResult.cc index 8e94e7c30..39c8e6a70 100644 --- a/alidns/src/model/DescribeDnsGtmAddrAttributeInfoResult.cc +++ b/alidns/src/model/DescribeDnsGtmAddrAttributeInfoResult.cc @@ -46,16 +46,16 @@ void DescribeDnsGtmAddrAttributeInfoResult::parse(const std::string &payload) if(!valueAddrAddrItem["Addr"].isNull()) addrObject.addr = valueAddrAddrItem["Addr"].asString(); auto attributeInfoNode = value["AttributeInfo"]; + if(!attributeInfoNode["FatherCode"].isNull()) + addrObject.attributeInfo.fatherCode = attributeInfoNode["FatherCode"].asString(); + if(!attributeInfoNode["GroupName"].isNull()) + addrObject.attributeInfo.groupName = attributeInfoNode["GroupName"].asString(); if(!attributeInfoNode["LineCode"].isNull()) addrObject.attributeInfo.lineCode = attributeInfoNode["LineCode"].asString(); if(!attributeInfoNode["LineName"].isNull()) addrObject.attributeInfo.lineName = attributeInfoNode["LineName"].asString(); if(!attributeInfoNode["GroupCode"].isNull()) addrObject.attributeInfo.groupCode = attributeInfoNode["GroupCode"].asString(); - if(!attributeInfoNode["GroupName"].isNull()) - addrObject.attributeInfo.groupName = attributeInfoNode["GroupName"].asString(); - if(!attributeInfoNode["FatherCode"].isNull()) - addrObject.attributeInfo.fatherCode = attributeInfoNode["FatherCode"].asString(); addr_.push_back(addrObject); } diff --git a/alidns/src/model/DescribeDnsGtmAddressPoolAvailableConfigRequest.cc b/alidns/src/model/DescribeDnsGtmAddressPoolAvailableConfigRequest.cc index 585b147d0..d4166d5d2 100644 --- a/alidns/src/model/DescribeDnsGtmAddressPoolAvailableConfigRequest.cc +++ b/alidns/src/model/DescribeDnsGtmAddressPoolAvailableConfigRequest.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::Alidns::Model::DescribeDnsGtmAddressPoolAvailableConfigRequest; - -DescribeDnsGtmAddressPoolAvailableConfigRequest::DescribeDnsGtmAddressPoolAvailableConfigRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAddressPoolAvailableConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmAddressPoolAvailableConfigRequest::~DescribeDnsGtmAddressPoolAvailableConfigRequest() -{} - -std::string DescribeDnsGtmAddressPoolAvailableConfigRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmAddressPoolAvailableConfigRequest; + +DescribeDnsGtmAddressPoolAvailableConfigRequest::DescribeDnsGtmAddressPoolAvailableConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAddressPoolAvailableConfig") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmAddressPoolAvailableConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeDnsGtmAddressPoolAvailableConfigRequest::~DescribeDnsGtmAddressPoolAvailableConfigRequest() {} + +std::string DescribeDnsGtmAddressPoolAvailableConfigRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeDnsGtmAddressPoolAvailableConfigRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmAddressPoolAvailableConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeDnsGtmAddressPoolAvailableConfigRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmAddressPoolAvailableConfigRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsGtmAddressPoolAvailableConfigRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmAddressPoolAvailableConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmAddressPoolAvailableConfigRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmAddressPoolAvailableConfigRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmAddressPoolAvailableConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmAddressPoolAvailableConfigResult.cc b/alidns/src/model/DescribeDnsGtmAddressPoolAvailableConfigResult.cc index c1ccb703e..a64bd4841 100644 --- a/alidns/src/model/DescribeDnsGtmAddressPoolAvailableConfigResult.cc +++ b/alidns/src/model/DescribeDnsGtmAddressPoolAvailableConfigResult.cc @@ -43,16 +43,16 @@ void DescribeDnsGtmAddressPoolAvailableConfigResult::parse(const std::string &pa for (auto valueAttributeInfosAttributeInfo : allAttributeInfosNode) { AttributeInfo attributeInfosObject; + if(!valueAttributeInfosAttributeInfo["FatherCode"].isNull()) + attributeInfosObject.fatherCode = valueAttributeInfosAttributeInfo["FatherCode"].asString(); + if(!valueAttributeInfosAttributeInfo["GroupName"].isNull()) + attributeInfosObject.groupName = valueAttributeInfosAttributeInfo["GroupName"].asString(); if(!valueAttributeInfosAttributeInfo["LineCode"].isNull()) attributeInfosObject.lineCode = valueAttributeInfosAttributeInfo["LineCode"].asString(); if(!valueAttributeInfosAttributeInfo["LineName"].isNull()) attributeInfosObject.lineName = valueAttributeInfosAttributeInfo["LineName"].asString(); if(!valueAttributeInfosAttributeInfo["GroupCode"].isNull()) attributeInfosObject.groupCode = valueAttributeInfosAttributeInfo["GroupCode"].asString(); - if(!valueAttributeInfosAttributeInfo["GroupName"].isNull()) - attributeInfosObject.groupName = valueAttributeInfosAttributeInfo["GroupName"].asString(); - if(!valueAttributeInfosAttributeInfo["FatherCode"].isNull()) - attributeInfosObject.fatherCode = valueAttributeInfosAttributeInfo["FatherCode"].asString(); attributeInfos_.push_back(attributeInfosObject); } diff --git a/alidns/src/model/DescribeDnsGtmAvailableAlertGroupRequest.cc b/alidns/src/model/DescribeDnsGtmAvailableAlertGroupRequest.cc index cff8a4133..506878445 100644 --- a/alidns/src/model/DescribeDnsGtmAvailableAlertGroupRequest.cc +++ b/alidns/src/model/DescribeDnsGtmAvailableAlertGroupRequest.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::Alidns::Model::DescribeDnsGtmAvailableAlertGroupRequest; - -DescribeDnsGtmAvailableAlertGroupRequest::DescribeDnsGtmAvailableAlertGroupRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAvailableAlertGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmAvailableAlertGroupRequest::~DescribeDnsGtmAvailableAlertGroupRequest() -{} - -std::string DescribeDnsGtmAvailableAlertGroupRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmAvailableAlertGroupRequest; + +DescribeDnsGtmAvailableAlertGroupRequest::DescribeDnsGtmAvailableAlertGroupRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmAvailableAlertGroup") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmAvailableAlertGroupRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +DescribeDnsGtmAvailableAlertGroupRequest::~DescribeDnsGtmAvailableAlertGroupRequest() {} + +std::string DescribeDnsGtmAvailableAlertGroupRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsGtmAvailableAlertGroupRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmAvailableAlertGroupRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmAvailableAlertGroupRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmAvailableAlertGroupRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmAvailableAlertGroupRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmInstanceAddressPoolRequest.cc b/alidns/src/model/DescribeDnsGtmInstanceAddressPoolRequest.cc index 0ea272c86..66dbe642b 100644 --- a/alidns/src/model/DescribeDnsGtmInstanceAddressPoolRequest.cc +++ b/alidns/src/model/DescribeDnsGtmInstanceAddressPoolRequest.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::Alidns::Model::DescribeDnsGtmInstanceAddressPoolRequest; - -DescribeDnsGtmInstanceAddressPoolRequest::DescribeDnsGtmInstanceAddressPoolRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstanceAddressPool") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmInstanceAddressPoolRequest::~DescribeDnsGtmInstanceAddressPoolRequest() -{} - -std::string DescribeDnsGtmInstanceAddressPoolRequest::getAddrPoolId()const -{ - return addrPoolId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmInstanceAddressPoolRequest; + +DescribeDnsGtmInstanceAddressPoolRequest::DescribeDnsGtmInstanceAddressPoolRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstanceAddressPool") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmInstanceAddressPoolRequest::setAddrPoolId(const std::string& addrPoolId) -{ - addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); +DescribeDnsGtmInstanceAddressPoolRequest::~DescribeDnsGtmInstanceAddressPoolRequest() {} + +std::string DescribeDnsGtmInstanceAddressPoolRequest::getAddrPoolId() const { + return addrPoolId_; } -std::string DescribeDnsGtmInstanceAddressPoolRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmInstanceAddressPoolRequest::setAddrPoolId(const std::string &addrPoolId) { + addrPoolId_ = addrPoolId; + setParameter(std::string("AddrPoolId"), addrPoolId); } -void DescribeDnsGtmInstanceAddressPoolRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmInstanceAddressPoolRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsGtmInstanceAddressPoolRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmInstanceAddressPoolRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmInstanceAddressPoolRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmInstanceAddressPoolRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmInstanceAddressPoolRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmInstanceAddressPoolResult.cc b/alidns/src/model/DescribeDnsGtmInstanceAddressPoolResult.cc index 835037486..6b5da63e9 100644 --- a/alidns/src/model/DescribeDnsGtmInstanceAddressPoolResult.cc +++ b/alidns/src/model/DescribeDnsGtmInstanceAddressPoolResult.cc @@ -43,50 +43,50 @@ void DescribeDnsGtmInstanceAddressPoolResult::parse(const std::string &payload) for (auto valueAddrsAddr : allAddrsNode) { Addr addrsObject; - if(!valueAddrsAddr["CreateTime"].isNull()) - addrsObject.createTime = valueAddrsAddr["CreateTime"].asString(); - if(!valueAddrsAddr["CreateTimestamp"].isNull()) - addrsObject.createTimestamp = std::stol(valueAddrsAddr["CreateTimestamp"].asString()); - if(!valueAddrsAddr["UpdateTime"].isNull()) - addrsObject.updateTime = valueAddrsAddr["UpdateTime"].asString(); if(!valueAddrsAddr["UpdateTimestamp"].isNull()) addrsObject.updateTimestamp = std::stol(valueAddrsAddr["UpdateTimestamp"].asString()); - if(!valueAddrsAddr["Addr"].isNull()) - addrsObject.addr = valueAddrsAddr["Addr"].asString(); - if(!valueAddrsAddr["LbaWeight"].isNull()) - addrsObject.lbaWeight = std::stoi(valueAddrsAddr["LbaWeight"].asString()); - if(!valueAddrsAddr["Mode"].isNull()) - addrsObject.mode = valueAddrsAddr["Mode"].asString(); + if(!valueAddrsAddr["AttributeInfo"].isNull()) + addrsObject.attributeInfo = valueAddrsAddr["AttributeInfo"].asString(); + if(!valueAddrsAddr["UpdateTime"].isNull()) + addrsObject.updateTime = valueAddrsAddr["UpdateTime"].asString(); if(!valueAddrsAddr["AlertStatus"].isNull()) addrsObject.alertStatus = valueAddrsAddr["AlertStatus"].asString(); if(!valueAddrsAddr["Remark"].isNull()) addrsObject.remark = valueAddrsAddr["Remark"].asString(); - if(!valueAddrsAddr["AttributeInfo"].isNull()) - addrsObject.attributeInfo = valueAddrsAddr["AttributeInfo"].asString(); + if(!valueAddrsAddr["LbaWeight"].isNull()) + addrsObject.lbaWeight = std::stoi(valueAddrsAddr["LbaWeight"].asString()); + if(!valueAddrsAddr["Addr"].isNull()) + addrsObject.addr = valueAddrsAddr["Addr"].asString(); + if(!valueAddrsAddr["CreateTime"].isNull()) + addrsObject.createTime = valueAddrsAddr["CreateTime"].asString(); + if(!valueAddrsAddr["Mode"].isNull()) + addrsObject.mode = valueAddrsAddr["Mode"].asString(); + if(!valueAddrsAddr["CreateTimestamp"].isNull()) + addrsObject.createTimestamp = std::stol(valueAddrsAddr["CreateTimestamp"].asString()); addrs_.push_back(addrsObject); } - if(!value["AddrPoolId"].isNull()) - addrPoolId_ = value["AddrPoolId"].asString(); + if(!value["LbaStrategy"].isNull()) + lbaStrategy_ = value["LbaStrategy"].asString(); if(!value["CreateTime"].isNull()) createTime_ = value["CreateTime"].asString(); - if(!value["CreateTimestamp"].isNull()) - createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); - if(!value["UpdateTime"].isNull()) - updateTime_ = value["UpdateTime"].asString(); - if(!value["UpdateTimestamp"].isNull()) - updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString()); if(!value["AddrCount"].isNull()) addrCount_ = std::stoi(value["AddrCount"].asString()); - if(!value["MonitorConfigId"].isNull()) - monitorConfigId_ = value["MonitorConfigId"].asString(); - if(!value["MonitorStatus"].isNull()) - monitorStatus_ = value["MonitorStatus"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); if(!value["Type"].isNull()) type_ = value["Type"].asString(); - if(!value["LbaStrategy"].isNull()) - lbaStrategy_ = value["LbaStrategy"].asString(); + if(!value["UpdateTime"].isNull()) + updateTime_ = value["UpdateTime"].asString(); + if(!value["AddrPoolId"].isNull()) + addrPoolId_ = value["AddrPoolId"].asString(); + if(!value["UpdateTimestamp"].isNull()) + updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString()); + if(!value["MonitorConfigId"].isNull()) + monitorConfigId_ = value["MonitorConfigId"].asString(); + if(!value["MonitorStatus"].isNull()) + monitorStatus_ = value["MonitorStatus"].asString(); + if(!value["CreateTimestamp"].isNull()) + createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); } @@ -110,16 +110,16 @@ std::string DescribeDnsGtmInstanceAddressPoolResult::getCreateTime()const return createTime_; } -std::string DescribeDnsGtmInstanceAddressPoolResult::getAddrPoolId()const -{ - return addrPoolId_; -} - std::string DescribeDnsGtmInstanceAddressPoolResult::getUpdateTime()const { return updateTime_; } +std::string DescribeDnsGtmInstanceAddressPoolResult::getAddrPoolId()const +{ + return addrPoolId_; +} + long DescribeDnsGtmInstanceAddressPoolResult::getUpdateTimestamp()const { return updateTimestamp_; @@ -130,16 +130,16 @@ std::string DescribeDnsGtmInstanceAddressPoolResult::getMonitorConfigId()const return monitorConfigId_; } -long DescribeDnsGtmInstanceAddressPoolResult::getCreateTimestamp()const -{ - return createTimestamp_; -} - std::string DescribeDnsGtmInstanceAddressPoolResult::getMonitorStatus()const { return monitorStatus_; } +long DescribeDnsGtmInstanceAddressPoolResult::getCreateTimestamp()const +{ + return createTimestamp_; +} + int DescribeDnsGtmInstanceAddressPoolResult::getAddrCount()const { return addrCount_; diff --git a/alidns/src/model/DescribeDnsGtmInstanceAddressPoolsRequest.cc b/alidns/src/model/DescribeDnsGtmInstanceAddressPoolsRequest.cc index 7c1ccf215..dbcd6c4ba 100644 --- a/alidns/src/model/DescribeDnsGtmInstanceAddressPoolsRequest.cc +++ b/alidns/src/model/DescribeDnsGtmInstanceAddressPoolsRequest.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::Alidns::Model::DescribeDnsGtmInstanceAddressPoolsRequest; - -DescribeDnsGtmInstanceAddressPoolsRequest::DescribeDnsGtmInstanceAddressPoolsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstanceAddressPools") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmInstanceAddressPoolsRequest::~DescribeDnsGtmInstanceAddressPoolsRequest() -{} - -int DescribeDnsGtmInstanceAddressPoolsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmInstanceAddressPoolsRequest; + +DescribeDnsGtmInstanceAddressPoolsRequest::DescribeDnsGtmInstanceAddressPoolsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstanceAddressPools") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmInstanceAddressPoolsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeDnsGtmInstanceAddressPoolsRequest::~DescribeDnsGtmInstanceAddressPoolsRequest() {} + +int DescribeDnsGtmInstanceAddressPoolsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDnsGtmInstanceAddressPoolsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeDnsGtmInstanceAddressPoolsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDnsGtmInstanceAddressPoolsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeDnsGtmInstanceAddressPoolsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeDnsGtmInstanceAddressPoolsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmInstanceAddressPoolsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeDnsGtmInstanceAddressPoolsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmInstanceAddressPoolsRequest::getUserClientIp() const { + return userClientIp_; } -int DescribeDnsGtmInstanceAddressPoolsRequest::getPageSize()const -{ - return pageSize_; +void DescribeDnsGtmInstanceAddressPoolsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmInstanceAddressPoolsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDnsGtmInstanceAddressPoolsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDnsGtmInstanceAddressPoolsRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmInstanceAddressPoolsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDnsGtmInstanceAddressPoolsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmInstanceAddressPoolsRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmInstanceAddressPoolsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmInstanceAddressPoolsResult.cc b/alidns/src/model/DescribeDnsGtmInstanceAddressPoolsResult.cc index 96d5a0ab7..fc03cccec 100644 --- a/alidns/src/model/DescribeDnsGtmInstanceAddressPoolsResult.cc +++ b/alidns/src/model/DescribeDnsGtmInstanceAddressPoolsResult.cc @@ -43,38 +43,38 @@ void DescribeDnsGtmInstanceAddressPoolsResult::parse(const std::string &payload) for (auto valueAddrPoolsAddrPool : allAddrPoolsNode) { AddrPool addrPoolsObject; - if(!valueAddrPoolsAddrPool["AddrPoolId"].isNull()) - addrPoolsObject.addrPoolId = valueAddrPoolsAddrPool["AddrPoolId"].asString(); - if(!valueAddrPoolsAddrPool["CreateTime"].isNull()) - addrPoolsObject.createTime = valueAddrPoolsAddrPool["CreateTime"].asString(); - if(!valueAddrPoolsAddrPool["CreateTimestamp"].isNull()) - addrPoolsObject.createTimestamp = std::stol(valueAddrPoolsAddrPool["CreateTimestamp"].asString()); - if(!valueAddrPoolsAddrPool["UpdateTime"].isNull()) - addrPoolsObject.updateTime = valueAddrPoolsAddrPool["UpdateTime"].asString(); + if(!valueAddrPoolsAddrPool["Type"].isNull()) + addrPoolsObject.type = valueAddrPoolsAddrPool["Type"].asString(); if(!valueAddrPoolsAddrPool["UpdateTimestamp"].isNull()) addrPoolsObject.updateTimestamp = std::stol(valueAddrPoolsAddrPool["UpdateTimestamp"].asString()); + if(!valueAddrPoolsAddrPool["MonitorStatus"].isNull()) + addrPoolsObject.monitorStatus = valueAddrPoolsAddrPool["MonitorStatus"].asString(); + if(!valueAddrPoolsAddrPool["UpdateTime"].isNull()) + addrPoolsObject.updateTime = valueAddrPoolsAddrPool["UpdateTime"].asString(); + if(!valueAddrPoolsAddrPool["CreateTime"].isNull()) + addrPoolsObject.createTime = valueAddrPoolsAddrPool["CreateTime"].asString(); + if(!valueAddrPoolsAddrPool["AddrPoolId"].isNull()) + addrPoolsObject.addrPoolId = valueAddrPoolsAddrPool["AddrPoolId"].asString(); + if(!valueAddrPoolsAddrPool["LbaStrategy"].isNull()) + addrPoolsObject.lbaStrategy = valueAddrPoolsAddrPool["LbaStrategy"].asString(); + if(!valueAddrPoolsAddrPool["Name"].isNull()) + addrPoolsObject.name = valueAddrPoolsAddrPool["Name"].asString(); if(!valueAddrPoolsAddrPool["AddrCount"].isNull()) addrPoolsObject.addrCount = std::stoi(valueAddrPoolsAddrPool["AddrCount"].asString()); if(!valueAddrPoolsAddrPool["MonitorConfigId"].isNull()) addrPoolsObject.monitorConfigId = valueAddrPoolsAddrPool["MonitorConfigId"].asString(); - if(!valueAddrPoolsAddrPool["MonitorStatus"].isNull()) - addrPoolsObject.monitorStatus = valueAddrPoolsAddrPool["MonitorStatus"].asString(); - if(!valueAddrPoolsAddrPool["Name"].isNull()) - addrPoolsObject.name = valueAddrPoolsAddrPool["Name"].asString(); - if(!valueAddrPoolsAddrPool["Type"].isNull()) - addrPoolsObject.type = valueAddrPoolsAddrPool["Type"].asString(); - if(!valueAddrPoolsAddrPool["LbaStrategy"].isNull()) - addrPoolsObject.lbaStrategy = valueAddrPoolsAddrPool["LbaStrategy"].asString(); + if(!valueAddrPoolsAddrPool["CreateTimestamp"].isNull()) + addrPoolsObject.createTimestamp = std::stol(valueAddrPoolsAddrPool["CreateTimestamp"].asString()); addrPools_.push_back(addrPoolsObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].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["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeDnsGtmInstanceRequest.cc b/alidns/src/model/DescribeDnsGtmInstanceRequest.cc index fe6763084..a4ef6b6b1 100644 --- a/alidns/src/model/DescribeDnsGtmInstanceRequest.cc +++ b/alidns/src/model/DescribeDnsGtmInstanceRequest.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::Alidns::Model::DescribeDnsGtmInstanceRequest; - -DescribeDnsGtmInstanceRequest::DescribeDnsGtmInstanceRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmInstanceRequest::~DescribeDnsGtmInstanceRequest() -{} - -std::string DescribeDnsGtmInstanceRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmInstanceRequest; + +DescribeDnsGtmInstanceRequest::DescribeDnsGtmInstanceRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstance") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeDnsGtmInstanceRequest::~DescribeDnsGtmInstanceRequest() {} + +std::string DescribeDnsGtmInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeDnsGtmInstanceRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeDnsGtmInstanceRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmInstanceRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsGtmInstanceRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmInstanceRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmInstanceRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmInstanceRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmInstanceRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmInstanceStatusRequest.cc b/alidns/src/model/DescribeDnsGtmInstanceStatusRequest.cc index 2eef02ddd..5b79ca970 100644 --- a/alidns/src/model/DescribeDnsGtmInstanceStatusRequest.cc +++ b/alidns/src/model/DescribeDnsGtmInstanceStatusRequest.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::Alidns::Model::DescribeDnsGtmInstanceStatusRequest; - -DescribeDnsGtmInstanceStatusRequest::DescribeDnsGtmInstanceStatusRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstanceStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmInstanceStatusRequest::~DescribeDnsGtmInstanceStatusRequest() -{} - -std::string DescribeDnsGtmInstanceStatusRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmInstanceStatusRequest; + +DescribeDnsGtmInstanceStatusRequest::DescribeDnsGtmInstanceStatusRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstanceStatus") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmInstanceStatusRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeDnsGtmInstanceStatusRequest::~DescribeDnsGtmInstanceStatusRequest() {} + +std::string DescribeDnsGtmInstanceStatusRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeDnsGtmInstanceStatusRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmInstanceStatusRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeDnsGtmInstanceStatusRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmInstanceStatusRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsGtmInstanceStatusRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmInstanceStatusRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmInstanceStatusRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmInstanceStatusRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmInstanceStatusRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmInstanceStatusResult.cc b/alidns/src/model/DescribeDnsGtmInstanceStatusResult.cc index c166e298d..c01a4d5f9 100644 --- a/alidns/src/model/DescribeDnsGtmInstanceStatusResult.cc +++ b/alidns/src/model/DescribeDnsGtmInstanceStatusResult.cc @@ -39,16 +39,16 @@ void DescribeDnsGtmInstanceStatusResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["AddrNotAvailableNum"].isNull()) - addrNotAvailableNum_ = std::stoi(value["AddrNotAvailableNum"].asString()); - if(!value["AddrPoolGroupNotAvailableNum"].isNull()) - addrPoolGroupNotAvailableNum_ = std::stoi(value["AddrPoolGroupNotAvailableNum"].asString()); - if(!value["SwitchToFailoverStrategyNum"].isNull()) - switchToFailoverStrategyNum_ = std::stoi(value["SwitchToFailoverStrategyNum"].asString()); if(!value["StrategyNotAvailableNum"].isNull()) strategyNotAvailableNum_ = std::stoi(value["StrategyNotAvailableNum"].asString()); if(!value["AddrAvailableNum"].isNull()) addrAvailableNum_ = std::stoi(value["AddrAvailableNum"].asString()); + if(!value["SwitchToFailoverStrategyNum"].isNull()) + switchToFailoverStrategyNum_ = std::stoi(value["SwitchToFailoverStrategyNum"].asString()); + if(!value["AddrNotAvailableNum"].isNull()) + addrNotAvailableNum_ = std::stoi(value["AddrNotAvailableNum"].asString()); + if(!value["AddrPoolGroupNotAvailableNum"].isNull()) + addrPoolGroupNotAvailableNum_ = std::stoi(value["AddrPoolGroupNotAvailableNum"].asString()); } diff --git a/alidns/src/model/DescribeDnsGtmInstanceSystemCnameRequest.cc b/alidns/src/model/DescribeDnsGtmInstanceSystemCnameRequest.cc index 7ba20b95d..96bbcaa33 100644 --- a/alidns/src/model/DescribeDnsGtmInstanceSystemCnameRequest.cc +++ b/alidns/src/model/DescribeDnsGtmInstanceSystemCnameRequest.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::Alidns::Model::DescribeDnsGtmInstanceSystemCnameRequest; - -DescribeDnsGtmInstanceSystemCnameRequest::DescribeDnsGtmInstanceSystemCnameRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstanceSystemCname") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmInstanceSystemCnameRequest::~DescribeDnsGtmInstanceSystemCnameRequest() -{} - -std::string DescribeDnsGtmInstanceSystemCnameRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmInstanceSystemCnameRequest; + +DescribeDnsGtmInstanceSystemCnameRequest::DescribeDnsGtmInstanceSystemCnameRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstanceSystemCname") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmInstanceSystemCnameRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeDnsGtmInstanceSystemCnameRequest::~DescribeDnsGtmInstanceSystemCnameRequest() {} + +std::string DescribeDnsGtmInstanceSystemCnameRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeDnsGtmInstanceSystemCnameRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmInstanceSystemCnameRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeDnsGtmInstanceSystemCnameRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmInstanceSystemCnameRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsGtmInstanceSystemCnameRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmInstanceSystemCnameRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmInstanceSystemCnameRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmInstanceSystemCnameRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmInstanceSystemCnameRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmInstancesRequest.cc b/alidns/src/model/DescribeDnsGtmInstancesRequest.cc index cd65c8da4..3e22f3da2 100644 --- a/alidns/src/model/DescribeDnsGtmInstancesRequest.cc +++ b/alidns/src/model/DescribeDnsGtmInstancesRequest.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::Alidns::Model::DescribeDnsGtmInstancesRequest; - -DescribeDnsGtmInstancesRequest::DescribeDnsGtmInstancesRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmInstancesRequest::~DescribeDnsGtmInstancesRequest() -{} - -int DescribeDnsGtmInstancesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmInstancesRequest; + +DescribeDnsGtmInstancesRequest::DescribeDnsGtmInstancesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeDnsGtmInstancesRequest::~DescribeDnsGtmInstancesRequest() {} + +int DescribeDnsGtmInstancesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDnsGtmInstancesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeDnsGtmInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDnsGtmInstancesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeDnsGtmInstancesRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeDnsGtmInstancesRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmInstancesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeDnsGtmInstancesRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmInstancesRequest::getUserClientIp() const { + return userClientIp_; } -int DescribeDnsGtmInstancesRequest::getPageSize()const -{ - return pageSize_; +void DescribeDnsGtmInstancesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDnsGtmInstancesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDnsGtmInstancesRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDnsGtmInstancesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmInstancesRequest::getLang() const { + return lang_; } -std::string DescribeDnsGtmInstancesRequest::getKeyword()const -{ - return keyword_; +void DescribeDnsGtmInstancesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDnsGtmInstancesRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeDnsGtmInstancesRequest::getKeyword() const { + return keyword_; +} + +void DescribeDnsGtmInstancesRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } diff --git a/alidns/src/model/DescribeDnsGtmLogsRequest.cc b/alidns/src/model/DescribeDnsGtmLogsRequest.cc index c266ed99e..d5149961e 100644 --- a/alidns/src/model/DescribeDnsGtmLogsRequest.cc +++ b/alidns/src/model/DescribeDnsGtmLogsRequest.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::Alidns::Model::DescribeDnsGtmLogsRequest; - -DescribeDnsGtmLogsRequest::DescribeDnsGtmLogsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmLogs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmLogsRequest::~DescribeDnsGtmLogsRequest() -{} - -long DescribeDnsGtmLogsRequest::getStartTimestamp()const -{ - return startTimestamp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmLogsRequest; + +DescribeDnsGtmLogsRequest::DescribeDnsGtmLogsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmLogs") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmLogsRequest::setStartTimestamp(long startTimestamp) -{ - startTimestamp_ = startTimestamp; - setParameter("StartTimestamp", std::to_string(startTimestamp)); +DescribeDnsGtmLogsRequest::~DescribeDnsGtmLogsRequest() {} + +long DescribeDnsGtmLogsRequest::getStartTimestamp() const { + return startTimestamp_; } -int DescribeDnsGtmLogsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDnsGtmLogsRequest::setStartTimestamp(long startTimestamp) { + startTimestamp_ = startTimestamp; + setParameter(std::string("StartTimestamp"), std::to_string(startTimestamp)); } -void DescribeDnsGtmLogsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeDnsGtmLogsRequest::getPageNumber() const { + return pageNumber_; } -long DescribeDnsGtmLogsRequest::getEndTimestamp()const -{ - return endTimestamp_; +void DescribeDnsGtmLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDnsGtmLogsRequest::setEndTimestamp(long endTimestamp) -{ - endTimestamp_ = endTimestamp; - setParameter("EndTimestamp", std::to_string(endTimestamp)); +long DescribeDnsGtmLogsRequest::getEndTimestamp() const { + return endTimestamp_; } -std::string DescribeDnsGtmLogsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeDnsGtmLogsRequest::setEndTimestamp(long endTimestamp) { + endTimestamp_ = endTimestamp; + setParameter(std::string("EndTimestamp"), std::to_string(endTimestamp)); } -void DescribeDnsGtmLogsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeDnsGtmLogsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeDnsGtmLogsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmLogsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeDnsGtmLogsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmLogsRequest::getUserClientIp() const { + return userClientIp_; } -int DescribeDnsGtmLogsRequest::getPageSize()const -{ - return pageSize_; +void DescribeDnsGtmLogsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmLogsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDnsGtmLogsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDnsGtmLogsRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDnsGtmLogsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmLogsRequest::getLang() const { + return lang_; } -std::string DescribeDnsGtmLogsRequest::getKeyword()const -{ - return keyword_; +void DescribeDnsGtmLogsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDnsGtmLogsRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeDnsGtmLogsRequest::getKeyword() const { + return keyword_; +} + +void DescribeDnsGtmLogsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } diff --git a/alidns/src/model/DescribeDnsGtmLogsResult.cc b/alidns/src/model/DescribeDnsGtmLogsResult.cc index 3e1e3f477..9acbb3c69 100644 --- a/alidns/src/model/DescribeDnsGtmLogsResult.cc +++ b/alidns/src/model/DescribeDnsGtmLogsResult.cc @@ -43,32 +43,32 @@ void DescribeDnsGtmLogsResult::parse(const std::string &payload) for (auto valueLogsLog : allLogsNode) { Log logsObject; + if(!valueLogsLog["OperTimestamp"].isNull()) + logsObject.operTimestamp = std::stol(valueLogsLog["OperTimestamp"].asString()); + if(!valueLogsLog["EntityId"].isNull()) + logsObject.entityId = valueLogsLog["EntityId"].asString(); + if(!valueLogsLog["EntityType"].isNull()) + logsObject.entityType = valueLogsLog["EntityType"].asString(); if(!valueLogsLog["OperTime"].isNull()) logsObject.operTime = valueLogsLog["OperTime"].asString(); if(!valueLogsLog["OperAction"].isNull()) logsObject.operAction = valueLogsLog["OperAction"].asString(); - if(!valueLogsLog["EntityType"].isNull()) - logsObject.entityType = valueLogsLog["EntityType"].asString(); - if(!valueLogsLog["EntityId"].isNull()) - logsObject.entityId = valueLogsLog["EntityId"].asString(); - if(!valueLogsLog["EntityName"].isNull()) - logsObject.entityName = valueLogsLog["EntityName"].asString(); - if(!valueLogsLog["OperTimestamp"].isNull()) - logsObject.operTimestamp = std::stol(valueLogsLog["OperTimestamp"].asString()); - if(!valueLogsLog["Id"].isNull()) - logsObject.id = std::stol(valueLogsLog["Id"].asString()); if(!valueLogsLog["Content"].isNull()) logsObject.content = valueLogsLog["Content"].asString(); + if(!valueLogsLog["EntityName"].isNull()) + logsObject.entityName = valueLogsLog["EntityName"].asString(); + if(!valueLogsLog["Id"].isNull()) + logsObject.id = std::stol(valueLogsLog["Id"].asString()); logs_.push_back(logsObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeDnsGtmMonitorAvailableConfigRequest.cc b/alidns/src/model/DescribeDnsGtmMonitorAvailableConfigRequest.cc index e30b18888..c32c161ac 100644 --- a/alidns/src/model/DescribeDnsGtmMonitorAvailableConfigRequest.cc +++ b/alidns/src/model/DescribeDnsGtmMonitorAvailableConfigRequest.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::Alidns::Model::DescribeDnsGtmMonitorAvailableConfigRequest; - -DescribeDnsGtmMonitorAvailableConfigRequest::DescribeDnsGtmMonitorAvailableConfigRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmMonitorAvailableConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmMonitorAvailableConfigRequest::~DescribeDnsGtmMonitorAvailableConfigRequest() -{} - -std::string DescribeDnsGtmMonitorAvailableConfigRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmMonitorAvailableConfigRequest; + +DescribeDnsGtmMonitorAvailableConfigRequest::DescribeDnsGtmMonitorAvailableConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmMonitorAvailableConfig") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmMonitorAvailableConfigRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +DescribeDnsGtmMonitorAvailableConfigRequest::~DescribeDnsGtmMonitorAvailableConfigRequest() {} + +std::string DescribeDnsGtmMonitorAvailableConfigRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsGtmMonitorAvailableConfigRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmMonitorAvailableConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmMonitorAvailableConfigRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmMonitorAvailableConfigRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmMonitorAvailableConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmMonitorAvailableConfigResult.cc b/alidns/src/model/DescribeDnsGtmMonitorAvailableConfigResult.cc index 22091b774..ea4377577 100644 --- a/alidns/src/model/DescribeDnsGtmMonitorAvailableConfigResult.cc +++ b/alidns/src/model/DescribeDnsGtmMonitorAvailableConfigResult.cc @@ -43,20 +43,20 @@ void DescribeDnsGtmMonitorAvailableConfigResult::parse(const std::string &payloa for (auto valueIpv4IspCityNodesIpv4IspCityNode : allIpv4IspCityNodesNode) { Ipv4IspCityNode ipv4IspCityNodesObject; - if(!valueIpv4IspCityNodesIpv4IspCityNode["GroupName"].isNull()) - ipv4IspCityNodesObject.groupName = valueIpv4IspCityNodesIpv4IspCityNode["GroupName"].asString(); if(!valueIpv4IspCityNodesIpv4IspCityNode["CityCode"].isNull()) ipv4IspCityNodesObject.cityCode = valueIpv4IspCityNodesIpv4IspCityNode["CityCode"].asString(); + if(!valueIpv4IspCityNodesIpv4IspCityNode["GroupName"].isNull()) + ipv4IspCityNodesObject.groupName = valueIpv4IspCityNodesIpv4IspCityNode["GroupName"].asString(); + if(!valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].isNull()) + ipv4IspCityNodesObject.ispCode = valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].asString(); + if(!valueIpv4IspCityNodesIpv4IspCityNode["CityName"].isNull()) + ipv4IspCityNodesObject.cityName = valueIpv4IspCityNodesIpv4IspCityNode["CityName"].asString(); if(!valueIpv4IspCityNodesIpv4IspCityNode["IspName"].isNull()) ipv4IspCityNodesObject.ispName = valueIpv4IspCityNodesIpv4IspCityNode["IspName"].asString(); if(!valueIpv4IspCityNodesIpv4IspCityNode["GroupType"].isNull()) ipv4IspCityNodesObject.groupType = valueIpv4IspCityNodesIpv4IspCityNode["GroupType"].asString(); - if(!valueIpv4IspCityNodesIpv4IspCityNode["CityName"].isNull()) - ipv4IspCityNodesObject.cityName = valueIpv4IspCityNodesIpv4IspCityNode["CityName"].asString(); if(!valueIpv4IspCityNodesIpv4IspCityNode["DefaultSelected"].isNull()) ipv4IspCityNodesObject.defaultSelected = valueIpv4IspCityNodesIpv4IspCityNode["DefaultSelected"].asString() == "true"; - if(!valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].isNull()) - ipv4IspCityNodesObject.ispCode = valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].asString(); auto allIps = value["Ips"]["Ip"]; for (auto value : allIps) ipv4IspCityNodesObject.ips.push_back(value.asString()); @@ -66,20 +66,20 @@ void DescribeDnsGtmMonitorAvailableConfigResult::parse(const std::string &payloa for (auto valueDomainIpv4IspCityNodesDomainIpv4IspCityNode : allDomainIpv4IspCityNodesNode) { DomainIpv4IspCityNode domainIpv4IspCityNodesObject; - if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupName"].isNull()) - domainIpv4IspCityNodesObject.groupName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupName"].asString(); if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityCode"].isNull()) domainIpv4IspCityNodesObject.cityCode = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityCode"].asString(); + if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupName"].isNull()) + domainIpv4IspCityNodesObject.groupName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupName"].asString(); + if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].isNull()) + domainIpv4IspCityNodesObject.ispCode = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].asString(); + if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].isNull()) + domainIpv4IspCityNodesObject.cityName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].asString(); if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspName"].isNull()) domainIpv4IspCityNodesObject.ispName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspName"].asString(); if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupType"].isNull()) domainIpv4IspCityNodesObject.groupType = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupType"].asString(); - if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].isNull()) - domainIpv4IspCityNodesObject.cityName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].asString(); if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["DefaultSelected"].isNull()) domainIpv4IspCityNodesObject.defaultSelected = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["DefaultSelected"].asString() == "true"; - if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].isNull()) - domainIpv4IspCityNodesObject.ispCode = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].asString(); auto allIps1 = value["Ips"]["Ip"]; for (auto value : allIps1) domainIpv4IspCityNodesObject.ips1.push_back(value.asString()); @@ -89,21 +89,21 @@ void DescribeDnsGtmMonitorAvailableConfigResult::parse(const std::string &payloa for (auto valueDomainIpv6IspCityNodesDomainIpv6IspCityNode : allDomainIpv6IspCityNodesNode) { DomainIpv6IspCityNode domainIpv6IspCityNodesObject; - if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupName"].isNull()) - domainIpv6IspCityNodesObject.groupName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupName"].asString(); if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityCode"].isNull()) domainIpv6IspCityNodesObject.cityCode = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityCode"].asString(); + if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupName"].isNull()) + domainIpv6IspCityNodesObject.groupName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupName"].asString(); + if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].isNull()) + domainIpv6IspCityNodesObject.ispCode = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].asString(); + if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].isNull()) + domainIpv6IspCityNodesObject.cityName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].asString(); if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspName"].isNull()) domainIpv6IspCityNodesObject.ispName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspName"].asString(); if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupType"].isNull()) domainIpv6IspCityNodesObject.groupType = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupType"].asString(); - if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].isNull()) - domainIpv6IspCityNodesObject.cityName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].asString(); if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["DefaultSelected"].isNull()) domainIpv6IspCityNodesObject.defaultSelected = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["DefaultSelected"].asString() == "true"; - if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].isNull()) - domainIpv6IspCityNodesObject.ispCode = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].asString(); - auto allIps2 = value["Ips"]["Ip"]; + auto allIps2 = value["Ips"]["ip"]; for (auto value : allIps2) domainIpv6IspCityNodesObject.ips2.push_back(value.asString()); domainIpv6IspCityNodes_.push_back(domainIpv6IspCityNodesObject); @@ -112,20 +112,20 @@ void DescribeDnsGtmMonitorAvailableConfigResult::parse(const std::string &payloa for (auto valueIpv6IspCityNodesIpv6IspCityNode : allIpv6IspCityNodesNode) { Ipv6IspCityNode ipv6IspCityNodesObject; - if(!valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].isNull()) - ipv6IspCityNodesObject.groupName = valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].asString(); if(!valueIpv6IspCityNodesIpv6IspCityNode["CityCode"].isNull()) ipv6IspCityNodesObject.cityCode = valueIpv6IspCityNodesIpv6IspCityNode["CityCode"].asString(); + if(!valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].isNull()) + ipv6IspCityNodesObject.groupName = valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].asString(); + if(!valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].isNull()) + ipv6IspCityNodesObject.ispCode = valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].asString(); + if(!valueIpv6IspCityNodesIpv6IspCityNode["CityName"].isNull()) + ipv6IspCityNodesObject.cityName = valueIpv6IspCityNodesIpv6IspCityNode["CityName"].asString(); if(!valueIpv6IspCityNodesIpv6IspCityNode["IspName"].isNull()) ipv6IspCityNodesObject.ispName = valueIpv6IspCityNodesIpv6IspCityNode["IspName"].asString(); if(!valueIpv6IspCityNodesIpv6IspCityNode["GroupType"].isNull()) ipv6IspCityNodesObject.groupType = valueIpv6IspCityNodesIpv6IspCityNode["GroupType"].asString(); - if(!valueIpv6IspCityNodesIpv6IspCityNode["CityName"].isNull()) - ipv6IspCityNodesObject.cityName = valueIpv6IspCityNodesIpv6IspCityNode["CityName"].asString(); if(!valueIpv6IspCityNodesIpv6IspCityNode["DefaultSelected"].isNull()) ipv6IspCityNodesObject.defaultSelected = valueIpv6IspCityNodesIpv6IspCityNode["DefaultSelected"].asString() == "true"; - if(!valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].isNull()) - ipv6IspCityNodesObject.ispCode = valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].asString(); auto allIps3 = value["Ips"]["Ip"]; for (auto value : allIps3) ipv6IspCityNodesObject.ips3.push_back(value.asString()); diff --git a/alidns/src/model/DescribeDnsGtmMonitorConfigRequest.cc b/alidns/src/model/DescribeDnsGtmMonitorConfigRequest.cc index 582d07cae..6b3a0acbb 100644 --- a/alidns/src/model/DescribeDnsGtmMonitorConfigRequest.cc +++ b/alidns/src/model/DescribeDnsGtmMonitorConfigRequest.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::Alidns::Model::DescribeDnsGtmMonitorConfigRequest; - -DescribeDnsGtmMonitorConfigRequest::DescribeDnsGtmMonitorConfigRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmMonitorConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsGtmMonitorConfigRequest::~DescribeDnsGtmMonitorConfigRequest() -{} - -std::string DescribeDnsGtmMonitorConfigRequest::getMonitorConfigId()const -{ - return monitorConfigId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsGtmMonitorConfigRequest; + +DescribeDnsGtmMonitorConfigRequest::DescribeDnsGtmMonitorConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsGtmMonitorConfig") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsGtmMonitorConfigRequest::setMonitorConfigId(const std::string& monitorConfigId) -{ - monitorConfigId_ = monitorConfigId; - setParameter("MonitorConfigId", monitorConfigId); +DescribeDnsGtmMonitorConfigRequest::~DescribeDnsGtmMonitorConfigRequest() {} + +std::string DescribeDnsGtmMonitorConfigRequest::getMonitorConfigId() const { + return monitorConfigId_; } -std::string DescribeDnsGtmMonitorConfigRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsGtmMonitorConfigRequest::setMonitorConfigId(const std::string &monitorConfigId) { + monitorConfigId_ = monitorConfigId; + setParameter(std::string("MonitorConfigId"), monitorConfigId); } -void DescribeDnsGtmMonitorConfigRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsGtmMonitorConfigRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsGtmMonitorConfigRequest::getLang()const -{ - return lang_; +void DescribeDnsGtmMonitorConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsGtmMonitorConfigRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsGtmMonitorConfigRequest::getLang() const { + return lang_; +} + +void DescribeDnsGtmMonitorConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsGtmMonitorConfigResult.cc b/alidns/src/model/DescribeDnsGtmMonitorConfigResult.cc index b4c1d938c..fa7a0a5ba 100644 --- a/alidns/src/model/DescribeDnsGtmMonitorConfigResult.cc +++ b/alidns/src/model/DescribeDnsGtmMonitorConfigResult.cc @@ -43,40 +43,40 @@ void DescribeDnsGtmMonitorConfigResult::parse(const std::string &payload) for (auto valueIspCityNodesIspCityNode : allIspCityNodesNode) { IspCityNode ispCityNodesObject; - if(!valueIspCityNodesIspCityNode["CountryName"].isNull()) - ispCityNodesObject.countryName = valueIspCityNodesIspCityNode["CountryName"].asString(); - if(!valueIspCityNodesIspCityNode["CountryCode"].isNull()) - ispCityNodesObject.countryCode = valueIspCityNodesIspCityNode["CountryCode"].asString(); - if(!valueIspCityNodesIspCityNode["CityName"].isNull()) - ispCityNodesObject.cityName = valueIspCityNodesIspCityNode["CityName"].asString(); if(!valueIspCityNodesIspCityNode["CityCode"].isNull()) ispCityNodesObject.cityCode = valueIspCityNodesIspCityNode["CityCode"].asString(); + if(!valueIspCityNodesIspCityNode["CountryName"].isNull()) + ispCityNodesObject.countryName = valueIspCityNodesIspCityNode["CountryName"].asString(); if(!valueIspCityNodesIspCityNode["IspCode"].isNull()) ispCityNodesObject.ispCode = valueIspCityNodesIspCityNode["IspCode"].asString(); + if(!valueIspCityNodesIspCityNode["CityName"].isNull()) + ispCityNodesObject.cityName = valueIspCityNodesIspCityNode["CityName"].asString(); + if(!valueIspCityNodesIspCityNode["CountryCode"].isNull()) + ispCityNodesObject.countryCode = valueIspCityNodesIspCityNode["CountryCode"].asString(); if(!valueIspCityNodesIspCityNode["IspName"].isNull()) ispCityNodesObject.ispName = valueIspCityNodesIspCityNode["IspName"].asString(); ispCityNodes_.push_back(ispCityNodesObject); } - if(!value["MonitorConfigId"].isNull()) - monitorConfigId_ = value["MonitorConfigId"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); - if(!value["CreateTimestamp"].isNull()) - createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); - if(!value["UpdateTime"].isNull()) - updateTime_ = value["UpdateTime"].asString(); - if(!value["UpdateTimestamp"].isNull()) - updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString()); - if(!value["ProtocolType"].isNull()) - protocolType_ = value["ProtocolType"].asString(); - if(!value["Interval"].isNull()) - interval_ = std::stoi(value["Interval"].asString()); - if(!value["EvaluationCount"].isNull()) - evaluationCount_ = std::stoi(value["EvaluationCount"].asString()); if(!value["Timeout"].isNull()) timeout_ = std::stoi(value["Timeout"].asString()); + if(!value["ProtocolType"].isNull()) + protocolType_ = value["ProtocolType"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["UpdateTime"].isNull()) + updateTime_ = value["UpdateTime"].asString(); + if(!value["EvaluationCount"].isNull()) + evaluationCount_ = std::stoi(value["EvaluationCount"].asString()); + if(!value["UpdateTimestamp"].isNull()) + updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString()); if(!value["MonitorExtendInfo"].isNull()) monitorExtendInfo_ = value["MonitorExtendInfo"].asString(); + if(!value["MonitorConfigId"].isNull()) + monitorConfigId_ = value["MonitorConfigId"].asString(); + if(!value["CreateTimestamp"].isNull()) + createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); + if(!value["Interval"].isNull()) + interval_ = std::stoi(value["Interval"].asString()); } @@ -85,16 +85,16 @@ std::vector DescribeDnsGtmMonito return ispCityNodes_; } -std::string DescribeDnsGtmMonitorConfigResult::getProtocolType()const -{ - return protocolType_; -} - int DescribeDnsGtmMonitorConfigResult::getTimeout()const { return timeout_; } +std::string DescribeDnsGtmMonitorConfigResult::getProtocolType()const +{ + return protocolType_; +} + std::string DescribeDnsGtmMonitorConfigResult::getCreateTime()const { return createTime_; diff --git a/alidns/src/model/DescribeDnsProductInstanceRequest.cc b/alidns/src/model/DescribeDnsProductInstanceRequest.cc index ab35cd041..573bb6d83 100644 --- a/alidns/src/model/DescribeDnsProductInstanceRequest.cc +++ b/alidns/src/model/DescribeDnsProductInstanceRequest.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::Alidns::Model::DescribeDnsProductInstanceRequest; - -DescribeDnsProductInstanceRequest::DescribeDnsProductInstanceRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsProductInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsProductInstanceRequest::~DescribeDnsProductInstanceRequest() -{} - -std::string DescribeDnsProductInstanceRequest::getAccessKeyId()const -{ - return accessKeyId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsProductInstanceRequest; + +DescribeDnsProductInstanceRequest::DescribeDnsProductInstanceRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsProductInstance") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsProductInstanceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +DescribeDnsProductInstanceRequest::~DescribeDnsProductInstanceRequest() {} + +std::string DescribeDnsProductInstanceRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDnsProductInstanceRequest::getInstanceId()const -{ - return instanceId_; +void DescribeDnsProductInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDnsProductInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeDnsProductInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeDnsProductInstanceRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsProductInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeDnsProductInstanceRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsProductInstanceRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsProductInstanceRequest::getLang()const -{ - return lang_; +void DescribeDnsProductInstanceRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsProductInstanceRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDnsProductInstanceRequest::getLang() const { + return lang_; +} + +void DescribeDnsProductInstanceRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDnsProductInstanceResult.cc b/alidns/src/model/DescribeDnsProductInstanceResult.cc index 394c4a716..cfd71f084 100644 --- a/alidns/src/model/DescribeDnsProductInstanceResult.cc +++ b/alidns/src/model/DescribeDnsProductInstanceResult.cc @@ -42,72 +42,72 @@ void DescribeDnsProductInstanceResult::parse(const std::string &payload) auto allDnsServers = value["DnsServers"]["DnsServer"]; for (const auto &item : allDnsServers) dnsServers_.push_back(item.asString()); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - if(!value["VersionCode"].isNull()) - versionCode_ = value["VersionCode"].asString(); - if(!value["VersionName"].isNull()) - versionName_ = value["VersionName"].asString(); - if(!value["StartTime"].isNull()) - startTime_ = value["StartTime"].asString(); - if(!value["StartTimestamp"].isNull()) - startTimestamp_ = std::stol(value["StartTimestamp"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); - if(!value["EndTimestamp"].isNull()) - endTimestamp_ = std::stol(value["EndTimestamp"].asString()); - if(!value["Domain"].isNull()) - domain_ = value["Domain"].asString(); - if(!value["BindCount"].isNull()) - bindCount_ = std::stol(value["BindCount"].asString()); - if(!value["BindUsedCount"].isNull()) - bindUsedCount_ = std::stol(value["BindUsedCount"].asString()); - if(!value["TTLMinValue"].isNull()) - tTLMinValue_ = std::stol(value["TTLMinValue"].asString()); - if(!value["SubDomainLevel"].isNull()) - subDomainLevel_ = std::stol(value["SubDomainLevel"].asString()); - if(!value["DnsSLBCount"].isNull()) - dnsSLBCount_ = std::stol(value["DnsSLBCount"].asString()); - if(!value["URLForwardCount"].isNull()) - uRLForwardCount_ = std::stol(value["URLForwardCount"].asString()); - if(!value["DDosDefendFlow"].isNull()) - dDosDefendFlow_ = std::stol(value["DDosDefendFlow"].asString()); - if(!value["DDosDefendQuery"].isNull()) - dDosDefendQuery_ = std::stol(value["DDosDefendQuery"].asString()); - if(!value["OverseaDDosDefendFlow"].isNull()) - overseaDDosDefendFlow_ = std::stol(value["OverseaDDosDefendFlow"].asString()); - if(!value["SearchEngineLines"].isNull()) - searchEngineLines_ = value["SearchEngineLines"].asString(); - if(!value["ISPLines"].isNull()) - iSPLines_ = value["ISPLines"].asString(); - if(!value["ISPRegionLines"].isNull()) - iSPRegionLines_ = value["ISPRegionLines"].asString(); - if(!value["OverseaLine"].isNull()) - overseaLine_ = value["OverseaLine"].asString(); if(!value["MonitorNodeCount"].isNull()) monitorNodeCount_ = std::stol(value["MonitorNodeCount"].asString()); - if(!value["MonitorFrequency"].isNull()) - monitorFrequency_ = std::stol(value["MonitorFrequency"].asString()); - if(!value["MonitorTaskCount"].isNull()) - monitorTaskCount_ = std::stol(value["MonitorTaskCount"].asString()); - if(!value["RegionLines"].isNull()) - regionLines_ = value["RegionLines"].asString() == "true"; - if(!value["Gslb"].isNull()) - gslb_ = value["Gslb"].asString() == "true"; - if(!value["InClean"].isNull()) - inClean_ = value["InClean"].asString() == "true"; if(!value["InBlackHole"].isNull()) inBlackHole_ = value["InBlackHole"].asString() == "true"; if(!value["BindDomainCount"].isNull()) bindDomainCount_ = std::stol(value["BindDomainCount"].asString()); - if(!value["BindDomainUsedCount"].isNull()) - bindDomainUsedCount_ = std::stol(value["BindDomainUsedCount"].asString()); + if(!value["RegionLines"].isNull()) + regionLines_ = value["RegionLines"].asString() == "true"; + if(!value["BindCount"].isNull()) + bindCount_ = std::stol(value["BindCount"].asString()); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["StartTimestamp"].isNull()) + startTimestamp_ = std::stol(value["StartTimestamp"].asString()); + if(!value["ISPLines"].isNull()) + iSPLines_ = value["ISPLines"].asString(); + if(!value["EndTimestamp"].isNull()) + endTimestamp_ = std::stol(value["EndTimestamp"].asString()); + if(!value["DDosDefendQuery"].isNull()) + dDosDefendQuery_ = std::stol(value["DDosDefendQuery"].asString()); if(!value["DnsSecurity"].isNull()) dnsSecurity_ = value["DnsSecurity"].asString(); - if(!value["PaymentType"].isNull()) - paymentType_ = value["PaymentType"].asString(); if(!value["DomainType"].isNull()) domainType_ = value["DomainType"].asString(); + if(!value["URLForwardCount"].isNull()) + uRLForwardCount_ = std::stol(value["URLForwardCount"].asString()); + if(!value["TTLMinValue"].isNull()) + tTLMinValue_ = std::stol(value["TTLMinValue"].asString()); + if(!value["PaymentType"].isNull()) + paymentType_ = value["PaymentType"].asString(); + if(!value["VersionName"].isNull()) + versionName_ = value["VersionName"].asString(); + if(!value["OverseaLine"].isNull()) + overseaLine_ = value["OverseaLine"].asString(); + if(!value["ISPRegionLines"].isNull()) + iSPRegionLines_ = value["ISPRegionLines"].asString(); + if(!value["Gslb"].isNull()) + gslb_ = value["Gslb"].asString() == "true"; + if(!value["BindUsedCount"].isNull()) + bindUsedCount_ = std::stol(value["BindUsedCount"].asString()); + if(!value["DnsSLBCount"].isNull()) + dnsSLBCount_ = std::stol(value["DnsSLBCount"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["MonitorTaskCount"].isNull()) + monitorTaskCount_ = std::stol(value["MonitorTaskCount"].asString()); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["DDosDefendFlow"].isNull()) + dDosDefendFlow_ = std::stol(value["DDosDefendFlow"].asString()); + if(!value["MonitorFrequency"].isNull()) + monitorFrequency_ = std::stol(value["MonitorFrequency"].asString()); + if(!value["SearchEngineLines"].isNull()) + searchEngineLines_ = value["SearchEngineLines"].asString(); + if(!value["BindDomainUsedCount"].isNull()) + bindDomainUsedCount_ = std::stol(value["BindDomainUsedCount"].asString()); + if(!value["VersionCode"].isNull()) + versionCode_ = value["VersionCode"].asString(); + if(!value["OverseaDDosDefendFlow"].isNull()) + overseaDDosDefendFlow_ = std::stol(value["OverseaDDosDefendFlow"].asString()); + if(!value["InClean"].isNull()) + inClean_ = value["InClean"].asString() == "true"; + if(!value["SubDomainLevel"].isNull()) + subDomainLevel_ = std::stol(value["SubDomainLevel"].asString()); + if(!value["Domain"].isNull()) + domain_ = value["Domain"].asString(); } @@ -131,16 +131,16 @@ bool DescribeDnsProductInstanceResult::getRegionLines()const return regionLines_; } -std::string DescribeDnsProductInstanceResult::getEndTime()const -{ - return endTime_; -} - long DescribeDnsProductInstanceResult::getBindCount()const { return bindCount_; } +std::string DescribeDnsProductInstanceResult::getEndTime()const +{ + return endTime_; +} + long DescribeDnsProductInstanceResult::getStartTimestamp()const { return startTimestamp_; @@ -266,16 +266,16 @@ long DescribeDnsProductInstanceResult::getOverseaDDosDefendFlow()const return overseaDDosDefendFlow_; } -long DescribeDnsProductInstanceResult::getSubDomainLevel()const -{ - return subDomainLevel_; -} - bool DescribeDnsProductInstanceResult::getInClean()const { return inClean_; } +long DescribeDnsProductInstanceResult::getSubDomainLevel()const +{ + return subDomainLevel_; +} + std::string DescribeDnsProductInstanceResult::getDomain()const { return domain_; diff --git a/alidns/src/model/DescribeDnsProductInstancesRequest.cc b/alidns/src/model/DescribeDnsProductInstancesRequest.cc index 3684cf53a..614406ff2 100644 --- a/alidns/src/model/DescribeDnsProductInstancesRequest.cc +++ b/alidns/src/model/DescribeDnsProductInstancesRequest.cc @@ -1,106 +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::Alidns::Model::DescribeDnsProductInstancesRequest; - -DescribeDnsProductInstancesRequest::DescribeDnsProductInstancesRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsProductInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnsProductInstancesRequest::~DescribeDnsProductInstancesRequest() -{} - -long DescribeDnsProductInstancesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDnsProductInstancesRequest; + +DescribeDnsProductInstancesRequest::DescribeDnsProductInstancesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsProductInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnsProductInstancesRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeDnsProductInstancesRequest::~DescribeDnsProductInstancesRequest() {} + +std::string DescribeDnsProductInstancesRequest::getOrderBy() const { + return orderBy_; } -std::string DescribeDnsProductInstancesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeDnsProductInstancesRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); } -void DescribeDnsProductInstancesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +long DescribeDnsProductInstancesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDnsProductInstancesRequest::getDomainType()const -{ - return domainType_; +void DescribeDnsProductInstancesRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDnsProductInstancesRequest::setDomainType(const std::string& domainType) -{ - domainType_ = domainType; - setParameter("DomainType", domainType); +std::string DescribeDnsProductInstancesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDnsProductInstancesRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDnsProductInstancesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDnsProductInstancesRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDnsProductInstancesRequest::getDomainType() const { + return domainType_; } -long DescribeDnsProductInstancesRequest::getPageSize()const -{ - return pageSize_; +void DescribeDnsProductInstancesRequest::setDomainType(const std::string &domainType) { + domainType_ = domainType; + setParameter(std::string("DomainType"), domainType); } -void DescribeDnsProductInstancesRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string DescribeDnsProductInstancesRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDnsProductInstancesRequest::getLang()const -{ - return lang_; +void DescribeDnsProductInstancesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDnsProductInstancesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +long DescribeDnsProductInstancesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDnsProductInstancesRequest::getVersionCode()const -{ - return versionCode_; +void DescribeDnsProductInstancesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDnsProductInstancesRequest::setVersionCode(const std::string& versionCode) -{ - versionCode_ = versionCode; - setParameter("VersionCode", versionCode); +std::string DescribeDnsProductInstancesRequest::getLang() const { + return lang_; +} + +void DescribeDnsProductInstancesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DescribeDnsProductInstancesRequest::getVersionCode() const { + return versionCode_; +} + +void DescribeDnsProductInstancesRequest::setVersionCode(const std::string &versionCode) { + versionCode_ = versionCode; + setParameter(std::string("VersionCode"), versionCode); +} + +std::string DescribeDnsProductInstancesRequest::getDirection() const { + return direction_; +} + +void DescribeDnsProductInstancesRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } diff --git a/alidns/src/model/DescribeDnsProductInstancesResult.cc b/alidns/src/model/DescribeDnsProductInstancesResult.cc index 5eceab5c9..5d7c35d17 100644 --- a/alidns/src/model/DescribeDnsProductInstancesResult.cc +++ b/alidns/src/model/DescribeDnsProductInstancesResult.cc @@ -43,80 +43,80 @@ void DescribeDnsProductInstancesResult::parse(const std::string &payload) for (auto valueDnsProductsDnsProduct : allDnsProductsNode) { DnsProduct dnsProductsObject; - if(!valueDnsProductsDnsProduct["InstanceId"].isNull()) - dnsProductsObject.instanceId = valueDnsProductsDnsProduct["InstanceId"].asString(); - if(!valueDnsProductsDnsProduct["VersionCode"].isNull()) - dnsProductsObject.versionCode = valueDnsProductsDnsProduct["VersionCode"].asString(); - if(!valueDnsProductsDnsProduct["VersionName"].isNull()) - dnsProductsObject.versionName = valueDnsProductsDnsProduct["VersionName"].asString(); - if(!valueDnsProductsDnsProduct["StartTime"].isNull()) - dnsProductsObject.startTime = valueDnsProductsDnsProduct["StartTime"].asString(); - if(!valueDnsProductsDnsProduct["EndTime"].isNull()) - dnsProductsObject.endTime = valueDnsProductsDnsProduct["EndTime"].asString(); - if(!valueDnsProductsDnsProduct["StartTimestamp"].isNull()) - dnsProductsObject.startTimestamp = std::stol(valueDnsProductsDnsProduct["StartTimestamp"].asString()); - if(!valueDnsProductsDnsProduct["EndTimestamp"].isNull()) - dnsProductsObject.endTimestamp = std::stol(valueDnsProductsDnsProduct["EndTimestamp"].asString()); - if(!valueDnsProductsDnsProduct["Domain"].isNull()) - dnsProductsObject.domain = valueDnsProductsDnsProduct["Domain"].asString(); - if(!valueDnsProductsDnsProduct["BindCount"].isNull()) - dnsProductsObject.bindCount = std::stol(valueDnsProductsDnsProduct["BindCount"].asString()); - if(!valueDnsProductsDnsProduct["BindUsedCount"].isNull()) - dnsProductsObject.bindUsedCount = std::stol(valueDnsProductsDnsProduct["BindUsedCount"].asString()); - if(!valueDnsProductsDnsProduct["TTLMinValue"].isNull()) - dnsProductsObject.tTLMinValue = std::stol(valueDnsProductsDnsProduct["TTLMinValue"].asString()); - if(!valueDnsProductsDnsProduct["SubDomainLevel"].isNull()) - dnsProductsObject.subDomainLevel = std::stol(valueDnsProductsDnsProduct["SubDomainLevel"].asString()); - if(!valueDnsProductsDnsProduct["DnsSLBCount"].isNull()) - dnsProductsObject.dnsSLBCount = std::stol(valueDnsProductsDnsProduct["DnsSLBCount"].asString()); - if(!valueDnsProductsDnsProduct["URLForwardCount"].isNull()) - dnsProductsObject.uRLForwardCount = std::stol(valueDnsProductsDnsProduct["URLForwardCount"].asString()); - if(!valueDnsProductsDnsProduct["DDosDefendFlow"].isNull()) - dnsProductsObject.dDosDefendFlow = std::stol(valueDnsProductsDnsProduct["DDosDefendFlow"].asString()); - if(!valueDnsProductsDnsProduct["DDosDefendQuery"].isNull()) - dnsProductsObject.dDosDefendQuery = std::stol(valueDnsProductsDnsProduct["DDosDefendQuery"].asString()); - if(!valueDnsProductsDnsProduct["OverseaDDosDefendFlow"].isNull()) - dnsProductsObject.overseaDDosDefendFlow = std::stol(valueDnsProductsDnsProduct["OverseaDDosDefendFlow"].asString()); - if(!valueDnsProductsDnsProduct["SearchEngineLines"].isNull()) - dnsProductsObject.searchEngineLines = valueDnsProductsDnsProduct["SearchEngineLines"].asString(); - if(!valueDnsProductsDnsProduct["ISPLines"].isNull()) - dnsProductsObject.iSPLines = valueDnsProductsDnsProduct["ISPLines"].asString(); - if(!valueDnsProductsDnsProduct["ISPRegionLines"].isNull()) - dnsProductsObject.iSPRegionLines = valueDnsProductsDnsProduct["ISPRegionLines"].asString(); if(!valueDnsProductsDnsProduct["OverseaLine"].isNull()) dnsProductsObject.overseaLine = valueDnsProductsDnsProduct["OverseaLine"].asString(); + if(!valueDnsProductsDnsProduct["PaymentType"].isNull()) + dnsProductsObject.paymentType = valueDnsProductsDnsProduct["PaymentType"].asString(); if(!valueDnsProductsDnsProduct["MonitorNodeCount"].isNull()) dnsProductsObject.monitorNodeCount = std::stol(valueDnsProductsDnsProduct["MonitorNodeCount"].asString()); - if(!valueDnsProductsDnsProduct["MonitorFrequency"].isNull()) - dnsProductsObject.monitorFrequency = std::stol(valueDnsProductsDnsProduct["MonitorFrequency"].asString()); + if(!valueDnsProductsDnsProduct["InBlackHole"].isNull()) + dnsProductsObject.inBlackHole = valueDnsProductsDnsProduct["InBlackHole"].asString() == "true"; + if(!valueDnsProductsDnsProduct["BindDomainUsedCount"].isNull()) + dnsProductsObject.bindDomainUsedCount = std::stol(valueDnsProductsDnsProduct["BindDomainUsedCount"].asString()); + if(!valueDnsProductsDnsProduct["ISPRegionLines"].isNull()) + dnsProductsObject.iSPRegionLines = valueDnsProductsDnsProduct["ISPRegionLines"].asString(); + if(!valueDnsProductsDnsProduct["TTLMinValue"].isNull()) + dnsProductsObject.tTLMinValue = std::stol(valueDnsProductsDnsProduct["TTLMinValue"].asString()); + if(!valueDnsProductsDnsProduct["ISPLines"].isNull()) + dnsProductsObject.iSPLines = valueDnsProductsDnsProduct["ISPLines"].asString(); + if(!valueDnsProductsDnsProduct["SearchEngineLines"].isNull()) + dnsProductsObject.searchEngineLines = valueDnsProductsDnsProduct["SearchEngineLines"].asString(); + if(!valueDnsProductsDnsProduct["EndTimestamp"].isNull()) + dnsProductsObject.endTimestamp = std::stol(valueDnsProductsDnsProduct["EndTimestamp"].asString()); + if(!valueDnsProductsDnsProduct["VersionName"].isNull()) + dnsProductsObject.versionName = valueDnsProductsDnsProduct["VersionName"].asString(); + if(!valueDnsProductsDnsProduct["VersionCode"].isNull()) + dnsProductsObject.versionCode = valueDnsProductsDnsProduct["VersionCode"].asString(); if(!valueDnsProductsDnsProduct["MonitorTaskCount"].isNull()) dnsProductsObject.monitorTaskCount = std::stol(valueDnsProductsDnsProduct["MonitorTaskCount"].asString()); + if(!valueDnsProductsDnsProduct["BindUsedCount"].isNull()) + dnsProductsObject.bindUsedCount = std::stol(valueDnsProductsDnsProduct["BindUsedCount"].asString()); + if(!valueDnsProductsDnsProduct["Domain"].isNull()) + dnsProductsObject.domain = valueDnsProductsDnsProduct["Domain"].asString(); + if(!valueDnsProductsDnsProduct["MonitorFrequency"].isNull()) + dnsProductsObject.monitorFrequency = std::stol(valueDnsProductsDnsProduct["MonitorFrequency"].asString()); + if(!valueDnsProductsDnsProduct["InClean"].isNull()) + dnsProductsObject.inClean = valueDnsProductsDnsProduct["InClean"].asString() == "true"; + if(!valueDnsProductsDnsProduct["URLForwardCount"].isNull()) + dnsProductsObject.uRLForwardCount = std::stol(valueDnsProductsDnsProduct["URLForwardCount"].asString()); + if(!valueDnsProductsDnsProduct["StartTimestamp"].isNull()) + dnsProductsObject.startTimestamp = std::stol(valueDnsProductsDnsProduct["StartTimestamp"].asString()); + if(!valueDnsProductsDnsProduct["DDosDefendQuery"].isNull()) + dnsProductsObject.dDosDefendQuery = std::stol(valueDnsProductsDnsProduct["DDosDefendQuery"].asString()); + if(!valueDnsProductsDnsProduct["InstanceId"].isNull()) + dnsProductsObject.instanceId = valueDnsProductsDnsProduct["InstanceId"].asString(); + if(!valueDnsProductsDnsProduct["DDosDefendFlow"].isNull()) + dnsProductsObject.dDosDefendFlow = std::stol(valueDnsProductsDnsProduct["DDosDefendFlow"].asString()); + if(!valueDnsProductsDnsProduct["BindCount"].isNull()) + dnsProductsObject.bindCount = std::stol(valueDnsProductsDnsProduct["BindCount"].asString()); + if(!valueDnsProductsDnsProduct["SubDomainLevel"].isNull()) + dnsProductsObject.subDomainLevel = std::stol(valueDnsProductsDnsProduct["SubDomainLevel"].asString()); + if(!valueDnsProductsDnsProduct["BindDomainCount"].isNull()) + dnsProductsObject.bindDomainCount = std::stol(valueDnsProductsDnsProduct["BindDomainCount"].asString()); + if(!valueDnsProductsDnsProduct["EndTime"].isNull()) + dnsProductsObject.endTime = valueDnsProductsDnsProduct["EndTime"].asString(); + if(!valueDnsProductsDnsProduct["StartTime"].isNull()) + dnsProductsObject.startTime = valueDnsProductsDnsProduct["StartTime"].asString(); + if(!valueDnsProductsDnsProduct["OverseaDDosDefendFlow"].isNull()) + dnsProductsObject.overseaDDosDefendFlow = std::stol(valueDnsProductsDnsProduct["OverseaDDosDefendFlow"].asString()); if(!valueDnsProductsDnsProduct["RegionLines"].isNull()) dnsProductsObject.regionLines = valueDnsProductsDnsProduct["RegionLines"].asString() == "true"; if(!valueDnsProductsDnsProduct["Gslb"].isNull()) dnsProductsObject.gslb = valueDnsProductsDnsProduct["Gslb"].asString() == "true"; - if(!valueDnsProductsDnsProduct["InClean"].isNull()) - dnsProductsObject.inClean = valueDnsProductsDnsProduct["InClean"].asString() == "true"; - if(!valueDnsProductsDnsProduct["InBlackHole"].isNull()) - dnsProductsObject.inBlackHole = valueDnsProductsDnsProduct["InBlackHole"].asString() == "true"; - if(!valueDnsProductsDnsProduct["BindDomainCount"].isNull()) - dnsProductsObject.bindDomainCount = std::stol(valueDnsProductsDnsProduct["BindDomainCount"].asString()); - if(!valueDnsProductsDnsProduct["BindDomainUsedCount"].isNull()) - dnsProductsObject.bindDomainUsedCount = std::stol(valueDnsProductsDnsProduct["BindDomainUsedCount"].asString()); if(!valueDnsProductsDnsProduct["DnsSecurity"].isNull()) dnsProductsObject.dnsSecurity = valueDnsProductsDnsProduct["DnsSecurity"].asString(); - if(!valueDnsProductsDnsProduct["PaymentType"].isNull()) - dnsProductsObject.paymentType = valueDnsProductsDnsProduct["PaymentType"].asString(); + if(!valueDnsProductsDnsProduct["DnsSLBCount"].isNull()) + dnsProductsObject.dnsSLBCount = std::stol(valueDnsProductsDnsProduct["DnsSLBCount"].asString()); dnsProducts_.push_back(dnsProductsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); if(!value["DomainType"].isNull()) domainType_ = value["DomainType"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/DescribeDohAccountStatisticsRequest.cc b/alidns/src/model/DescribeDohAccountStatisticsRequest.cc index c434aa03f..605345464 100644 --- a/alidns/src/model/DescribeDohAccountStatisticsRequest.cc +++ b/alidns/src/model/DescribeDohAccountStatisticsRequest.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::Alidns::Model::DescribeDohAccountStatisticsRequest; - -DescribeDohAccountStatisticsRequest::DescribeDohAccountStatisticsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDohAccountStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDohAccountStatisticsRequest::~DescribeDohAccountStatisticsRequest() -{} - -std::string DescribeDohAccountStatisticsRequest::getStartDate()const -{ - return startDate_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDohAccountStatisticsRequest; + +DescribeDohAccountStatisticsRequest::DescribeDohAccountStatisticsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDohAccountStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeDohAccountStatisticsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +DescribeDohAccountStatisticsRequest::~DescribeDohAccountStatisticsRequest() {} + +std::string DescribeDohAccountStatisticsRequest::getStartDate() const { + return startDate_; } -std::string DescribeDohAccountStatisticsRequest::getEndDate()const -{ - return endDate_; +void DescribeDohAccountStatisticsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeDohAccountStatisticsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeDohAccountStatisticsRequest::getEndDate() const { + return endDate_; } -std::string DescribeDohAccountStatisticsRequest::getLang()const -{ - return lang_; +void DescribeDohAccountStatisticsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribeDohAccountStatisticsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDohAccountStatisticsRequest::getLang() const { + return lang_; +} + +void DescribeDohAccountStatisticsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDohAccountStatisticsResult.cc b/alidns/src/model/DescribeDohAccountStatisticsResult.cc index 245562ad8..fec7a1849 100644 --- a/alidns/src/model/DescribeDohAccountStatisticsResult.cc +++ b/alidns/src/model/DescribeDohAccountStatisticsResult.cc @@ -43,18 +43,18 @@ void DescribeDohAccountStatisticsResult::parse(const std::string &payload) for (auto valueStatisticsStatistic : allStatisticsNode) { Statistic statisticsObject; - if(!valueStatisticsStatistic["Timestamp"].isNull()) - statisticsObject.timestamp = std::stol(valueStatisticsStatistic["Timestamp"].asString()); - if(!valueStatisticsStatistic["V4HttpCount"].isNull()) - statisticsObject.v4HttpCount = std::stol(valueStatisticsStatistic["V4HttpCount"].asString()); if(!valueStatisticsStatistic["V6HttpCount"].isNull()) statisticsObject.v6HttpCount = std::stol(valueStatisticsStatistic["V6HttpCount"].asString()); if(!valueStatisticsStatistic["V4HttpsCount"].isNull()) statisticsObject.v4HttpsCount = std::stol(valueStatisticsStatistic["V4HttpsCount"].asString()); - if(!valueStatisticsStatistic["V6HttpsCount"].isNull()) - statisticsObject.v6HttpsCount = std::stol(valueStatisticsStatistic["V6HttpsCount"].asString()); + if(!valueStatisticsStatistic["Timestamp"].isNull()) + statisticsObject.timestamp = std::stol(valueStatisticsStatistic["Timestamp"].asString()); if(!valueStatisticsStatistic["TotalCount"].isNull()) statisticsObject.totalCount = std::stol(valueStatisticsStatistic["TotalCount"].asString()); + if(!valueStatisticsStatistic["V4HttpCount"].isNull()) + statisticsObject.v4HttpCount = std::stol(valueStatisticsStatistic["V4HttpCount"].asString()); + if(!valueStatisticsStatistic["V6HttpsCount"].isNull()) + statisticsObject.v6HttpsCount = std::stol(valueStatisticsStatistic["V6HttpsCount"].asString()); statistics_.push_back(statisticsObject); } diff --git a/alidns/src/model/DescribeDohDomainStatisticsRequest.cc b/alidns/src/model/DescribeDohDomainStatisticsRequest.cc index 054d212a0..c8a3417a9 100644 --- a/alidns/src/model/DescribeDohDomainStatisticsRequest.cc +++ b/alidns/src/model/DescribeDohDomainStatisticsRequest.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::Alidns::Model::DescribeDohDomainStatisticsRequest; - -DescribeDohDomainStatisticsRequest::DescribeDohDomainStatisticsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDohDomainStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDohDomainStatisticsRequest::~DescribeDohDomainStatisticsRequest() -{} - -std::string DescribeDohDomainStatisticsRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDohDomainStatisticsRequest; + +DescribeDohDomainStatisticsRequest::DescribeDohDomainStatisticsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDohDomainStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeDohDomainStatisticsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribeDohDomainStatisticsRequest::~DescribeDohDomainStatisticsRequest() {} + +std::string DescribeDohDomainStatisticsRequest::getDomainName() const { + return domainName_; } -std::string DescribeDohDomainStatisticsRequest::getStartDate()const -{ - return startDate_; +void DescribeDohDomainStatisticsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeDohDomainStatisticsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribeDohDomainStatisticsRequest::getStartDate() const { + return startDate_; } -std::string DescribeDohDomainStatisticsRequest::getEndDate()const -{ - return endDate_; +void DescribeDohDomainStatisticsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeDohDomainStatisticsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeDohDomainStatisticsRequest::getEndDate() const { + return endDate_; } -std::string DescribeDohDomainStatisticsRequest::getLang()const -{ - return lang_; +void DescribeDohDomainStatisticsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribeDohDomainStatisticsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDohDomainStatisticsRequest::getLang() const { + return lang_; +} + +void DescribeDohDomainStatisticsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDohDomainStatisticsResult.cc b/alidns/src/model/DescribeDohDomainStatisticsResult.cc index 414539aeb..e3a1343b3 100644 --- a/alidns/src/model/DescribeDohDomainStatisticsResult.cc +++ b/alidns/src/model/DescribeDohDomainStatisticsResult.cc @@ -43,18 +43,18 @@ void DescribeDohDomainStatisticsResult::parse(const std::string &payload) for (auto valueStatisticsStatistic : allStatisticsNode) { Statistic statisticsObject; - if(!valueStatisticsStatistic["Timestamp"].isNull()) - statisticsObject.timestamp = std::stol(valueStatisticsStatistic["Timestamp"].asString()); - if(!valueStatisticsStatistic["V4HttpCount"].isNull()) - statisticsObject.v4HttpCount = std::stol(valueStatisticsStatistic["V4HttpCount"].asString()); if(!valueStatisticsStatistic["V6HttpCount"].isNull()) statisticsObject.v6HttpCount = std::stol(valueStatisticsStatistic["V6HttpCount"].asString()); if(!valueStatisticsStatistic["V4HttpsCount"].isNull()) statisticsObject.v4HttpsCount = std::stol(valueStatisticsStatistic["V4HttpsCount"].asString()); - if(!valueStatisticsStatistic["V6HttpsCount"].isNull()) - statisticsObject.v6HttpsCount = std::stol(valueStatisticsStatistic["V6HttpsCount"].asString()); + if(!valueStatisticsStatistic["Timestamp"].isNull()) + statisticsObject.timestamp = std::stol(valueStatisticsStatistic["Timestamp"].asString()); if(!valueStatisticsStatistic["TotalCount"].isNull()) statisticsObject.totalCount = std::stol(valueStatisticsStatistic["TotalCount"].asString()); + if(!valueStatisticsStatistic["V4HttpCount"].isNull()) + statisticsObject.v4HttpCount = std::stol(valueStatisticsStatistic["V4HttpCount"].asString()); + if(!valueStatisticsStatistic["V6HttpsCount"].isNull()) + statisticsObject.v6HttpsCount = std::stol(valueStatisticsStatistic["V6HttpsCount"].asString()); statistics_.push_back(statisticsObject); } diff --git a/alidns/src/model/DescribeDohDomainStatisticsSummaryRequest.cc b/alidns/src/model/DescribeDohDomainStatisticsSummaryRequest.cc index 5771524bf..51c31d9bf 100644 --- a/alidns/src/model/DescribeDohDomainStatisticsSummaryRequest.cc +++ b/alidns/src/model/DescribeDohDomainStatisticsSummaryRequest.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::Alidns::Model::DescribeDohDomainStatisticsSummaryRequest; - -DescribeDohDomainStatisticsSummaryRequest::DescribeDohDomainStatisticsSummaryRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDohDomainStatisticsSummary") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDohDomainStatisticsSummaryRequest::~DescribeDohDomainStatisticsSummaryRequest() -{} - -std::string DescribeDohDomainStatisticsSummaryRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDohDomainStatisticsSummaryRequest; + +DescribeDohDomainStatisticsSummaryRequest::DescribeDohDomainStatisticsSummaryRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDohDomainStatisticsSummary") { + setMethod(HttpRequest::Method::Post); } -void DescribeDohDomainStatisticsSummaryRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribeDohDomainStatisticsSummaryRequest::~DescribeDohDomainStatisticsSummaryRequest() {} + +std::string DescribeDohDomainStatisticsSummaryRequest::getDomainName() const { + return domainName_; } -std::string DescribeDohDomainStatisticsSummaryRequest::getOrderBy()const -{ - return orderBy_; +void DescribeDohDomainStatisticsSummaryRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeDohDomainStatisticsSummaryRequest::setOrderBy(const std::string& orderBy) -{ - orderBy_ = orderBy; - setParameter("OrderBy", orderBy); +std::string DescribeDohDomainStatisticsSummaryRequest::getOrderBy() const { + return orderBy_; } -std::string DescribeDohDomainStatisticsSummaryRequest::getStartDate()const -{ - return startDate_; +void DescribeDohDomainStatisticsSummaryRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); } -void DescribeDohDomainStatisticsSummaryRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribeDohDomainStatisticsSummaryRequest::getStartDate() const { + return startDate_; } -int DescribeDohDomainStatisticsSummaryRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDohDomainStatisticsSummaryRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeDohDomainStatisticsSummaryRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeDohDomainStatisticsSummaryRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDohDomainStatisticsSummaryRequest::getEndDate()const -{ - return endDate_; +void DescribeDohDomainStatisticsSummaryRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDohDomainStatisticsSummaryRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeDohDomainStatisticsSummaryRequest::getEndDate() const { + return endDate_; } -int DescribeDohDomainStatisticsSummaryRequest::getPageSize()const -{ - return pageSize_; +void DescribeDohDomainStatisticsSummaryRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribeDohDomainStatisticsSummaryRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDohDomainStatisticsSummaryRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDohDomainStatisticsSummaryRequest::getLang()const -{ - return lang_; +void DescribeDohDomainStatisticsSummaryRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDohDomainStatisticsSummaryRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDohDomainStatisticsSummaryRequest::getLang() const { + return lang_; } -std::string DescribeDohDomainStatisticsSummaryRequest::getDirection()const -{ - return direction_; +void DescribeDohDomainStatisticsSummaryRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDohDomainStatisticsSummaryRequest::setDirection(const std::string& direction) -{ - direction_ = direction; - setParameter("Direction", direction); +std::string DescribeDohDomainStatisticsSummaryRequest::getDirection() const { + return direction_; +} + +void DescribeDohDomainStatisticsSummaryRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } diff --git a/alidns/src/model/DescribeDohDomainStatisticsSummaryResult.cc b/alidns/src/model/DescribeDohDomainStatisticsSummaryResult.cc index b6bc34964..b2b0434dd 100644 --- a/alidns/src/model/DescribeDohDomainStatisticsSummaryResult.cc +++ b/alidns/src/model/DescribeDohDomainStatisticsSummaryResult.cc @@ -43,34 +43,34 @@ void DescribeDohDomainStatisticsSummaryResult::parse(const std::string &payload) for (auto valueStatisticsStatistic : allStatisticsNode) { Statistic statisticsObject; - if(!valueStatisticsStatistic["DomainName"].isNull()) - statisticsObject.domainName = valueStatisticsStatistic["DomainName"].asString(); - if(!valueStatisticsStatistic["V4HttpCount"].isNull()) - statisticsObject.v4HttpCount = std::stol(valueStatisticsStatistic["V4HttpCount"].asString()); if(!valueStatisticsStatistic["V6HttpCount"].isNull()) statisticsObject.v6HttpCount = std::stol(valueStatisticsStatistic["V6HttpCount"].asString()); if(!valueStatisticsStatistic["V4HttpsCount"].isNull()) statisticsObject.v4HttpsCount = std::stol(valueStatisticsStatistic["V4HttpsCount"].asString()); - if(!valueStatisticsStatistic["V6HttpsCount"].isNull()) - statisticsObject.v6HttpsCount = std::stol(valueStatisticsStatistic["V6HttpsCount"].asString()); - if(!valueStatisticsStatistic["TotalCount"].isNull()) - statisticsObject.totalCount = std::stol(valueStatisticsStatistic["TotalCount"].asString()); if(!valueStatisticsStatistic["IpCount"].isNull()) statisticsObject.ipCount = std::stol(valueStatisticsStatistic["IpCount"].asString()); + if(!valueStatisticsStatistic["TotalCount"].isNull()) + statisticsObject.totalCount = std::stol(valueStatisticsStatistic["TotalCount"].asString()); if(!valueStatisticsStatistic["HttpCount"].isNull()) statisticsObject.httpCount = std::stol(valueStatisticsStatistic["HttpCount"].asString()); + if(!valueStatisticsStatistic["DomainName"].isNull()) + statisticsObject.domainName = valueStatisticsStatistic["DomainName"].asString(); if(!valueStatisticsStatistic["HttpsCount"].isNull()) statisticsObject.httpsCount = std::stol(valueStatisticsStatistic["HttpsCount"].asString()); + if(!valueStatisticsStatistic["V4HttpCount"].isNull()) + statisticsObject.v4HttpCount = std::stol(valueStatisticsStatistic["V4HttpCount"].asString()); + if(!valueStatisticsStatistic["V6HttpsCount"].isNull()) + statisticsObject.v6HttpsCount = std::stol(valueStatisticsStatistic["V6HttpsCount"].asString()); statistics_.push_back(statisticsObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeDohSubDomainStatisticsRequest.cc b/alidns/src/model/DescribeDohSubDomainStatisticsRequest.cc index 42d26634d..9a23ff8d1 100644 --- a/alidns/src/model/DescribeDohSubDomainStatisticsRequest.cc +++ b/alidns/src/model/DescribeDohSubDomainStatisticsRequest.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::Alidns::Model::DescribeDohSubDomainStatisticsRequest; - -DescribeDohSubDomainStatisticsRequest::DescribeDohSubDomainStatisticsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDohSubDomainStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDohSubDomainStatisticsRequest::~DescribeDohSubDomainStatisticsRequest() -{} - -std::string DescribeDohSubDomainStatisticsRequest::getStartDate()const -{ - return startDate_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDohSubDomainStatisticsRequest; + +DescribeDohSubDomainStatisticsRequest::DescribeDohSubDomainStatisticsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDohSubDomainStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeDohSubDomainStatisticsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +DescribeDohSubDomainStatisticsRequest::~DescribeDohSubDomainStatisticsRequest() {} + +std::string DescribeDohSubDomainStatisticsRequest::getStartDate() const { + return startDate_; } -std::string DescribeDohSubDomainStatisticsRequest::getEndDate()const -{ - return endDate_; +void DescribeDohSubDomainStatisticsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeDohSubDomainStatisticsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeDohSubDomainStatisticsRequest::getEndDate() const { + return endDate_; } -std::string DescribeDohSubDomainStatisticsRequest::getSubDomain()const -{ - return subDomain_; +void DescribeDohSubDomainStatisticsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribeDohSubDomainStatisticsRequest::setSubDomain(const std::string& subDomain) -{ - subDomain_ = subDomain; - setParameter("SubDomain", subDomain); +std::string DescribeDohSubDomainStatisticsRequest::getSubDomain() const { + return subDomain_; } -std::string DescribeDohSubDomainStatisticsRequest::getLang()const -{ - return lang_; +void DescribeDohSubDomainStatisticsRequest::setSubDomain(const std::string &subDomain) { + subDomain_ = subDomain; + setParameter(std::string("SubDomain"), subDomain); } -void DescribeDohSubDomainStatisticsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDohSubDomainStatisticsRequest::getLang() const { + return lang_; +} + +void DescribeDohSubDomainStatisticsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDohSubDomainStatisticsResult.cc b/alidns/src/model/DescribeDohSubDomainStatisticsResult.cc index f4de1f0db..34f9d9895 100644 --- a/alidns/src/model/DescribeDohSubDomainStatisticsResult.cc +++ b/alidns/src/model/DescribeDohSubDomainStatisticsResult.cc @@ -43,18 +43,18 @@ void DescribeDohSubDomainStatisticsResult::parse(const std::string &payload) for (auto valueStatisticsStatistic : allStatisticsNode) { Statistic statisticsObject; - if(!valueStatisticsStatistic["Timestamp"].isNull()) - statisticsObject.timestamp = std::stol(valueStatisticsStatistic["Timestamp"].asString()); - if(!valueStatisticsStatistic["V4HttpCount"].isNull()) - statisticsObject.v4HttpCount = std::stol(valueStatisticsStatistic["V4HttpCount"].asString()); - if(!valueStatisticsStatistic["V4HttpsCount"].isNull()) - statisticsObject.v4HttpsCount = std::stol(valueStatisticsStatistic["V4HttpsCount"].asString()); if(!valueStatisticsStatistic["V6HttpCount"].isNull()) statisticsObject.v6HttpCount = std::stol(valueStatisticsStatistic["V6HttpCount"].asString()); - if(!valueStatisticsStatistic["V6HttpsCount"].isNull()) - statisticsObject.v6HttpsCount = std::stol(valueStatisticsStatistic["V6HttpsCount"].asString()); + if(!valueStatisticsStatistic["V4HttpsCount"].isNull()) + statisticsObject.v4HttpsCount = std::stol(valueStatisticsStatistic["V4HttpsCount"].asString()); + if(!valueStatisticsStatistic["Timestamp"].isNull()) + statisticsObject.timestamp = std::stol(valueStatisticsStatistic["Timestamp"].asString()); if(!valueStatisticsStatistic["TotalCount"].isNull()) statisticsObject.totalCount = std::stol(valueStatisticsStatistic["TotalCount"].asString()); + if(!valueStatisticsStatistic["V4HttpCount"].isNull()) + statisticsObject.v4HttpCount = std::stol(valueStatisticsStatistic["V4HttpCount"].asString()); + if(!valueStatisticsStatistic["V6HttpsCount"].isNull()) + statisticsObject.v6HttpsCount = std::stol(valueStatisticsStatistic["V6HttpsCount"].asString()); statistics_.push_back(statisticsObject); } diff --git a/alidns/src/model/DescribeDohSubDomainStatisticsSummaryRequest.cc b/alidns/src/model/DescribeDohSubDomainStatisticsSummaryRequest.cc index 26a67d03c..63eec7473 100644 --- a/alidns/src/model/DescribeDohSubDomainStatisticsSummaryRequest.cc +++ b/alidns/src/model/DescribeDohSubDomainStatisticsSummaryRequest.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::Alidns::Model::DescribeDohSubDomainStatisticsSummaryRequest; - -DescribeDohSubDomainStatisticsSummaryRequest::DescribeDohSubDomainStatisticsSummaryRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDohSubDomainStatisticsSummary") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDohSubDomainStatisticsSummaryRequest::~DescribeDohSubDomainStatisticsSummaryRequest() -{} - -std::string DescribeDohSubDomainStatisticsSummaryRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDohSubDomainStatisticsSummaryRequest; + +DescribeDohSubDomainStatisticsSummaryRequest::DescribeDohSubDomainStatisticsSummaryRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDohSubDomainStatisticsSummary") { + setMethod(HttpRequest::Method::Post); } -void DescribeDohSubDomainStatisticsSummaryRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribeDohSubDomainStatisticsSummaryRequest::~DescribeDohSubDomainStatisticsSummaryRequest() {} + +std::string DescribeDohSubDomainStatisticsSummaryRequest::getDomainName() const { + return domainName_; } -std::string DescribeDohSubDomainStatisticsSummaryRequest::getOrderBy()const -{ - return orderBy_; +void DescribeDohSubDomainStatisticsSummaryRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeDohSubDomainStatisticsSummaryRequest::setOrderBy(const std::string& orderBy) -{ - orderBy_ = orderBy; - setParameter("OrderBy", orderBy); +std::string DescribeDohSubDomainStatisticsSummaryRequest::getOrderBy() const { + return orderBy_; } -std::string DescribeDohSubDomainStatisticsSummaryRequest::getStartDate()const -{ - return startDate_; +void DescribeDohSubDomainStatisticsSummaryRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); } -void DescribeDohSubDomainStatisticsSummaryRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribeDohSubDomainStatisticsSummaryRequest::getStartDate() const { + return startDate_; } -int DescribeDohSubDomainStatisticsSummaryRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDohSubDomainStatisticsSummaryRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeDohSubDomainStatisticsSummaryRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeDohSubDomainStatisticsSummaryRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDohSubDomainStatisticsSummaryRequest::getEndDate()const -{ - return endDate_; +void DescribeDohSubDomainStatisticsSummaryRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDohSubDomainStatisticsSummaryRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeDohSubDomainStatisticsSummaryRequest::getEndDate() const { + return endDate_; } -int DescribeDohSubDomainStatisticsSummaryRequest::getPageSize()const -{ - return pageSize_; +void DescribeDohSubDomainStatisticsSummaryRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribeDohSubDomainStatisticsSummaryRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDohSubDomainStatisticsSummaryRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDohSubDomainStatisticsSummaryRequest::getSubDomain()const -{ - return subDomain_; +void DescribeDohSubDomainStatisticsSummaryRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDohSubDomainStatisticsSummaryRequest::setSubDomain(const std::string& subDomain) -{ - subDomain_ = subDomain; - setParameter("SubDomain", subDomain); +std::string DescribeDohSubDomainStatisticsSummaryRequest::getSubDomain() const { + return subDomain_; } -std::string DescribeDohSubDomainStatisticsSummaryRequest::getLang()const -{ - return lang_; +void DescribeDohSubDomainStatisticsSummaryRequest::setSubDomain(const std::string &subDomain) { + subDomain_ = subDomain; + setParameter(std::string("SubDomain"), subDomain); } -void DescribeDohSubDomainStatisticsSummaryRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDohSubDomainStatisticsSummaryRequest::getLang() const { + return lang_; } -std::string DescribeDohSubDomainStatisticsSummaryRequest::getDirection()const -{ - return direction_; +void DescribeDohSubDomainStatisticsSummaryRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDohSubDomainStatisticsSummaryRequest::setDirection(const std::string& direction) -{ - direction_ = direction; - setParameter("Direction", direction); +std::string DescribeDohSubDomainStatisticsSummaryRequest::getDirection() const { + return direction_; +} + +void DescribeDohSubDomainStatisticsSummaryRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } diff --git a/alidns/src/model/DescribeDohSubDomainStatisticsSummaryResult.cc b/alidns/src/model/DescribeDohSubDomainStatisticsSummaryResult.cc index af66bd17f..52acc61bc 100644 --- a/alidns/src/model/DescribeDohSubDomainStatisticsSummaryResult.cc +++ b/alidns/src/model/DescribeDohSubDomainStatisticsSummaryResult.cc @@ -43,34 +43,34 @@ void DescribeDohSubDomainStatisticsSummaryResult::parse(const std::string &paylo for (auto valueStatisticsStatistic : allStatisticsNode) { Statistic statisticsObject; - if(!valueStatisticsStatistic["SubDomain"].isNull()) - statisticsObject.subDomain = valueStatisticsStatistic["SubDomain"].asString(); - if(!valueStatisticsStatistic["V4HttpCount"].isNull()) - statisticsObject.v4HttpCount = std::stol(valueStatisticsStatistic["V4HttpCount"].asString()); if(!valueStatisticsStatistic["V6HttpCount"].isNull()) statisticsObject.v6HttpCount = std::stol(valueStatisticsStatistic["V6HttpCount"].asString()); if(!valueStatisticsStatistic["V4HttpsCount"].isNull()) statisticsObject.v4HttpsCount = std::stol(valueStatisticsStatistic["V4HttpsCount"].asString()); - if(!valueStatisticsStatistic["V6HttpsCount"].isNull()) - statisticsObject.v6HttpsCount = std::stol(valueStatisticsStatistic["V6HttpsCount"].asString()); - if(!valueStatisticsStatistic["TotalCount"].isNull()) - statisticsObject.totalCount = std::stol(valueStatisticsStatistic["TotalCount"].asString()); if(!valueStatisticsStatistic["IpCount"].isNull()) statisticsObject.ipCount = std::stol(valueStatisticsStatistic["IpCount"].asString()); + if(!valueStatisticsStatistic["SubDomain"].isNull()) + statisticsObject.subDomain = valueStatisticsStatistic["SubDomain"].asString(); + if(!valueStatisticsStatistic["TotalCount"].isNull()) + statisticsObject.totalCount = std::stol(valueStatisticsStatistic["TotalCount"].asString()); if(!valueStatisticsStatistic["HttpCount"].isNull()) statisticsObject.httpCount = std::stol(valueStatisticsStatistic["HttpCount"].asString()); if(!valueStatisticsStatistic["HttpsCount"].isNull()) statisticsObject.httpsCount = std::stol(valueStatisticsStatistic["HttpsCount"].asString()); + if(!valueStatisticsStatistic["V4HttpCount"].isNull()) + statisticsObject.v4HttpCount = std::stol(valueStatisticsStatistic["V4HttpCount"].asString()); + if(!valueStatisticsStatistic["V6HttpsCount"].isNull()) + statisticsObject.v6HttpsCount = std::stol(valueStatisticsStatistic["V6HttpsCount"].asString()); statistics_.push_back(statisticsObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeDohUserInfoRequest.cc b/alidns/src/model/DescribeDohUserInfoRequest.cc index 7c87369cd..a6199a371 100644 --- a/alidns/src/model/DescribeDohUserInfoRequest.cc +++ b/alidns/src/model/DescribeDohUserInfoRequest.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::Alidns::Model::DescribeDohUserInfoRequest; - -DescribeDohUserInfoRequest::DescribeDohUserInfoRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDohUserInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDohUserInfoRequest::~DescribeDohUserInfoRequest() -{} - -std::string DescribeDohUserInfoRequest::getStartDate()const -{ - return startDate_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDohUserInfoRequest; + +DescribeDohUserInfoRequest::DescribeDohUserInfoRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDohUserInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeDohUserInfoRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +DescribeDohUserInfoRequest::~DescribeDohUserInfoRequest() {} + +std::string DescribeDohUserInfoRequest::getStartDate() const { + return startDate_; } -std::string DescribeDohUserInfoRequest::getEndDate()const -{ - return endDate_; +void DescribeDohUserInfoRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeDohUserInfoRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeDohUserInfoRequest::getEndDate() const { + return endDate_; } -std::string DescribeDohUserInfoRequest::getLang()const -{ - return lang_; +void DescribeDohUserInfoRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribeDohUserInfoRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDohUserInfoRequest::getLang() const { + return lang_; +} + +void DescribeDohUserInfoRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDohUserInfoResult.cc b/alidns/src/model/DescribeDohUserInfoResult.cc index 79392e845..49864efd1 100644 --- a/alidns/src/model/DescribeDohUserInfoResult.cc +++ b/alidns/src/model/DescribeDohUserInfoResult.cc @@ -39,12 +39,12 @@ void DescribeDohUserInfoResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["SubDomainCount"].isNull()) + subDomainCount_ = std::stoi(value["SubDomainCount"].asString()); if(!value["PdnsId"].isNull()) pdnsId_ = std::stol(value["PdnsId"].asString()); if(!value["DomainCount"].isNull()) domainCount_ = std::stoi(value["DomainCount"].asString()); - if(!value["SubDomainCount"].isNull()) - subDomainCount_ = std::stoi(value["SubDomainCount"].asString()); } diff --git a/alidns/src/model/DescribeDomainDnssecInfoRequest.cc b/alidns/src/model/DescribeDomainDnssecInfoRequest.cc index 01eb49434..ac834e968 100644 --- a/alidns/src/model/DescribeDomainDnssecInfoRequest.cc +++ b/alidns/src/model/DescribeDomainDnssecInfoRequest.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::Alidns::Model::DescribeDomainDnssecInfoRequest; - -DescribeDomainDnssecInfoRequest::DescribeDomainDnssecInfoRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainDnssecInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDomainDnssecInfoRequest::~DescribeDomainDnssecInfoRequest() -{} - -std::string DescribeDomainDnssecInfoRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainDnssecInfoRequest; + +DescribeDomainDnssecInfoRequest::DescribeDomainDnssecInfoRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainDnssecInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeDomainDnssecInfoRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribeDomainDnssecInfoRequest::~DescribeDomainDnssecInfoRequest() {} + +std::string DescribeDomainDnssecInfoRequest::getDomainName() const { + return domainName_; } -std::string DescribeDomainDnssecInfoRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDomainDnssecInfoRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeDomainDnssecInfoRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDomainDnssecInfoRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDomainDnssecInfoRequest::getLang()const -{ - return lang_; +void DescribeDomainDnssecInfoRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDomainDnssecInfoRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDomainDnssecInfoRequest::getLang() const { + return lang_; +} + +void DescribeDomainDnssecInfoRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDomainDnssecInfoResult.cc b/alidns/src/model/DescribeDomainDnssecInfoResult.cc index 040f7c38b..4b9403025 100644 --- a/alidns/src/model/DescribeDomainDnssecInfoResult.cc +++ b/alidns/src/model/DescribeDomainDnssecInfoResult.cc @@ -39,24 +39,24 @@ void DescribeDomainDnssecInfoResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["DomainName"].isNull()) - domainName_ = value["DomainName"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); - if(!value["DsRecord"].isNull()) - dsRecord_ = value["DsRecord"].asString(); if(!value["Digest"].isNull()) digest_ = value["Digest"].asString(); - if(!value["DigestType"].isNull()) - digestType_ = value["DigestType"].asString(); - if(!value["Algorithm"].isNull()) - algorithm_ = value["Algorithm"].asString(); + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); if(!value["PublicKey"].isNull()) publicKey_ = value["PublicKey"].asString(); + if(!value["DigestType"].isNull()) + digestType_ = value["DigestType"].asString(); + if(!value["DsRecord"].isNull()) + dsRecord_ = value["DsRecord"].asString(); if(!value["KeyTag"].isNull()) keyTag_ = value["KeyTag"].asString(); if(!value["Flags"].isNull()) flags_ = value["Flags"].asString(); + if(!value["Algorithm"].isNull()) + algorithm_ = value["Algorithm"].asString(); } @@ -65,31 +65,31 @@ std::string DescribeDomainDnssecInfoResult::getStatus()const return status_; } -std::string DescribeDomainDnssecInfoResult::getDomainName()const -{ - return domainName_; -} - std::string DescribeDomainDnssecInfoResult::getDigest()const { return digest_; } +std::string DescribeDomainDnssecInfoResult::getDomainName()const +{ + return domainName_; +} + std::string DescribeDomainDnssecInfoResult::getPublicKey()const { return publicKey_; } -std::string DescribeDomainDnssecInfoResult::getDsRecord()const -{ - return dsRecord_; -} - std::string DescribeDomainDnssecInfoResult::getDigestType()const { return digestType_; } +std::string DescribeDomainDnssecInfoResult::getDsRecord()const +{ + return dsRecord_; +} + std::string DescribeDomainDnssecInfoResult::getKeyTag()const { return keyTag_; diff --git a/alidns/src/model/DescribeDomainGroupsRequest.cc b/alidns/src/model/DescribeDomainGroupsRequest.cc index d57e1cf8d..89cc49171 100644 --- a/alidns/src/model/DescribeDomainGroupsRequest.cc +++ b/alidns/src/model/DescribeDomainGroupsRequest.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::Alidns::Model::DescribeDomainGroupsRequest; - -DescribeDomainGroupsRequest::DescribeDomainGroupsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDomainGroupsRequest::~DescribeDomainGroupsRequest() -{} - -long DescribeDomainGroupsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainGroupsRequest; + +DescribeDomainGroupsRequest::DescribeDomainGroupsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainGroups") { + setMethod(HttpRequest::Method::Post); } -void DescribeDomainGroupsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeDomainGroupsRequest::~DescribeDomainGroupsRequest() {} + +long DescribeDomainGroupsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDomainGroupsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDomainGroupsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDomainGroupsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDomainGroupsRequest::getUserClientIp() const { + return userClientIp_; } -long DescribeDomainGroupsRequest::getPageSize()const -{ - return pageSize_; +void DescribeDomainGroupsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDomainGroupsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeDomainGroupsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDomainGroupsRequest::getLang()const -{ - return lang_; +void DescribeDomainGroupsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDomainGroupsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDomainGroupsRequest::getLang() const { + return lang_; } -std::string DescribeDomainGroupsRequest::getKeyWord()const -{ - return keyWord_; +void DescribeDomainGroupsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDomainGroupsRequest::setKeyWord(const std::string& keyWord) -{ - keyWord_ = keyWord; - setParameter("KeyWord", keyWord); +std::string DescribeDomainGroupsRequest::getKeyWord() const { + return keyWord_; +} + +void DescribeDomainGroupsRequest::setKeyWord(const std::string &keyWord) { + keyWord_ = keyWord; + setParameter(std::string("KeyWord"), keyWord); } diff --git a/alidns/src/model/DescribeDomainGroupsResult.cc b/alidns/src/model/DescribeDomainGroupsResult.cc index abd426808..41cad772d 100644 --- a/alidns/src/model/DescribeDomainGroupsResult.cc +++ b/alidns/src/model/DescribeDomainGroupsResult.cc @@ -53,10 +53,10 @@ void DescribeDomainGroupsResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/DescribeDomainInfoRequest.cc b/alidns/src/model/DescribeDomainInfoRequest.cc index 317b4133a..79e828919 100644 --- a/alidns/src/model/DescribeDomainInfoRequest.cc +++ b/alidns/src/model/DescribeDomainInfoRequest.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::Alidns::Model::DescribeDomainInfoRequest; - -DescribeDomainInfoRequest::DescribeDomainInfoRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDomainInfoRequest::~DescribeDomainInfoRequest() -{} - -std::string DescribeDomainInfoRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainInfoRequest; + +DescribeDomainInfoRequest::DescribeDomainInfoRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeDomainInfoRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribeDomainInfoRequest::~DescribeDomainInfoRequest() {} + +std::string DescribeDomainInfoRequest::getDomainName() const { + return domainName_; } -std::string DescribeDomainInfoRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeDomainInfoRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeDomainInfoRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeDomainInfoRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDomainInfoRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDomainInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDomainInfoRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDomainInfoRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDomainInfoRequest::getLang()const -{ - return lang_; +void DescribeDomainInfoRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDomainInfoRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDomainInfoRequest::getLang() const { + return lang_; } -bool DescribeDomainInfoRequest::getNeedDetailAttributes()const -{ - return needDetailAttributes_; +void DescribeDomainInfoRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDomainInfoRequest::setNeedDetailAttributes(bool needDetailAttributes) -{ - needDetailAttributes_ = needDetailAttributes; - setParameter("NeedDetailAttributes", needDetailAttributes ? "true" : "false"); +bool DescribeDomainInfoRequest::getNeedDetailAttributes() const { + return needDetailAttributes_; +} + +void DescribeDomainInfoRequest::setNeedDetailAttributes(bool needDetailAttributes) { + needDetailAttributes_ = needDetailAttributes; + setParameter(std::string("NeedDetailAttributes"), needDetailAttributes ? "true" : "false"); } diff --git a/alidns/src/model/DescribeDomainInfoResult.cc b/alidns/src/model/DescribeDomainInfoResult.cc index 8e1fa47a2..f083b3e9d 100644 --- a/alidns/src/model/DescribeDomainInfoResult.cc +++ b/alidns/src/model/DescribeDomainInfoResult.cc @@ -43,14 +43,14 @@ void DescribeDomainInfoResult::parse(const std::string &payload) for (auto valueRecordLinesRecordLine : allRecordLinesNode) { RecordLine recordLinesObject; - if(!valueRecordLinesRecordLine["LineCode"].isNull()) - recordLinesObject.lineCode = valueRecordLinesRecordLine["LineCode"].asString(); if(!valueRecordLinesRecordLine["FatherCode"].isNull()) recordLinesObject.fatherCode = valueRecordLinesRecordLine["FatherCode"].asString(); - if(!valueRecordLinesRecordLine["LineName"].isNull()) - recordLinesObject.lineName = valueRecordLinesRecordLine["LineName"].asString(); if(!valueRecordLinesRecordLine["LineDisplayName"].isNull()) recordLinesObject.lineDisplayName = valueRecordLinesRecordLine["LineDisplayName"].asString(); + if(!valueRecordLinesRecordLine["LineCode"].isNull()) + recordLinesObject.lineCode = valueRecordLinesRecordLine["LineCode"].asString(); + if(!valueRecordLinesRecordLine["LineName"].isNull()) + recordLinesObject.lineName = valueRecordLinesRecordLine["LineName"].asString(); recordLines_.push_back(recordLinesObject); } auto allDnsServers = value["DnsServers"]["DnsServer"]; @@ -59,57 +59,57 @@ void DescribeDomainInfoResult::parse(const std::string &payload) auto allAvailableTtls = value["AvailableTtls"]["AvailableTtl"]; for (const auto &item : allAvailableTtls) availableTtls_.push_back(item.asString()); - if(!value["DomainId"].isNull()) - domainId_ = value["DomainId"].asString(); - if(!value["DomainName"].isNull()) - domainName_ = value["DomainName"].asString(); - if(!value["PunyCode"].isNull()) - punyCode_ = value["PunyCode"].asString(); + if(!value["RecordLineTreeJson"].isNull()) + recordLineTreeJson_ = value["RecordLineTreeJson"].asString(); + if(!value["GroupName"].isNull()) + groupName_ = value["GroupName"].asString(); + if(!value["InBlackHole"].isNull()) + inBlackHole_ = value["InBlackHole"].asString() == "true"; + if(!value["RegionLines"].isNull()) + regionLines_ = value["RegionLines"].asString() == "true"; + if(!value["SlaveDns"].isNull()) + slaveDns_ = value["SlaveDns"].asString() == "true"; if(!value["AliDomain"].isNull()) aliDomain_ = value["AliDomain"].asString() == "true"; + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["PunyCode"].isNull()) + punyCode_ = value["PunyCode"].asString(); if(!value["Remark"].isNull()) remark_ = value["Remark"].asString(); if(!value["GroupId"].isNull()) groupId_ = value["GroupId"].asString(); - if(!value["GroupName"].isNull()) - groupName_ = value["GroupName"].asString(); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); if(!value["VersionCode"].isNull()) versionCode_ = value["VersionCode"].asString(); - if(!value["VersionName"].isNull()) - versionName_ = value["VersionName"].asString(); + if(!value["DomainId"].isNull()) + domainId_ = value["DomainId"].asString(); if(!value["MinTtl"].isNull()) minTtl_ = std::stol(value["MinTtl"].asString()); - if(!value["RecordLineTreeJson"].isNull()) - recordLineTreeJson_ = value["RecordLineTreeJson"].asString(); - if(!value["LineType"].isNull()) - lineType_ = value["LineType"].asString(); - if(!value["RegionLines"].isNull()) - regionLines_ = value["RegionLines"].asString() == "true"; - if(!value["InBlackHole"].isNull()) - inBlackHole_ = value["InBlackHole"].asString() == "true"; if(!value["InClean"].isNull()) inClean_ = value["InClean"].asString() == "true"; - if(!value["SlaveDns"].isNull()) - slaveDns_ = value["SlaveDns"].asString() == "true"; - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); + if(!value["VersionName"].isNull()) + versionName_ = value["VersionName"].asString(); + if(!value["LineType"].isNull()) + lineType_ = value["LineType"].asString(); } -std::string DescribeDomainInfoResult::getGroupName()const -{ - return groupName_; -} - std::string DescribeDomainInfoResult::getRecordLineTreeJson()const { return recordLineTreeJson_; } +std::string DescribeDomainInfoResult::getGroupName()const +{ + return groupName_; +} + bool DescribeDomainInfoResult::getInBlackHole()const { return inBlackHole_; @@ -120,31 +120,31 @@ bool DescribeDomainInfoResult::getRegionLines()const return regionLines_; } -bool DescribeDomainInfoResult::getAliDomain()const -{ - return aliDomain_; -} - bool DescribeDomainInfoResult::getSlaveDns()const { return slaveDns_; } +bool DescribeDomainInfoResult::getAliDomain()const +{ + return aliDomain_; +} + std::string DescribeDomainInfoResult::getResourceGroupId()const { return resourceGroupId_; } -std::string DescribeDomainInfoResult::getDomainName()const -{ - return domainName_; -} - std::string DescribeDomainInfoResult::getInstanceId()const { return instanceId_; } +std::string DescribeDomainInfoResult::getDomainName()const +{ + return domainName_; +} + std::string DescribeDomainInfoResult::getCreateTime()const { return createTime_; @@ -190,11 +190,6 @@ std::vector DescribeDomainInfoResult::getAvailableTtls()const return availableTtls_; } -std::string DescribeDomainInfoResult::getVersionName()const -{ - return versionName_; -} - long DescribeDomainInfoResult::getMinTtl()const { return minTtl_; @@ -205,6 +200,11 @@ bool DescribeDomainInfoResult::getInClean()const return inClean_; } +std::string DescribeDomainInfoResult::getVersionName()const +{ + return versionName_; +} + std::string DescribeDomainInfoResult::getLineType()const { return lineType_; diff --git a/alidns/src/model/DescribeDomainLogsRequest.cc b/alidns/src/model/DescribeDomainLogsRequest.cc index 31fe2bb21..150159381 100644 --- a/alidns/src/model/DescribeDomainLogsRequest.cc +++ b/alidns/src/model/DescribeDomainLogsRequest.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::Alidns::Model::DescribeDomainLogsRequest; - -DescribeDomainLogsRequest::DescribeDomainLogsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainLogs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDomainLogsRequest::~DescribeDomainLogsRequest() -{} - -std::string DescribeDomainLogsRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainLogsRequest; + +DescribeDomainLogsRequest::DescribeDomainLogsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainLogs") { + setMethod(HttpRequest::Method::Post); } -void DescribeDomainLogsRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +DescribeDomainLogsRequest::~DescribeDomainLogsRequest() {} + +std::string DescribeDomainLogsRequest::getGroupId() const { + return groupId_; } -std::string DescribeDomainLogsRequest::getStartDate()const -{ - return startDate_; +void DescribeDomainLogsRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeDomainLogsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribeDomainLogsRequest::getStartDate() const { + return startDate_; } -std::string DescribeDomainLogsRequest::getType()const -{ - return type_; +void DescribeDomainLogsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeDomainLogsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeDomainLogsRequest::getType() const { + return type_; } -long DescribeDomainLogsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDomainLogsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeDomainLogsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeDomainLogsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDomainLogsRequest::getEndDate()const -{ - return endDate_; +void DescribeDomainLogsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDomainLogsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeDomainLogsRequest::getEndDate() const { + return endDate_; } -std::string DescribeDomainLogsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDomainLogsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("endDate"), endDate); } -void DescribeDomainLogsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDomainLogsRequest::getUserClientIp() const { + return userClientIp_; } -long DescribeDomainLogsRequest::getPageSize()const -{ - return pageSize_; +void DescribeDomainLogsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDomainLogsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeDomainLogsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDomainLogsRequest::getLang()const -{ - return lang_; +void DescribeDomainLogsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDomainLogsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDomainLogsRequest::getLang() const { + return lang_; } -std::string DescribeDomainLogsRequest::getKeyWord()const -{ - return keyWord_; +void DescribeDomainLogsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDomainLogsRequest::setKeyWord(const std::string& keyWord) -{ - keyWord_ = keyWord; - setParameter("KeyWord", keyWord); +std::string DescribeDomainLogsRequest::getKeyWord() const { + return keyWord_; +} + +void DescribeDomainLogsRequest::setKeyWord(const std::string &keyWord) { + keyWord_ = keyWord; + setParameter(std::string("KeyWord"), keyWord); } diff --git a/alidns/src/model/DescribeDomainLogsResult.cc b/alidns/src/model/DescribeDomainLogsResult.cc index 8b22162a7..6cc08d092 100644 --- a/alidns/src/model/DescribeDomainLogsResult.cc +++ b/alidns/src/model/DescribeDomainLogsResult.cc @@ -43,28 +43,28 @@ void DescribeDomainLogsResult::parse(const std::string &payload) for (auto valueDomainLogsDomainLog : allDomainLogsNode) { DomainLog domainLogsObject; - if(!valueDomainLogsDomainLog["ActionTime"].isNull()) - domainLogsObject.actionTime = valueDomainLogsDomainLog["ActionTime"].asString(); - if(!valueDomainLogsDomainLog["ActionTimestamp"].isNull()) - domainLogsObject.actionTimestamp = std::stol(valueDomainLogsDomainLog["ActionTimestamp"].asString()); - if(!valueDomainLogsDomainLog["DomainName"].isNull()) - domainLogsObject.domainName = valueDomainLogsDomainLog["DomainName"].asString(); if(!valueDomainLogsDomainLog["Action"].isNull()) domainLogsObject.action = valueDomainLogsDomainLog["Action"].asString(); - if(!valueDomainLogsDomainLog["Message"].isNull()) - domainLogsObject.message = valueDomainLogsDomainLog["Message"].asString(); - if(!valueDomainLogsDomainLog["ClientIp"].isNull()) - domainLogsObject.clientIp = valueDomainLogsDomainLog["ClientIp"].asString(); + if(!valueDomainLogsDomainLog["ActionTimestamp"].isNull()) + domainLogsObject.actionTimestamp = std::stol(valueDomainLogsDomainLog["ActionTimestamp"].asString()); if(!valueDomainLogsDomainLog["ZoneId"].isNull()) domainLogsObject.zoneId = valueDomainLogsDomainLog["ZoneId"].asString(); + if(!valueDomainLogsDomainLog["ClientIp"].isNull()) + domainLogsObject.clientIp = valueDomainLogsDomainLog["ClientIp"].asString(); + if(!valueDomainLogsDomainLog["Message"].isNull()) + domainLogsObject.message = valueDomainLogsDomainLog["Message"].asString(); + if(!valueDomainLogsDomainLog["ActionTime"].isNull()) + domainLogsObject.actionTime = valueDomainLogsDomainLog["ActionTime"].asString(); + if(!valueDomainLogsDomainLog["DomainName"].isNull()) + domainLogsObject.domainName = valueDomainLogsDomainLog["DomainName"].asString(); domainLogs_.push_back(domainLogsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/DescribeDomainNsRequest.cc b/alidns/src/model/DescribeDomainNsRequest.cc index 4b842df14..4263f810f 100644 --- a/alidns/src/model/DescribeDomainNsRequest.cc +++ b/alidns/src/model/DescribeDomainNsRequest.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::Alidns::Model::DescribeDomainNsRequest; - -DescribeDomainNsRequest::DescribeDomainNsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainNs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDomainNsRequest::~DescribeDomainNsRequest() -{} - -std::string DescribeDomainNsRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainNsRequest; + +DescribeDomainNsRequest::DescribeDomainNsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainNs") { + setMethod(HttpRequest::Method::Post); } -void DescribeDomainNsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribeDomainNsRequest::~DescribeDomainNsRequest() {} + +std::string DescribeDomainNsRequest::getDomainName() const { + return domainName_; } -std::string DescribeDomainNsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeDomainNsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeDomainNsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeDomainNsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDomainNsRequest::getDomainType()const -{ - return domainType_; +void DescribeDomainNsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDomainNsRequest::setDomainType(const std::string& domainType) -{ - domainType_ = domainType; - setParameter("DomainType", domainType); +std::string DescribeDomainNsRequest::getDomainType() const { + return domainType_; } -std::string DescribeDomainNsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDomainNsRequest::setDomainType(const std::string &domainType) { + domainType_ = domainType; + setParameter(std::string("DomainType"), domainType); } -void DescribeDomainNsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDomainNsRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDomainNsRequest::getLang()const -{ - return lang_; +void DescribeDomainNsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDomainNsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDomainNsRequest::getLang() const { + return lang_; +} + +void DescribeDomainNsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDomainNsResult.cc b/alidns/src/model/DescribeDomainNsResult.cc index ec9033c57..bf074c0a2 100644 --- a/alidns/src/model/DescribeDomainNsResult.cc +++ b/alidns/src/model/DescribeDomainNsResult.cc @@ -39,16 +39,18 @@ void DescribeDomainNsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allDnsServers = value["DnsServers"]["DnsServer"]; - for (const auto &item : allDnsServers) - dnsServers_.push_back(item.asString()); auto allExpectDnsServers = value["ExpectDnsServers"]["ExpectDnsServer"]; for (const auto &item : allExpectDnsServers) expectDnsServers_.push_back(item.asString()); + auto allDnsServers = value["DnsServers"]["DnsServer"]; + for (const auto &item : allDnsServers) + dnsServers_.push_back(item.asString()); if(!value["AllAliDns"].isNull()) allAliDns_ = value["AllAliDns"].asString() == "true"; if(!value["IncludeAliDns"].isNull()) includeAliDns_ = value["IncludeAliDns"].asString() == "true"; + if(!value["DetectFailedReasonCode"].isNull()) + detectFailedReasonCode_ = value["DetectFailedReasonCode"].asString(); } @@ -72,3 +74,8 @@ bool DescribeDomainNsResult::getIncludeAliDns()const return includeAliDns_; } +std::string DescribeDomainNsResult::getDetectFailedReasonCode()const +{ + return detectFailedReasonCode_; +} + diff --git a/alidns/src/model/DescribeDomainRecordInfoRequest.cc b/alidns/src/model/DescribeDomainRecordInfoRequest.cc index 459f01862..3f08e5a31 100644 --- a/alidns/src/model/DescribeDomainRecordInfoRequest.cc +++ b/alidns/src/model/DescribeDomainRecordInfoRequest.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::Alidns::Model::DescribeDomainRecordInfoRequest; - -DescribeDomainRecordInfoRequest::DescribeDomainRecordInfoRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainRecordInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDomainRecordInfoRequest::~DescribeDomainRecordInfoRequest() -{} - -std::string DescribeDomainRecordInfoRequest::getAccessKeyId()const -{ - return accessKeyId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainRecordInfoRequest; + +DescribeDomainRecordInfoRequest::DescribeDomainRecordInfoRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainRecordInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeDomainRecordInfoRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +DescribeDomainRecordInfoRequest::~DescribeDomainRecordInfoRequest() {} + +std::string DescribeDomainRecordInfoRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDomainRecordInfoRequest::getRecordId()const -{ - return recordId_; +void DescribeDomainRecordInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDomainRecordInfoRequest::setRecordId(const std::string& recordId) -{ - recordId_ = recordId; - setParameter("RecordId", recordId); +std::string DescribeDomainRecordInfoRequest::getRecordId() const { + return recordId_; } -std::string DescribeDomainRecordInfoRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDomainRecordInfoRequest::setRecordId(const std::string &recordId) { + recordId_ = recordId; + setParameter(std::string("RecordId"), recordId); } -void DescribeDomainRecordInfoRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDomainRecordInfoRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDomainRecordInfoRequest::getLang()const -{ - return lang_; +void DescribeDomainRecordInfoRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDomainRecordInfoRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDomainRecordInfoRequest::getLang() const { + return lang_; +} + +void DescribeDomainRecordInfoRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDomainRecordInfoResult.cc b/alidns/src/model/DescribeDomainRecordInfoResult.cc index 75930aa3a..a4f1e5fd5 100644 --- a/alidns/src/model/DescribeDomainRecordInfoResult.cc +++ b/alidns/src/model/DescribeDomainRecordInfoResult.cc @@ -39,40 +39,42 @@ void DescribeDomainRecordInfoResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["DomainId"].isNull()) - domainId_ = value["DomainId"].asString(); - if(!value["DomainName"].isNull()) - domainName_ = value["DomainName"].asString(); - if(!value["PunyCode"].isNull()) - punyCode_ = value["PunyCode"].asString(); - if(!value["GroupId"].isNull()) - groupId_ = value["GroupId"].asString(); - if(!value["GroupName"].isNull()) - groupName_ = value["GroupName"].asString(); - if(!value["RecordId"].isNull()) - recordId_ = value["RecordId"].asString(); - if(!value["RR"].isNull()) - rR_ = value["RR"].asString(); - if(!value["Type"].isNull()) - type_ = value["Type"].asString(); - if(!value["Value"].isNull()) - value_ = value["Value"].asString(); - if(!value["TTL"].isNull()) - tTL_ = std::stol(value["TTL"].asString()); - if(!value["Priority"].isNull()) - priority_ = std::stol(value["Priority"].asString()); - if(!value["Line"].isNull()) - line_ = value["Line"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); + if(!value["RR"].isNull()) + rR_ = value["RR"].asString(); + if(!value["GroupName"].isNull()) + groupName_ = value["GroupName"].asString(); + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["Priority"].isNull()) + priority_ = std::stol(value["Priority"].asString()); + if(!value["PunyCode"].isNull()) + punyCode_ = value["PunyCode"].asString(); + if(!value["TTL"].isNull()) + tTL_ = std::stol(value["TTL"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["Line"].isNull()) + line_ = value["Line"].asString(); if(!value["Locked"].isNull()) locked_ = value["Locked"].asString() == "true"; + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["DomainId"].isNull()) + domainId_ = value["DomainId"].asString(); + if(!value["Value"].isNull()) + value_ = value["Value"].asString(); + if(!value["RecordId"].isNull()) + recordId_ = value["RecordId"].asString(); + if(!value["Remark"].isNull()) + remark_ = value["Remark"].asString(); } -std::string DescribeDomainRecordInfoResult::getGroupName()const +std::string DescribeDomainRecordInfoResult::getStatus()const { - return groupName_; + return status_; } std::string DescribeDomainRecordInfoResult::getRR()const @@ -80,9 +82,9 @@ std::string DescribeDomainRecordInfoResult::getRR()const return rR_; } -std::string DescribeDomainRecordInfoResult::getStatus()const +std::string DescribeDomainRecordInfoResult::getGroupName()const { - return status_; + return groupName_; } std::string DescribeDomainRecordInfoResult::getDomainName()const @@ -110,6 +112,11 @@ std::string DescribeDomainRecordInfoResult::getGroupId()const return groupId_; } +std::string DescribeDomainRecordInfoResult::getRemark()const +{ + return remark_; +} + std::string DescribeDomainRecordInfoResult::getLine()const { return line_; diff --git a/alidns/src/model/DescribeDomainRecordsRequest.cc b/alidns/src/model/DescribeDomainRecordsRequest.cc index 208f75eca..89084115e 100644 --- a/alidns/src/model/DescribeDomainRecordsRequest.cc +++ b/alidns/src/model/DescribeDomainRecordsRequest.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::Alidns::Model::DescribeDomainRecordsRequest; - -DescribeDomainRecordsRequest::DescribeDomainRecordsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainRecords") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDomainRecordsRequest::~DescribeDomainRecordsRequest() -{} - -std::string DescribeDomainRecordsRequest::getValueKeyWord()const -{ - return valueKeyWord_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainRecordsRequest; + +DescribeDomainRecordsRequest::DescribeDomainRecordsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainRecords") { + setMethod(HttpRequest::Method::Post); } -void DescribeDomainRecordsRequest::setValueKeyWord(const std::string& valueKeyWord) -{ - valueKeyWord_ = valueKeyWord; - setParameter("ValueKeyWord", valueKeyWord); +DescribeDomainRecordsRequest::~DescribeDomainRecordsRequest() {} + +std::string DescribeDomainRecordsRequest::getValueKeyWord() const { + return valueKeyWord_; } -std::string DescribeDomainRecordsRequest::getLine()const -{ - return line_; +void DescribeDomainRecordsRequest::setValueKeyWord(const std::string &valueKeyWord) { + valueKeyWord_ = valueKeyWord; + setParameter(std::string("ValueKeyWord"), valueKeyWord); } -void DescribeDomainRecordsRequest::setLine(const std::string& line) -{ - line_ = line; - setParameter("Line", line); +std::string DescribeDomainRecordsRequest::getLine() const { + return line_; } -std::string DescribeDomainRecordsRequest::getType()const -{ - return type_; +void DescribeDomainRecordsRequest::setLine(const std::string &line) { + line_ = line; + setParameter(std::string("Line"), line); } -void DescribeDomainRecordsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeDomainRecordsRequest::getType() const { + return type_; } -long DescribeDomainRecordsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDomainRecordsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeDomainRecordsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeDomainRecordsRequest::getPageNumber() const { + return pageNumber_; } -long DescribeDomainRecordsRequest::getPageSize()const -{ - return pageSize_; +void DescribeDomainRecordsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDomainRecordsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeDomainRecordsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDomainRecordsRequest::getLang()const -{ - return lang_; +void DescribeDomainRecordsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDomainRecordsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDomainRecordsRequest::getLang() const { + return lang_; } -std::string DescribeDomainRecordsRequest::getKeyWord()const -{ - return keyWord_; +void DescribeDomainRecordsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDomainRecordsRequest::setKeyWord(const std::string& keyWord) -{ - keyWord_ = keyWord; - setParameter("KeyWord", keyWord); +std::string DescribeDomainRecordsRequest::getKeyWord() const { + return keyWord_; } -std::string DescribeDomainRecordsRequest::getRRKeyWord()const -{ - return rRKeyWord_; +void DescribeDomainRecordsRequest::setKeyWord(const std::string &keyWord) { + keyWord_ = keyWord; + setParameter(std::string("KeyWord"), keyWord); } -void DescribeDomainRecordsRequest::setRRKeyWord(const std::string& rRKeyWord) -{ - rRKeyWord_ = rRKeyWord; - setParameter("RRKeyWord", rRKeyWord); +std::string DescribeDomainRecordsRequest::getRRKeyWord() const { + return rRKeyWord_; } -std::string DescribeDomainRecordsRequest::getDirection()const -{ - return direction_; +void DescribeDomainRecordsRequest::setRRKeyWord(const std::string &rRKeyWord) { + rRKeyWord_ = rRKeyWord; + setParameter(std::string("RRKeyWord"), rRKeyWord); } -void DescribeDomainRecordsRequest::setDirection(const std::string& direction) -{ - direction_ = direction; - setParameter("Direction", direction); +std::string DescribeDomainRecordsRequest::getDirection() const { + return direction_; } -long DescribeDomainRecordsRequest::getGroupId()const -{ - return groupId_; +void DescribeDomainRecordsRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } -void DescribeDomainRecordsRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setParameter("GroupId", std::to_string(groupId)); +long DescribeDomainRecordsRequest::getGroupId() const { + return groupId_; } -std::string DescribeDomainRecordsRequest::getDomainName()const -{ - return domainName_; +void DescribeDomainRecordsRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), std::to_string(groupId)); } -void DescribeDomainRecordsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string DescribeDomainRecordsRequest::getDomainName() const { + return domainName_; } -std::string DescribeDomainRecordsRequest::getOrderBy()const -{ - return orderBy_; +void DescribeDomainRecordsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeDomainRecordsRequest::setOrderBy(const std::string& orderBy) -{ - orderBy_ = orderBy; - setParameter("OrderBy", orderBy); +std::string DescribeDomainRecordsRequest::getOrderBy() const { + return orderBy_; } -std::string DescribeDomainRecordsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDomainRecordsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); } -void DescribeDomainRecordsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDomainRecordsRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDomainRecordsRequest::getSearchMode()const -{ - return searchMode_; +void DescribeDomainRecordsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDomainRecordsRequest::setSearchMode(const std::string& searchMode) -{ - searchMode_ = searchMode; - setParameter("SearchMode", searchMode); +std::string DescribeDomainRecordsRequest::getSearchMode() const { + return searchMode_; } -std::string DescribeDomainRecordsRequest::getTypeKeyWord()const -{ - return typeKeyWord_; +void DescribeDomainRecordsRequest::setSearchMode(const std::string &searchMode) { + searchMode_ = searchMode; + setParameter(std::string("SearchMode"), searchMode); } -void DescribeDomainRecordsRequest::setTypeKeyWord(const std::string& typeKeyWord) -{ - typeKeyWord_ = typeKeyWord; - setParameter("TypeKeyWord", typeKeyWord); +std::string DescribeDomainRecordsRequest::getTypeKeyWord() const { + return typeKeyWord_; } -std::string DescribeDomainRecordsRequest::getStatus()const -{ - return status_; +void DescribeDomainRecordsRequest::setTypeKeyWord(const std::string &typeKeyWord) { + typeKeyWord_ = typeKeyWord; + setParameter(std::string("TypeKeyWord"), typeKeyWord); } -void DescribeDomainRecordsRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeDomainRecordsRequest::getStatus() const { + return status_; +} + +void DescribeDomainRecordsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/alidns/src/model/DescribeDomainRecordsResult.cc b/alidns/src/model/DescribeDomainRecordsResult.cc index 5db72de1e..a0a9f1d7c 100644 --- a/alidns/src/model/DescribeDomainRecordsResult.cc +++ b/alidns/src/model/DescribeDomainRecordsResult.cc @@ -43,38 +43,38 @@ void DescribeDomainRecordsResult::parse(const std::string &payload) for (auto valueDomainRecordsRecord : allDomainRecordsNode) { Record domainRecordsObject; - if(!valueDomainRecordsRecord["DomainName"].isNull()) - domainRecordsObject.domainName = valueDomainRecordsRecord["DomainName"].asString(); - if(!valueDomainRecordsRecord["RecordId"].isNull()) - domainRecordsObject.recordId = valueDomainRecordsRecord["RecordId"].asString(); - if(!valueDomainRecordsRecord["RR"].isNull()) - domainRecordsObject.rR = valueDomainRecordsRecord["RR"].asString(); - if(!valueDomainRecordsRecord["Type"].isNull()) - domainRecordsObject.type = valueDomainRecordsRecord["Type"].asString(); - if(!valueDomainRecordsRecord["Value"].isNull()) - domainRecordsObject.value = valueDomainRecordsRecord["Value"].asString(); - if(!valueDomainRecordsRecord["TTL"].isNull()) - domainRecordsObject.tTL = std::stol(valueDomainRecordsRecord["TTL"].asString()); - if(!valueDomainRecordsRecord["Priority"].isNull()) - domainRecordsObject.priority = std::stol(valueDomainRecordsRecord["Priority"].asString()); - if(!valueDomainRecordsRecord["Line"].isNull()) - domainRecordsObject.line = valueDomainRecordsRecord["Line"].asString(); if(!valueDomainRecordsRecord["Status"].isNull()) domainRecordsObject.status = valueDomainRecordsRecord["Status"].asString(); - if(!valueDomainRecordsRecord["Locked"].isNull()) - domainRecordsObject.locked = valueDomainRecordsRecord["Locked"].asString() == "true"; - if(!valueDomainRecordsRecord["Weight"].isNull()) - domainRecordsObject.weight = std::stoi(valueDomainRecordsRecord["Weight"].asString()); + if(!valueDomainRecordsRecord["Type"].isNull()) + domainRecordsObject.type = valueDomainRecordsRecord["Type"].asString(); if(!valueDomainRecordsRecord["Remark"].isNull()) domainRecordsObject.remark = valueDomainRecordsRecord["Remark"].asString(); + if(!valueDomainRecordsRecord["TTL"].isNull()) + domainRecordsObject.tTL = std::stol(valueDomainRecordsRecord["TTL"].asString()); + if(!valueDomainRecordsRecord["RecordId"].isNull()) + domainRecordsObject.recordId = valueDomainRecordsRecord["RecordId"].asString(); + if(!valueDomainRecordsRecord["Priority"].isNull()) + domainRecordsObject.priority = std::stol(valueDomainRecordsRecord["Priority"].asString()); + if(!valueDomainRecordsRecord["RR"].isNull()) + domainRecordsObject.rR = valueDomainRecordsRecord["RR"].asString(); + if(!valueDomainRecordsRecord["DomainName"].isNull()) + domainRecordsObject.domainName = valueDomainRecordsRecord["DomainName"].asString(); + if(!valueDomainRecordsRecord["Weight"].isNull()) + domainRecordsObject.weight = std::stoi(valueDomainRecordsRecord["Weight"].asString()); + if(!valueDomainRecordsRecord["Value"].isNull()) + domainRecordsObject.value = valueDomainRecordsRecord["Value"].asString(); + if(!valueDomainRecordsRecord["Line"].isNull()) + domainRecordsObject.line = valueDomainRecordsRecord["Line"].asString(); + if(!valueDomainRecordsRecord["Locked"].isNull()) + domainRecordsObject.locked = valueDomainRecordsRecord["Locked"].asString() == "true"; domainRecords_.push_back(domainRecordsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/DescribeDomainResolveStatisticsSummaryRequest.cc b/alidns/src/model/DescribeDomainResolveStatisticsSummaryRequest.cc new file mode 100644 index 000000000..b73af6ea2 --- /dev/null +++ b/alidns/src/model/DescribeDomainResolveStatisticsSummaryRequest.cc @@ -0,0 +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::Alidns::Model::DescribeDomainResolveStatisticsSummaryRequest; + +DescribeDomainResolveStatisticsSummaryRequest::DescribeDomainResolveStatisticsSummaryRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainResolveStatisticsSummary") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDomainResolveStatisticsSummaryRequest::~DescribeDomainResolveStatisticsSummaryRequest() {} + +long DescribeDomainResolveStatisticsSummaryRequest::getThreshold() const { + return threshold_; +} + +void DescribeDomainResolveStatisticsSummaryRequest::setThreshold(long threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), std::to_string(threshold)); +} + +std::string DescribeDomainResolveStatisticsSummaryRequest::getStartDate() const { + return startDate_; +} + +void DescribeDomainResolveStatisticsSummaryRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); +} + +int DescribeDomainResolveStatisticsSummaryRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDomainResolveStatisticsSummaryRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDomainResolveStatisticsSummaryRequest::getEndDate() const { + return endDate_; +} + +void DescribeDomainResolveStatisticsSummaryRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); +} + +int DescribeDomainResolveStatisticsSummaryRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDomainResolveStatisticsSummaryRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDomainResolveStatisticsSummaryRequest::getUserClientIp() const { + return userClientIp_; +} + +void DescribeDomainResolveStatisticsSummaryRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); +} + +std::string DescribeDomainResolveStatisticsSummaryRequest::getSearchMode() const { + return searchMode_; +} + +void DescribeDomainResolveStatisticsSummaryRequest::setSearchMode(const std::string &searchMode) { + searchMode_ = searchMode; + setParameter(std::string("SearchMode"), searchMode); +} + +std::string DescribeDomainResolveStatisticsSummaryRequest::getKeyword() const { + return keyword_; +} + +void DescribeDomainResolveStatisticsSummaryRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string DescribeDomainResolveStatisticsSummaryRequest::getLang() const { + return lang_; +} + +void DescribeDomainResolveStatisticsSummaryRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DescribeDomainResolveStatisticsSummaryRequest::getDirection() const { + return direction_; +} + +void DescribeDomainResolveStatisticsSummaryRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); +} + diff --git a/alidns/src/model/DescribeDomainResolveStatisticsSummaryResult.cc b/alidns/src/model/DescribeDomainResolveStatisticsSummaryResult.cc new file mode 100644 index 000000000..dcc80e4b3 --- /dev/null +++ b/alidns/src/model/DescribeDomainResolveStatisticsSummaryResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +DescribeDomainResolveStatisticsSummaryResult::DescribeDomainResolveStatisticsSummaryResult() : + ServiceResult() +{} + +DescribeDomainResolveStatisticsSummaryResult::DescribeDomainResolveStatisticsSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDomainResolveStatisticsSummaryResult::~DescribeDomainResolveStatisticsSummaryResult() +{} + +void DescribeDomainResolveStatisticsSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStatisticsNode = value["Statistics"]["Statistic"]; + for (auto valueStatisticsStatistic : allStatisticsNode) + { + Statistic statisticsObject; + if(!valueStatisticsStatistic["DomainName"].isNull()) + statisticsObject.domainName = valueStatisticsStatistic["DomainName"].asString(); + if(!valueStatisticsStatistic["Count"].isNull()) + statisticsObject.count = valueStatisticsStatistic["Count"].asString(); + if(!valueStatisticsStatistic["DomainType"].isNull()) + statisticsObject.domainType = valueStatisticsStatistic["DomainType"].asString(); + statistics_.push_back(statisticsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); + +} + +int DescribeDomainResolveStatisticsSummaryResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDomainResolveStatisticsSummaryResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeDomainResolveStatisticsSummaryResult::getTotalPages()const +{ + return totalPages_; +} + +int DescribeDomainResolveStatisticsSummaryResult::getTotalItems()const +{ + return totalItems_; +} + +std::vector DescribeDomainResolveStatisticsSummaryResult::getStatistics()const +{ + return statistics_; +} + diff --git a/alidns/src/model/DescribeDomainStatisticsRequest.cc b/alidns/src/model/DescribeDomainStatisticsRequest.cc index eda8f4344..14c19af9d 100644 --- a/alidns/src/model/DescribeDomainStatisticsRequest.cc +++ b/alidns/src/model/DescribeDomainStatisticsRequest.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::Alidns::Model::DescribeDomainStatisticsRequest; - -DescribeDomainStatisticsRequest::DescribeDomainStatisticsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDomainStatisticsRequest::~DescribeDomainStatisticsRequest() -{} - -std::string DescribeDomainStatisticsRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainStatisticsRequest; + +DescribeDomainStatisticsRequest::DescribeDomainStatisticsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeDomainStatisticsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribeDomainStatisticsRequest::~DescribeDomainStatisticsRequest() {} + +std::string DescribeDomainStatisticsRequest::getDomainName() const { + return domainName_; } -std::string DescribeDomainStatisticsRequest::getStartDate()const -{ - return startDate_; +void DescribeDomainStatisticsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeDomainStatisticsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribeDomainStatisticsRequest::getStartDate() const { + return startDate_; } -std::string DescribeDomainStatisticsRequest::getEndDate()const -{ - return endDate_; +void DescribeDomainStatisticsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeDomainStatisticsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeDomainStatisticsRequest::getEndDate() const { + return endDate_; } -std::string DescribeDomainStatisticsRequest::getDomainType()const -{ - return domainType_; +void DescribeDomainStatisticsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribeDomainStatisticsRequest::setDomainType(const std::string& domainType) -{ - domainType_ = domainType; - setParameter("DomainType", domainType); +std::string DescribeDomainStatisticsRequest::getDomainType() const { + return domainType_; } -std::string DescribeDomainStatisticsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDomainStatisticsRequest::setDomainType(const std::string &domainType) { + domainType_ = domainType; + setParameter(std::string("DomainType"), domainType); } -void DescribeDomainStatisticsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDomainStatisticsRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDomainStatisticsRequest::getLang()const -{ - return lang_; +void DescribeDomainStatisticsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDomainStatisticsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDomainStatisticsRequest::getLang() const { + return lang_; +} + +void DescribeDomainStatisticsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeDomainStatisticsSummaryRequest.cc b/alidns/src/model/DescribeDomainStatisticsSummaryRequest.cc index 4ce95c078..fe460bb53 100644 --- a/alidns/src/model/DescribeDomainStatisticsSummaryRequest.cc +++ b/alidns/src/model/DescribeDomainStatisticsSummaryRequest.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::Alidns::Model::DescribeDomainStatisticsSummaryRequest; - -DescribeDomainStatisticsSummaryRequest::DescribeDomainStatisticsSummaryRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainStatisticsSummary") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDomainStatisticsSummaryRequest::~DescribeDomainStatisticsSummaryRequest() -{} - -long DescribeDomainStatisticsSummaryRequest::getThreshold()const -{ - return threshold_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainStatisticsSummaryRequest; + +DescribeDomainStatisticsSummaryRequest::DescribeDomainStatisticsSummaryRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainStatisticsSummary") { + setMethod(HttpRequest::Method::Post); } -void DescribeDomainStatisticsSummaryRequest::setThreshold(long threshold) -{ - threshold_ = threshold; - setParameter("Threshold", std::to_string(threshold)); +DescribeDomainStatisticsSummaryRequest::~DescribeDomainStatisticsSummaryRequest() {} + +long DescribeDomainStatisticsSummaryRequest::getThreshold() const { + return threshold_; } -std::string DescribeDomainStatisticsSummaryRequest::getStartDate()const -{ - return startDate_; +void DescribeDomainStatisticsSummaryRequest::setThreshold(long threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), std::to_string(threshold)); } -void DescribeDomainStatisticsSummaryRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribeDomainStatisticsSummaryRequest::getStartDate() const { + return startDate_; } -long DescribeDomainStatisticsSummaryRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDomainStatisticsSummaryRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeDomainStatisticsSummaryRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeDomainStatisticsSummaryRequest::getPageNumber() const { + return pageNumber_; } -long DescribeDomainStatisticsSummaryRequest::getPageSize()const -{ - return pageSize_; +void DescribeDomainStatisticsSummaryRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDomainStatisticsSummaryRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeDomainStatisticsSummaryRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDomainStatisticsSummaryRequest::getLang()const -{ - return lang_; +void DescribeDomainStatisticsSummaryRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDomainStatisticsSummaryRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDomainStatisticsSummaryRequest::getLang() const { + return lang_; } -std::string DescribeDomainStatisticsSummaryRequest::getKeyword()const -{ - return keyword_; +void DescribeDomainStatisticsSummaryRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDomainStatisticsSummaryRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeDomainStatisticsSummaryRequest::getKeyword() const { + return keyword_; } -std::string DescribeDomainStatisticsSummaryRequest::getDirection()const -{ - return direction_; +void DescribeDomainStatisticsSummaryRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } -void DescribeDomainStatisticsSummaryRequest::setDirection(const std::string& direction) -{ - direction_ = direction; - setParameter("Direction", direction); +std::string DescribeDomainStatisticsSummaryRequest::getDirection() const { + return direction_; } -std::string DescribeDomainStatisticsSummaryRequest::getOrderBy()const -{ - return orderBy_; +void DescribeDomainStatisticsSummaryRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } -void DescribeDomainStatisticsSummaryRequest::setOrderBy(const std::string& orderBy) -{ - orderBy_ = orderBy; - setParameter("OrderBy", orderBy); +std::string DescribeDomainStatisticsSummaryRequest::getOrderBy() const { + return orderBy_; } -std::string DescribeDomainStatisticsSummaryRequest::getEndDate()const -{ - return endDate_; +void DescribeDomainStatisticsSummaryRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); } -void DescribeDomainStatisticsSummaryRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeDomainStatisticsSummaryRequest::getEndDate() const { + return endDate_; } -std::string DescribeDomainStatisticsSummaryRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDomainStatisticsSummaryRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribeDomainStatisticsSummaryRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDomainStatisticsSummaryRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDomainStatisticsSummaryRequest::getSearchMode()const -{ - return searchMode_; +void DescribeDomainStatisticsSummaryRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDomainStatisticsSummaryRequest::setSearchMode(const std::string& searchMode) -{ - searchMode_ = searchMode; - setParameter("SearchMode", searchMode); +std::string DescribeDomainStatisticsSummaryRequest::getSearchMode() const { + return searchMode_; +} + +void DescribeDomainStatisticsSummaryRequest::setSearchMode(const std::string &searchMode) { + searchMode_ = searchMode; + setParameter(std::string("SearchMode"), searchMode); } diff --git a/alidns/src/model/DescribeDomainStatisticsSummaryResult.cc b/alidns/src/model/DescribeDomainStatisticsSummaryResult.cc index ab3e00e2d..e7e30bbe8 100644 --- a/alidns/src/model/DescribeDomainStatisticsSummaryResult.cc +++ b/alidns/src/model/DescribeDomainStatisticsSummaryResult.cc @@ -51,14 +51,14 @@ void DescribeDomainStatisticsSummaryResult::parse(const std::string &payload) statisticsObject.domainType = valueStatisticsStatistic["DomainType"].asString(); statistics_.push_back(statisticsObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeDomainsRequest.cc b/alidns/src/model/DescribeDomainsRequest.cc index f8f1a2191..e3bdc031e 100644 --- a/alidns/src/model/DescribeDomainsRequest.cc +++ b/alidns/src/model/DescribeDomainsRequest.cc @@ -1,188 +1,158 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::DescribeDomainsRequest; - -DescribeDomainsRequest::DescribeDomainsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeDomains") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDomainsRequest::~DescribeDomainsRequest() -{} - -std::string DescribeDomainsRequest::getStartDate()const -{ - return startDate_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeDomainsRequest; + +DescribeDomainsRequest::DescribeDomainsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeDomains") { + setMethod(HttpRequest::Method::Post); } -void DescribeDomainsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +DescribeDomainsRequest::~DescribeDomainsRequest() {} + +std::string DescribeDomainsRequest::getStartDate() const { + return startDate_; } -long DescribeDomainsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDomainsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeDomainsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeDomainsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDomainsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeDomainsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDomainsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeDomainsRequest::getResourceGroupId() const { + return resourceGroupId_; } -long DescribeDomainsRequest::getPageSize()const -{ - return pageSize_; +void DescribeDomainsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeDomainsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeDomainsRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeDomainsRequest::getTag()const -{ - return tag_; +void DescribeDomainsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDomainsRequest::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 DescribeDomainsRequest::getTag() const { + return tag_; } -std::string DescribeDomainsRequest::getLang()const -{ - return lang_; +void DescribeDomainsRequest::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 DescribeDomainsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDomainsRequest::getLang() const { + return lang_; } -std::string DescribeDomainsRequest::getKeyWord()const -{ - return keyWord_; +void DescribeDomainsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDomainsRequest::setKeyWord(const std::string& keyWord) -{ - keyWord_ = keyWord; - setParameter("KeyWord", keyWord); +std::string DescribeDomainsRequest::getKeyWord() const { + return keyWord_; } -std::string DescribeDomainsRequest::getDirection()const -{ - return direction_; +void DescribeDomainsRequest::setKeyWord(const std::string &keyWord) { + keyWord_ = keyWord; + setParameter(std::string("KeyWord"), keyWord); } -void DescribeDomainsRequest::setDirection(const std::string& direction) -{ - direction_ = direction; - setParameter("Direction", direction); +std::string DescribeDomainsRequest::getDirection() const { + return direction_; } -bool DescribeDomainsRequest::getStarmark()const -{ - return starmark_; +void DescribeDomainsRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } -void DescribeDomainsRequest::setStarmark(bool starmark) -{ - starmark_ = starmark; - setParameter("Starmark", starmark ? "true" : "false"); +bool DescribeDomainsRequest::getStarmark() const { + return starmark_; } -std::string DescribeDomainsRequest::getGroupId()const -{ - return groupId_; +void DescribeDomainsRequest::setStarmark(bool starmark) { + starmark_ = starmark; + setParameter(std::string("Starmark"), starmark ? "true" : "false"); } -void DescribeDomainsRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +std::string DescribeDomainsRequest::getGroupId() const { + return groupId_; } -std::string DescribeDomainsRequest::getOrderBy()const -{ - return orderBy_; +void DescribeDomainsRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void DescribeDomainsRequest::setOrderBy(const std::string& orderBy) -{ - orderBy_ = orderBy; - setParameter("OrderBy", orderBy); +std::string DescribeDomainsRequest::getOrderBy() const { + return orderBy_; } -std::string DescribeDomainsRequest::getEndDate()const -{ - return endDate_; +void DescribeDomainsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); } -void DescribeDomainsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeDomainsRequest::getEndDate() const { + return endDate_; } -std::string DescribeDomainsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeDomainsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribeDomainsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeDomainsRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeDomainsRequest::getSearchMode()const -{ - return searchMode_; +void DescribeDomainsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeDomainsRequest::setSearchMode(const std::string& searchMode) -{ - searchMode_ = searchMode; - setParameter("SearchMode", searchMode); +std::string DescribeDomainsRequest::getSearchMode() const { + return searchMode_; +} + +void DescribeDomainsRequest::setSearchMode(const std::string &searchMode) { + searchMode_ = searchMode; + setParameter(std::string("SearchMode"), searchMode); } diff --git a/alidns/src/model/DescribeDomainsResult.cc b/alidns/src/model/DescribeDomainsResult.cc index 862f2a551..ad2fc5afc 100644 --- a/alidns/src/model/DescribeDomainsResult.cc +++ b/alidns/src/model/DescribeDomainsResult.cc @@ -43,42 +43,42 @@ void DescribeDomainsResult::parse(const std::string &payload) for (auto valueDomainsDomain : allDomainsNode) { Domain domainsObject; - if(!valueDomainsDomain["DomainId"].isNull()) - domainsObject.domainId = valueDomainsDomain["DomainId"].asString(); - if(!valueDomainsDomain["DomainName"].isNull()) - domainsObject.domainName = valueDomainsDomain["DomainName"].asString(); - if(!valueDomainsDomain["PunyCode"].isNull()) - domainsObject.punyCode = valueDomainsDomain["PunyCode"].asString(); - if(!valueDomainsDomain["AliDomain"].isNull()) - domainsObject.aliDomain = valueDomainsDomain["AliDomain"].asString() == "true"; - if(!valueDomainsDomain["RecordCount"].isNull()) - domainsObject.recordCount = std::stol(valueDomainsDomain["RecordCount"].asString()); - if(!valueDomainsDomain["RegistrantEmail"].isNull()) - domainsObject.registrantEmail = valueDomainsDomain["RegistrantEmail"].asString(); if(!valueDomainsDomain["Remark"].isNull()) domainsObject.remark = valueDomainsDomain["Remark"].asString(); + if(!valueDomainsDomain["CreateTime"].isNull()) + domainsObject.createTime = valueDomainsDomain["CreateTime"].asString(); + if(!valueDomainsDomain["RecordCount"].isNull()) + domainsObject.recordCount = std::stol(valueDomainsDomain["RecordCount"].asString()); + if(!valueDomainsDomain["InstanceId"].isNull()) + domainsObject.instanceId = valueDomainsDomain["InstanceId"].asString(); + if(!valueDomainsDomain["DomainName"].isNull()) + domainsObject.domainName = valueDomainsDomain["DomainName"].asString(); + if(!valueDomainsDomain["DomainId"].isNull()) + domainsObject.domainId = valueDomainsDomain["DomainId"].asString(); + if(!valueDomainsDomain["AliDomain"].isNull()) + domainsObject.aliDomain = valueDomainsDomain["AliDomain"].asString() == "true"; if(!valueDomainsDomain["GroupId"].isNull()) domainsObject.groupId = valueDomainsDomain["GroupId"].asString(); if(!valueDomainsDomain["GroupName"].isNull()) domainsObject.groupName = valueDomainsDomain["GroupName"].asString(); - if(!valueDomainsDomain["InstanceId"].isNull()) - domainsObject.instanceId = valueDomainsDomain["InstanceId"].asString(); - if(!valueDomainsDomain["VersionCode"].isNull()) - domainsObject.versionCode = valueDomainsDomain["VersionCode"].asString(); - if(!valueDomainsDomain["VersionName"].isNull()) - domainsObject.versionName = valueDomainsDomain["VersionName"].asString(); + if(!valueDomainsDomain["ResourceGroupId"].isNull()) + domainsObject.resourceGroupId = valueDomainsDomain["ResourceGroupId"].asString(); if(!valueDomainsDomain["InstanceEndTime"].isNull()) domainsObject.instanceEndTime = valueDomainsDomain["InstanceEndTime"].asString(); if(!valueDomainsDomain["InstanceExpired"].isNull()) domainsObject.instanceExpired = valueDomainsDomain["InstanceExpired"].asString() == "true"; - if(!valueDomainsDomain["Starmark"].isNull()) - domainsObject.starmark = valueDomainsDomain["Starmark"].asString() == "true"; - if(!valueDomainsDomain["CreateTime"].isNull()) - domainsObject.createTime = valueDomainsDomain["CreateTime"].asString(); + if(!valueDomainsDomain["VersionName"].isNull()) + domainsObject.versionName = valueDomainsDomain["VersionName"].asString(); + if(!valueDomainsDomain["VersionCode"].isNull()) + domainsObject.versionCode = valueDomainsDomain["VersionCode"].asString(); + if(!valueDomainsDomain["PunyCode"].isNull()) + domainsObject.punyCode = valueDomainsDomain["PunyCode"].asString(); + if(!valueDomainsDomain["RegistrantEmail"].isNull()) + domainsObject.registrantEmail = valueDomainsDomain["RegistrantEmail"].asString(); if(!valueDomainsDomain["CreateTimestamp"].isNull()) domainsObject.createTimestamp = std::stol(valueDomainsDomain["CreateTimestamp"].asString()); - if(!valueDomainsDomain["ResourceGroupId"].isNull()) - domainsObject.resourceGroupId = valueDomainsDomain["ResourceGroupId"].asString(); + if(!valueDomainsDomain["Starmark"].isNull()) + domainsObject.starmark = valueDomainsDomain["Starmark"].asString() == "true"; auto allTagsNode = valueDomainsDomain["Tags"]["Tag"]; for (auto valueDomainsDomainTagsTag : allTagsNode) { @@ -96,10 +96,10 @@ void DescribeDomainsResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/DescribeGtmAccessStrategiesRequest.cc b/alidns/src/model/DescribeGtmAccessStrategiesRequest.cc index 14f0f3053..a9b13486f 100644 --- a/alidns/src/model/DescribeGtmAccessStrategiesRequest.cc +++ b/alidns/src/model/DescribeGtmAccessStrategiesRequest.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::Alidns::Model::DescribeGtmAccessStrategiesRequest; - -DescribeGtmAccessStrategiesRequest::DescribeGtmAccessStrategiesRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAccessStrategies") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmAccessStrategiesRequest::~DescribeGtmAccessStrategiesRequest() -{} - -int DescribeGtmAccessStrategiesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmAccessStrategiesRequest; + +DescribeGtmAccessStrategiesRequest::DescribeGtmAccessStrategiesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAccessStrategies") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmAccessStrategiesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeGtmAccessStrategiesRequest::~DescribeGtmAccessStrategiesRequest() {} + +int DescribeGtmAccessStrategiesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeGtmAccessStrategiesRequest::getInstanceId()const -{ - return instanceId_; +void DescribeGtmAccessStrategiesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeGtmAccessStrategiesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeGtmAccessStrategiesRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeGtmAccessStrategiesRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeGtmAccessStrategiesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeGtmAccessStrategiesRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeGtmAccessStrategiesRequest::getUserClientIp() const { + return userClientIp_; } -int DescribeGtmAccessStrategiesRequest::getPageSize()const -{ - return pageSize_; +void DescribeGtmAccessStrategiesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmAccessStrategiesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeGtmAccessStrategiesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeGtmAccessStrategiesRequest::getLang()const -{ - return lang_; +void DescribeGtmAccessStrategiesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeGtmAccessStrategiesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmAccessStrategiesRequest::getLang() const { + return lang_; +} + +void DescribeGtmAccessStrategiesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmAccessStrategiesResult.cc b/alidns/src/model/DescribeGtmAccessStrategiesResult.cc index eab4c6d9e..41f4cdc9c 100644 --- a/alidns/src/model/DescribeGtmAccessStrategiesResult.cc +++ b/alidns/src/model/DescribeGtmAccessStrategiesResult.cc @@ -43,62 +43,62 @@ void DescribeGtmAccessStrategiesResult::parse(const std::string &payload) for (auto valueStrategiesStrategy : allStrategiesNode) { Strategy strategiesObject; - if(!valueStrategiesStrategy["StrategyId"].isNull()) - strategiesObject.strategyId = valueStrategiesStrategy["StrategyId"].asString(); - if(!valueStrategiesStrategy["StrategyName"].isNull()) - strategiesObject.strategyName = valueStrategiesStrategy["StrategyName"].asString(); - if(!valueStrategiesStrategy["CreateTime"].isNull()) - strategiesObject.createTime = valueStrategiesStrategy["CreateTime"].asString(); - if(!valueStrategiesStrategy["CreateTimestamp"].isNull()) - strategiesObject.createTimestamp = std::stol(valueStrategiesStrategy["CreateTimestamp"].asString()); - if(!valueStrategiesStrategy["DefaultAddrPoolId"].isNull()) - strategiesObject.defaultAddrPoolId = valueStrategiesStrategy["DefaultAddrPoolId"].asString(); - if(!valueStrategiesStrategy["DefaultAddrPoolName"].isNull()) - strategiesObject.defaultAddrPoolName = valueStrategiesStrategy["DefaultAddrPoolName"].asString(); - if(!valueStrategiesStrategy["FailoverAddrPoolId"].isNull()) - strategiesObject.failoverAddrPoolId = valueStrategiesStrategy["FailoverAddrPoolId"].asString(); - if(!valueStrategiesStrategy["FailoverAddrPoolName"].isNull()) - strategiesObject.failoverAddrPoolName = valueStrategiesStrategy["FailoverAddrPoolName"].asString(); if(!valueStrategiesStrategy["AccessMode"].isNull()) strategiesObject.accessMode = valueStrategiesStrategy["AccessMode"].asString(); - if(!valueStrategiesStrategy["AccessStatus"].isNull()) - strategiesObject.accessStatus = valueStrategiesStrategy["AccessStatus"].asString(); - if(!valueStrategiesStrategy["StrategyMode"].isNull()) - strategiesObject.strategyMode = valueStrategiesStrategy["StrategyMode"].asString(); - if(!valueStrategiesStrategy["InstanceId"].isNull()) - strategiesObject.instanceId = valueStrategiesStrategy["InstanceId"].asString(); - if(!valueStrategiesStrategy["DefaultAddrPoolStatus"].isNull()) - strategiesObject.defaultAddrPoolStatus = valueStrategiesStrategy["DefaultAddrPoolStatus"].asString(); - if(!valueStrategiesStrategy["FailoverAddrPoolStatus"].isNull()) - strategiesObject.failoverAddrPoolStatus = valueStrategiesStrategy["FailoverAddrPoolStatus"].asString(); + if(!valueStrategiesStrategy["StrategyName"].isNull()) + strategiesObject.strategyName = valueStrategiesStrategy["StrategyName"].asString(); if(!valueStrategiesStrategy["DefaultAddrPoolMonitorStatus"].isNull()) strategiesObject.defaultAddrPoolMonitorStatus = valueStrategiesStrategy["DefaultAddrPoolMonitorStatus"].asString(); + if(!valueStrategiesStrategy["StrategyMode"].isNull()) + strategiesObject.strategyMode = valueStrategiesStrategy["StrategyMode"].asString(); + if(!valueStrategiesStrategy["CreateTime"].isNull()) + strategiesObject.createTime = valueStrategiesStrategy["CreateTime"].asString(); + if(!valueStrategiesStrategy["DefaultAddrPoolStatus"].isNull()) + strategiesObject.defaultAddrPoolStatus = valueStrategiesStrategy["DefaultAddrPoolStatus"].asString(); + if(!valueStrategiesStrategy["InstanceId"].isNull()) + strategiesObject.instanceId = valueStrategiesStrategy["InstanceId"].asString(); + if(!valueStrategiesStrategy["FailoverAddrPoolId"].isNull()) + strategiesObject.failoverAddrPoolId = valueStrategiesStrategy["FailoverAddrPoolId"].asString(); + if(!valueStrategiesStrategy["DefaultAddrPoolId"].isNull()) + strategiesObject.defaultAddrPoolId = valueStrategiesStrategy["DefaultAddrPoolId"].asString(); + if(!valueStrategiesStrategy["StrategyId"].isNull()) + strategiesObject.strategyId = valueStrategiesStrategy["StrategyId"].asString(); + if(!valueStrategiesStrategy["FailoverAddrPoolStatus"].isNull()) + strategiesObject.failoverAddrPoolStatus = valueStrategiesStrategy["FailoverAddrPoolStatus"].asString(); + if(!valueStrategiesStrategy["AccessStatus"].isNull()) + strategiesObject.accessStatus = valueStrategiesStrategy["AccessStatus"].asString(); if(!valueStrategiesStrategy["FailoverAddrPoolMonitorStatus"].isNull()) strategiesObject.failoverAddrPoolMonitorStatus = valueStrategiesStrategy["FailoverAddrPoolMonitorStatus"].asString(); + if(!valueStrategiesStrategy["DefaultAddrPoolName"].isNull()) + strategiesObject.defaultAddrPoolName = valueStrategiesStrategy["DefaultAddrPoolName"].asString(); + if(!valueStrategiesStrategy["FailoverAddrPoolName"].isNull()) + strategiesObject.failoverAddrPoolName = valueStrategiesStrategy["FailoverAddrPoolName"].asString(); + if(!valueStrategiesStrategy["CreateTimestamp"].isNull()) + strategiesObject.createTimestamp = std::stol(valueStrategiesStrategy["CreateTimestamp"].asString()); auto allLinesNode = valueStrategiesStrategy["Lines"]["Line"]; for (auto valueStrategiesStrategyLinesLine : allLinesNode) { Strategy::Line linesObject; + if(!valueStrategiesStrategyLinesLine["GroupName"].isNull()) + linesObject.groupName = valueStrategiesStrategyLinesLine["GroupName"].asString(); if(!valueStrategiesStrategyLinesLine["LineCode"].isNull()) linesObject.lineCode = valueStrategiesStrategyLinesLine["LineCode"].asString(); if(!valueStrategiesStrategyLinesLine["LineName"].isNull()) linesObject.lineName = valueStrategiesStrategyLinesLine["LineName"].asString(); if(!valueStrategiesStrategyLinesLine["GroupCode"].isNull()) linesObject.groupCode = valueStrategiesStrategyLinesLine["GroupCode"].asString(); - if(!valueStrategiesStrategyLinesLine["GroupName"].isNull()) - linesObject.groupName = valueStrategiesStrategyLinesLine["GroupName"].asString(); strategiesObject.lines.push_back(linesObject); } strategies_.push_back(strategiesObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].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["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigRequest.cc b/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigRequest.cc index af747a88d..01bb812ea 100644 --- a/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigRequest.cc +++ b/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigRequest.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::Alidns::Model::DescribeGtmAccessStrategyAvailableConfigRequest; - -DescribeGtmAccessStrategyAvailableConfigRequest::DescribeGtmAccessStrategyAvailableConfigRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAccessStrategyAvailableConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmAccessStrategyAvailableConfigRequest::~DescribeGtmAccessStrategyAvailableConfigRequest() -{} - -std::string DescribeGtmAccessStrategyAvailableConfigRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmAccessStrategyAvailableConfigRequest; + +DescribeGtmAccessStrategyAvailableConfigRequest::DescribeGtmAccessStrategyAvailableConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAccessStrategyAvailableConfig") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmAccessStrategyAvailableConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeGtmAccessStrategyAvailableConfigRequest::~DescribeGtmAccessStrategyAvailableConfigRequest() {} + +std::string DescribeGtmAccessStrategyAvailableConfigRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeGtmAccessStrategyAvailableConfigRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeGtmAccessStrategyAvailableConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeGtmAccessStrategyAvailableConfigRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeGtmAccessStrategyAvailableConfigRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeGtmAccessStrategyAvailableConfigRequest::getLang()const -{ - return lang_; +void DescribeGtmAccessStrategyAvailableConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmAccessStrategyAvailableConfigRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmAccessStrategyAvailableConfigRequest::getLang() const { + return lang_; +} + +void DescribeGtmAccessStrategyAvailableConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigResult.cc b/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigResult.cc index e799e5cfa..cc4eec320 100644 --- a/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigResult.cc +++ b/alidns/src/model/DescribeGtmAccessStrategyAvailableConfigResult.cc @@ -53,20 +53,22 @@ void DescribeGtmAccessStrategyAvailableConfigResult::parse(const std::string &pa for (auto valueLinesLine : allLinesNode) { Line linesObject; - if(!valueLinesLine["LineCode"].isNull()) - linesObject.lineCode = valueLinesLine["LineCode"].asString(); - if(!valueLinesLine["LineName"].isNull()) - linesObject.lineName = valueLinesLine["LineName"].asString(); - if(!valueLinesLine["GroupCode"].isNull()) - linesObject.groupCode = valueLinesLine["GroupCode"].asString(); - if(!valueLinesLine["GroupName"].isNull()) - linesObject.groupName = valueLinesLine["GroupName"].asString(); if(!valueLinesLine["Status"].isNull()) linesObject.status = valueLinesLine["Status"].asString(); if(!valueLinesLine["FatherCode"].isNull()) linesObject.fatherCode = valueLinesLine["FatherCode"].asString(); + if(!valueLinesLine["LineCode"].isNull()) + linesObject.lineCode = valueLinesLine["LineCode"].asString(); + if(!valueLinesLine["GroupName"].isNull()) + linesObject.groupName = valueLinesLine["GroupName"].asString(); + if(!valueLinesLine["LineName"].isNull()) + linesObject.lineName = valueLinesLine["LineName"].asString(); + if(!valueLinesLine["GroupCode"].isNull()) + linesObject.groupCode = valueLinesLine["GroupCode"].asString(); lines_.push_back(linesObject); } + if(!value["SuggestSetDefaultLine"].isNull()) + suggestSetDefaultLine_ = value["SuggestSetDefaultLine"].asString() == "true"; } @@ -80,3 +82,8 @@ std::vector DescribeGtmAcc return lines_; } +bool DescribeGtmAccessStrategyAvailableConfigResult::getSuggestSetDefaultLine()const +{ + return suggestSetDefaultLine_; +} + diff --git a/alidns/src/model/DescribeGtmAccessStrategyRequest.cc b/alidns/src/model/DescribeGtmAccessStrategyRequest.cc index ea0852eee..8e83156e0 100644 --- a/alidns/src/model/DescribeGtmAccessStrategyRequest.cc +++ b/alidns/src/model/DescribeGtmAccessStrategyRequest.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::Alidns::Model::DescribeGtmAccessStrategyRequest; - -DescribeGtmAccessStrategyRequest::DescribeGtmAccessStrategyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAccessStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmAccessStrategyRequest::~DescribeGtmAccessStrategyRequest() -{} - -std::string DescribeGtmAccessStrategyRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmAccessStrategyRequest; + +DescribeGtmAccessStrategyRequest::DescribeGtmAccessStrategyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAccessStrategy") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +DescribeGtmAccessStrategyRequest::~DescribeGtmAccessStrategyRequest() {} + +std::string DescribeGtmAccessStrategyRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeGtmAccessStrategyRequest::getStrategyId()const -{ - return strategyId_; +void DescribeGtmAccessStrategyRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmAccessStrategyRequest::setStrategyId(const std::string& strategyId) -{ - strategyId_ = strategyId; - setParameter("StrategyId", strategyId); +std::string DescribeGtmAccessStrategyRequest::getStrategyId() const { + return strategyId_; } -std::string DescribeGtmAccessStrategyRequest::getLang()const -{ - return lang_; +void DescribeGtmAccessStrategyRequest::setStrategyId(const std::string &strategyId) { + strategyId_ = strategyId; + setParameter(std::string("StrategyId"), strategyId); } -void DescribeGtmAccessStrategyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmAccessStrategyRequest::getLang() const { + return lang_; +} + +void DescribeGtmAccessStrategyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmAccessStrategyResult.cc b/alidns/src/model/DescribeGtmAccessStrategyResult.cc index db7ec3911..54f2e1228 100644 --- a/alidns/src/model/DescribeGtmAccessStrategyResult.cc +++ b/alidns/src/model/DescribeGtmAccessStrategyResult.cc @@ -43,44 +43,44 @@ void DescribeGtmAccessStrategyResult::parse(const std::string &payload) for (auto valueLinesLine : allLinesNode) { Line linesObject; + if(!valueLinesLine["GroupName"].isNull()) + linesObject.groupName = valueLinesLine["GroupName"].asString(); if(!valueLinesLine["LineCode"].isNull()) linesObject.lineCode = valueLinesLine["LineCode"].asString(); if(!valueLinesLine["LineName"].isNull()) linesObject.lineName = valueLinesLine["LineName"].asString(); if(!valueLinesLine["GroupCode"].isNull()) linesObject.groupCode = valueLinesLine["GroupCode"].asString(); - if(!valueLinesLine["GroupName"].isNull()) - linesObject.groupName = valueLinesLine["GroupName"].asString(); lines_.push_back(linesObject); } - if(!value["StrategyId"].isNull()) - strategyId_ = value["StrategyId"].asString(); - if(!value["StrategyName"].isNull()) - strategyName_ = value["StrategyName"].asString(); - if(!value["DefultAddrPoolId"].isNull()) - defultAddrPoolId_ = value["DefultAddrPoolId"].asString(); - if(!value["DefaultAddrPoolName"].isNull()) - defaultAddrPoolName_ = value["DefaultAddrPoolName"].asString(); - if(!value["FailoverAddrPoolId"].isNull()) - failoverAddrPoolId_ = value["FailoverAddrPoolId"].asString(); - if(!value["FailoverAddrPoolName"].isNull()) - failoverAddrPoolName_ = value["FailoverAddrPoolName"].asString(); - if(!value["StrategyMode"].isNull()) - strategyMode_ = value["StrategyMode"].asString(); - if(!value["AccessMode"].isNull()) - accessMode_ = value["AccessMode"].asString(); - if(!value["AccessStatus"].isNull()) - accessStatus_ = value["AccessStatus"].asString(); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); + if(!value["StrategyId"].isNull()) + strategyId_ = value["StrategyId"].asString(); if(!value["DefaultAddrPoolStatus"].isNull()) defaultAddrPoolStatus_ = value["DefaultAddrPoolStatus"].asString(); - if(!value["FailoverAddrPoolStatus"].isNull()) - failoverAddrPoolStatus_ = value["FailoverAddrPoolStatus"].asString(); + if(!value["FailoverAddrPoolId"].isNull()) + failoverAddrPoolId_ = value["FailoverAddrPoolId"].asString(); + if(!value["AccessStatus"].isNull()) + accessStatus_ = value["AccessStatus"].asString(); if(!value["DefaultAddrPoolMonitorStatus"].isNull()) defaultAddrPoolMonitorStatus_ = value["DefaultAddrPoolMonitorStatus"].asString(); + if(!value["DefaultAddrPoolName"].isNull()) + defaultAddrPoolName_ = value["DefaultAddrPoolName"].asString(); + if(!value["DefultAddrPoolId"].isNull()) + defultAddrPoolId_ = value["DefultAddrPoolId"].asString(); + if(!value["StrategyName"].isNull()) + strategyName_ = value["StrategyName"].asString(); + if(!value["FailoverAddrPoolStatus"].isNull()) + failoverAddrPoolStatus_ = value["FailoverAddrPoolStatus"].asString(); + if(!value["AccessMode"].isNull()) + accessMode_ = value["AccessMode"].asString(); + if(!value["StrategyMode"].isNull()) + strategyMode_ = value["StrategyMode"].asString(); if(!value["FailoverAddrPoolMonitorStatus"].isNull()) failoverAddrPoolMonitorStatus_ = value["FailoverAddrPoolMonitorStatus"].asString(); + if(!value["FailoverAddrPoolName"].isNull()) + failoverAddrPoolName_ = value["FailoverAddrPoolName"].asString(); } @@ -144,16 +144,16 @@ std::string DescribeGtmAccessStrategyResult::getStrategyMode()const return strategyMode_; } -std::string DescribeGtmAccessStrategyResult::getFailoverAddrPoolName()const -{ - return failoverAddrPoolName_; -} - std::string DescribeGtmAccessStrategyResult::getFailoverAddrPoolMonitorStatus()const { return failoverAddrPoolMonitorStatus_; } +std::string DescribeGtmAccessStrategyResult::getFailoverAddrPoolName()const +{ + return failoverAddrPoolName_; +} + std::vector DescribeGtmAccessStrategyResult::getLines()const { return lines_; diff --git a/alidns/src/model/DescribeGtmAvailableAlertGroupRequest.cc b/alidns/src/model/DescribeGtmAvailableAlertGroupRequest.cc index db19278a9..37dfe35af 100644 --- a/alidns/src/model/DescribeGtmAvailableAlertGroupRequest.cc +++ b/alidns/src/model/DescribeGtmAvailableAlertGroupRequest.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::Alidns::Model::DescribeGtmAvailableAlertGroupRequest; - -DescribeGtmAvailableAlertGroupRequest::DescribeGtmAvailableAlertGroupRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAvailableAlertGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmAvailableAlertGroupRequest::~DescribeGtmAvailableAlertGroupRequest() -{} - -std::string DescribeGtmAvailableAlertGroupRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmAvailableAlertGroupRequest; + +DescribeGtmAvailableAlertGroupRequest::DescribeGtmAvailableAlertGroupRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmAvailableAlertGroup") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmAvailableAlertGroupRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +DescribeGtmAvailableAlertGroupRequest::~DescribeGtmAvailableAlertGroupRequest() {} + +std::string DescribeGtmAvailableAlertGroupRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeGtmAvailableAlertGroupRequest::getLang()const -{ - return lang_; +void DescribeGtmAvailableAlertGroupRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmAvailableAlertGroupRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmAvailableAlertGroupRequest::getLang() const { + return lang_; +} + +void DescribeGtmAvailableAlertGroupRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmInstanceAddressPoolRequest.cc b/alidns/src/model/DescribeGtmInstanceAddressPoolRequest.cc index c3f3577ea..f9892517a 100644 --- a/alidns/src/model/DescribeGtmInstanceAddressPoolRequest.cc +++ b/alidns/src/model/DescribeGtmInstanceAddressPoolRequest.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::Alidns::Model::DescribeGtmInstanceAddressPoolRequest; - -DescribeGtmInstanceAddressPoolRequest::DescribeGtmInstanceAddressPoolRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceAddressPool") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmInstanceAddressPoolRequest::~DescribeGtmInstanceAddressPoolRequest() -{} - -std::string DescribeGtmInstanceAddressPoolRequest::getAddrPoolId()const -{ - return addrPoolId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmInstanceAddressPoolRequest; + +DescribeGtmInstanceAddressPoolRequest::DescribeGtmInstanceAddressPoolRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceAddressPool") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmInstanceAddressPoolRequest::setAddrPoolId(const std::string& addrPoolId) -{ - addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); +DescribeGtmInstanceAddressPoolRequest::~DescribeGtmInstanceAddressPoolRequest() {} + +std::string DescribeGtmInstanceAddressPoolRequest::getAddrPoolId() const { + return addrPoolId_; } -std::string DescribeGtmInstanceAddressPoolRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeGtmInstanceAddressPoolRequest::setAddrPoolId(const std::string &addrPoolId) { + addrPoolId_ = addrPoolId; + setParameter(std::string("AddrPoolId"), addrPoolId); } -void DescribeGtmInstanceAddressPoolRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeGtmInstanceAddressPoolRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeGtmInstanceAddressPoolRequest::getLang()const -{ - return lang_; +void DescribeGtmInstanceAddressPoolRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmInstanceAddressPoolRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmInstanceAddressPoolRequest::getLang() const { + return lang_; +} + +void DescribeGtmInstanceAddressPoolRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmInstanceAddressPoolResult.cc b/alidns/src/model/DescribeGtmInstanceAddressPoolResult.cc index fe82d1775..35a706115 100644 --- a/alidns/src/model/DescribeGtmInstanceAddressPoolResult.cc +++ b/alidns/src/model/DescribeGtmInstanceAddressPoolResult.cc @@ -43,50 +43,50 @@ void DescribeGtmInstanceAddressPoolResult::parse(const std::string &payload) for (auto valueAddrsAddr : allAddrsNode) { Addr addrsObject; - if(!valueAddrsAddr["AddrId"].isNull()) - addrsObject.addrId = std::stol(valueAddrsAddr["AddrId"].asString()); - if(!valueAddrsAddr["CreateTime"].isNull()) - addrsObject.createTime = valueAddrsAddr["CreateTime"].asString(); - if(!valueAddrsAddr["CreateTimestamp"].isNull()) - addrsObject.createTimestamp = std::stol(valueAddrsAddr["CreateTimestamp"].asString()); - if(!valueAddrsAddr["UpdateTime"].isNull()) - addrsObject.updateTime = valueAddrsAddr["UpdateTime"].asString(); - if(!valueAddrsAddr["UpdateTimestamp"].isNull()) - addrsObject.updateTimestamp = std::stol(valueAddrsAddr["UpdateTimestamp"].asString()); if(!valueAddrsAddr["Value"].isNull()) addrsObject.value = valueAddrsAddr["Value"].asString(); - if(!valueAddrsAddr["LbaWeight"].isNull()) - addrsObject.lbaWeight = std::stoi(valueAddrsAddr["LbaWeight"].asString()); - if(!valueAddrsAddr["Mode"].isNull()) - addrsObject.mode = valueAddrsAddr["Mode"].asString(); + if(!valueAddrsAddr["UpdateTimestamp"].isNull()) + addrsObject.updateTimestamp = std::stol(valueAddrsAddr["UpdateTimestamp"].asString()); + if(!valueAddrsAddr["UpdateTime"].isNull()) + addrsObject.updateTime = valueAddrsAddr["UpdateTime"].asString(); if(!valueAddrsAddr["AlertStatus"].isNull()) addrsObject.alertStatus = valueAddrsAddr["AlertStatus"].asString(); + if(!valueAddrsAddr["LbaWeight"].isNull()) + addrsObject.lbaWeight = std::stoi(valueAddrsAddr["LbaWeight"].asString()); + if(!valueAddrsAddr["CreateTime"].isNull()) + addrsObject.createTime = valueAddrsAddr["CreateTime"].asString(); + if(!valueAddrsAddr["AddrId"].isNull()) + addrsObject.addrId = std::stol(valueAddrsAddr["AddrId"].asString()); + if(!valueAddrsAddr["Mode"].isNull()) + addrsObject.mode = valueAddrsAddr["Mode"].asString(); + if(!valueAddrsAddr["CreateTimestamp"].isNull()) + addrsObject.createTimestamp = std::stol(valueAddrsAddr["CreateTimestamp"].asString()); addrs_.push_back(addrsObject); } - if(!value["AddrPoolId"].isNull()) - addrPoolId_ = value["AddrPoolId"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); - if(!value["CreateTimestamp"].isNull()) - createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); - if(!value["UpdateTime"].isNull()) - updateTime_ = value["UpdateTime"].asString(); - if(!value["UpdateTimestamp"].isNull()) - updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString()); - if(!value["AddrCount"].isNull()) - addrCount_ = std::stoi(value["AddrCount"].asString()); - if(!value["MinAvailableAddrNum"].isNull()) - minAvailableAddrNum_ = std::stoi(value["MinAvailableAddrNum"].asString()); - if(!value["MonitorConfigId"].isNull()) - monitorConfigId_ = value["MonitorConfigId"].asString(); - if(!value["MonitorStatus"].isNull()) - monitorStatus_ = value["MonitorStatus"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["AddrCount"].isNull()) + addrCount_ = std::stoi(value["AddrCount"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); if(!value["Type"].isNull()) type_ = value["Type"].asString(); + if(!value["UpdateTime"].isNull()) + updateTime_ = value["UpdateTime"].asString(); + if(!value["AddrPoolId"].isNull()) + addrPoolId_ = value["AddrPoolId"].asString(); + if(!value["UpdateTimestamp"].isNull()) + updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString()); + if(!value["MonitorConfigId"].isNull()) + monitorConfigId_ = value["MonitorConfigId"].asString(); + if(!value["MinAvailableAddrNum"].isNull()) + minAvailableAddrNum_ = std::stoi(value["MinAvailableAddrNum"].asString()); + if(!value["MonitorStatus"].isNull()) + monitorStatus_ = value["MonitorStatus"].asString(); + if(!value["CreateTimestamp"].isNull()) + createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); } @@ -120,34 +120,29 @@ std::string DescribeGtmInstanceAddressPoolResult::getType()const return type_; } -std::string DescribeGtmInstanceAddressPoolResult::getAddrPoolId()const -{ - return addrPoolId_; -} - std::string DescribeGtmInstanceAddressPoolResult::getUpdateTime()const { return updateTime_; } +std::string DescribeGtmInstanceAddressPoolResult::getAddrPoolId()const +{ + return addrPoolId_; +} + long DescribeGtmInstanceAddressPoolResult::getUpdateTimestamp()const { return updateTimestamp_; } -int DescribeGtmInstanceAddressPoolResult::getMinAvailableAddrNum()const -{ - return minAvailableAddrNum_; -} - std::string DescribeGtmInstanceAddressPoolResult::getMonitorConfigId()const { return monitorConfigId_; } -long DescribeGtmInstanceAddressPoolResult::getCreateTimestamp()const +int DescribeGtmInstanceAddressPoolResult::getMinAvailableAddrNum()const { - return createTimestamp_; + return minAvailableAddrNum_; } std::string DescribeGtmInstanceAddressPoolResult::getMonitorStatus()const @@ -155,3 +150,8 @@ std::string DescribeGtmInstanceAddressPoolResult::getMonitorStatus()const return monitorStatus_; } +long DescribeGtmInstanceAddressPoolResult::getCreateTimestamp()const +{ + return createTimestamp_; +} + diff --git a/alidns/src/model/DescribeGtmInstanceAddressPoolsRequest.cc b/alidns/src/model/DescribeGtmInstanceAddressPoolsRequest.cc index 84fae187e..43287860a 100644 --- a/alidns/src/model/DescribeGtmInstanceAddressPoolsRequest.cc +++ b/alidns/src/model/DescribeGtmInstanceAddressPoolsRequest.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::Alidns::Model::DescribeGtmInstanceAddressPoolsRequest; - -DescribeGtmInstanceAddressPoolsRequest::DescribeGtmInstanceAddressPoolsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceAddressPools") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmInstanceAddressPoolsRequest::~DescribeGtmInstanceAddressPoolsRequest() -{} - -int DescribeGtmInstanceAddressPoolsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmInstanceAddressPoolsRequest; + +DescribeGtmInstanceAddressPoolsRequest::DescribeGtmInstanceAddressPoolsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceAddressPools") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmInstanceAddressPoolsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeGtmInstanceAddressPoolsRequest::~DescribeGtmInstanceAddressPoolsRequest() {} + +int DescribeGtmInstanceAddressPoolsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeGtmInstanceAddressPoolsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeGtmInstanceAddressPoolsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeGtmInstanceAddressPoolsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeGtmInstanceAddressPoolsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeGtmInstanceAddressPoolsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeGtmInstanceAddressPoolsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeGtmInstanceAddressPoolsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeGtmInstanceAddressPoolsRequest::getUserClientIp() const { + return userClientIp_; } -int DescribeGtmInstanceAddressPoolsRequest::getPageSize()const -{ - return pageSize_; +void DescribeGtmInstanceAddressPoolsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmInstanceAddressPoolsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeGtmInstanceAddressPoolsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeGtmInstanceAddressPoolsRequest::getLang()const -{ - return lang_; +void DescribeGtmInstanceAddressPoolsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeGtmInstanceAddressPoolsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmInstanceAddressPoolsRequest::getLang() const { + return lang_; +} + +void DescribeGtmInstanceAddressPoolsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmInstanceAddressPoolsResult.cc b/alidns/src/model/DescribeGtmInstanceAddressPoolsResult.cc index ee3cb4d5d..b34f268c3 100644 --- a/alidns/src/model/DescribeGtmInstanceAddressPoolsResult.cc +++ b/alidns/src/model/DescribeGtmInstanceAddressPoolsResult.cc @@ -43,40 +43,40 @@ void DescribeGtmInstanceAddressPoolsResult::parse(const std::string &payload) for (auto valueAddrPoolsAddrPool : allAddrPoolsNode) { AddrPool addrPoolsObject; - if(!valueAddrPoolsAddrPool["AddrPoolId"].isNull()) - addrPoolsObject.addrPoolId = valueAddrPoolsAddrPool["AddrPoolId"].asString(); - if(!valueAddrPoolsAddrPool["CreateTime"].isNull()) - addrPoolsObject.createTime = valueAddrPoolsAddrPool["CreateTime"].asString(); - if(!valueAddrPoolsAddrPool["CreateTimestamp"].isNull()) - addrPoolsObject.createTimestamp = std::stol(valueAddrPoolsAddrPool["CreateTimestamp"].asString()); - if(!valueAddrPoolsAddrPool["UpdateTime"].isNull()) - addrPoolsObject.updateTime = valueAddrPoolsAddrPool["UpdateTime"].asString(); - if(!valueAddrPoolsAddrPool["UpdateTimestamp"].isNull()) - addrPoolsObject.updateTimestamp = std::stol(valueAddrPoolsAddrPool["UpdateTimestamp"].asString()); - if(!valueAddrPoolsAddrPool["AddrCount"].isNull()) - addrPoolsObject.addrCount = std::stoi(valueAddrPoolsAddrPool["AddrCount"].asString()); - if(!valueAddrPoolsAddrPool["MinAvailableAddrNum"].isNull()) - addrPoolsObject.minAvailableAddrNum = std::stoi(valueAddrPoolsAddrPool["MinAvailableAddrNum"].asString()); - if(!valueAddrPoolsAddrPool["MonitorConfigId"].isNull()) - addrPoolsObject.monitorConfigId = valueAddrPoolsAddrPool["MonitorConfigId"].asString(); - if(!valueAddrPoolsAddrPool["MonitorStatus"].isNull()) - addrPoolsObject.monitorStatus = valueAddrPoolsAddrPool["MonitorStatus"].asString(); - if(!valueAddrPoolsAddrPool["Name"].isNull()) - addrPoolsObject.name = valueAddrPoolsAddrPool["Name"].asString(); - if(!valueAddrPoolsAddrPool["Status"].isNull()) - addrPoolsObject.status = valueAddrPoolsAddrPool["Status"].asString(); if(!valueAddrPoolsAddrPool["Type"].isNull()) addrPoolsObject.type = valueAddrPoolsAddrPool["Type"].asString(); + if(!valueAddrPoolsAddrPool["Status"].isNull()) + addrPoolsObject.status = valueAddrPoolsAddrPool["Status"].asString(); + if(!valueAddrPoolsAddrPool["UpdateTime"].isNull()) + addrPoolsObject.updateTime = valueAddrPoolsAddrPool["UpdateTime"].asString(); + if(!valueAddrPoolsAddrPool["CreateTime"].isNull()) + addrPoolsObject.createTime = valueAddrPoolsAddrPool["CreateTime"].asString(); + if(!valueAddrPoolsAddrPool["MonitorConfigId"].isNull()) + addrPoolsObject.monitorConfigId = valueAddrPoolsAddrPool["MonitorConfigId"].asString(); + if(!valueAddrPoolsAddrPool["MinAvailableAddrNum"].isNull()) + addrPoolsObject.minAvailableAddrNum = std::stoi(valueAddrPoolsAddrPool["MinAvailableAddrNum"].asString()); + if(!valueAddrPoolsAddrPool["UpdateTimestamp"].isNull()) + addrPoolsObject.updateTimestamp = std::stol(valueAddrPoolsAddrPool["UpdateTimestamp"].asString()); + if(!valueAddrPoolsAddrPool["MonitorStatus"].isNull()) + addrPoolsObject.monitorStatus = valueAddrPoolsAddrPool["MonitorStatus"].asString(); + if(!valueAddrPoolsAddrPool["AddrPoolId"].isNull()) + addrPoolsObject.addrPoolId = valueAddrPoolsAddrPool["AddrPoolId"].asString(); + if(!valueAddrPoolsAddrPool["Name"].isNull()) + addrPoolsObject.name = valueAddrPoolsAddrPool["Name"].asString(); + if(!valueAddrPoolsAddrPool["AddrCount"].isNull()) + addrPoolsObject.addrCount = std::stoi(valueAddrPoolsAddrPool["AddrCount"].asString()); + if(!valueAddrPoolsAddrPool["CreateTimestamp"].isNull()) + addrPoolsObject.createTimestamp = std::stol(valueAddrPoolsAddrPool["CreateTimestamp"].asString()); addrPools_.push_back(addrPoolsObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].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["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeGtmInstanceRequest.cc b/alidns/src/model/DescribeGtmInstanceRequest.cc index a3b308b6a..09c0fe63c 100644 --- a/alidns/src/model/DescribeGtmInstanceRequest.cc +++ b/alidns/src/model/DescribeGtmInstanceRequest.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::Alidns::Model::DescribeGtmInstanceRequest; - -DescribeGtmInstanceRequest::DescribeGtmInstanceRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmInstanceRequest::~DescribeGtmInstanceRequest() -{} - -std::string DescribeGtmInstanceRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmInstanceRequest; + +DescribeGtmInstanceRequest::DescribeGtmInstanceRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstance") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeGtmInstanceRequest::~DescribeGtmInstanceRequest() {} + +std::string DescribeGtmInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeGtmInstanceRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeGtmInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeGtmInstanceRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeGtmInstanceRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeGtmInstanceRequest::getLang()const -{ - return lang_; +void DescribeGtmInstanceRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmInstanceRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmInstanceRequest::getLang() const { + return lang_; } -bool DescribeGtmInstanceRequest::getNeedDetailAttributes()const -{ - return needDetailAttributes_; +void DescribeGtmInstanceRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeGtmInstanceRequest::setNeedDetailAttributes(bool needDetailAttributes) -{ - needDetailAttributes_ = needDetailAttributes; - setParameter("NeedDetailAttributes", needDetailAttributes ? "true" : "false"); +bool DescribeGtmInstanceRequest::getNeedDetailAttributes() const { + return needDetailAttributes_; +} + +void DescribeGtmInstanceRequest::setNeedDetailAttributes(bool needDetailAttributes) { + needDetailAttributes_ = needDetailAttributes; + setParameter(std::string("NeedDetailAttributes"), needDetailAttributes ? "true" : "false"); } diff --git a/alidns/src/model/DescribeGtmInstanceStatusRequest.cc b/alidns/src/model/DescribeGtmInstanceStatusRequest.cc index b987cbef0..a7f43234f 100644 --- a/alidns/src/model/DescribeGtmInstanceStatusRequest.cc +++ b/alidns/src/model/DescribeGtmInstanceStatusRequest.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::Alidns::Model::DescribeGtmInstanceStatusRequest; - -DescribeGtmInstanceStatusRequest::DescribeGtmInstanceStatusRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmInstanceStatusRequest::~DescribeGtmInstanceStatusRequest() -{} - -std::string DescribeGtmInstanceStatusRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmInstanceStatusRequest; + +DescribeGtmInstanceStatusRequest::DescribeGtmInstanceStatusRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceStatus") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmInstanceStatusRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeGtmInstanceStatusRequest::~DescribeGtmInstanceStatusRequest() {} + +std::string DescribeGtmInstanceStatusRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeGtmInstanceStatusRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeGtmInstanceStatusRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeGtmInstanceStatusRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeGtmInstanceStatusRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeGtmInstanceStatusRequest::getLang()const -{ - return lang_; +void DescribeGtmInstanceStatusRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmInstanceStatusRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmInstanceStatusRequest::getLang() const { + return lang_; +} + +void DescribeGtmInstanceStatusRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmInstanceStatusResult.cc b/alidns/src/model/DescribeGtmInstanceStatusResult.cc index 3aa3762c9..d804c3a24 100644 --- a/alidns/src/model/DescribeGtmInstanceStatusResult.cc +++ b/alidns/src/model/DescribeGtmInstanceStatusResult.cc @@ -39,18 +39,18 @@ void DescribeGtmInstanceStatusResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["StrategyNotAvailableNum"].isNull()) + strategyNotAvailableNum_ = std::stoi(value["StrategyNotAvailableNum"].asString()); + if(!value["SwitchToFailoverStrategyNum"].isNull()) + switchToFailoverStrategyNum_ = std::stoi(value["SwitchToFailoverStrategyNum"].asString()); + if(!value["StatusReason"].isNull()) + statusReason_ = value["StatusReason"].asString(); if(!value["AddrNotAvailableNum"].isNull()) addrNotAvailableNum_ = std::stoi(value["AddrNotAvailableNum"].asString()); if(!value["AddrPoolNotAvailableNum"].isNull()) addrPoolNotAvailableNum_ = std::stoi(value["AddrPoolNotAvailableNum"].asString()); - if(!value["SwitchToFailoverStrategyNum"].isNull()) - switchToFailoverStrategyNum_ = std::stoi(value["SwitchToFailoverStrategyNum"].asString()); - if(!value["StrategyNotAvailableNum"].isNull()) - strategyNotAvailableNum_ = std::stoi(value["StrategyNotAvailableNum"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["StatusReason"].isNull()) - statusReason_ = value["StatusReason"].asString(); } diff --git a/alidns/src/model/DescribeGtmInstanceSystemCnameRequest.cc b/alidns/src/model/DescribeGtmInstanceSystemCnameRequest.cc index 2f6d6d5e0..ceb4817fe 100644 --- a/alidns/src/model/DescribeGtmInstanceSystemCnameRequest.cc +++ b/alidns/src/model/DescribeGtmInstanceSystemCnameRequest.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::Alidns::Model::DescribeGtmInstanceSystemCnameRequest; - -DescribeGtmInstanceSystemCnameRequest::DescribeGtmInstanceSystemCnameRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceSystemCname") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmInstanceSystemCnameRequest::~DescribeGtmInstanceSystemCnameRequest() -{} - -std::string DescribeGtmInstanceSystemCnameRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmInstanceSystemCnameRequest; + +DescribeGtmInstanceSystemCnameRequest::DescribeGtmInstanceSystemCnameRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstanceSystemCname") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmInstanceSystemCnameRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeGtmInstanceSystemCnameRequest::~DescribeGtmInstanceSystemCnameRequest() {} + +std::string DescribeGtmInstanceSystemCnameRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeGtmInstanceSystemCnameRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeGtmInstanceSystemCnameRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeGtmInstanceSystemCnameRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeGtmInstanceSystemCnameRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeGtmInstanceSystemCnameRequest::getLang()const -{ - return lang_; +void DescribeGtmInstanceSystemCnameRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmInstanceSystemCnameRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmInstanceSystemCnameRequest::getLang() const { + return lang_; +} + +void DescribeGtmInstanceSystemCnameRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmInstancesRequest.cc b/alidns/src/model/DescribeGtmInstancesRequest.cc index 800bdbdf4..fce756133 100644 --- a/alidns/src/model/DescribeGtmInstancesRequest.cc +++ b/alidns/src/model/DescribeGtmInstancesRequest.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::Alidns::Model::DescribeGtmInstancesRequest; - -DescribeGtmInstancesRequest::DescribeGtmInstancesRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmInstancesRequest::~DescribeGtmInstancesRequest() -{} - -int DescribeGtmInstancesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmInstancesRequest; + +DescribeGtmInstancesRequest::DescribeGtmInstancesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeGtmInstancesRequest::~DescribeGtmInstancesRequest() {} + +int DescribeGtmInstancesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeGtmInstancesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeGtmInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeGtmInstancesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeGtmInstancesRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeGtmInstancesRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeGtmInstancesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeGtmInstancesRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeGtmInstancesRequest::getUserClientIp() const { + return userClientIp_; } -int DescribeGtmInstancesRequest::getPageSize()const -{ - return pageSize_; +void DescribeGtmInstancesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeGtmInstancesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeGtmInstancesRequest::getLang()const -{ - return lang_; +void DescribeGtmInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeGtmInstancesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmInstancesRequest::getLang() const { + return lang_; } -std::string DescribeGtmInstancesRequest::getKeyword()const -{ - return keyword_; +void DescribeGtmInstancesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeGtmInstancesRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeGtmInstancesRequest::getKeyword() const { + return keyword_; } -bool DescribeGtmInstancesRequest::getNeedDetailAttributes()const -{ - return needDetailAttributes_; +void DescribeGtmInstancesRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } -void DescribeGtmInstancesRequest::setNeedDetailAttributes(bool needDetailAttributes) -{ - needDetailAttributes_ = needDetailAttributes; - setParameter("NeedDetailAttributes", needDetailAttributes ? "true" : "false"); +bool DescribeGtmInstancesRequest::getNeedDetailAttributes() const { + return needDetailAttributes_; +} + +void DescribeGtmInstancesRequest::setNeedDetailAttributes(bool needDetailAttributes) { + needDetailAttributes_ = needDetailAttributes; + setParameter(std::string("NeedDetailAttributes"), needDetailAttributes ? "true" : "false"); } diff --git a/alidns/src/model/DescribeGtmLogsRequest.cc b/alidns/src/model/DescribeGtmLogsRequest.cc index c51a7aa33..abe758b69 100644 --- a/alidns/src/model/DescribeGtmLogsRequest.cc +++ b/alidns/src/model/DescribeGtmLogsRequest.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::Alidns::Model::DescribeGtmLogsRequest; - -DescribeGtmLogsRequest::DescribeGtmLogsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmLogs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmLogsRequest::~DescribeGtmLogsRequest() -{} - -long DescribeGtmLogsRequest::getStartTimestamp()const -{ - return startTimestamp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmLogsRequest; + +DescribeGtmLogsRequest::DescribeGtmLogsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmLogs") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmLogsRequest::setStartTimestamp(long startTimestamp) -{ - startTimestamp_ = startTimestamp; - setParameter("StartTimestamp", std::to_string(startTimestamp)); +DescribeGtmLogsRequest::~DescribeGtmLogsRequest() {} + +long DescribeGtmLogsRequest::getStartTimestamp() const { + return startTimestamp_; } -int DescribeGtmLogsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeGtmLogsRequest::setStartTimestamp(long startTimestamp) { + startTimestamp_ = startTimestamp; + setParameter(std::string("StartTimestamp"), std::to_string(startTimestamp)); } -void DescribeGtmLogsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeGtmLogsRequest::getPageNumber() const { + return pageNumber_; } -long DescribeGtmLogsRequest::getEndTimestamp()const -{ - return endTimestamp_; +void DescribeGtmLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeGtmLogsRequest::setEndTimestamp(long endTimestamp) -{ - endTimestamp_ = endTimestamp; - setParameter("EndTimestamp", std::to_string(endTimestamp)); +long DescribeGtmLogsRequest::getEndTimestamp() const { + return endTimestamp_; } -std::string DescribeGtmLogsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeGtmLogsRequest::setEndTimestamp(long endTimestamp) { + endTimestamp_ = endTimestamp; + setParameter(std::string("EndTimestamp"), std::to_string(endTimestamp)); } -void DescribeGtmLogsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeGtmLogsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeGtmLogsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeGtmLogsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeGtmLogsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeGtmLogsRequest::getUserClientIp() const { + return userClientIp_; } -int DescribeGtmLogsRequest::getPageSize()const -{ - return pageSize_; +void DescribeGtmLogsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmLogsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeGtmLogsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeGtmLogsRequest::getLang()const -{ - return lang_; +void DescribeGtmLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeGtmLogsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmLogsRequest::getLang() const { + return lang_; } -std::string DescribeGtmLogsRequest::getKeyword()const -{ - return keyword_; +void DescribeGtmLogsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeGtmLogsRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeGtmLogsRequest::getKeyword() const { + return keyword_; +} + +void DescribeGtmLogsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } diff --git a/alidns/src/model/DescribeGtmLogsResult.cc b/alidns/src/model/DescribeGtmLogsResult.cc index 763ca87cb..285f5a914 100644 --- a/alidns/src/model/DescribeGtmLogsResult.cc +++ b/alidns/src/model/DescribeGtmLogsResult.cc @@ -43,34 +43,34 @@ void DescribeGtmLogsResult::parse(const std::string &payload) for (auto valueLogsLog : allLogsNode) { Log logsObject; - if(!valueLogsLog["OperTime"].isNull()) - logsObject.operTime = valueLogsLog["OperTime"].asString(); - if(!valueLogsLog["OperAction"].isNull()) - logsObject.operAction = valueLogsLog["OperAction"].asString(); - if(!valueLogsLog["EntityType"].isNull()) - logsObject.entityType = valueLogsLog["EntityType"].asString(); - if(!valueLogsLog["EntityId"].isNull()) - logsObject.entityId = valueLogsLog["EntityId"].asString(); - if(!valueLogsLog["EntityName"].isNull()) - logsObject.entityName = valueLogsLog["EntityName"].asString(); - if(!valueLogsLog["OperIp"].isNull()) - logsObject.operIp = valueLogsLog["OperIp"].asString(); if(!valueLogsLog["OperTimestamp"].isNull()) logsObject.operTimestamp = std::stol(valueLogsLog["OperTimestamp"].asString()); - if(!valueLogsLog["Id"].isNull()) - logsObject.id = std::stol(valueLogsLog["Id"].asString()); + if(!valueLogsLog["EntityId"].isNull()) + logsObject.entityId = valueLogsLog["EntityId"].asString(); + if(!valueLogsLog["EntityType"].isNull()) + logsObject.entityType = valueLogsLog["EntityType"].asString(); + if(!valueLogsLog["OperTime"].isNull()) + logsObject.operTime = valueLogsLog["OperTime"].asString(); + if(!valueLogsLog["OperIp"].isNull()) + logsObject.operIp = valueLogsLog["OperIp"].asString(); + if(!valueLogsLog["OperAction"].isNull()) + logsObject.operAction = valueLogsLog["OperAction"].asString(); if(!valueLogsLog["Content"].isNull()) logsObject.content = valueLogsLog["Content"].asString(); + if(!valueLogsLog["EntityName"].isNull()) + logsObject.entityName = valueLogsLog["EntityName"].asString(); + if(!valueLogsLog["Id"].isNull()) + logsObject.id = std::stol(valueLogsLog["Id"].asString()); logs_.push_back(logsObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeGtmMonitorAvailableConfigRequest.cc b/alidns/src/model/DescribeGtmMonitorAvailableConfigRequest.cc index 32c17c9ea..4b02a96bb 100644 --- a/alidns/src/model/DescribeGtmMonitorAvailableConfigRequest.cc +++ b/alidns/src/model/DescribeGtmMonitorAvailableConfigRequest.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::Alidns::Model::DescribeGtmMonitorAvailableConfigRequest; - -DescribeGtmMonitorAvailableConfigRequest::DescribeGtmMonitorAvailableConfigRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmMonitorAvailableConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmMonitorAvailableConfigRequest::~DescribeGtmMonitorAvailableConfigRequest() -{} - -std::string DescribeGtmMonitorAvailableConfigRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmMonitorAvailableConfigRequest; + +DescribeGtmMonitorAvailableConfigRequest::DescribeGtmMonitorAvailableConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmMonitorAvailableConfig") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmMonitorAvailableConfigRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +DescribeGtmMonitorAvailableConfigRequest::~DescribeGtmMonitorAvailableConfigRequest() {} + +std::string DescribeGtmMonitorAvailableConfigRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeGtmMonitorAvailableConfigRequest::getLang()const -{ - return lang_; +void DescribeGtmMonitorAvailableConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmMonitorAvailableConfigRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmMonitorAvailableConfigRequest::getLang() const { + return lang_; +} + +void DescribeGtmMonitorAvailableConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmMonitorAvailableConfigResult.cc b/alidns/src/model/DescribeGtmMonitorAvailableConfigResult.cc index 750fa3e2a..9605217f7 100644 --- a/alidns/src/model/DescribeGtmMonitorAvailableConfigResult.cc +++ b/alidns/src/model/DescribeGtmMonitorAvailableConfigResult.cc @@ -43,22 +43,22 @@ void DescribeGtmMonitorAvailableConfigResult::parse(const std::string &payload) for (auto valueIspCityNodesIspCityNode : allIspCityNodesNode) { IspCityNode ispCityNodesObject; - if(!valueIspCityNodesIspCityNode["IspName"].isNull()) - ispCityNodesObject.ispName = valueIspCityNodesIspCityNode["IspName"].asString(); + if(!valueIspCityNodesIspCityNode["CityCode"].isNull()) + ispCityNodesObject.cityCode = valueIspCityNodesIspCityNode["CityCode"].asString(); + if(!valueIspCityNodesIspCityNode["Mainland"].isNull()) + ispCityNodesObject.mainland = valueIspCityNodesIspCityNode["Mainland"].asString() == "true"; + if(!valueIspCityNodesIspCityNode["GroupName"].isNull()) + ispCityNodesObject.groupName = valueIspCityNodesIspCityNode["GroupName"].asString(); if(!valueIspCityNodesIspCityNode["IspCode"].isNull()) ispCityNodesObject.ispCode = valueIspCityNodesIspCityNode["IspCode"].asString(); if(!valueIspCityNodesIspCityNode["CityName"].isNull()) ispCityNodesObject.cityName = valueIspCityNodesIspCityNode["CityName"].asString(); - if(!valueIspCityNodesIspCityNode["CityCode"].isNull()) - ispCityNodesObject.cityCode = valueIspCityNodesIspCityNode["CityCode"].asString(); - if(!valueIspCityNodesIspCityNode["DefaultSelected"].isNull()) - ispCityNodesObject.defaultSelected = valueIspCityNodesIspCityNode["DefaultSelected"].asString() == "true"; - if(!valueIspCityNodesIspCityNode["Mainland"].isNull()) - ispCityNodesObject.mainland = valueIspCityNodesIspCityNode["Mainland"].asString() == "true"; + if(!valueIspCityNodesIspCityNode["IspName"].isNull()) + ispCityNodesObject.ispName = valueIspCityNodesIspCityNode["IspName"].asString(); if(!valueIspCityNodesIspCityNode["GroupType"].isNull()) ispCityNodesObject.groupType = valueIspCityNodesIspCityNode["GroupType"].asString(); - if(!valueIspCityNodesIspCityNode["GroupName"].isNull()) - ispCityNodesObject.groupName = valueIspCityNodesIspCityNode["GroupName"].asString(); + if(!valueIspCityNodesIspCityNode["DefaultSelected"].isNull()) + ispCityNodesObject.defaultSelected = valueIspCityNodesIspCityNode["DefaultSelected"].asString() == "true"; ispCityNodes_.push_back(ispCityNodesObject); } diff --git a/alidns/src/model/DescribeGtmMonitorConfigRequest.cc b/alidns/src/model/DescribeGtmMonitorConfigRequest.cc index d44240be4..24401972d 100644 --- a/alidns/src/model/DescribeGtmMonitorConfigRequest.cc +++ b/alidns/src/model/DescribeGtmMonitorConfigRequest.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::Alidns::Model::DescribeGtmMonitorConfigRequest; - -DescribeGtmMonitorConfigRequest::DescribeGtmMonitorConfigRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmMonitorConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmMonitorConfigRequest::~DescribeGtmMonitorConfigRequest() -{} - -std::string DescribeGtmMonitorConfigRequest::getMonitorConfigId()const -{ - return monitorConfigId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmMonitorConfigRequest; + +DescribeGtmMonitorConfigRequest::DescribeGtmMonitorConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmMonitorConfig") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmMonitorConfigRequest::setMonitorConfigId(const std::string& monitorConfigId) -{ - monitorConfigId_ = monitorConfigId; - setParameter("MonitorConfigId", monitorConfigId); +DescribeGtmMonitorConfigRequest::~DescribeGtmMonitorConfigRequest() {} + +std::string DescribeGtmMonitorConfigRequest::getMonitorConfigId() const { + return monitorConfigId_; } -std::string DescribeGtmMonitorConfigRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeGtmMonitorConfigRequest::setMonitorConfigId(const std::string &monitorConfigId) { + monitorConfigId_ = monitorConfigId; + setParameter(std::string("MonitorConfigId"), monitorConfigId); } -void DescribeGtmMonitorConfigRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeGtmMonitorConfigRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeGtmMonitorConfigRequest::getLang()const -{ - return lang_; +void DescribeGtmMonitorConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmMonitorConfigRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmMonitorConfigRequest::getLang() const { + return lang_; +} + +void DescribeGtmMonitorConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmMonitorConfigResult.cc b/alidns/src/model/DescribeGtmMonitorConfigResult.cc index 170d733e0..8bc87fd6c 100644 --- a/alidns/src/model/DescribeGtmMonitorConfigResult.cc +++ b/alidns/src/model/DescribeGtmMonitorConfigResult.cc @@ -43,40 +43,40 @@ void DescribeGtmMonitorConfigResult::parse(const std::string &payload) for (auto valueIspCityNodesIspCityNode : allIspCityNodesNode) { IspCityNode ispCityNodesObject; - if(!valueIspCityNodesIspCityNode["CountryName"].isNull()) - ispCityNodesObject.countryName = valueIspCityNodesIspCityNode["CountryName"].asString(); - if(!valueIspCityNodesIspCityNode["CountryCode"].isNull()) - ispCityNodesObject.countryCode = valueIspCityNodesIspCityNode["CountryCode"].asString(); - if(!valueIspCityNodesIspCityNode["CityName"].isNull()) - ispCityNodesObject.cityName = valueIspCityNodesIspCityNode["CityName"].asString(); if(!valueIspCityNodesIspCityNode["CityCode"].isNull()) ispCityNodesObject.cityCode = valueIspCityNodesIspCityNode["CityCode"].asString(); + if(!valueIspCityNodesIspCityNode["CountryName"].isNull()) + ispCityNodesObject.countryName = valueIspCityNodesIspCityNode["CountryName"].asString(); if(!valueIspCityNodesIspCityNode["IspCode"].isNull()) ispCityNodesObject.ispCode = valueIspCityNodesIspCityNode["IspCode"].asString(); + if(!valueIspCityNodesIspCityNode["CityName"].isNull()) + ispCityNodesObject.cityName = valueIspCityNodesIspCityNode["CityName"].asString(); + if(!valueIspCityNodesIspCityNode["CountryCode"].isNull()) + ispCityNodesObject.countryCode = valueIspCityNodesIspCityNode["CountryCode"].asString(); if(!valueIspCityNodesIspCityNode["IspName"].isNull()) ispCityNodesObject.ispName = valueIspCityNodesIspCityNode["IspName"].asString(); ispCityNodes_.push_back(ispCityNodesObject); } - if(!value["MonitorConfigId"].isNull()) - monitorConfigId_ = value["MonitorConfigId"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); - if(!value["CreateTimestamp"].isNull()) - createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); - if(!value["UpdateTime"].isNull()) - updateTime_ = value["UpdateTime"].asString(); - if(!value["UpdateTimestamp"].isNull()) - updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString()); - if(!value["ProtocolType"].isNull()) - protocolType_ = value["ProtocolType"].asString(); - if(!value["Interval"].isNull()) - interval_ = std::stoi(value["Interval"].asString()); - if(!value["EvaluationCount"].isNull()) - evaluationCount_ = std::stoi(value["EvaluationCount"].asString()); if(!value["Timeout"].isNull()) timeout_ = std::stoi(value["Timeout"].asString()); + if(!value["ProtocolType"].isNull()) + protocolType_ = value["ProtocolType"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["UpdateTime"].isNull()) + updateTime_ = value["UpdateTime"].asString(); + if(!value["EvaluationCount"].isNull()) + evaluationCount_ = std::stoi(value["EvaluationCount"].asString()); + if(!value["UpdateTimestamp"].isNull()) + updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString()); if(!value["MonitorExtendInfo"].isNull()) monitorExtendInfo_ = value["MonitorExtendInfo"].asString(); + if(!value["MonitorConfigId"].isNull()) + monitorConfigId_ = value["MonitorConfigId"].asString(); + if(!value["CreateTimestamp"].isNull()) + createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); + if(!value["Interval"].isNull()) + interval_ = std::stoi(value["Interval"].asString()); } @@ -85,16 +85,16 @@ std::vector DescribeGtmMonitorConfi return ispCityNodes_; } -std::string DescribeGtmMonitorConfigResult::getProtocolType()const -{ - return protocolType_; -} - int DescribeGtmMonitorConfigResult::getTimeout()const { return timeout_; } +std::string DescribeGtmMonitorConfigResult::getProtocolType()const +{ + return protocolType_; +} + std::string DescribeGtmMonitorConfigResult::getCreateTime()const { return createTime_; diff --git a/alidns/src/model/DescribeGtmRecoveryPlanAvailableConfigRequest.cc b/alidns/src/model/DescribeGtmRecoveryPlanAvailableConfigRequest.cc index 237237454..4705c5d51 100644 --- a/alidns/src/model/DescribeGtmRecoveryPlanAvailableConfigRequest.cc +++ b/alidns/src/model/DescribeGtmRecoveryPlanAvailableConfigRequest.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::Alidns::Model::DescribeGtmRecoveryPlanAvailableConfigRequest; - -DescribeGtmRecoveryPlanAvailableConfigRequest::DescribeGtmRecoveryPlanAvailableConfigRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmRecoveryPlanAvailableConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmRecoveryPlanAvailableConfigRequest::~DescribeGtmRecoveryPlanAvailableConfigRequest() -{} - -std::string DescribeGtmRecoveryPlanAvailableConfigRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmRecoveryPlanAvailableConfigRequest; + +DescribeGtmRecoveryPlanAvailableConfigRequest::DescribeGtmRecoveryPlanAvailableConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmRecoveryPlanAvailableConfig") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmRecoveryPlanAvailableConfigRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +DescribeGtmRecoveryPlanAvailableConfigRequest::~DescribeGtmRecoveryPlanAvailableConfigRequest() {} + +std::string DescribeGtmRecoveryPlanAvailableConfigRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeGtmRecoveryPlanAvailableConfigRequest::getLang()const -{ - return lang_; +void DescribeGtmRecoveryPlanAvailableConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmRecoveryPlanAvailableConfigRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmRecoveryPlanAvailableConfigRequest::getLang() const { + return lang_; +} + +void DescribeGtmRecoveryPlanAvailableConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmRecoveryPlanAvailableConfigResult.cc b/alidns/src/model/DescribeGtmRecoveryPlanAvailableConfigResult.cc index 628607fc8..735fa8699 100644 --- a/alidns/src/model/DescribeGtmRecoveryPlanAvailableConfigResult.cc +++ b/alidns/src/model/DescribeGtmRecoveryPlanAvailableConfigResult.cc @@ -43,10 +43,10 @@ void DescribeGtmRecoveryPlanAvailableConfigResult::parse(const std::string &payl for (auto valueInstancesInstance : allInstancesNode) { Instance instancesObject; - if(!valueInstancesInstance["InstanceId"].isNull()) - instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); if(!valueInstancesInstance["InstanceName"].isNull()) instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString(); + if(!valueInstancesInstance["InstanceId"].isNull()) + instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); auto allAddrPoolsNode = valueInstancesInstance["AddrPools"]["AddrPool"]; for (auto valueInstancesInstanceAddrPoolsAddrPool : allAddrPoolsNode) { diff --git a/alidns/src/model/DescribeGtmRecoveryPlanRequest.cc b/alidns/src/model/DescribeGtmRecoveryPlanRequest.cc index 434335932..18fc22c0b 100644 --- a/alidns/src/model/DescribeGtmRecoveryPlanRequest.cc +++ b/alidns/src/model/DescribeGtmRecoveryPlanRequest.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::Alidns::Model::DescribeGtmRecoveryPlanRequest; - -DescribeGtmRecoveryPlanRequest::DescribeGtmRecoveryPlanRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmRecoveryPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmRecoveryPlanRequest::~DescribeGtmRecoveryPlanRequest() -{} - -std::string DescribeGtmRecoveryPlanRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmRecoveryPlanRequest; + +DescribeGtmRecoveryPlanRequest::DescribeGtmRecoveryPlanRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmRecoveryPlan") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmRecoveryPlanRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +DescribeGtmRecoveryPlanRequest::~DescribeGtmRecoveryPlanRequest() {} + +std::string DescribeGtmRecoveryPlanRequest::getUserClientIp() const { + return userClientIp_; } -long DescribeGtmRecoveryPlanRequest::getRecoveryPlanId()const -{ - return recoveryPlanId_; +void DescribeGtmRecoveryPlanRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) -{ - recoveryPlanId_ = recoveryPlanId; - setParameter("RecoveryPlanId", std::to_string(recoveryPlanId)); +long DescribeGtmRecoveryPlanRequest::getRecoveryPlanId() const { + return recoveryPlanId_; } -std::string DescribeGtmRecoveryPlanRequest::getLang()const -{ - return lang_; +void DescribeGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) { + recoveryPlanId_ = recoveryPlanId; + setParameter(std::string("RecoveryPlanId"), std::to_string(recoveryPlanId)); } -void DescribeGtmRecoveryPlanRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmRecoveryPlanRequest::getLang() const { + return lang_; +} + +void DescribeGtmRecoveryPlanRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeGtmRecoveryPlanResult.cc b/alidns/src/model/DescribeGtmRecoveryPlanResult.cc index 5dd2b8a5c..8de8b802e 100644 --- a/alidns/src/model/DescribeGtmRecoveryPlanResult.cc +++ b/alidns/src/model/DescribeGtmRecoveryPlanResult.cc @@ -45,50 +45,50 @@ void DescribeGtmRecoveryPlanResult::parse(const std::string &payload) FaultAddrPool faultAddrPoolsObject; if(!valueFaultAddrPoolsFaultAddrPool["AddrPoolId"].isNull()) faultAddrPoolsObject.addrPoolId = valueFaultAddrPoolsFaultAddrPool["AddrPoolId"].asString(); - if(!valueFaultAddrPoolsFaultAddrPool["AddrPoolName"].isNull()) - faultAddrPoolsObject.addrPoolName = valueFaultAddrPoolsFaultAddrPool["AddrPoolName"].asString(); if(!valueFaultAddrPoolsFaultAddrPool["InstanceId"].isNull()) faultAddrPoolsObject.instanceId = valueFaultAddrPoolsFaultAddrPool["InstanceId"].asString(); + if(!valueFaultAddrPoolsFaultAddrPool["AddrPoolName"].isNull()) + faultAddrPoolsObject.addrPoolName = valueFaultAddrPoolsFaultAddrPool["AddrPoolName"].asString(); auto allAddrsNode = valueFaultAddrPoolsFaultAddrPool["Addrs"]["Addr"]; for (auto valueFaultAddrPoolsFaultAddrPoolAddrsAddr : allAddrsNode) { FaultAddrPool::Addr addrsObject; - if(!valueFaultAddrPoolsFaultAddrPoolAddrsAddr["Id"].isNull()) - addrsObject.id = std::stol(valueFaultAddrPoolsFaultAddrPoolAddrsAddr["Id"].asString()); - if(!valueFaultAddrPoolsFaultAddrPoolAddrsAddr["Mode"].isNull()) - addrsObject.mode = valueFaultAddrPoolsFaultAddrPoolAddrsAddr["Mode"].asString(); if(!valueFaultAddrPoolsFaultAddrPoolAddrsAddr["Value"].isNull()) addrsObject.value = valueFaultAddrPoolsFaultAddrPoolAddrsAddr["Value"].asString(); + if(!valueFaultAddrPoolsFaultAddrPoolAddrsAddr["Mode"].isNull()) + addrsObject.mode = valueFaultAddrPoolsFaultAddrPoolAddrsAddr["Mode"].asString(); + if(!valueFaultAddrPoolsFaultAddrPoolAddrsAddr["Id"].isNull()) + addrsObject.id = std::stol(valueFaultAddrPoolsFaultAddrPoolAddrsAddr["Id"].asString()); faultAddrPoolsObject.addrs.push_back(addrsObject); } faultAddrPools_.push_back(faultAddrPoolsObject); } - if(!value["RecoveryPlanId"].isNull()) - recoveryPlanId_ = std::stol(value["RecoveryPlanId"].asString()); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["Remark"].isNull()) - remark_ = value["Remark"].asString(); - if(!value["FaultAddrPoolNum"].isNull()) - faultAddrPoolNum_ = std::stoi(value["FaultAddrPoolNum"].asString()); if(!value["Status"].isNull()) status_ = value["Status"].asString(); - if(!value["LastExecuteTime"].isNull()) - lastExecuteTime_ = value["LastExecuteTime"].asString(); - if(!value["LastExecuteTimestamp"].isNull()) - lastExecuteTimestamp_ = std::stol(value["LastExecuteTimestamp"].asString()); if(!value["LastRollbackTime"].isNull()) lastRollbackTime_ = value["LastRollbackTime"].asString(); - if(!value["LastRollbackTimestamp"].isNull()) - lastRollbackTimestamp_ = std::stol(value["LastRollbackTimestamp"].asString()); + if(!value["FaultAddrPoolNum"].isNull()) + faultAddrPoolNum_ = std::stoi(value["FaultAddrPoolNum"].asString()); + if(!value["LastExecuteTime"].isNull()) + lastExecuteTime_ = value["LastExecuteTime"].asString(); if(!value["CreateTime"].isNull()) createTime_ = value["CreateTime"].asString(); - if(!value["CreateTimestamp"].isNull()) - createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); + if(!value["LastExecuteTimestamp"].isNull()) + lastExecuteTimestamp_ = std::stol(value["LastExecuteTimestamp"].asString()); + if(!value["Remark"].isNull()) + remark_ = value["Remark"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["RecoveryPlanId"].isNull()) + recoveryPlanId_ = std::stol(value["RecoveryPlanId"].asString()); if(!value["UpdateTime"].isNull()) updateTime_ = value["UpdateTime"].asString(); if(!value["UpdateTimestamp"].isNull()) updateTimestamp_ = std::stol(value["UpdateTimestamp"].asString()); + if(!value["LastRollbackTimestamp"].isNull()) + lastRollbackTimestamp_ = std::stol(value["LastRollbackTimestamp"].asString()); + if(!value["CreateTimestamp"].isNull()) + createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); } @@ -127,16 +127,16 @@ long DescribeGtmRecoveryPlanResult::getLastExecuteTimestamp()const return lastExecuteTimestamp_; } -std::string DescribeGtmRecoveryPlanResult::getName()const -{ - return name_; -} - std::string DescribeGtmRecoveryPlanResult::getRemark()const { return remark_; } +std::string DescribeGtmRecoveryPlanResult::getName()const +{ + return name_; +} + long DescribeGtmRecoveryPlanResult::getRecoveryPlanId()const { return recoveryPlanId_; diff --git a/alidns/src/model/DescribeGtmRecoveryPlansRequest.cc b/alidns/src/model/DescribeGtmRecoveryPlansRequest.cc index 55546728b..85ebd6278 100644 --- a/alidns/src/model/DescribeGtmRecoveryPlansRequest.cc +++ b/alidns/src/model/DescribeGtmRecoveryPlansRequest.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::Alidns::Model::DescribeGtmRecoveryPlansRequest; - -DescribeGtmRecoveryPlansRequest::DescribeGtmRecoveryPlansRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmRecoveryPlans") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGtmRecoveryPlansRequest::~DescribeGtmRecoveryPlansRequest() -{} - -int DescribeGtmRecoveryPlansRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeGtmRecoveryPlansRequest; + +DescribeGtmRecoveryPlansRequest::DescribeGtmRecoveryPlansRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeGtmRecoveryPlans") { + setMethod(HttpRequest::Method::Post); } -void DescribeGtmRecoveryPlansRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeGtmRecoveryPlansRequest::~DescribeGtmRecoveryPlansRequest() {} + +int DescribeGtmRecoveryPlansRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeGtmRecoveryPlansRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeGtmRecoveryPlansRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeGtmRecoveryPlansRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeGtmRecoveryPlansRequest::getUserClientIp() const { + return userClientIp_; } -int DescribeGtmRecoveryPlansRequest::getPageSize()const -{ - return pageSize_; +void DescribeGtmRecoveryPlansRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeGtmRecoveryPlansRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeGtmRecoveryPlansRequest::getPageSize() const { + return pageSize_; } -std::string DescribeGtmRecoveryPlansRequest::getLang()const -{ - return lang_; +void DescribeGtmRecoveryPlansRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeGtmRecoveryPlansRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeGtmRecoveryPlansRequest::getLang() const { + return lang_; } -std::string DescribeGtmRecoveryPlansRequest::getKeyword()const -{ - return keyword_; +void DescribeGtmRecoveryPlansRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeGtmRecoveryPlansRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeGtmRecoveryPlansRequest::getKeyword() const { + return keyword_; +} + +void DescribeGtmRecoveryPlansRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } diff --git a/alidns/src/model/DescribeGtmRecoveryPlansResult.cc b/alidns/src/model/DescribeGtmRecoveryPlansResult.cc index 43c77751e..8be6e3449 100644 --- a/alidns/src/model/DescribeGtmRecoveryPlansResult.cc +++ b/alidns/src/model/DescribeGtmRecoveryPlansResult.cc @@ -43,42 +43,42 @@ void DescribeGtmRecoveryPlansResult::parse(const std::string &payload) for (auto valueRecoveryPlansRecoveryPlan : allRecoveryPlansNode) { RecoveryPlan recoveryPlansObject; - if(!valueRecoveryPlansRecoveryPlan["RecoveryPlanId"].isNull()) - recoveryPlansObject.recoveryPlanId = std::stol(valueRecoveryPlansRecoveryPlan["RecoveryPlanId"].asString()); - if(!valueRecoveryPlansRecoveryPlan["Name"].isNull()) - recoveryPlansObject.name = valueRecoveryPlansRecoveryPlan["Name"].asString(); - if(!valueRecoveryPlansRecoveryPlan["Remark"].isNull()) - recoveryPlansObject.remark = valueRecoveryPlansRecoveryPlan["Remark"].asString(); - if(!valueRecoveryPlansRecoveryPlan["FaultAddrPoolNum"].isNull()) - recoveryPlansObject.faultAddrPoolNum = std::stoi(valueRecoveryPlansRecoveryPlan["FaultAddrPoolNum"].asString()); - if(!valueRecoveryPlansRecoveryPlan["LastExecuteTime"].isNull()) - recoveryPlansObject.lastExecuteTime = valueRecoveryPlansRecoveryPlan["LastExecuteTime"].asString(); - if(!valueRecoveryPlansRecoveryPlan["LastExecuteTimestamp"].isNull()) - recoveryPlansObject.lastExecuteTimestamp = std::stol(valueRecoveryPlansRecoveryPlan["LastExecuteTimestamp"].asString()); - if(!valueRecoveryPlansRecoveryPlan["LastRollbackTime"].isNull()) - recoveryPlansObject.lastRollbackTime = valueRecoveryPlansRecoveryPlan["LastRollbackTime"].asString(); - if(!valueRecoveryPlansRecoveryPlan["LastRollbackTimestamp"].isNull()) - recoveryPlansObject.lastRollbackTimestamp = std::stol(valueRecoveryPlansRecoveryPlan["LastRollbackTimestamp"].asString()); - if(!valueRecoveryPlansRecoveryPlan["CreateTime"].isNull()) - recoveryPlansObject.createTime = valueRecoveryPlansRecoveryPlan["CreateTime"].asString(); - if(!valueRecoveryPlansRecoveryPlan["CreateTimestamp"].isNull()) - recoveryPlansObject.createTimestamp = std::stol(valueRecoveryPlansRecoveryPlan["CreateTimestamp"].asString()); - if(!valueRecoveryPlansRecoveryPlan["UpdateTime"].isNull()) - recoveryPlansObject.updateTime = valueRecoveryPlansRecoveryPlan["UpdateTime"].asString(); - if(!valueRecoveryPlansRecoveryPlan["UpdateTimestamp"].isNull()) - recoveryPlansObject.updateTimestamp = std::stol(valueRecoveryPlansRecoveryPlan["UpdateTimestamp"].asString()); if(!valueRecoveryPlansRecoveryPlan["Status"].isNull()) recoveryPlansObject.status = valueRecoveryPlansRecoveryPlan["Status"].asString(); + if(!valueRecoveryPlansRecoveryPlan["LastRollbackTimestamp"].isNull()) + recoveryPlansObject.lastRollbackTimestamp = std::stol(valueRecoveryPlansRecoveryPlan["LastRollbackTimestamp"].asString()); + if(!valueRecoveryPlansRecoveryPlan["UpdateTime"].isNull()) + recoveryPlansObject.updateTime = valueRecoveryPlansRecoveryPlan["UpdateTime"].asString(); + if(!valueRecoveryPlansRecoveryPlan["Remark"].isNull()) + recoveryPlansObject.remark = valueRecoveryPlansRecoveryPlan["Remark"].asString(); + if(!valueRecoveryPlansRecoveryPlan["CreateTime"].isNull()) + recoveryPlansObject.createTime = valueRecoveryPlansRecoveryPlan["CreateTime"].asString(); + if(!valueRecoveryPlansRecoveryPlan["RecoveryPlanId"].isNull()) + recoveryPlansObject.recoveryPlanId = std::stol(valueRecoveryPlansRecoveryPlan["RecoveryPlanId"].asString()); + if(!valueRecoveryPlansRecoveryPlan["UpdateTimestamp"].isNull()) + recoveryPlansObject.updateTimestamp = std::stol(valueRecoveryPlansRecoveryPlan["UpdateTimestamp"].asString()); + if(!valueRecoveryPlansRecoveryPlan["LastExecuteTimestamp"].isNull()) + recoveryPlansObject.lastExecuteTimestamp = std::stol(valueRecoveryPlansRecoveryPlan["LastExecuteTimestamp"].asString()); + if(!valueRecoveryPlansRecoveryPlan["LastExecuteTime"].isNull()) + recoveryPlansObject.lastExecuteTime = valueRecoveryPlansRecoveryPlan["LastExecuteTime"].asString(); + if(!valueRecoveryPlansRecoveryPlan["LastRollbackTime"].isNull()) + recoveryPlansObject.lastRollbackTime = valueRecoveryPlansRecoveryPlan["LastRollbackTime"].asString(); + if(!valueRecoveryPlansRecoveryPlan["Name"].isNull()) + recoveryPlansObject.name = valueRecoveryPlansRecoveryPlan["Name"].asString(); + if(!valueRecoveryPlansRecoveryPlan["FaultAddrPoolNum"].isNull()) + recoveryPlansObject.faultAddrPoolNum = std::stoi(valueRecoveryPlansRecoveryPlan["FaultAddrPoolNum"].asString()); + if(!valueRecoveryPlansRecoveryPlan["CreateTimestamp"].isNull()) + recoveryPlansObject.createTimestamp = std::stol(valueRecoveryPlansRecoveryPlan["CreateTimestamp"].asString()); recoveryPlans_.push_back(recoveryPlansObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].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["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeInstanceDomainsRequest.cc b/alidns/src/model/DescribeInstanceDomainsRequest.cc index cf0f99b6f..ce49520a0 100644 --- a/alidns/src/model/DescribeInstanceDomainsRequest.cc +++ b/alidns/src/model/DescribeInstanceDomainsRequest.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::Alidns::Model::DescribeInstanceDomainsRequest; - -DescribeInstanceDomainsRequest::DescribeInstanceDomainsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeInstanceDomains") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceDomainsRequest::~DescribeInstanceDomainsRequest() -{} - -long DescribeInstanceDomainsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeInstanceDomainsRequest; + +DescribeInstanceDomainsRequest::DescribeInstanceDomainsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeInstanceDomains") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceDomainsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribeInstanceDomainsRequest::~DescribeInstanceDomainsRequest() {} + +long DescribeInstanceDomainsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeInstanceDomainsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstanceDomainsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeInstanceDomainsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeInstanceDomainsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeInstanceDomainsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeInstanceDomainsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeInstanceDomainsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeInstanceDomainsRequest::getUserClientIp() const { + return userClientIp_; } -long DescribeInstanceDomainsRequest::getPageSize()const -{ - return pageSize_; +void DescribeInstanceDomainsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeInstanceDomainsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeInstanceDomainsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeInstanceDomainsRequest::getLang()const -{ - return lang_; +void DescribeInstanceDomainsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeInstanceDomainsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeInstanceDomainsRequest::getLang() const { + return lang_; +} + +void DescribeInstanceDomainsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeInstanceDomainsResult.cc b/alidns/src/model/DescribeInstanceDomainsResult.cc index 0062b44e4..02384536a 100644 --- a/alidns/src/model/DescribeInstanceDomainsResult.cc +++ b/alidns/src/model/DescribeInstanceDomainsResult.cc @@ -43,22 +43,22 @@ void DescribeInstanceDomainsResult::parse(const std::string &payload) for (auto valueInstanceDomainsInstanceDomain : allInstanceDomainsNode) { InstanceDomain instanceDomainsObject; - if(!valueInstanceDomainsInstanceDomain["DomainName"].isNull()) - instanceDomainsObject.domainName = valueInstanceDomainsInstanceDomain["DomainName"].asString(); if(!valueInstanceDomainsInstanceDomain["CreateTime"].isNull()) instanceDomainsObject.createTime = valueInstanceDomainsInstanceDomain["CreateTime"].asString(); + if(!valueInstanceDomainsInstanceDomain["DomainName"].isNull()) + instanceDomainsObject.domainName = valueInstanceDomainsInstanceDomain["DomainName"].asString(); if(!valueInstanceDomainsInstanceDomain["CreateTimestamp"].isNull()) instanceDomainsObject.createTimestamp = std::stol(valueInstanceDomainsInstanceDomain["CreateTimestamp"].asString()); instanceDomains_.push_back(instanceDomainsObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].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["TotalPages"].isNull()) totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeIspFlushCacheInstancesRequest.cc b/alidns/src/model/DescribeIspFlushCacheInstancesRequest.cc new file mode 100644 index 000000000..673f0dfc6 --- /dev/null +++ b/alidns/src/model/DescribeIspFlushCacheInstancesRequest.cc @@ -0,0 +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::Alidns::Model::DescribeIspFlushCacheInstancesRequest; + +DescribeIspFlushCacheInstancesRequest::DescribeIspFlushCacheInstancesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeIspFlushCacheInstances") { + setMethod(HttpRequest::Method::Post); +} + +DescribeIspFlushCacheInstancesRequest::~DescribeIspFlushCacheInstancesRequest() {} + +std::string DescribeIspFlushCacheInstancesRequest::getIsp() const { + return isp_; +} + +void DescribeIspFlushCacheInstancesRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); +} + +std::string DescribeIspFlushCacheInstancesRequest::getOrderBy() const { + return orderBy_; +} + +void DescribeIspFlushCacheInstancesRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); +} + +std::string DescribeIspFlushCacheInstancesRequest::getType() const { + return type_; +} + +void DescribeIspFlushCacheInstancesRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +int DescribeIspFlushCacheInstancesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeIspFlushCacheInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeIspFlushCacheInstancesRequest::getUserClientIp() const { + return userClientIp_; +} + +void DescribeIspFlushCacheInstancesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); +} + +int DescribeIspFlushCacheInstancesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeIspFlushCacheInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeIspFlushCacheInstancesRequest::getLang() const { + return lang_; +} + +void DescribeIspFlushCacheInstancesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DescribeIspFlushCacheInstancesRequest::getKeyword() const { + return keyword_; +} + +void DescribeIspFlushCacheInstancesRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string DescribeIspFlushCacheInstancesRequest::getDirection() const { + return direction_; +} + +void DescribeIspFlushCacheInstancesRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); +} + diff --git a/alidns/src/model/DescribeIspFlushCacheInstancesResult.cc b/alidns/src/model/DescribeIspFlushCacheInstancesResult.cc new file mode 100644 index 000000000..ebb3725c8 --- /dev/null +++ b/alidns/src/model/DescribeIspFlushCacheInstancesResult.cc @@ -0,0 +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 +#include + +using namespace AlibabaCloud::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +DescribeIspFlushCacheInstancesResult::DescribeIspFlushCacheInstancesResult() : + ServiceResult() +{} + +DescribeIspFlushCacheInstancesResult::DescribeIspFlushCacheInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIspFlushCacheInstancesResult::~DescribeIspFlushCacheInstancesResult() +{} + +void DescribeIspFlushCacheInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIspFlushCacheInstancesNode = value["IspFlushCacheInstances"]["IspFlushCacheInstance"]; + for (auto valueIspFlushCacheInstancesIspFlushCacheInstance : allIspFlushCacheInstancesNode) + { + IspFlushCacheInstance ispFlushCacheInstancesObject; + if(!valueIspFlushCacheInstancesIspFlushCacheInstance["Isp"].isNull()) + ispFlushCacheInstancesObject.isp = valueIspFlushCacheInstancesIspFlushCacheInstance["Isp"].asString(); + if(!valueIspFlushCacheInstancesIspFlushCacheInstance["ExpireTime"].isNull()) + ispFlushCacheInstancesObject.expireTime = valueIspFlushCacheInstancesIspFlushCacheInstance["ExpireTime"].asString(); + if(!valueIspFlushCacheInstancesIspFlushCacheInstance["InstanceId"].isNull()) + ispFlushCacheInstancesObject.instanceId = valueIspFlushCacheInstancesIspFlushCacheInstance["InstanceId"].asString(); + if(!valueIspFlushCacheInstancesIspFlushCacheInstance["ExpireTimestamp"].isNull()) + ispFlushCacheInstancesObject.expireTimestamp = std::stol(valueIspFlushCacheInstancesIspFlushCacheInstance["ExpireTimestamp"].asString()); + if(!valueIspFlushCacheInstancesIspFlushCacheInstance["InstanceName"].isNull()) + ispFlushCacheInstancesObject.instanceName = valueIspFlushCacheInstancesIspFlushCacheInstance["InstanceName"].asString(); + if(!valueIspFlushCacheInstancesIspFlushCacheInstance["VersionCode"].isNull()) + ispFlushCacheInstancesObject.versionCode = valueIspFlushCacheInstancesIspFlushCacheInstance["VersionCode"].asString(); + if(!valueIspFlushCacheInstancesIspFlushCacheInstance["Status"].isNull()) + ispFlushCacheInstancesObject.status = valueIspFlushCacheInstancesIspFlushCacheInstance["Status"].asString(); + auto quotaInfoNode = value["QuotaInfo"]; + if(!quotaInfoNode["InstanceQuota"].isNull()) + ispFlushCacheInstancesObject.quotaInfo.instanceQuota = std::stoi(quotaInfoNode["InstanceQuota"].asString()); + if(!quotaInfoNode["InstanceQuotaUsed"].isNull()) + ispFlushCacheInstancesObject.quotaInfo.instanceQuotaUsed = std::stoi(quotaInfoNode["InstanceQuotaUsed"].asString()); + ispFlushCacheInstances_.push_back(ispFlushCacheInstancesObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); + +} + +std::vector DescribeIspFlushCacheInstancesResult::getIspFlushCacheInstances()const +{ + return ispFlushCacheInstances_; +} + +int DescribeIspFlushCacheInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeIspFlushCacheInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeIspFlushCacheInstancesResult::getTotalPages()const +{ + return totalPages_; +} + +int DescribeIspFlushCacheInstancesResult::getTotalItems()const +{ + return totalItems_; +} + diff --git a/alidns/src/model/DescribeIspFlushCacheRemainQuotaRequest.cc b/alidns/src/model/DescribeIspFlushCacheRemainQuotaRequest.cc new file mode 100644 index 000000000..5a92e58bb --- /dev/null +++ b/alidns/src/model/DescribeIspFlushCacheRemainQuotaRequest.cc @@ -0,0 +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::Alidns::Model::DescribeIspFlushCacheRemainQuotaRequest; + +DescribeIspFlushCacheRemainQuotaRequest::DescribeIspFlushCacheRemainQuotaRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeIspFlushCacheRemainQuota") { + setMethod(HttpRequest::Method::Post); +} + +DescribeIspFlushCacheRemainQuotaRequest::~DescribeIspFlushCacheRemainQuotaRequest() {} + +std::string DescribeIspFlushCacheRemainQuotaRequest::getUserClientIp() const { + return userClientIp_; +} + +void DescribeIspFlushCacheRemainQuotaRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); +} + +std::string DescribeIspFlushCacheRemainQuotaRequest::getLang() const { + return lang_; +} + +void DescribeIspFlushCacheRemainQuotaRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/alidns/src/model/DescribeIspFlushCacheRemainQuotaResult.cc b/alidns/src/model/DescribeIspFlushCacheRemainQuotaResult.cc new file mode 100644 index 000000000..f909660bf --- /dev/null +++ b/alidns/src/model/DescribeIspFlushCacheRemainQuotaResult.cc @@ -0,0 +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 +#include + +using namespace AlibabaCloud::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +DescribeIspFlushCacheRemainQuotaResult::DescribeIspFlushCacheRemainQuotaResult() : + ServiceResult() +{} + +DescribeIspFlushCacheRemainQuotaResult::DescribeIspFlushCacheRemainQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIspFlushCacheRemainQuotaResult::~DescribeIspFlushCacheRemainQuotaResult() +{} + +void DescribeIspFlushCacheRemainQuotaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TelecomRemainQuota"].isNull()) + telecomRemainQuota_ = std::stoi(value["TelecomRemainQuota"].asString()); + +} + +int DescribeIspFlushCacheRemainQuotaResult::getTelecomRemainQuota()const +{ + return telecomRemainQuota_; +} + diff --git a/alidns/src/model/DescribeIspFlushCacheTaskRequest.cc b/alidns/src/model/DescribeIspFlushCacheTaskRequest.cc new file mode 100644 index 000000000..6cece1e5f --- /dev/null +++ b/alidns/src/model/DescribeIspFlushCacheTaskRequest.cc @@ -0,0 +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::Alidns::Model::DescribeIspFlushCacheTaskRequest; + +DescribeIspFlushCacheTaskRequest::DescribeIspFlushCacheTaskRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeIspFlushCacheTask") { + setMethod(HttpRequest::Method::Post); +} + +DescribeIspFlushCacheTaskRequest::~DescribeIspFlushCacheTaskRequest() {} + +std::string DescribeIspFlushCacheTaskRequest::getUserClientIp() const { + return userClientIp_; +} + +void DescribeIspFlushCacheTaskRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); +} + +std::string DescribeIspFlushCacheTaskRequest::getLang() const { + return lang_; +} + +void DescribeIspFlushCacheTaskRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DescribeIspFlushCacheTaskRequest::getTaskId() const { + return taskId_; +} + +void DescribeIspFlushCacheTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/alidns/src/model/DescribeIspFlushCacheTaskResult.cc b/alidns/src/model/DescribeIspFlushCacheTaskResult.cc new file mode 100644 index 000000000..070ff28b0 --- /dev/null +++ b/alidns/src/model/DescribeIspFlushCacheTaskResult.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +DescribeIspFlushCacheTaskResult::DescribeIspFlushCacheTaskResult() : + ServiceResult() +{} + +DescribeIspFlushCacheTaskResult::DescribeIspFlushCacheTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIspFlushCacheTaskResult::~DescribeIspFlushCacheTaskResult() +{} + +void DescribeIspFlushCacheTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFlushCacheResultsNode = value["FlushCacheResults"]["FlushCacheResult"]; + for (auto valueFlushCacheResultsFlushCacheResult : allFlushCacheResultsNode) + { + FlushCacheResult flushCacheResultsObject; + if(!valueFlushCacheResultsFlushCacheResult["Province"].isNull()) + flushCacheResultsObject.province = valueFlushCacheResultsFlushCacheResult["Province"].asString(); + auto allDnsNodesNode = valueFlushCacheResultsFlushCacheResult["DnsNodes"]["DnsNode"]; + for (auto valueFlushCacheResultsFlushCacheResultDnsNodesDnsNode : allDnsNodesNode) + { + FlushCacheResult::DnsNode dnsNodesObject; + if(!valueFlushCacheResultsFlushCacheResultDnsNodesDnsNode["NodeIp"].isNull()) + dnsNodesObject.nodeIp = valueFlushCacheResultsFlushCacheResultDnsNodesDnsNode["NodeIp"].asString(); + if(!valueFlushCacheResultsFlushCacheResultDnsNodesDnsNode["SpName"].isNull()) + dnsNodesObject.spName = valueFlushCacheResultsFlushCacheResultDnsNodesDnsNode["SpName"].asString(); + if(!valueFlushCacheResultsFlushCacheResultDnsNodesDnsNode["Status"].isNull()) + dnsNodesObject.status = valueFlushCacheResultsFlushCacheResultDnsNodesDnsNode["Status"].asString(); + auto allAnswersNode = valueFlushCacheResultsFlushCacheResultDnsNodesDnsNode["Answers"]["Answer"]; + for (auto valueFlushCacheResultsFlushCacheResultDnsNodesDnsNodeAnswersAnswer : allAnswersNode) + { + FlushCacheResult::DnsNode::Answer answersObject; + if(!valueFlushCacheResultsFlushCacheResultDnsNodesDnsNodeAnswersAnswer["Name"].isNull()) + answersObject.name = valueFlushCacheResultsFlushCacheResultDnsNodesDnsNodeAnswersAnswer["Name"].asString(); + if(!valueFlushCacheResultsFlushCacheResultDnsNodesDnsNodeAnswersAnswer["Type"].isNull()) + answersObject.type = valueFlushCacheResultsFlushCacheResultDnsNodesDnsNodeAnswersAnswer["Type"].asString(); + if(!valueFlushCacheResultsFlushCacheResultDnsNodesDnsNodeAnswersAnswer["Record"].isNull()) + answersObject.record = valueFlushCacheResultsFlushCacheResultDnsNodesDnsNodeAnswersAnswer["Record"].asString(); + if(!valueFlushCacheResultsFlushCacheResultDnsNodesDnsNodeAnswersAnswer["Ttl"].isNull()) + answersObject.ttl = std::stol(valueFlushCacheResultsFlushCacheResultDnsNodesDnsNodeAnswersAnswer["Ttl"].asString()); + dnsNodesObject.answers.push_back(answersObject); + } + flushCacheResultsObject.dnsNodes.push_back(dnsNodesObject); + } + flushCacheResults_.push_back(flushCacheResultsObject); + } + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["InstanceName"].isNull()) + instanceName_ = value["InstanceName"].asString(); + if(!value["Isp"].isNull()) + isp_ = value["Isp"].asString(); + if(!value["TaskStatus"].isNull()) + taskStatus_ = value["TaskStatus"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["CreateTimestamp"].isNull()) + createTimestamp_ = std::stol(value["CreateTimestamp"].asString()); + +} + +std::string DescribeIspFlushCacheTaskResult::getInstanceName()const +{ + return instanceName_; +} + +std::string DescribeIspFlushCacheTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string DescribeIspFlushCacheTaskResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeIspFlushCacheTaskResult::getInstanceId()const +{ + return instanceId_; +} + +std::string DescribeIspFlushCacheTaskResult::getIsp()const +{ + return isp_; +} + +std::string DescribeIspFlushCacheTaskResult::getCreateTime()const +{ + return createTime_; +} + +std::vector DescribeIspFlushCacheTaskResult::getFlushCacheResults()const +{ + return flushCacheResults_; +} + +std::string DescribeIspFlushCacheTaskResult::getTaskStatus()const +{ + return taskStatus_; +} + +long DescribeIspFlushCacheTaskResult::getCreateTimestamp()const +{ + return createTimestamp_; +} + diff --git a/alidns/src/model/DescribeIspFlushCacheTasksRequest.cc b/alidns/src/model/DescribeIspFlushCacheTasksRequest.cc new file mode 100644 index 000000000..6d1a9ff67 --- /dev/null +++ b/alidns/src/model/DescribeIspFlushCacheTasksRequest.cc @@ -0,0 +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::Alidns::Model::DescribeIspFlushCacheTasksRequest; + +DescribeIspFlushCacheTasksRequest::DescribeIspFlushCacheTasksRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeIspFlushCacheTasks") { + setMethod(HttpRequest::Method::Post); +} + +DescribeIspFlushCacheTasksRequest::~DescribeIspFlushCacheTasksRequest() {} + +std::string DescribeIspFlushCacheTasksRequest::getIsp() const { + return isp_; +} + +void DescribeIspFlushCacheTasksRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); +} + +std::string DescribeIspFlushCacheTasksRequest::getDomainName() const { + return domainName_; +} + +void DescribeIspFlushCacheTasksRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); +} + +std::string DescribeIspFlushCacheTasksRequest::getOrderBy() const { + return orderBy_; +} + +void DescribeIspFlushCacheTasksRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); +} + +int DescribeIspFlushCacheTasksRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeIspFlushCacheTasksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeIspFlushCacheTasksRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeIspFlushCacheTasksRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeIspFlushCacheTasksRequest::getUserClientIp() const { + return userClientIp_; +} + +void DescribeIspFlushCacheTasksRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); +} + +int DescribeIspFlushCacheTasksRequest::getPageSize() const { + return pageSize_; +} + +void DescribeIspFlushCacheTasksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeIspFlushCacheTasksRequest::getLang() const { + return lang_; +} + +void DescribeIspFlushCacheTasksRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DescribeIspFlushCacheTasksRequest::getDirection() const { + return direction_; +} + +void DescribeIspFlushCacheTasksRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); +} + diff --git a/alidns/src/model/DescribeIspFlushCacheTasksResult.cc b/alidns/src/model/DescribeIspFlushCacheTasksResult.cc new file mode 100644 index 000000000..2e6fd89cc --- /dev/null +++ b/alidns/src/model/DescribeIspFlushCacheTasksResult.cc @@ -0,0 +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 +#include + +using namespace AlibabaCloud::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +DescribeIspFlushCacheTasksResult::DescribeIspFlushCacheTasksResult() : + ServiceResult() +{} + +DescribeIspFlushCacheTasksResult::DescribeIspFlushCacheTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIspFlushCacheTasksResult::~DescribeIspFlushCacheTasksResult() +{} + +void DescribeIspFlushCacheTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIspFlushCacheTasksNode = value["IspFlushCacheTasks"]["IspFlushCacheTask"]; + for (auto valueIspFlushCacheTasksIspFlushCacheTask : allIspFlushCacheTasksNode) + { + IspFlushCacheTask ispFlushCacheTasksObject; + if(!valueIspFlushCacheTasksIspFlushCacheTask["TaskId"].isNull()) + ispFlushCacheTasksObject.taskId = valueIspFlushCacheTasksIspFlushCacheTask["TaskId"].asString(); + if(!valueIspFlushCacheTasksIspFlushCacheTask["DomainName"].isNull()) + ispFlushCacheTasksObject.domainName = valueIspFlushCacheTasksIspFlushCacheTask["DomainName"].asString(); + if(!valueIspFlushCacheTasksIspFlushCacheTask["InstanceId"].isNull()) + ispFlushCacheTasksObject.instanceId = valueIspFlushCacheTasksIspFlushCacheTask["InstanceId"].asString(); + if(!valueIspFlushCacheTasksIspFlushCacheTask["InstanceName"].isNull()) + ispFlushCacheTasksObject.instanceName = valueIspFlushCacheTasksIspFlushCacheTask["InstanceName"].asString(); + if(!valueIspFlushCacheTasksIspFlushCacheTask["Isp"].isNull()) + ispFlushCacheTasksObject.isp = valueIspFlushCacheTasksIspFlushCacheTask["Isp"].asString(); + if(!valueIspFlushCacheTasksIspFlushCacheTask["TaskStatus"].isNull()) + ispFlushCacheTasksObject.taskStatus = valueIspFlushCacheTasksIspFlushCacheTask["TaskStatus"].asString(); + if(!valueIspFlushCacheTasksIspFlushCacheTask["CreateTime"].isNull()) + ispFlushCacheTasksObject.createTime = valueIspFlushCacheTasksIspFlushCacheTask["CreateTime"].asString(); + if(!valueIspFlushCacheTasksIspFlushCacheTask["CreateTimestamp"].isNull()) + ispFlushCacheTasksObject.createTimestamp = std::stol(valueIspFlushCacheTasksIspFlushCacheTask["CreateTimestamp"].asString()); + ispFlushCacheTasks_.push_back(ispFlushCacheTasksObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); + +} + +std::vector DescribeIspFlushCacheTasksResult::getIspFlushCacheTasks()const +{ + return ispFlushCacheTasks_; +} + +int DescribeIspFlushCacheTasksResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeIspFlushCacheTasksResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeIspFlushCacheTasksResult::getTotalPages()const +{ + return totalPages_; +} + +int DescribeIspFlushCacheTasksResult::getTotalItems()const +{ + return totalItems_; +} + diff --git a/alidns/src/model/DescribePdnsAccountSummaryRequest.cc b/alidns/src/model/DescribePdnsAccountSummaryRequest.cc index 0fa629f9a..196897286 100644 --- a/alidns/src/model/DescribePdnsAccountSummaryRequest.cc +++ b/alidns/src/model/DescribePdnsAccountSummaryRequest.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::Alidns::Model::DescribePdnsAccountSummaryRequest; - -DescribePdnsAccountSummaryRequest::DescribePdnsAccountSummaryRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsAccountSummary") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePdnsAccountSummaryRequest::~DescribePdnsAccountSummaryRequest() -{} - -std::string DescribePdnsAccountSummaryRequest::getStartDate()const -{ - return startDate_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribePdnsAccountSummaryRequest; + +DescribePdnsAccountSummaryRequest::DescribePdnsAccountSummaryRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsAccountSummary") { + setMethod(HttpRequest::Method::Post); } -void DescribePdnsAccountSummaryRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +DescribePdnsAccountSummaryRequest::~DescribePdnsAccountSummaryRequest() {} + +std::string DescribePdnsAccountSummaryRequest::getStartDate() const { + return startDate_; } -std::string DescribePdnsAccountSummaryRequest::getEndDate()const -{ - return endDate_; +void DescribePdnsAccountSummaryRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribePdnsAccountSummaryRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribePdnsAccountSummaryRequest::getEndDate() const { + return endDate_; } -std::string DescribePdnsAccountSummaryRequest::getLang()const -{ - return lang_; +void DescribePdnsAccountSummaryRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribePdnsAccountSummaryRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribePdnsAccountSummaryRequest::getLang() const { + return lang_; +} + +void DescribePdnsAccountSummaryRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribePdnsAccountSummaryResult.cc b/alidns/src/model/DescribePdnsAccountSummaryResult.cc index ecb7bc096..d414c078d 100644 --- a/alidns/src/model/DescribePdnsAccountSummaryResult.cc +++ b/alidns/src/model/DescribePdnsAccountSummaryResult.cc @@ -40,20 +40,20 @@ void DescribePdnsAccountSummaryResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; + if(!dataNode["UserId"].isNull()) + data_.userId = std::stol(dataNode["UserId"].asString()); + if(!dataNode["DomainCount"].isNull()) + data_.domainCount = std::stol(dataNode["DomainCount"].asString()); + if(!dataNode["SubDomainCount"].isNull()) + data_.subDomainCount = std::stol(dataNode["SubDomainCount"].asString()); + if(!dataNode["HttpCount"].isNull()) + data_.httpCount = std::stol(dataNode["HttpCount"].asString()); + if(!dataNode["HttpsCount"].isNull()) + data_.httpsCount = std::stol(dataNode["HttpsCount"].asString()); if(!dataNode["TotalCount"].isNull()) data_.totalCount = std::stol(dataNode["TotalCount"].asString()); if(!dataNode["ThreatCount"].isNull()) data_.threatCount = std::stol(dataNode["ThreatCount"].asString()); - if(!dataNode["UserId"].isNull()) - data_.userId = std::stol(dataNode["UserId"].asString()); - if(!dataNode["HttpsCount"].isNull()) - data_.httpsCount = std::stol(dataNode["HttpsCount"].asString()); - if(!dataNode["HttpCount"].isNull()) - data_.httpCount = std::stol(dataNode["HttpCount"].asString()); - if(!dataNode["SubDomainCount"].isNull()) - data_.subDomainCount = std::stol(dataNode["SubDomainCount"].asString()); - if(!dataNode["DomainCount"].isNull()) - data_.domainCount = std::stol(dataNode["DomainCount"].asString()); } diff --git a/alidns/src/model/DescribePdnsAppKeyRequest.cc b/alidns/src/model/DescribePdnsAppKeyRequest.cc index 719a5b405..e5d46b6bc 100644 --- a/alidns/src/model/DescribePdnsAppKeyRequest.cc +++ b/alidns/src/model/DescribePdnsAppKeyRequest.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::Alidns::Model::DescribePdnsAppKeyRequest; - -DescribePdnsAppKeyRequest::DescribePdnsAppKeyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsAppKey") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePdnsAppKeyRequest::~DescribePdnsAppKeyRequest() -{} - -std::string DescribePdnsAppKeyRequest::getAppKeyId()const -{ - return appKeyId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribePdnsAppKeyRequest; + +DescribePdnsAppKeyRequest::DescribePdnsAppKeyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsAppKey") { + setMethod(HttpRequest::Method::Post); } -void DescribePdnsAppKeyRequest::setAppKeyId(const std::string& appKeyId) -{ - appKeyId_ = appKeyId; - setParameter("AppKeyId", appKeyId); +DescribePdnsAppKeyRequest::~DescribePdnsAppKeyRequest() {} + +std::string DescribePdnsAppKeyRequest::getAppKeyId() const { + return appKeyId_; } -std::string DescribePdnsAppKeyRequest::getLang()const -{ - return lang_; +void DescribePdnsAppKeyRequest::setAppKeyId(const std::string &appKeyId) { + appKeyId_ = appKeyId; + setParameter(std::string("AppKeyId"), appKeyId); } -void DescribePdnsAppKeyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribePdnsAppKeyRequest::getLang() const { + return lang_; +} + +void DescribePdnsAppKeyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribePdnsAppKeyResult.cc b/alidns/src/model/DescribePdnsAppKeyResult.cc index 20fce4200..78fc4c9e4 100644 --- a/alidns/src/model/DescribePdnsAppKeyResult.cc +++ b/alidns/src/model/DescribePdnsAppKeyResult.cc @@ -40,14 +40,14 @@ void DescribePdnsAppKeyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto appKeyNode = value["AppKey"]; - if(!appKeyNode["State"].isNull()) - appKey_.state = appKeyNode["State"].asString(); if(!appKeyNode["AppKeyId"].isNull()) appKey_.appKeyId = appKeyNode["AppKeyId"].asString(); - if(!appKeyNode["CreateDate"].isNull()) - appKey_.createDate = appKeyNode["CreateDate"].asString(); if(!appKeyNode["AppKeySecret"].isNull()) appKey_.appKeySecret = appKeyNode["AppKeySecret"].asString(); + if(!appKeyNode["State"].isNull()) + appKey_.state = appKeyNode["State"].asString(); + if(!appKeyNode["CreateDate"].isNull()) + appKey_.createDate = appKeyNode["CreateDate"].asString(); } diff --git a/alidns/src/model/DescribePdnsAppKeysRequest.cc b/alidns/src/model/DescribePdnsAppKeysRequest.cc index acefcb288..bf6a3dc2e 100644 --- a/alidns/src/model/DescribePdnsAppKeysRequest.cc +++ b/alidns/src/model/DescribePdnsAppKeysRequest.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::Alidns::Model::DescribePdnsAppKeysRequest; - -DescribePdnsAppKeysRequest::DescribePdnsAppKeysRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsAppKeys") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePdnsAppKeysRequest::~DescribePdnsAppKeysRequest() -{} - -std::string DescribePdnsAppKeysRequest::getLang()const -{ - return lang_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribePdnsAppKeysRequest; + +DescribePdnsAppKeysRequest::DescribePdnsAppKeysRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsAppKeys") { + setMethod(HttpRequest::Method::Post); } -void DescribePdnsAppKeysRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +DescribePdnsAppKeysRequest::~DescribePdnsAppKeysRequest() {} + +std::string DescribePdnsAppKeysRequest::getLang() const { + return lang_; +} + +void DescribePdnsAppKeysRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribePdnsAppKeysResult.cc b/alidns/src/model/DescribePdnsAppKeysResult.cc index c90af119d..e255b1690 100644 --- a/alidns/src/model/DescribePdnsAppKeysResult.cc +++ b/alidns/src/model/DescribePdnsAppKeysResult.cc @@ -43,12 +43,12 @@ void DescribePdnsAppKeysResult::parse(const std::string &payload) for (auto valueAppKeysAppKey : allAppKeysNode) { AppKey appKeysObject; - if(!valueAppKeysAppKey["State"].isNull()) - appKeysObject.state = valueAppKeysAppKey["State"].asString(); if(!valueAppKeysAppKey["AppKeyId"].isNull()) appKeysObject.appKeyId = valueAppKeysAppKey["AppKeyId"].asString(); if(!valueAppKeysAppKey["CreateDate"].isNull()) appKeysObject.createDate = valueAppKeysAppKey["CreateDate"].asString(); + if(!valueAppKeysAppKey["State"].isNull()) + appKeysObject.state = valueAppKeysAppKey["State"].asString(); appKeys_.push_back(appKeysObject); } diff --git a/alidns/src/model/DescribePdnsOperateLogsRequest.cc b/alidns/src/model/DescribePdnsOperateLogsRequest.cc index 323f51360..46e713665 100644 --- a/alidns/src/model/DescribePdnsOperateLogsRequest.cc +++ b/alidns/src/model/DescribePdnsOperateLogsRequest.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::Alidns::Model::DescribePdnsOperateLogsRequest; - -DescribePdnsOperateLogsRequest::DescribePdnsOperateLogsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsOperateLogs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePdnsOperateLogsRequest::~DescribePdnsOperateLogsRequest() -{} - -std::string DescribePdnsOperateLogsRequest::getActionType()const -{ - return actionType_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribePdnsOperateLogsRequest; + +DescribePdnsOperateLogsRequest::DescribePdnsOperateLogsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsOperateLogs") { + setMethod(HttpRequest::Method::Post); } -void DescribePdnsOperateLogsRequest::setActionType(const std::string& actionType) -{ - actionType_ = actionType; - setParameter("ActionType", actionType); +DescribePdnsOperateLogsRequest::~DescribePdnsOperateLogsRequest() {} + +std::string DescribePdnsOperateLogsRequest::getActionType() const { + return actionType_; } -std::string DescribePdnsOperateLogsRequest::getStartDate()const -{ - return startDate_; +void DescribePdnsOperateLogsRequest::setActionType(const std::string &actionType) { + actionType_ = actionType; + setParameter(std::string("ActionType"), actionType); } -void DescribePdnsOperateLogsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribePdnsOperateLogsRequest::getStartDate() const { + return startDate_; } -long DescribePdnsOperateLogsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribePdnsOperateLogsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribePdnsOperateLogsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribePdnsOperateLogsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribePdnsOperateLogsRequest::getEndDate()const -{ - return endDate_; +void DescribePdnsOperateLogsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribePdnsOperateLogsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribePdnsOperateLogsRequest::getEndDate() const { + return endDate_; } -long DescribePdnsOperateLogsRequest::getPageSize()const -{ - return pageSize_; +void DescribePdnsOperateLogsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribePdnsOperateLogsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribePdnsOperateLogsRequest::getPageSize() const { + return pageSize_; } -std::string DescribePdnsOperateLogsRequest::getLang()const -{ - return lang_; +void DescribePdnsOperateLogsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribePdnsOperateLogsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribePdnsOperateLogsRequest::getLang() const { + return lang_; } -std::string DescribePdnsOperateLogsRequest::getKeyword()const -{ - return keyword_; +void DescribePdnsOperateLogsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribePdnsOperateLogsRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribePdnsOperateLogsRequest::getKeyword() const { + return keyword_; +} + +void DescribePdnsOperateLogsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } diff --git a/alidns/src/model/DescribePdnsOperateLogsResult.cc b/alidns/src/model/DescribePdnsOperateLogsResult.cc index 241c60d9d..6d8ec6079 100644 --- a/alidns/src/model/DescribePdnsOperateLogsResult.cc +++ b/alidns/src/model/DescribePdnsOperateLogsResult.cc @@ -45,10 +45,10 @@ void DescribePdnsOperateLogsResult::parse(const std::string &payload) Log logsObject; if(!valueLogsLog["OperateTime"].isNull()) logsObject.operateTime = valueLogsLog["OperateTime"].asString(); - if(!valueLogsLog["Action"].isNull()) - logsObject.action = valueLogsLog["Action"].asString(); if(!valueLogsLog["Type"].isNull()) logsObject.type = valueLogsLog["Type"].asString(); + if(!valueLogsLog["Action"].isNull()) + logsObject.action = valueLogsLog["Action"].asString(); if(!valueLogsLog["content"].isNull()) logsObject.content = valueLogsLog["content"].asString(); logs_.push_back(logsObject); diff --git a/alidns/src/model/DescribePdnsRequestStatisticRequest.cc b/alidns/src/model/DescribePdnsRequestStatisticRequest.cc index 33f7db3f0..49d0e9bfb 100644 --- a/alidns/src/model/DescribePdnsRequestStatisticRequest.cc +++ b/alidns/src/model/DescribePdnsRequestStatisticRequest.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::Alidns::Model::DescribePdnsRequestStatisticRequest; - -DescribePdnsRequestStatisticRequest::DescribePdnsRequestStatisticRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsRequestStatistic") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePdnsRequestStatisticRequest::~DescribePdnsRequestStatisticRequest() -{} - -std::string DescribePdnsRequestStatisticRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribePdnsRequestStatisticRequest; + +DescribePdnsRequestStatisticRequest::DescribePdnsRequestStatisticRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsRequestStatistic") { + setMethod(HttpRequest::Method::Post); } -void DescribePdnsRequestStatisticRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribePdnsRequestStatisticRequest::~DescribePdnsRequestStatisticRequest() {} + +std::string DescribePdnsRequestStatisticRequest::getDomainName() const { + return domainName_; } -std::string DescribePdnsRequestStatisticRequest::getType()const -{ - return type_; +void DescribePdnsRequestStatisticRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribePdnsRequestStatisticRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribePdnsRequestStatisticRequest::getType() const { + return type_; } -std::string DescribePdnsRequestStatisticRequest::getStartDate()const -{ - return startDate_; +void DescribePdnsRequestStatisticRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribePdnsRequestStatisticRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribePdnsRequestStatisticRequest::getStartDate() const { + return startDate_; } -std::string DescribePdnsRequestStatisticRequest::getEndDate()const -{ - return endDate_; +void DescribePdnsRequestStatisticRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribePdnsRequestStatisticRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribePdnsRequestStatisticRequest::getEndDate() const { + return endDate_; } -std::string DescribePdnsRequestStatisticRequest::getSubDomain()const -{ - return subDomain_; +void DescribePdnsRequestStatisticRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribePdnsRequestStatisticRequest::setSubDomain(const std::string& subDomain) -{ - subDomain_ = subDomain; - setParameter("SubDomain", subDomain); +std::string DescribePdnsRequestStatisticRequest::getSubDomain() const { + return subDomain_; } -std::string DescribePdnsRequestStatisticRequest::getLang()const -{ - return lang_; +void DescribePdnsRequestStatisticRequest::setSubDomain(const std::string &subDomain) { + subDomain_ = subDomain; + setParameter(std::string("SubDomain"), subDomain); } -void DescribePdnsRequestStatisticRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribePdnsRequestStatisticRequest::getLang() const { + return lang_; +} + +void DescribePdnsRequestStatisticRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribePdnsRequestStatisticResult.cc b/alidns/src/model/DescribePdnsRequestStatisticResult.cc index 1f610b721..05cd233b5 100644 --- a/alidns/src/model/DescribePdnsRequestStatisticResult.cc +++ b/alidns/src/model/DescribePdnsRequestStatisticResult.cc @@ -43,32 +43,32 @@ void DescribePdnsRequestStatisticResult::parse(const std::string &payload) for (auto valueDataStatisticItem : allDataNode) { StatisticItem dataObject; - if(!valueDataStatisticItem["UdpTotalCount"].isNull()) - dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString()); - if(!valueDataStatisticItem["IpCount"].isNull()) - dataObject.ipCount = std::stol(valueDataStatisticItem["IpCount"].asString()); + if(!valueDataStatisticItem["V6HttpCount"].isNull()) + dataObject.v6HttpCount = std::stol(valueDataStatisticItem["V6HttpCount"].asString()); + if(!valueDataStatisticItem["V6HttpsCount"].isNull()) + dataObject.v6HttpsCount = std::stol(valueDataStatisticItem["V6HttpsCount"].asString()); + if(!valueDataStatisticItem["Timestamp"].isNull()) + dataObject.timestamp = std::stol(valueDataStatisticItem["Timestamp"].asString()); if(!valueDataStatisticItem["TotalCount"].isNull()) dataObject.totalCount = std::stol(valueDataStatisticItem["TotalCount"].asString()); if(!valueDataStatisticItem["V4HttpCount"].isNull()) dataObject.v4HttpCount = std::stol(valueDataStatisticItem["V4HttpCount"].asString()); - if(!valueDataStatisticItem["V6HttpCount"].isNull()) - dataObject.v6HttpCount = std::stol(valueDataStatisticItem["V6HttpCount"].asString()); - if(!valueDataStatisticItem["V4Count"].isNull()) - dataObject.v4Count = std::stol(valueDataStatisticItem["V4Count"].asString()); - if(!valueDataStatisticItem["HttpsCount"].isNull()) - dataObject.httpsCount = std::stol(valueDataStatisticItem["HttpsCount"].asString()); - if(!valueDataStatisticItem["HttpCount"].isNull()) - dataObject.httpCount = std::stol(valueDataStatisticItem["HttpCount"].asString()); if(!valueDataStatisticItem["V4HttpsCount"].isNull()) dataObject.v4HttpsCount = std::stol(valueDataStatisticItem["V4HttpsCount"].asString()); - if(!valueDataStatisticItem["Timestamp"].isNull()) - dataObject.timestamp = std::stol(valueDataStatisticItem["Timestamp"].asString()); - if(!valueDataStatisticItem["V6HttpsCount"].isNull()) - dataObject.v6HttpsCount = std::stol(valueDataStatisticItem["V6HttpsCount"].asString()); - if(!valueDataStatisticItem["DohTotalCount"].isNull()) - dataObject.dohTotalCount = std::stol(valueDataStatisticItem["DohTotalCount"].asString()); + if(!valueDataStatisticItem["V4Count"].isNull()) + dataObject.v4Count = std::stol(valueDataStatisticItem["V4Count"].asString()); if(!valueDataStatisticItem["V6Count"].isNull()) dataObject.v6Count = std::stol(valueDataStatisticItem["V6Count"].asString()); + if(!valueDataStatisticItem["HttpCount"].isNull()) + dataObject.httpCount = std::stol(valueDataStatisticItem["HttpCount"].asString()); + if(!valueDataStatisticItem["HttpsCount"].isNull()) + dataObject.httpsCount = std::stol(valueDataStatisticItem["HttpsCount"].asString()); + if(!valueDataStatisticItem["DohTotalCount"].isNull()) + dataObject.dohTotalCount = std::stol(valueDataStatisticItem["DohTotalCount"].asString()); + if(!valueDataStatisticItem["UdpTotalCount"].isNull()) + dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString()); + if(!valueDataStatisticItem["IpCount"].isNull()) + dataObject.ipCount = std::stol(valueDataStatisticItem["IpCount"].asString()); data_.push_back(dataObject); } diff --git a/alidns/src/model/DescribePdnsRequestStatisticsRequest.cc b/alidns/src/model/DescribePdnsRequestStatisticsRequest.cc index 4d4b0e390..3c69b17a3 100644 --- a/alidns/src/model/DescribePdnsRequestStatisticsRequest.cc +++ b/alidns/src/model/DescribePdnsRequestStatisticsRequest.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::Alidns::Model::DescribePdnsRequestStatisticsRequest; - -DescribePdnsRequestStatisticsRequest::DescribePdnsRequestStatisticsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsRequestStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePdnsRequestStatisticsRequest::~DescribePdnsRequestStatisticsRequest() -{} - -std::string DescribePdnsRequestStatisticsRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribePdnsRequestStatisticsRequest; + +DescribePdnsRequestStatisticsRequest::DescribePdnsRequestStatisticsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsRequestStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribePdnsRequestStatisticsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribePdnsRequestStatisticsRequest::~DescribePdnsRequestStatisticsRequest() {} + +std::string DescribePdnsRequestStatisticsRequest::getDomainName() const { + return domainName_; } -bool DescribePdnsRequestStatisticsRequest::getNeedThreatInfo()const -{ - return needThreatInfo_; +void DescribePdnsRequestStatisticsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribePdnsRequestStatisticsRequest::setNeedThreatInfo(bool needThreatInfo) -{ - needThreatInfo_ = needThreatInfo; - setParameter("NeedThreatInfo", needThreatInfo ? "true" : "false"); +bool DescribePdnsRequestStatisticsRequest::getNeedThreatInfo() const { + return needThreatInfo_; } -std::string DescribePdnsRequestStatisticsRequest::getType()const -{ - return type_; +void DescribePdnsRequestStatisticsRequest::setNeedThreatInfo(bool needThreatInfo) { + needThreatInfo_ = needThreatInfo; + setParameter(std::string("NeedThreatInfo"), needThreatInfo ? "true" : "false"); } -void DescribePdnsRequestStatisticsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribePdnsRequestStatisticsRequest::getType() const { + return type_; } -std::string DescribePdnsRequestStatisticsRequest::getStartDate()const -{ - return startDate_; +void DescribePdnsRequestStatisticsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribePdnsRequestStatisticsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribePdnsRequestStatisticsRequest::getStartDate() const { + return startDate_; } -long DescribePdnsRequestStatisticsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribePdnsRequestStatisticsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribePdnsRequestStatisticsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribePdnsRequestStatisticsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribePdnsRequestStatisticsRequest::getEndDate()const -{ - return endDate_; +void DescribePdnsRequestStatisticsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribePdnsRequestStatisticsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribePdnsRequestStatisticsRequest::getEndDate() const { + return endDate_; } -long DescribePdnsRequestStatisticsRequest::getPageSize()const -{ - return pageSize_; +void DescribePdnsRequestStatisticsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribePdnsRequestStatisticsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribePdnsRequestStatisticsRequest::getPageSize() const { + return pageSize_; } -std::string DescribePdnsRequestStatisticsRequest::getSubDomain()const -{ - return subDomain_; +void DescribePdnsRequestStatisticsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribePdnsRequestStatisticsRequest::setSubDomain(const std::string& subDomain) -{ - subDomain_ = subDomain; - setParameter("SubDomain", subDomain); +std::string DescribePdnsRequestStatisticsRequest::getSubDomain() const { + return subDomain_; } -std::string DescribePdnsRequestStatisticsRequest::getLang()const -{ - return lang_; +void DescribePdnsRequestStatisticsRequest::setSubDomain(const std::string &subDomain) { + subDomain_ = subDomain; + setParameter(std::string("SubDomain"), subDomain); } -void DescribePdnsRequestStatisticsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribePdnsRequestStatisticsRequest::getLang() const { + return lang_; +} + +void DescribePdnsRequestStatisticsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribePdnsRequestStatisticsResult.cc b/alidns/src/model/DescribePdnsRequestStatisticsResult.cc index 6f0731d91..d72e35bb4 100644 --- a/alidns/src/model/DescribePdnsRequestStatisticsResult.cc +++ b/alidns/src/model/DescribePdnsRequestStatisticsResult.cc @@ -43,46 +43,46 @@ void DescribePdnsRequestStatisticsResult::parse(const std::string &payload) for (auto valueDataStatisticItem : allDataNode) { StatisticItem dataObject; - if(!valueDataStatisticItem["UdpTotalCount"].isNull()) - dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString()); - if(!valueDataStatisticItem["IpCount"].isNull()) - dataObject.ipCount = std::stol(valueDataStatisticItem["IpCount"].asString()); if(!valueDataStatisticItem["DomainName"].isNull()) dataObject.domainName = valueDataStatisticItem["DomainName"].asString(); - if(!valueDataStatisticItem["V6HttpCount"].isNull()) - dataObject.v6HttpCount = std::stol(valueDataStatisticItem["V6HttpCount"].asString()); - if(!valueDataStatisticItem["V4Count"].isNull()) - dataObject.v4Count = std::stol(valueDataStatisticItem["V4Count"].asString()); - if(!valueDataStatisticItem["HttpsCount"].isNull()) - dataObject.httpsCount = std::stol(valueDataStatisticItem["HttpsCount"].asString()); - if(!valueDataStatisticItem["V4HttpsCount"].isNull()) - dataObject.v4HttpsCount = std::stol(valueDataStatisticItem["V4HttpsCount"].asString()); - if(!valueDataStatisticItem["V6Count"].isNull()) - dataObject.v6Count = std::stol(valueDataStatisticItem["V6Count"].asString()); if(!valueDataStatisticItem["SubDomain"].isNull()) dataObject.subDomain = valueDataStatisticItem["SubDomain"].asString(); + if(!valueDataStatisticItem["V6HttpCount"].isNull()) + dataObject.v6HttpCount = std::stol(valueDataStatisticItem["V6HttpCount"].asString()); + if(!valueDataStatisticItem["V6HttpsCount"].isNull()) + dataObject.v6HttpsCount = std::stol(valueDataStatisticItem["V6HttpsCount"].asString()); if(!valueDataStatisticItem["TotalCount"].isNull()) dataObject.totalCount = std::stol(valueDataStatisticItem["TotalCount"].asString()); if(!valueDataStatisticItem["V4HttpCount"].isNull()) dataObject.v4HttpCount = std::stol(valueDataStatisticItem["V4HttpCount"].asString()); + if(!valueDataStatisticItem["V4HttpsCount"].isNull()) + dataObject.v4HttpsCount = std::stol(valueDataStatisticItem["V4HttpsCount"].asString()); + if(!valueDataStatisticItem["V4Count"].isNull()) + dataObject.v4Count = std::stol(valueDataStatisticItem["V4Count"].asString()); + if(!valueDataStatisticItem["V6Count"].isNull()) + dataObject.v6Count = std::stol(valueDataStatisticItem["V6Count"].asString()); + if(!valueDataStatisticItem["HttpCount"].isNull()) + dataObject.httpCount = std::stol(valueDataStatisticItem["HttpCount"].asString()); + if(!valueDataStatisticItem["HttpsCount"].isNull()) + dataObject.httpsCount = std::stol(valueDataStatisticItem["HttpsCount"].asString()); + if(!valueDataStatisticItem["DohTotalCount"].isNull()) + dataObject.dohTotalCount = std::stol(valueDataStatisticItem["DohTotalCount"].asString()); + if(!valueDataStatisticItem["UdpTotalCount"].isNull()) + dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString()); + if(!valueDataStatisticItem["IpCount"].isNull()) + dataObject.ipCount = std::stol(valueDataStatisticItem["IpCount"].asString()); if(!valueDataStatisticItem["ThreatCount"].isNull()) dataObject.threatCount = std::stol(valueDataStatisticItem["ThreatCount"].asString()); if(!valueDataStatisticItem["MaxThreatLevel"].isNull()) dataObject.maxThreatLevel = valueDataStatisticItem["MaxThreatLevel"].asString(); - if(!valueDataStatisticItem["HttpCount"].isNull()) - dataObject.httpCount = std::stol(valueDataStatisticItem["HttpCount"].asString()); - if(!valueDataStatisticItem["V6HttpsCount"].isNull()) - dataObject.v6HttpsCount = std::stol(valueDataStatisticItem["V6HttpsCount"].asString()); - if(!valueDataStatisticItem["DohTotalCount"].isNull()) - dataObject.dohTotalCount = std::stol(valueDataStatisticItem["DohTotalCount"].asString()); auto allThreatInfoNode = valueDataStatisticItem["ThreatInfo"]["ThreatItem"]; for (auto valueDataStatisticItemThreatInfoThreatItem : allThreatInfoNode) { StatisticItem::ThreatItem threatInfoObject; - if(!valueDataStatisticItemThreatInfoThreatItem["ThreatLevel"].isNull()) - threatInfoObject.threatLevel = valueDataStatisticItemThreatInfoThreatItem["ThreatLevel"].asString(); if(!valueDataStatisticItemThreatInfoThreatItem["ThreatType"].isNull()) threatInfoObject.threatType = valueDataStatisticItemThreatInfoThreatItem["ThreatType"].asString(); + if(!valueDataStatisticItemThreatInfoThreatItem["ThreatLevel"].isNull()) + threatInfoObject.threatLevel = valueDataStatisticItemThreatInfoThreatItem["ThreatLevel"].asString(); dataObject.threatInfo.push_back(threatInfoObject); } data_.push_back(dataObject); diff --git a/alidns/src/model/DescribePdnsThreatLogsRequest.cc b/alidns/src/model/DescribePdnsThreatLogsRequest.cc index 98979eb30..bdb0f2d64 100644 --- a/alidns/src/model/DescribePdnsThreatLogsRequest.cc +++ b/alidns/src/model/DescribePdnsThreatLogsRequest.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::Alidns::Model::DescribePdnsThreatLogsRequest; - -DescribePdnsThreatLogsRequest::DescribePdnsThreatLogsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsThreatLogs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePdnsThreatLogsRequest::~DescribePdnsThreatLogsRequest() -{} - -std::string DescribePdnsThreatLogsRequest::getThreatSourceIp()const -{ - return threatSourceIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribePdnsThreatLogsRequest; + +DescribePdnsThreatLogsRequest::DescribePdnsThreatLogsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsThreatLogs") { + setMethod(HttpRequest::Method::Post); } -void DescribePdnsThreatLogsRequest::setThreatSourceIp(const std::string& threatSourceIp) -{ - threatSourceIp_ = threatSourceIp; - setParameter("ThreatSourceIp", threatSourceIp); +DescribePdnsThreatLogsRequest::~DescribePdnsThreatLogsRequest() {} + +std::string DescribePdnsThreatLogsRequest::getThreatSourceIp() const { + return threatSourceIp_; } -std::string DescribePdnsThreatLogsRequest::getStartDate()const -{ - return startDate_; +void DescribePdnsThreatLogsRequest::setThreatSourceIp(const std::string &threatSourceIp) { + threatSourceIp_ = threatSourceIp; + setParameter(std::string("ThreatSourceIp"), threatSourceIp); } -void DescribePdnsThreatLogsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribePdnsThreatLogsRequest::getStartDate() const { + return startDate_; } -long DescribePdnsThreatLogsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribePdnsThreatLogsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribePdnsThreatLogsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribePdnsThreatLogsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribePdnsThreatLogsRequest::getEndDate()const -{ - return endDate_; +void DescribePdnsThreatLogsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribePdnsThreatLogsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribePdnsThreatLogsRequest::getEndDate() const { + return endDate_; } -long DescribePdnsThreatLogsRequest::getPageSize()const -{ - return pageSize_; +void DescribePdnsThreatLogsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribePdnsThreatLogsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribePdnsThreatLogsRequest::getPageSize() const { + return pageSize_; } -std::string DescribePdnsThreatLogsRequest::getThreatType()const -{ - return threatType_; +void DescribePdnsThreatLogsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribePdnsThreatLogsRequest::setThreatType(const std::string& threatType) -{ - threatType_ = threatType; - setParameter("ThreatType", threatType); +std::string DescribePdnsThreatLogsRequest::getThreatType() const { + return threatType_; } -std::string DescribePdnsThreatLogsRequest::getLang()const -{ - return lang_; +void DescribePdnsThreatLogsRequest::setThreatType(const std::string &threatType) { + threatType_ = threatType; + setParameter(std::string("ThreatType"), threatType); } -void DescribePdnsThreatLogsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribePdnsThreatLogsRequest::getLang() const { + return lang_; } -std::string DescribePdnsThreatLogsRequest::getKeyword()const -{ - return keyword_; +void DescribePdnsThreatLogsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribePdnsThreatLogsRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribePdnsThreatLogsRequest::getKeyword() const { + return keyword_; } -std::string DescribePdnsThreatLogsRequest::getThreatLevel()const -{ - return threatLevel_; +void DescribePdnsThreatLogsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } -void DescribePdnsThreatLogsRequest::setThreatLevel(const std::string& threatLevel) -{ - threatLevel_ = threatLevel; - setParameter("ThreatLevel", threatLevel); +std::string DescribePdnsThreatLogsRequest::getThreatLevel() const { + return threatLevel_; +} + +void DescribePdnsThreatLogsRequest::setThreatLevel(const std::string &threatLevel) { + threatLevel_ = threatLevel; + setParameter(std::string("ThreatLevel"), threatLevel); } diff --git a/alidns/src/model/DescribePdnsThreatLogsResult.cc b/alidns/src/model/DescribePdnsThreatLogsResult.cc index cb64728fd..62835f79a 100644 --- a/alidns/src/model/DescribePdnsThreatLogsResult.cc +++ b/alidns/src/model/DescribePdnsThreatLogsResult.cc @@ -43,16 +43,16 @@ void DescribePdnsThreatLogsResult::parse(const std::string &payload) for (auto valueLogsLog : allLogsNode) { Log logsObject; - if(!valueLogsLog["SubDomain"].isNull()) - logsObject.subDomain = valueLogsLog["SubDomain"].asString(); - if(!valueLogsLog["SourceIp"].isNull()) - logsObject.sourceIp = valueLogsLog["SourceIp"].asString(); - if(!valueLogsLog["ThreatLevel"].isNull()) - logsObject.threatLevel = valueLogsLog["ThreatLevel"].asString(); if(!valueLogsLog["ThreatTime"].isNull()) logsObject.threatTime = valueLogsLog["ThreatTime"].asString(); if(!valueLogsLog["ThreatType"].isNull()) logsObject.threatType = valueLogsLog["ThreatType"].asString(); + if(!valueLogsLog["ThreatLevel"].isNull()) + logsObject.threatLevel = valueLogsLog["ThreatLevel"].asString(); + if(!valueLogsLog["SourceIp"].isNull()) + logsObject.sourceIp = valueLogsLog["SourceIp"].asString(); + if(!valueLogsLog["SubDomain"].isNull()) + logsObject.subDomain = valueLogsLog["SubDomain"].asString(); logs_.push_back(logsObject); } if(!value["TotalCount"].isNull()) diff --git a/alidns/src/model/DescribePdnsThreatStatisticRequest.cc b/alidns/src/model/DescribePdnsThreatStatisticRequest.cc index bcf8956c7..7be80e525 100644 --- a/alidns/src/model/DescribePdnsThreatStatisticRequest.cc +++ b/alidns/src/model/DescribePdnsThreatStatisticRequest.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::Alidns::Model::DescribePdnsThreatStatisticRequest; - -DescribePdnsThreatStatisticRequest::DescribePdnsThreatStatisticRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsThreatStatistic") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePdnsThreatStatisticRequest::~DescribePdnsThreatStatisticRequest() -{} - -std::string DescribePdnsThreatStatisticRequest::getThreatSourceIp()const -{ - return threatSourceIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribePdnsThreatStatisticRequest; + +DescribePdnsThreatStatisticRequest::DescribePdnsThreatStatisticRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsThreatStatistic") { + setMethod(HttpRequest::Method::Post); } -void DescribePdnsThreatStatisticRequest::setThreatSourceIp(const std::string& threatSourceIp) -{ - threatSourceIp_ = threatSourceIp; - setParameter("ThreatSourceIp", threatSourceIp); +DescribePdnsThreatStatisticRequest::~DescribePdnsThreatStatisticRequest() {} + +std::string DescribePdnsThreatStatisticRequest::getThreatSourceIp() const { + return threatSourceIp_; } -std::string DescribePdnsThreatStatisticRequest::getType()const -{ - return type_; +void DescribePdnsThreatStatisticRequest::setThreatSourceIp(const std::string &threatSourceIp) { + threatSourceIp_ = threatSourceIp; + setParameter(std::string("ThreatSourceIp"), threatSourceIp); } -void DescribePdnsThreatStatisticRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribePdnsThreatStatisticRequest::getType() const { + return type_; } -std::string DescribePdnsThreatStatisticRequest::getStartDate()const -{ - return startDate_; +void DescribePdnsThreatStatisticRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribePdnsThreatStatisticRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribePdnsThreatStatisticRequest::getStartDate() const { + return startDate_; } -std::string DescribePdnsThreatStatisticRequest::getEndDate()const -{ - return endDate_; +void DescribePdnsThreatStatisticRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribePdnsThreatStatisticRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribePdnsThreatStatisticRequest::getEndDate() const { + return endDate_; } -std::string DescribePdnsThreatStatisticRequest::getLang()const -{ - return lang_; +void DescribePdnsThreatStatisticRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribePdnsThreatStatisticRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribePdnsThreatStatisticRequest::getLang() const { + return lang_; +} + +void DescribePdnsThreatStatisticRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribePdnsThreatStatisticResult.cc b/alidns/src/model/DescribePdnsThreatStatisticResult.cc index 54a7cb783..e8521fb8c 100644 --- a/alidns/src/model/DescribePdnsThreatStatisticResult.cc +++ b/alidns/src/model/DescribePdnsThreatStatisticResult.cc @@ -43,18 +43,18 @@ void DescribePdnsThreatStatisticResult::parse(const std::string &payload) for (auto valueDataStatisticItem : allDataNode) { StatisticItem dataObject; - if(!valueDataStatisticItem["UdpTotalCount"].isNull()) - dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString()); if(!valueDataStatisticItem["TotalCount"].isNull()) dataObject.totalCount = std::stol(valueDataStatisticItem["TotalCount"].asString()); - if(!valueDataStatisticItem["ThreatLevel"].isNull()) - dataObject.threatLevel = valueDataStatisticItem["ThreatLevel"].asString(); - if(!valueDataStatisticItem["ThreatType"].isNull()) - dataObject.threatType = valueDataStatisticItem["ThreatType"].asString(); if(!valueDataStatisticItem["Timestamp"].isNull()) dataObject.timestamp = std::stol(valueDataStatisticItem["Timestamp"].asString()); + if(!valueDataStatisticItem["ThreatType"].isNull()) + dataObject.threatType = valueDataStatisticItem["ThreatType"].asString(); + if(!valueDataStatisticItem["ThreatLevel"].isNull()) + dataObject.threatLevel = valueDataStatisticItem["ThreatLevel"].asString(); if(!valueDataStatisticItem["DohTotalCount"].isNull()) dataObject.dohTotalCount = std::stol(valueDataStatisticItem["DohTotalCount"].asString()); + if(!valueDataStatisticItem["UdpTotalCount"].isNull()) + dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString()); data_.push_back(dataObject); } diff --git a/alidns/src/model/DescribePdnsThreatStatisticsRequest.cc b/alidns/src/model/DescribePdnsThreatStatisticsRequest.cc index 678347eed..7fd26e6ac 100644 --- a/alidns/src/model/DescribePdnsThreatStatisticsRequest.cc +++ b/alidns/src/model/DescribePdnsThreatStatisticsRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::DescribePdnsThreatStatisticsRequest; - -DescribePdnsThreatStatisticsRequest::DescribePdnsThreatStatisticsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsThreatStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePdnsThreatStatisticsRequest::~DescribePdnsThreatStatisticsRequest() -{} - -std::string DescribePdnsThreatStatisticsRequest::getType()const -{ - return type_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribePdnsThreatStatisticsRequest; + +DescribePdnsThreatStatisticsRequest::DescribePdnsThreatStatisticsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsThreatStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribePdnsThreatStatisticsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +DescribePdnsThreatStatisticsRequest::~DescribePdnsThreatStatisticsRequest() {} + +std::string DescribePdnsThreatStatisticsRequest::getType() const { + return type_; } -std::string DescribePdnsThreatStatisticsRequest::getStartDate()const -{ - return startDate_; +void DescribePdnsThreatStatisticsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribePdnsThreatStatisticsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribePdnsThreatStatisticsRequest::getStartDate() const { + return startDate_; } -long DescribePdnsThreatStatisticsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribePdnsThreatStatisticsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribePdnsThreatStatisticsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribePdnsThreatStatisticsRequest::getPageNumber() const { + return pageNumber_; } -long DescribePdnsThreatStatisticsRequest::getPageSize()const -{ - return pageSize_; +void DescribePdnsThreatStatisticsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribePdnsThreatStatisticsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribePdnsThreatStatisticsRequest::getPageSize() const { + return pageSize_; } -std::string DescribePdnsThreatStatisticsRequest::getThreatType()const -{ - return threatType_; +void DescribePdnsThreatStatisticsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribePdnsThreatStatisticsRequest::setThreatType(const std::string& threatType) -{ - threatType_ = threatType; - setParameter("ThreatType", threatType); +std::string DescribePdnsThreatStatisticsRequest::getThreatType() const { + return threatType_; } -std::string DescribePdnsThreatStatisticsRequest::getLang()const -{ - return lang_; +void DescribePdnsThreatStatisticsRequest::setThreatType(const std::string &threatType) { + threatType_ = threatType; + setParameter(std::string("ThreatType"), threatType); } -void DescribePdnsThreatStatisticsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribePdnsThreatStatisticsRequest::getLang() const { + return lang_; } -std::string DescribePdnsThreatStatisticsRequest::getDirection()const -{ - return direction_; +void DescribePdnsThreatStatisticsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribePdnsThreatStatisticsRequest::setDirection(const std::string& direction) -{ - direction_ = direction; - setParameter("Direction", direction); +std::string DescribePdnsThreatStatisticsRequest::getDirection() const { + return direction_; } -std::string DescribePdnsThreatStatisticsRequest::getThreatSourceIp()const -{ - return threatSourceIp_; +void DescribePdnsThreatStatisticsRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } -void DescribePdnsThreatStatisticsRequest::setThreatSourceIp(const std::string& threatSourceIp) -{ - threatSourceIp_ = threatSourceIp; - setParameter("ThreatSourceIp", threatSourceIp); +std::string DescribePdnsThreatStatisticsRequest::getThreatSourceIp() const { + return threatSourceIp_; } -std::string DescribePdnsThreatStatisticsRequest::getDomainName()const -{ - return domainName_; +void DescribePdnsThreatStatisticsRequest::setThreatSourceIp(const std::string &threatSourceIp) { + threatSourceIp_ = threatSourceIp; + setParameter(std::string("ThreatSourceIp"), threatSourceIp); } -void DescribePdnsThreatStatisticsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string DescribePdnsThreatStatisticsRequest::getDomainName() const { + return domainName_; } -std::string DescribePdnsThreatStatisticsRequest::getOrderBy()const -{ - return orderBy_; +void DescribePdnsThreatStatisticsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribePdnsThreatStatisticsRequest::setOrderBy(const std::string& orderBy) -{ - orderBy_ = orderBy; - setParameter("OrderBy", orderBy); +std::string DescribePdnsThreatStatisticsRequest::getOrderBy() const { + return orderBy_; } -std::string DescribePdnsThreatStatisticsRequest::getEndDate()const -{ - return endDate_; +void DescribePdnsThreatStatisticsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); } -void DescribePdnsThreatStatisticsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribePdnsThreatStatisticsRequest::getEndDate() const { + return endDate_; } -std::string DescribePdnsThreatStatisticsRequest::getSubDomain()const -{ - return subDomain_; +void DescribePdnsThreatStatisticsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribePdnsThreatStatisticsRequest::setSubDomain(const std::string& subDomain) -{ - subDomain_ = subDomain; - setParameter("SubDomain", subDomain); +std::string DescribePdnsThreatStatisticsRequest::getSubDomain() const { + return subDomain_; } -std::string DescribePdnsThreatStatisticsRequest::getThreatLevel()const -{ - return threatLevel_; +void DescribePdnsThreatStatisticsRequest::setSubDomain(const std::string &subDomain) { + subDomain_ = subDomain; + setParameter(std::string("SubDomain"), subDomain); } -void DescribePdnsThreatStatisticsRequest::setThreatLevel(const std::string& threatLevel) -{ - threatLevel_ = threatLevel; - setParameter("ThreatLevel", threatLevel); +std::string DescribePdnsThreatStatisticsRequest::getThreatLevel() const { + return threatLevel_; +} + +void DescribePdnsThreatStatisticsRequest::setThreatLevel(const std::string &threatLevel) { + threatLevel_ = threatLevel; + setParameter(std::string("ThreatLevel"), threatLevel); } diff --git a/alidns/src/model/DescribePdnsThreatStatisticsResult.cc b/alidns/src/model/DescribePdnsThreatStatisticsResult.cc index cee95308e..aed3a24f8 100644 --- a/alidns/src/model/DescribePdnsThreatStatisticsResult.cc +++ b/alidns/src/model/DescribePdnsThreatStatisticsResult.cc @@ -43,28 +43,28 @@ void DescribePdnsThreatStatisticsResult::parse(const std::string &payload) for (auto valueDataStatisticItem : allDataNode) { StatisticItem dataObject; - if(!valueDataStatisticItem["SubDomain"].isNull()) - dataObject.subDomain = valueDataStatisticItem["SubDomain"].asString(); - if(!valueDataStatisticItem["UdpTotalCount"].isNull()) - dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString()); - if(!valueDataStatisticItem["TotalCount"].isNull()) - dataObject.totalCount = std::stol(valueDataStatisticItem["TotalCount"].asString()); - if(!valueDataStatisticItem["SourceIp"].isNull()) - dataObject.sourceIp = valueDataStatisticItem["SourceIp"].asString(); - if(!valueDataStatisticItem["ThreatLevel"].isNull()) - dataObject.threatLevel = valueDataStatisticItem["ThreatLevel"].asString(); if(!valueDataStatisticItem["DomainName"].isNull()) dataObject.domainName = valueDataStatisticItem["DomainName"].asString(); - if(!valueDataStatisticItem["ThreatType"].isNull()) - dataObject.threatType = valueDataStatisticItem["ThreatType"].asString(); - if(!valueDataStatisticItem["MaxThreatLevel"].isNull()) - dataObject.maxThreatLevel = valueDataStatisticItem["MaxThreatLevel"].asString(); + if(!valueDataStatisticItem["SubDomain"].isNull()) + dataObject.subDomain = valueDataStatisticItem["SubDomain"].asString(); if(!valueDataStatisticItem["LatestThreatTime"].isNull()) dataObject.latestThreatTime = std::stol(valueDataStatisticItem["LatestThreatTime"].asString()); + if(!valueDataStatisticItem["TotalCount"].isNull()) + dataObject.totalCount = std::stol(valueDataStatisticItem["TotalCount"].asString()); if(!valueDataStatisticItem["DohTotalCount"].isNull()) dataObject.dohTotalCount = std::stol(valueDataStatisticItem["DohTotalCount"].asString()); + if(!valueDataStatisticItem["UdpTotalCount"].isNull()) + dataObject.udpTotalCount = std::stol(valueDataStatisticItem["UdpTotalCount"].asString()); + if(!valueDataStatisticItem["MaxThreatLevel"].isNull()) + dataObject.maxThreatLevel = valueDataStatisticItem["MaxThreatLevel"].asString(); if(!valueDataStatisticItem["DomainCount"].isNull()) dataObject.domainCount = std::stol(valueDataStatisticItem["DomainCount"].asString()); + if(!valueDataStatisticItem["SourceIp"].isNull()) + dataObject.sourceIp = valueDataStatisticItem["SourceIp"].asString(); + if(!valueDataStatisticItem["ThreatType"].isNull()) + dataObject.threatType = valueDataStatisticItem["ThreatType"].asString(); + if(!valueDataStatisticItem["ThreatLevel"].isNull()) + dataObject.threatLevel = valueDataStatisticItem["ThreatLevel"].asString(); data_.push_back(dataObject); } if(!value["TotalCount"].isNull()) diff --git a/alidns/src/model/DescribePdnsUdpIpSegmentsRequest.cc b/alidns/src/model/DescribePdnsUdpIpSegmentsRequest.cc index ab79e4918..6d8ed56ad 100644 --- a/alidns/src/model/DescribePdnsUdpIpSegmentsRequest.cc +++ b/alidns/src/model/DescribePdnsUdpIpSegmentsRequest.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::Alidns::Model::DescribePdnsUdpIpSegmentsRequest; - -DescribePdnsUdpIpSegmentsRequest::DescribePdnsUdpIpSegmentsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsUdpIpSegments") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePdnsUdpIpSegmentsRequest::~DescribePdnsUdpIpSegmentsRequest() -{} - -long DescribePdnsUdpIpSegmentsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribePdnsUdpIpSegmentsRequest; + +DescribePdnsUdpIpSegmentsRequest::DescribePdnsUdpIpSegmentsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsUdpIpSegments") { + setMethod(HttpRequest::Method::Post); } -void DescribePdnsUdpIpSegmentsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +DescribePdnsUdpIpSegmentsRequest::~DescribePdnsUdpIpSegmentsRequest() {} + +long DescribePdnsUdpIpSegmentsRequest::getPageNumber() const { + return pageNumber_; } -long DescribePdnsUdpIpSegmentsRequest::getPageSize()const -{ - return pageSize_; +void DescribePdnsUdpIpSegmentsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribePdnsUdpIpSegmentsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribePdnsUdpIpSegmentsRequest::getPageSize() const { + return pageSize_; } -std::string DescribePdnsUdpIpSegmentsRequest::getLang()const -{ - return lang_; +void DescribePdnsUdpIpSegmentsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribePdnsUdpIpSegmentsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribePdnsUdpIpSegmentsRequest::getLang() const { + return lang_; +} + +void DescribePdnsUdpIpSegmentsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribePdnsUdpIpSegmentsResult.cc b/alidns/src/model/DescribePdnsUdpIpSegmentsResult.cc index a6b901366..468f1f848 100644 --- a/alidns/src/model/DescribePdnsUdpIpSegmentsResult.cc +++ b/alidns/src/model/DescribePdnsUdpIpSegmentsResult.cc @@ -43,18 +43,18 @@ void DescribePdnsUdpIpSegmentsResult::parse(const std::string &payload) for (auto valueIpSegmentsIpSegment : allIpSegmentsNode) { IpSegment ipSegmentsObject; - if(!valueIpSegmentsIpSegment["UpdateDate"].isNull()) - ipSegmentsObject.updateDate = valueIpSegmentsIpSegment["UpdateDate"].asString(); - if(!valueIpSegmentsIpSegment["State"].isNull()) - ipSegmentsObject.state = valueIpSegmentsIpSegment["State"].asString(); + if(!valueIpSegmentsIpSegment["Name"].isNull()) + ipSegmentsObject.name = valueIpSegmentsIpSegment["Name"].asString(); if(!valueIpSegmentsIpSegment["Ip"].isNull()) ipSegmentsObject.ip = valueIpSegmentsIpSegment["Ip"].asString(); if(!valueIpSegmentsIpSegment["Mask"].isNull()) ipSegmentsObject.mask = std::stol(valueIpSegmentsIpSegment["Mask"].asString()); + if(!valueIpSegmentsIpSegment["State"].isNull()) + ipSegmentsObject.state = valueIpSegmentsIpSegment["State"].asString(); if(!valueIpSegmentsIpSegment["CreateDate"].isNull()) ipSegmentsObject.createDate = valueIpSegmentsIpSegment["CreateDate"].asString(); - if(!valueIpSegmentsIpSegment["Name"].isNull()) - ipSegmentsObject.name = valueIpSegmentsIpSegment["Name"].asString(); + if(!valueIpSegmentsIpSegment["UpdateDate"].isNull()) + ipSegmentsObject.updateDate = valueIpSegmentsIpSegment["UpdateDate"].asString(); ipSegments_.push_back(ipSegmentsObject); } if(!value["TotalCount"].isNull()) diff --git a/alidns/src/model/DescribePdnsUserInfoRequest.cc b/alidns/src/model/DescribePdnsUserInfoRequest.cc index 6103fb972..8739230a8 100644 --- a/alidns/src/model/DescribePdnsUserInfoRequest.cc +++ b/alidns/src/model/DescribePdnsUserInfoRequest.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::Alidns::Model::DescribePdnsUserInfoRequest; - -DescribePdnsUserInfoRequest::DescribePdnsUserInfoRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsUserInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePdnsUserInfoRequest::~DescribePdnsUserInfoRequest() -{} - -std::string DescribePdnsUserInfoRequest::getLang()const -{ - return lang_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribePdnsUserInfoRequest; + +DescribePdnsUserInfoRequest::DescribePdnsUserInfoRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribePdnsUserInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribePdnsUserInfoRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +DescribePdnsUserInfoRequest::~DescribePdnsUserInfoRequest() {} + +std::string DescribePdnsUserInfoRequest::getLang() const { + return lang_; +} + +void DescribePdnsUserInfoRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribePdnsUserInfoResult.cc b/alidns/src/model/DescribePdnsUserInfoResult.cc index 6849394ee..8b1184139 100644 --- a/alidns/src/model/DescribePdnsUserInfoResult.cc +++ b/alidns/src/model/DescribePdnsUserInfoResult.cc @@ -40,16 +40,16 @@ void DescribePdnsUserInfoResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto userInfoNode = value["UserInfo"]; - if(!userInfoNode["AvailableService"].isNull()) - userInfo_.availableService = userInfoNode["AvailableService"].asString(); - if(!userInfoNode["ServiceType"].isNull()) - userInfo_.serviceType = userInfoNode["ServiceType"].asString(); - if(!userInfoNode["State"].isNull()) - userInfo_.state = userInfoNode["State"].asString(); - if(!userInfoNode["StoppedService"].isNull()) - userInfo_.stoppedService = userInfoNode["StoppedService"].asString(); if(!userInfoNode["PdnsId"].isNull()) userInfo_.pdnsId = std::stol(userInfoNode["PdnsId"].asString()); + if(!userInfoNode["State"].isNull()) + userInfo_.state = userInfoNode["State"].asString(); + if(!userInfoNode["ServiceType"].isNull()) + userInfo_.serviceType = userInfoNode["ServiceType"].asString(); + if(!userInfoNode["StoppedService"].isNull()) + userInfo_.stoppedService = userInfoNode["StoppedService"].asString(); + if(!userInfoNode["AvailableService"].isNull()) + userInfo_.availableService = userInfoNode["AvailableService"].asString(); } diff --git a/alidns/src/model/DescribeRecordLogsRequest.cc b/alidns/src/model/DescribeRecordLogsRequest.cc index 929c6c65b..1018a02c6 100644 --- a/alidns/src/model/DescribeRecordLogsRequest.cc +++ b/alidns/src/model/DescribeRecordLogsRequest.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::Alidns::Model::DescribeRecordLogsRequest; - -DescribeRecordLogsRequest::DescribeRecordLogsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeRecordLogs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRecordLogsRequest::~DescribeRecordLogsRequest() -{} - -std::string DescribeRecordLogsRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeRecordLogsRequest; + +DescribeRecordLogsRequest::DescribeRecordLogsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeRecordLogs") { + setMethod(HttpRequest::Method::Post); } -void DescribeRecordLogsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribeRecordLogsRequest::~DescribeRecordLogsRequest() {} + +std::string DescribeRecordLogsRequest::getDomainName() const { + return domainName_; } -std::string DescribeRecordLogsRequest::getStartDate()const -{ - return startDate_; +void DescribeRecordLogsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeRecordLogsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribeRecordLogsRequest::getStartDate() const { + return startDate_; } -long DescribeRecordLogsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeRecordLogsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeRecordLogsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeRecordLogsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeRecordLogsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeRecordLogsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeRecordLogsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeRecordLogsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeRecordLogsRequest::getEndDate()const -{ - return endDate_; +void DescribeRecordLogsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeRecordLogsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeRecordLogsRequest::getEndDate() const { + return endDate_; } -std::string DescribeRecordLogsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeRecordLogsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("endDate"), endDate); } -void DescribeRecordLogsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeRecordLogsRequest::getUserClientIp() const { + return userClientIp_; } -long DescribeRecordLogsRequest::getPageSize()const -{ - return pageSize_; +void DescribeRecordLogsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeRecordLogsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeRecordLogsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeRecordLogsRequest::getLang()const -{ - return lang_; +void DescribeRecordLogsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeRecordLogsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeRecordLogsRequest::getLang() const { + return lang_; } -std::string DescribeRecordLogsRequest::getKeyWord()const -{ - return keyWord_; +void DescribeRecordLogsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeRecordLogsRequest::setKeyWord(const std::string& keyWord) -{ - keyWord_ = keyWord; - setParameter("KeyWord", keyWord); +std::string DescribeRecordLogsRequest::getKeyWord() const { + return keyWord_; +} + +void DescribeRecordLogsRequest::setKeyWord(const std::string &keyWord) { + keyWord_ = keyWord; + setParameter(std::string("KeyWord"), keyWord); } diff --git a/alidns/src/model/DescribeRecordLogsResult.cc b/alidns/src/model/DescribeRecordLogsResult.cc index 6387df6fc..67dce8f5f 100644 --- a/alidns/src/model/DescribeRecordLogsResult.cc +++ b/alidns/src/model/DescribeRecordLogsResult.cc @@ -43,24 +43,24 @@ void DescribeRecordLogsResult::parse(const std::string &payload) for (auto valueRecordLogsRecordLog : allRecordLogsNode) { RecordLog recordLogsObject; - if(!valueRecordLogsRecordLog["ActionTime"].isNull()) - recordLogsObject.actionTime = valueRecordLogsRecordLog["ActionTime"].asString(); - if(!valueRecordLogsRecordLog["ActionTimestamp"].isNull()) - recordLogsObject.actionTimestamp = std::stol(valueRecordLogsRecordLog["ActionTimestamp"].asString()); if(!valueRecordLogsRecordLog["Action"].isNull()) recordLogsObject.action = valueRecordLogsRecordLog["Action"].asString(); - if(!valueRecordLogsRecordLog["Message"].isNull()) - recordLogsObject.message = valueRecordLogsRecordLog["Message"].asString(); + if(!valueRecordLogsRecordLog["ActionTimestamp"].isNull()) + recordLogsObject.actionTimestamp = std::stol(valueRecordLogsRecordLog["ActionTimestamp"].asString()); if(!valueRecordLogsRecordLog["ClientIp"].isNull()) recordLogsObject.clientIp = valueRecordLogsRecordLog["ClientIp"].asString(); + if(!valueRecordLogsRecordLog["Message"].isNull()) + recordLogsObject.message = valueRecordLogsRecordLog["Message"].asString(); + if(!valueRecordLogsRecordLog["ActionTime"].isNull()) + recordLogsObject.actionTime = valueRecordLogsRecordLog["ActionTime"].asString(); recordLogs_.push_back(recordLogsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/DescribeRecordResolveStatisticsSummaryRequest.cc b/alidns/src/model/DescribeRecordResolveStatisticsSummaryRequest.cc new file mode 100644 index 000000000..2aff5f1d5 --- /dev/null +++ b/alidns/src/model/DescribeRecordResolveStatisticsSummaryRequest.cc @@ -0,0 +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::Alidns::Model::DescribeRecordResolveStatisticsSummaryRequest; + +DescribeRecordResolveStatisticsSummaryRequest::DescribeRecordResolveStatisticsSummaryRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeRecordResolveStatisticsSummary") { + setMethod(HttpRequest::Method::Post); +} + +DescribeRecordResolveStatisticsSummaryRequest::~DescribeRecordResolveStatisticsSummaryRequest() {} + +long DescribeRecordResolveStatisticsSummaryRequest::getThreshold() const { + return threshold_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setThreshold(long threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), std::to_string(threshold)); +} + +std::string DescribeRecordResolveStatisticsSummaryRequest::getStartDate() const { + return startDate_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); +} + +int DescribeRecordResolveStatisticsSummaryRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeRecordResolveStatisticsSummaryRequest::getDomainType() const { + return domainType_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setDomainType(const std::string &domainType) { + domainType_ = domainType; + setParameter(std::string("DomainType"), domainType); +} + +int DescribeRecordResolveStatisticsSummaryRequest::getPageSize() const { + return pageSize_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeRecordResolveStatisticsSummaryRequest::getKeyword() const { + return keyword_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string DescribeRecordResolveStatisticsSummaryRequest::getLang() const { + return lang_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DescribeRecordResolveStatisticsSummaryRequest::getDirection() const { + return direction_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); +} + +std::string DescribeRecordResolveStatisticsSummaryRequest::getDomainName() const { + return domainName_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); +} + +std::string DescribeRecordResolveStatisticsSummaryRequest::getEndDate() const { + return endDate_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); +} + +std::string DescribeRecordResolveStatisticsSummaryRequest::getUserClientIp() const { + return userClientIp_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); +} + +std::string DescribeRecordResolveStatisticsSummaryRequest::getSearchMode() const { + return searchMode_; +} + +void DescribeRecordResolveStatisticsSummaryRequest::setSearchMode(const std::string &searchMode) { + searchMode_ = searchMode; + setParameter(std::string("SearchMode"), searchMode); +} + diff --git a/alidns/src/model/DescribeRecordResolveStatisticsSummaryResult.cc b/alidns/src/model/DescribeRecordResolveStatisticsSummaryResult.cc new file mode 100644 index 000000000..312a6b717 --- /dev/null +++ b/alidns/src/model/DescribeRecordResolveStatisticsSummaryResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +DescribeRecordResolveStatisticsSummaryResult::DescribeRecordResolveStatisticsSummaryResult() : + ServiceResult() +{} + +DescribeRecordResolveStatisticsSummaryResult::DescribeRecordResolveStatisticsSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRecordResolveStatisticsSummaryResult::~DescribeRecordResolveStatisticsSummaryResult() +{} + +void DescribeRecordResolveStatisticsSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStatisticsNode = value["Statistics"]["Statistic"]; + for (auto valueStatisticsStatistic : allStatisticsNode) + { + Statistic statisticsObject; + if(!valueStatisticsStatistic["SubDomain"].isNull()) + statisticsObject.subDomain = valueStatisticsStatistic["SubDomain"].asString(); + if(!valueStatisticsStatistic["DomainName"].isNull()) + statisticsObject.domainName = valueStatisticsStatistic["DomainName"].asString(); + if(!valueStatisticsStatistic["Count"].isNull()) + statisticsObject.count = valueStatisticsStatistic["Count"].asString(); + if(!valueStatisticsStatistic["DomainType"].isNull()) + statisticsObject.domainType = valueStatisticsStatistic["DomainType"].asString(); + statistics_.push_back(statisticsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); + +} + +int DescribeRecordResolveStatisticsSummaryResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeRecordResolveStatisticsSummaryResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeRecordResolveStatisticsSummaryResult::getTotalPages()const +{ + return totalPages_; +} + +int DescribeRecordResolveStatisticsSummaryResult::getTotalItems()const +{ + return totalItems_; +} + +std::vector DescribeRecordResolveStatisticsSummaryResult::getStatistics()const +{ + return statistics_; +} + diff --git a/alidns/src/model/DescribeRecordStatisticsRequest.cc b/alidns/src/model/DescribeRecordStatisticsRequest.cc index fa24b44de..4e4427f80 100644 --- a/alidns/src/model/DescribeRecordStatisticsRequest.cc +++ b/alidns/src/model/DescribeRecordStatisticsRequest.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::Alidns::Model::DescribeRecordStatisticsRequest; - -DescribeRecordStatisticsRequest::DescribeRecordStatisticsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeRecordStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRecordStatisticsRequest::~DescribeRecordStatisticsRequest() -{} - -std::string DescribeRecordStatisticsRequest::getRr()const -{ - return rr_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeRecordStatisticsRequest; + +DescribeRecordStatisticsRequest::DescribeRecordStatisticsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeRecordStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeRecordStatisticsRequest::setRr(const std::string& rr) -{ - rr_ = rr; - setParameter("Rr", rr); +DescribeRecordStatisticsRequest::~DescribeRecordStatisticsRequest() {} + +std::string DescribeRecordStatisticsRequest::getRr() const { + return rr_; } -std::string DescribeRecordStatisticsRequest::getDomainName()const -{ - return domainName_; +void DescribeRecordStatisticsRequest::setRr(const std::string &rr) { + rr_ = rr; + setParameter(std::string("Rr"), rr); } -void DescribeRecordStatisticsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string DescribeRecordStatisticsRequest::getDomainName() const { + return domainName_; } -std::string DescribeRecordStatisticsRequest::getStartDate()const -{ - return startDate_; +void DescribeRecordStatisticsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeRecordStatisticsRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribeRecordStatisticsRequest::getStartDate() const { + return startDate_; } -std::string DescribeRecordStatisticsRequest::getEndDate()const -{ - return endDate_; +void DescribeRecordStatisticsRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeRecordStatisticsRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeRecordStatisticsRequest::getEndDate() const { + return endDate_; } -std::string DescribeRecordStatisticsRequest::getDomainType()const -{ - return domainType_; +void DescribeRecordStatisticsRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribeRecordStatisticsRequest::setDomainType(const std::string& domainType) -{ - domainType_ = domainType; - setParameter("DomainType", domainType); +std::string DescribeRecordStatisticsRequest::getDomainType() const { + return domainType_; } -std::string DescribeRecordStatisticsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeRecordStatisticsRequest::setDomainType(const std::string &domainType) { + domainType_ = domainType; + setParameter(std::string("DomainType"), domainType); } -void DescribeRecordStatisticsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeRecordStatisticsRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeRecordStatisticsRequest::getLang()const -{ - return lang_; +void DescribeRecordStatisticsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeRecordStatisticsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeRecordStatisticsRequest::getLang() const { + return lang_; +} + +void DescribeRecordStatisticsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeRecordStatisticsSummaryRequest.cc b/alidns/src/model/DescribeRecordStatisticsSummaryRequest.cc index a9b9b9d1d..e073382f4 100644 --- a/alidns/src/model/DescribeRecordStatisticsSummaryRequest.cc +++ b/alidns/src/model/DescribeRecordStatisticsSummaryRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::DescribeRecordStatisticsSummaryRequest; - -DescribeRecordStatisticsSummaryRequest::DescribeRecordStatisticsSummaryRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeRecordStatisticsSummary") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRecordStatisticsSummaryRequest::~DescribeRecordStatisticsSummaryRequest() -{} - -long DescribeRecordStatisticsSummaryRequest::getThreshold()const -{ - return threshold_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeRecordStatisticsSummaryRequest; + +DescribeRecordStatisticsSummaryRequest::DescribeRecordStatisticsSummaryRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeRecordStatisticsSummary") { + setMethod(HttpRequest::Method::Post); } -void DescribeRecordStatisticsSummaryRequest::setThreshold(long threshold) -{ - threshold_ = threshold; - setParameter("Threshold", std::to_string(threshold)); +DescribeRecordStatisticsSummaryRequest::~DescribeRecordStatisticsSummaryRequest() {} + +long DescribeRecordStatisticsSummaryRequest::getThreshold() const { + return threshold_; } -std::string DescribeRecordStatisticsSummaryRequest::getStartDate()const -{ - return startDate_; +void DescribeRecordStatisticsSummaryRequest::setThreshold(long threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), std::to_string(threshold)); } -void DescribeRecordStatisticsSummaryRequest::setStartDate(const std::string& startDate) -{ - startDate_ = startDate; - setParameter("StartDate", startDate); +std::string DescribeRecordStatisticsSummaryRequest::getStartDate() const { + return startDate_; } -long DescribeRecordStatisticsSummaryRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeRecordStatisticsSummaryRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); } -void DescribeRecordStatisticsSummaryRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeRecordStatisticsSummaryRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeRecordStatisticsSummaryRequest::getDomainType()const -{ - return domainType_; +void DescribeRecordStatisticsSummaryRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeRecordStatisticsSummaryRequest::setDomainType(const std::string& domainType) -{ - domainType_ = domainType; - setParameter("DomainType", domainType); +std::string DescribeRecordStatisticsSummaryRequest::getDomainType() const { + return domainType_; } -long DescribeRecordStatisticsSummaryRequest::getPageSize()const -{ - return pageSize_; +void DescribeRecordStatisticsSummaryRequest::setDomainType(const std::string &domainType) { + domainType_ = domainType; + setParameter(std::string("DomainType"), domainType); } -void DescribeRecordStatisticsSummaryRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeRecordStatisticsSummaryRequest::getPageSize() const { + return pageSize_; } -std::string DescribeRecordStatisticsSummaryRequest::getLang()const -{ - return lang_; +void DescribeRecordStatisticsSummaryRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeRecordStatisticsSummaryRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeRecordStatisticsSummaryRequest::getLang() const { + return lang_; } -std::string DescribeRecordStatisticsSummaryRequest::getKeyword()const -{ - return keyword_; +void DescribeRecordStatisticsSummaryRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeRecordStatisticsSummaryRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeRecordStatisticsSummaryRequest::getKeyword() const { + return keyword_; } -std::string DescribeRecordStatisticsSummaryRequest::getDirection()const -{ - return direction_; +void DescribeRecordStatisticsSummaryRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } -void DescribeRecordStatisticsSummaryRequest::setDirection(const std::string& direction) -{ - direction_ = direction; - setParameter("Direction", direction); +std::string DescribeRecordStatisticsSummaryRequest::getDirection() const { + return direction_; } -std::string DescribeRecordStatisticsSummaryRequest::getDomainName()const -{ - return domainName_; +void DescribeRecordStatisticsSummaryRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } -void DescribeRecordStatisticsSummaryRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string DescribeRecordStatisticsSummaryRequest::getDomainName() const { + return domainName_; } -std::string DescribeRecordStatisticsSummaryRequest::getOrderBy()const -{ - return orderBy_; +void DescribeRecordStatisticsSummaryRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeRecordStatisticsSummaryRequest::setOrderBy(const std::string& orderBy) -{ - orderBy_ = orderBy; - setParameter("OrderBy", orderBy); +std::string DescribeRecordStatisticsSummaryRequest::getOrderBy() const { + return orderBy_; } -std::string DescribeRecordStatisticsSummaryRequest::getEndDate()const -{ - return endDate_; +void DescribeRecordStatisticsSummaryRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); } -void DescribeRecordStatisticsSummaryRequest::setEndDate(const std::string& endDate) -{ - endDate_ = endDate; - setParameter("EndDate", endDate); +std::string DescribeRecordStatisticsSummaryRequest::getEndDate() const { + return endDate_; } -std::string DescribeRecordStatisticsSummaryRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeRecordStatisticsSummaryRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); } -void DescribeRecordStatisticsSummaryRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeRecordStatisticsSummaryRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeRecordStatisticsSummaryRequest::getSearchMode()const -{ - return searchMode_; +void DescribeRecordStatisticsSummaryRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeRecordStatisticsSummaryRequest::setSearchMode(const std::string& searchMode) -{ - searchMode_ = searchMode; - setParameter("SearchMode", searchMode); +std::string DescribeRecordStatisticsSummaryRequest::getSearchMode() const { + return searchMode_; +} + +void DescribeRecordStatisticsSummaryRequest::setSearchMode(const std::string &searchMode) { + searchMode_ = searchMode; + setParameter(std::string("SearchMode"), searchMode); } diff --git a/alidns/src/model/DescribeRecordStatisticsSummaryResult.cc b/alidns/src/model/DescribeRecordStatisticsSummaryResult.cc index 975016551..6726e7361 100644 --- a/alidns/src/model/DescribeRecordStatisticsSummaryResult.cc +++ b/alidns/src/model/DescribeRecordStatisticsSummaryResult.cc @@ -49,14 +49,14 @@ void DescribeRecordStatisticsSummaryResult::parse(const std::string &payload) statisticsObject.count = std::stol(valueStatisticsStatistic["Count"].asString()); statistics_.push_back(statisticsObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/DescribeSubDomainRecordsRequest.cc b/alidns/src/model/DescribeSubDomainRecordsRequest.cc index f21bf25ac..fb94d8025 100644 --- a/alidns/src/model/DescribeSubDomainRecordsRequest.cc +++ b/alidns/src/model/DescribeSubDomainRecordsRequest.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::Alidns::Model::DescribeSubDomainRecordsRequest; - -DescribeSubDomainRecordsRequest::DescribeSubDomainRecordsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeSubDomainRecords") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSubDomainRecordsRequest::~DescribeSubDomainRecordsRequest() -{} - -std::string DescribeSubDomainRecordsRequest::getLine()const -{ - return line_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeSubDomainRecordsRequest; + +DescribeSubDomainRecordsRequest::DescribeSubDomainRecordsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeSubDomainRecords") { + setMethod(HttpRequest::Method::Post); } -void DescribeSubDomainRecordsRequest::setLine(const std::string& line) -{ - line_ = line; - setParameter("Line", line); +DescribeSubDomainRecordsRequest::~DescribeSubDomainRecordsRequest() {} + +std::string DescribeSubDomainRecordsRequest::getLine() const { + return line_; } -std::string DescribeSubDomainRecordsRequest::getDomainName()const -{ - return domainName_; +void DescribeSubDomainRecordsRequest::setLine(const std::string &line) { + line_ = line; + setParameter(std::string("Line"), line); } -void DescribeSubDomainRecordsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string DescribeSubDomainRecordsRequest::getDomainName() const { + return domainName_; } -std::string DescribeSubDomainRecordsRequest::getType()const -{ - return type_; +void DescribeSubDomainRecordsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeSubDomainRecordsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeSubDomainRecordsRequest::getType() const { + return type_; } -long DescribeSubDomainRecordsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSubDomainRecordsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeSubDomainRecordsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeSubDomainRecordsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSubDomainRecordsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeSubDomainRecordsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSubDomainRecordsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeSubDomainRecordsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeSubDomainRecordsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeSubDomainRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeSubDomainRecordsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeSubDomainRecordsRequest::getUserClientIp() const { + return userClientIp_; } -long DescribeSubDomainRecordsRequest::getPageSize()const -{ - return pageSize_; +void DescribeSubDomainRecordsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeSubDomainRecordsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeSubDomainRecordsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSubDomainRecordsRequest::getSubDomain()const -{ - return subDomain_; +void DescribeSubDomainRecordsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSubDomainRecordsRequest::setSubDomain(const std::string& subDomain) -{ - subDomain_ = subDomain; - setParameter("SubDomain", subDomain); +std::string DescribeSubDomainRecordsRequest::getSubDomain() const { + return subDomain_; } -std::string DescribeSubDomainRecordsRequest::getLang()const -{ - return lang_; +void DescribeSubDomainRecordsRequest::setSubDomain(const std::string &subDomain) { + subDomain_ = subDomain; + setParameter(std::string("SubDomain"), subDomain); } -void DescribeSubDomainRecordsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeSubDomainRecordsRequest::getLang() const { + return lang_; +} + +void DescribeSubDomainRecordsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeSubDomainRecordsResult.cc b/alidns/src/model/DescribeSubDomainRecordsResult.cc index 032ce30b1..28dfc0372 100644 --- a/alidns/src/model/DescribeSubDomainRecordsResult.cc +++ b/alidns/src/model/DescribeSubDomainRecordsResult.cc @@ -43,36 +43,38 @@ void DescribeSubDomainRecordsResult::parse(const std::string &payload) for (auto valueDomainRecordsRecord : allDomainRecordsNode) { Record domainRecordsObject; - if(!valueDomainRecordsRecord["DomainName"].isNull()) - domainRecordsObject.domainName = valueDomainRecordsRecord["DomainName"].asString(); - if(!valueDomainRecordsRecord["RecordId"].isNull()) - domainRecordsObject.recordId = valueDomainRecordsRecord["RecordId"].asString(); - if(!valueDomainRecordsRecord["RR"].isNull()) - domainRecordsObject.rR = valueDomainRecordsRecord["RR"].asString(); + if(!valueDomainRecordsRecord["Status"].isNull()) + domainRecordsObject.status = valueDomainRecordsRecord["Status"].asString(); if(!valueDomainRecordsRecord["Type"].isNull()) domainRecordsObject.type = valueDomainRecordsRecord["Type"].asString(); + if(!valueDomainRecordsRecord["Weight"].isNull()) + domainRecordsObject.weight = std::stoi(valueDomainRecordsRecord["Weight"].asString()); if(!valueDomainRecordsRecord["Value"].isNull()) domainRecordsObject.value = valueDomainRecordsRecord["Value"].asString(); if(!valueDomainRecordsRecord["TTL"].isNull()) domainRecordsObject.tTL = std::stol(valueDomainRecordsRecord["TTL"].asString()); - if(!valueDomainRecordsRecord["Priority"].isNull()) - domainRecordsObject.priority = std::stol(valueDomainRecordsRecord["Priority"].asString()); if(!valueDomainRecordsRecord["Line"].isNull()) domainRecordsObject.line = valueDomainRecordsRecord["Line"].asString(); - if(!valueDomainRecordsRecord["Status"].isNull()) - domainRecordsObject.status = valueDomainRecordsRecord["Status"].asString(); + if(!valueDomainRecordsRecord["RecordId"].isNull()) + domainRecordsObject.recordId = valueDomainRecordsRecord["RecordId"].asString(); + if(!valueDomainRecordsRecord["Priority"].isNull()) + domainRecordsObject.priority = std::stol(valueDomainRecordsRecord["Priority"].asString()); + if(!valueDomainRecordsRecord["RR"].isNull()) + domainRecordsObject.rR = valueDomainRecordsRecord["RR"].asString(); + if(!valueDomainRecordsRecord["DomainName"].isNull()) + domainRecordsObject.domainName = valueDomainRecordsRecord["DomainName"].asString(); if(!valueDomainRecordsRecord["Locked"].isNull()) domainRecordsObject.locked = valueDomainRecordsRecord["Locked"].asString() == "true"; - if(!valueDomainRecordsRecord["Weight"].isNull()) - domainRecordsObject.weight = std::stoi(valueDomainRecordsRecord["Weight"].asString()); + if(!valueDomainRecordsRecord["Remark"].isNull()) + domainRecordsObject.remark = valueDomainRecordsRecord["Remark"].asString(); domainRecords_.push_back(domainRecordsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/DescribeSupportLinesRequest.cc b/alidns/src/model/DescribeSupportLinesRequest.cc index 716981f8e..9fc2b2081 100644 --- a/alidns/src/model/DescribeSupportLinesRequest.cc +++ b/alidns/src/model/DescribeSupportLinesRequest.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::Alidns::Model::DescribeSupportLinesRequest; - -DescribeSupportLinesRequest::DescribeSupportLinesRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeSupportLines") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSupportLinesRequest::~DescribeSupportLinesRequest() -{} - -std::string DescribeSupportLinesRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeSupportLinesRequest; + +DescribeSupportLinesRequest::DescribeSupportLinesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeSupportLines") { + setMethod(HttpRequest::Method::Post); } -void DescribeSupportLinesRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +DescribeSupportLinesRequest::~DescribeSupportLinesRequest() {} + +std::string DescribeSupportLinesRequest::getDomainName() const { + return domainName_; } -std::string DescribeSupportLinesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeSupportLinesRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeSupportLinesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeSupportLinesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeSupportLinesRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeSupportLinesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeSupportLinesRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeSupportLinesRequest::getUserClientIp() const { + return userClientIp_; } -std::string DescribeSupportLinesRequest::getLang()const -{ - return lang_; +void DescribeSupportLinesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeSupportLinesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeSupportLinesRequest::getLang() const { + return lang_; +} + +void DescribeSupportLinesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeSupportLinesResult.cc b/alidns/src/model/DescribeSupportLinesResult.cc index 954cb1bcc..a4adedadf 100644 --- a/alidns/src/model/DescribeSupportLinesResult.cc +++ b/alidns/src/model/DescribeSupportLinesResult.cc @@ -43,14 +43,14 @@ void DescribeSupportLinesResult::parse(const std::string &payload) for (auto valueRecordLinesRecordLine : allRecordLinesNode) { RecordLine recordLinesObject; - if(!valueRecordLinesRecordLine["LineCode"].isNull()) - recordLinesObject.lineCode = valueRecordLinesRecordLine["LineCode"].asString(); if(!valueRecordLinesRecordLine["FatherCode"].isNull()) recordLinesObject.fatherCode = valueRecordLinesRecordLine["FatherCode"].asString(); - if(!valueRecordLinesRecordLine["LineName"].isNull()) - recordLinesObject.lineName = valueRecordLinesRecordLine["LineName"].asString(); if(!valueRecordLinesRecordLine["LineDisplayName"].isNull()) recordLinesObject.lineDisplayName = valueRecordLinesRecordLine["LineDisplayName"].asString(); + if(!valueRecordLinesRecordLine["LineCode"].isNull()) + recordLinesObject.lineCode = valueRecordLinesRecordLine["LineCode"].asString(); + if(!valueRecordLinesRecordLine["LineName"].isNull()) + recordLinesObject.lineName = valueRecordLinesRecordLine["LineName"].asString(); recordLines_.push_back(recordLinesObject); } diff --git a/alidns/src/model/DescribeTagsRequest.cc b/alidns/src/model/DescribeTagsRequest.cc index 0ac8b0a6d..1b34dc4f1 100644 --- a/alidns/src/model/DescribeTagsRequest.cc +++ b/alidns/src/model/DescribeTagsRequest.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::Alidns::Model::DescribeTagsRequest; - -DescribeTagsRequest::DescribeTagsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeTags") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTagsRequest::~DescribeTagsRequest() -{} - -std::string DescribeTagsRequest::getResourceType()const -{ - return resourceType_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeTagsRequest; + +DescribeTagsRequest::DescribeTagsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeTags") { + setMethod(HttpRequest::Method::Post); } -void DescribeTagsRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +DescribeTagsRequest::~DescribeTagsRequest() {} + +std::string DescribeTagsRequest::getResourceType() const { + return resourceType_; } -long DescribeTagsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeTagsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void DescribeTagsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeTagsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeTagsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeTagsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeTagsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeTagsRequest::getUserClientIp() const { + return userClientIp_; } -long DescribeTagsRequest::getPageSize()const -{ - return pageSize_; +void DescribeTagsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void DescribeTagsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeTagsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeTagsRequest::getLang()const -{ - return lang_; +void DescribeTagsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeTagsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeTagsRequest::getLang() const { + return lang_; +} + +void DescribeTagsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/DescribeTagsResult.cc b/alidns/src/model/DescribeTagsResult.cc index d1762b561..418d6d0dd 100644 --- a/alidns/src/model/DescribeTagsResult.cc +++ b/alidns/src/model/DescribeTagsResult.cc @@ -52,10 +52,10 @@ void DescribeTagsResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/DescribeTransferDomainsRequest.cc b/alidns/src/model/DescribeTransferDomainsRequest.cc index 88259a0ab..0c701d273 100644 --- a/alidns/src/model/DescribeTransferDomainsRequest.cc +++ b/alidns/src/model/DescribeTransferDomainsRequest.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::Alidns::Model::DescribeTransferDomainsRequest; - -DescribeTransferDomainsRequest::DescribeTransferDomainsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "DescribeTransferDomains") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTransferDomainsRequest::~DescribeTransferDomainsRequest() -{} - -long DescribeTransferDomainsRequest::getFromUserId()const -{ - return fromUserId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::DescribeTransferDomainsRequest; + +DescribeTransferDomainsRequest::DescribeTransferDomainsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "DescribeTransferDomains") { + setMethod(HttpRequest::Method::Post); } -void DescribeTransferDomainsRequest::setFromUserId(long fromUserId) -{ - fromUserId_ = fromUserId; - setParameter("FromUserId", std::to_string(fromUserId)); +DescribeTransferDomainsRequest::~DescribeTransferDomainsRequest() {} + +long DescribeTransferDomainsRequest::getFromUserId() const { + return fromUserId_; } -long DescribeTransferDomainsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeTransferDomainsRequest::setFromUserId(long fromUserId) { + fromUserId_ = fromUserId; + setParameter(std::string("FromUserId"), std::to_string(fromUserId)); } -void DescribeTransferDomainsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeTransferDomainsRequest::getPageNumber() const { + return pageNumber_; } -long DescribeTransferDomainsRequest::getTargetUserId()const -{ - return targetUserId_; +void DescribeTransferDomainsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeTransferDomainsRequest::setTargetUserId(long targetUserId) -{ - targetUserId_ = targetUserId; - setParameter("TargetUserId", std::to_string(targetUserId)); +long DescribeTransferDomainsRequest::getTargetUserId() const { + return targetUserId_; } -long DescribeTransferDomainsRequest::getPageSize()const -{ - return pageSize_; +void DescribeTransferDomainsRequest::setTargetUserId(long targetUserId) { + targetUserId_ = targetUserId; + setParameter(std::string("TargetUserId"), std::to_string(targetUserId)); } -void DescribeTransferDomainsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeTransferDomainsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeTransferDomainsRequest::getLang()const -{ - return lang_; +void DescribeTransferDomainsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeTransferDomainsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeTransferDomainsRequest::getLang() const { + return lang_; } -std::string DescribeTransferDomainsRequest::getDomainName()const -{ - return domainName_; +void DescribeTransferDomainsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeTransferDomainsRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string DescribeTransferDomainsRequest::getDomainName() const { + return domainName_; } -std::string DescribeTransferDomainsRequest::getTransferType()const -{ - return transferType_; +void DescribeTransferDomainsRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void DescribeTransferDomainsRequest::setTransferType(const std::string& transferType) -{ - transferType_ = transferType; - setParameter("TransferType", transferType); +std::string DescribeTransferDomainsRequest::getTransferType() const { + return transferType_; } -std::string DescribeTransferDomainsRequest::getUserClientIp()const -{ - return userClientIp_; +void DescribeTransferDomainsRequest::setTransferType(const std::string &transferType) { + transferType_ = transferType; + setParameter(std::string("TransferType"), transferType); } -void DescribeTransferDomainsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string DescribeTransferDomainsRequest::getUserClientIp() const { + return userClientIp_; +} + +void DescribeTransferDomainsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } diff --git a/alidns/src/model/DescribeTransferDomainsResult.cc b/alidns/src/model/DescribeTransferDomainsResult.cc index 1946d0c33..322368b0c 100644 --- a/alidns/src/model/DescribeTransferDomainsResult.cc +++ b/alidns/src/model/DescribeTransferDomainsResult.cc @@ -43,26 +43,26 @@ void DescribeTransferDomainsResult::parse(const std::string &payload) for (auto valueDomainTransfersDomainTransfer : allDomainTransfersNode) { DomainTransfer domainTransfersObject; - if(!valueDomainTransfersDomainTransfer["DomainName"].isNull()) - domainTransfersObject.domainName = valueDomainTransfersDomainTransfer["DomainName"].asString(); - if(!valueDomainTransfersDomainTransfer["CreateTime"].isNull()) - domainTransfersObject.createTime = valueDomainTransfersDomainTransfer["CreateTime"].asString(); - if(!valueDomainTransfersDomainTransfer["CreateTimestamp"].isNull()) - domainTransfersObject.createTimestamp = std::stol(valueDomainTransfersDomainTransfer["CreateTimestamp"].asString()); if(!valueDomainTransfersDomainTransfer["FromUserId"].isNull()) domainTransfersObject.fromUserId = std::stol(valueDomainTransfersDomainTransfer["FromUserId"].asString()); + if(!valueDomainTransfersDomainTransfer["CreateTime"].isNull()) + domainTransfersObject.createTime = valueDomainTransfersDomainTransfer["CreateTime"].asString(); if(!valueDomainTransfersDomainTransfer["TargetUserId"].isNull()) domainTransfersObject.targetUserId = std::stol(valueDomainTransfersDomainTransfer["TargetUserId"].asString()); + if(!valueDomainTransfersDomainTransfer["DomainName"].isNull()) + domainTransfersObject.domainName = valueDomainTransfersDomainTransfer["DomainName"].asString(); if(!valueDomainTransfersDomainTransfer["Id"].isNull()) domainTransfersObject.id = std::stol(valueDomainTransfersDomainTransfer["Id"].asString()); + if(!valueDomainTransfersDomainTransfer["CreateTimestamp"].isNull()) + domainTransfersObject.createTimestamp = std::stol(valueDomainTransfersDomainTransfer["CreateTimestamp"].asString()); domainTransfers_.push_back(domainTransfersObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/alidns/src/model/ExecuteGtmRecoveryPlanRequest.cc b/alidns/src/model/ExecuteGtmRecoveryPlanRequest.cc index eb1677fd1..b99d80a9e 100644 --- a/alidns/src/model/ExecuteGtmRecoveryPlanRequest.cc +++ b/alidns/src/model/ExecuteGtmRecoveryPlanRequest.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::Alidns::Model::ExecuteGtmRecoveryPlanRequest; - -ExecuteGtmRecoveryPlanRequest::ExecuteGtmRecoveryPlanRequest() : - RpcServiceRequest("alidns", "2015-01-09", "ExecuteGtmRecoveryPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -ExecuteGtmRecoveryPlanRequest::~ExecuteGtmRecoveryPlanRequest() -{} - -std::string ExecuteGtmRecoveryPlanRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::ExecuteGtmRecoveryPlanRequest; + +ExecuteGtmRecoveryPlanRequest::ExecuteGtmRecoveryPlanRequest() + : RpcServiceRequest("alidns", "2015-01-09", "ExecuteGtmRecoveryPlan") { + setMethod(HttpRequest::Method::Post); } -void ExecuteGtmRecoveryPlanRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +ExecuteGtmRecoveryPlanRequest::~ExecuteGtmRecoveryPlanRequest() {} + +std::string ExecuteGtmRecoveryPlanRequest::getUserClientIp() const { + return userClientIp_; } -long ExecuteGtmRecoveryPlanRequest::getRecoveryPlanId()const -{ - return recoveryPlanId_; +void ExecuteGtmRecoveryPlanRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void ExecuteGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) -{ - recoveryPlanId_ = recoveryPlanId; - setParameter("RecoveryPlanId", std::to_string(recoveryPlanId)); +long ExecuteGtmRecoveryPlanRequest::getRecoveryPlanId() const { + return recoveryPlanId_; } -std::string ExecuteGtmRecoveryPlanRequest::getLang()const -{ - return lang_; +void ExecuteGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) { + recoveryPlanId_ = recoveryPlanId; + setParameter(std::string("RecoveryPlanId"), std::to_string(recoveryPlanId)); } -void ExecuteGtmRecoveryPlanRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string ExecuteGtmRecoveryPlanRequest::getLang() const { + return lang_; +} + +void ExecuteGtmRecoveryPlanRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/GetMainDomainNameRequest.cc b/alidns/src/model/GetMainDomainNameRequest.cc index d029f82fb..00a3401b3 100644 --- a/alidns/src/model/GetMainDomainNameRequest.cc +++ b/alidns/src/model/GetMainDomainNameRequest.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::Alidns::Model::GetMainDomainNameRequest; - -GetMainDomainNameRequest::GetMainDomainNameRequest() : - RpcServiceRequest("alidns", "2015-01-09", "GetMainDomainName") -{ - setMethod(HttpRequest::Method::Post); -} - -GetMainDomainNameRequest::~GetMainDomainNameRequest() -{} - -std::string GetMainDomainNameRequest::getInputString()const -{ - return inputString_; + */ + +#include + +using AlibabaCloud::Alidns::Model::GetMainDomainNameRequest; + +GetMainDomainNameRequest::GetMainDomainNameRequest() + : RpcServiceRequest("alidns", "2015-01-09", "GetMainDomainName") { + setMethod(HttpRequest::Method::Post); } -void GetMainDomainNameRequest::setInputString(const std::string& inputString) -{ - inputString_ = inputString; - setParameter("InputString", inputString); +GetMainDomainNameRequest::~GetMainDomainNameRequest() {} + +std::string GetMainDomainNameRequest::getInputString() const { + return inputString_; } -std::string GetMainDomainNameRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetMainDomainNameRequest::setInputString(const std::string &inputString) { + inputString_ = inputString; + setParameter(std::string("InputString"), inputString); } -void GetMainDomainNameRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetMainDomainNameRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string GetMainDomainNameRequest::getUserClientIp()const -{ - return userClientIp_; +void GetMainDomainNameRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void GetMainDomainNameRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string GetMainDomainNameRequest::getUserClientIp() const { + return userClientIp_; } -std::string GetMainDomainNameRequest::getLang()const -{ - return lang_; +void GetMainDomainNameRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void GetMainDomainNameRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string GetMainDomainNameRequest::getLang() const { + return lang_; +} + +void GetMainDomainNameRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/GetMainDomainNameResult.cc b/alidns/src/model/GetMainDomainNameResult.cc index b23be2cc0..f0c31fe82 100644 --- a/alidns/src/model/GetMainDomainNameResult.cc +++ b/alidns/src/model/GetMainDomainNameResult.cc @@ -39,10 +39,10 @@ void GetMainDomainNameResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["DomainName"].isNull()) - domainName_ = value["DomainName"].asString(); if(!value["RR"].isNull()) rR_ = value["RR"].asString(); + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); if(!value["DomainLevel"].isNull()) domainLevel_ = std::stol(value["DomainLevel"].asString()); diff --git a/alidns/src/model/GetTxtRecordForVerifyRequest.cc b/alidns/src/model/GetTxtRecordForVerifyRequest.cc index 693965a26..fc8860aac 100644 --- a/alidns/src/model/GetTxtRecordForVerifyRequest.cc +++ b/alidns/src/model/GetTxtRecordForVerifyRequest.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::Alidns::Model::GetTxtRecordForVerifyRequest; - -GetTxtRecordForVerifyRequest::GetTxtRecordForVerifyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "GetTxtRecordForVerify") -{ - setMethod(HttpRequest::Method::Post); -} - -GetTxtRecordForVerifyRequest::~GetTxtRecordForVerifyRequest() -{} - -std::string GetTxtRecordForVerifyRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::GetTxtRecordForVerifyRequest; + +GetTxtRecordForVerifyRequest::GetTxtRecordForVerifyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "GetTxtRecordForVerify") { + setMethod(HttpRequest::Method::Post); } -void GetTxtRecordForVerifyRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +GetTxtRecordForVerifyRequest::~GetTxtRecordForVerifyRequest() {} + +std::string GetTxtRecordForVerifyRequest::getDomainName() const { + return domainName_; } -std::string GetTxtRecordForVerifyRequest::getType()const -{ - return type_; +void GetTxtRecordForVerifyRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void GetTxtRecordForVerifyRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string GetTxtRecordForVerifyRequest::getType() const { + return type_; } -std::string GetTxtRecordForVerifyRequest::getUserClientIp()const -{ - return userClientIp_; +void GetTxtRecordForVerifyRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void GetTxtRecordForVerifyRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string GetTxtRecordForVerifyRequest::getUserClientIp() const { + return userClientIp_; } -std::string GetTxtRecordForVerifyRequest::getLang()const -{ - return lang_; +void GetTxtRecordForVerifyRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void GetTxtRecordForVerifyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string GetTxtRecordForVerifyRequest::getLang() const { + return lang_; +} + +void GetTxtRecordForVerifyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/GetTxtRecordForVerifyResult.cc b/alidns/src/model/GetTxtRecordForVerifyResult.cc index 6717b0af3..294651045 100644 --- a/alidns/src/model/GetTxtRecordForVerifyResult.cc +++ b/alidns/src/model/GetTxtRecordForVerifyResult.cc @@ -39,10 +39,10 @@ void GetTxtRecordForVerifyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["DomainName"].isNull()) - domainName_ = value["DomainName"].asString(); if(!value["RR"].isNull()) rR_ = value["RR"].asString(); + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); if(!value["Value"].isNull()) value_ = value["Value"].asString(); diff --git a/alidns/src/model/ListTagResourcesRequest.cc b/alidns/src/model/ListTagResourcesRequest.cc index 74bc77d4a..8e6c9fa5a 100644 --- a/alidns/src/model/ListTagResourcesRequest.cc +++ b/alidns/src/model/ListTagResourcesRequest.cc @@ -1,113 +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::Alidns::Model::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() : - RpcServiceRequest("alidns", "2015-01-09", "ListTagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTagResourcesRequest::~ListTagResourcesRequest() -{} - -std::vector ListTagResourcesRequest::getResourceId()const -{ - return resourceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "ListTagResources") { + setMethod(HttpRequest::Method::Post); } -void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string ListTagResourcesRequest::getResourceType()const -{ - return resourceType_; +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void ListTagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; } -int ListTagResourcesRequest::getSize()const -{ - return size_; +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void ListTagResourcesRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +int ListTagResourcesRequest::getSize() const { + return size_; } -std::string ListTagResourcesRequest::getNextToken()const -{ - return nextToken_; +void ListTagResourcesRequest::setSize(int size) { + size_ = size; + setParameter(std::string("Size"), std::to_string(size)); } -void ListTagResourcesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; } -std::string ListTagResourcesRequest::getUserClientIp()const -{ - return userClientIp_; +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListTagResourcesRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string ListTagResourcesRequest::getUserClientIp() const { + return userClientIp_; } -std::vector ListTagResourcesRequest::getTag()const -{ - return tag_; +void ListTagResourcesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void ListTagResourcesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector ListTagResourcesRequest::getTag() const { + return tag_; } -std::string ListTagResourcesRequest::getLang()const -{ - return lang_; +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void ListTagResourcesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string ListTagResourcesRequest::getLang() const { + return lang_; +} + +void ListTagResourcesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/ListTagResourcesResult.cc b/alidns/src/model/ListTagResourcesResult.cc index f84bb2ec8..b0995bf24 100644 --- a/alidns/src/model/ListTagResourcesResult.cc +++ b/alidns/src/model/ListTagResourcesResult.cc @@ -43,14 +43,14 @@ void ListTagResourcesResult::parse(const std::string &payload) for (auto valueTagResourcesTagResource : allTagResourcesNode) { TagResource tagResourcesObject; - if(!valueTagResourcesTagResource["TagKey"].isNull()) - tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); if(!valueTagResourcesTagResource["TagValue"].isNull()) tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); if(!valueTagResourcesTagResource["ResourceId"].isNull()) tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); - if(!valueTagResourcesTagResource["ResourceType"].isNull()) - tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); tagResources_.push_back(tagResourcesObject); } if(!value["NextToken"].isNull()) diff --git a/alidns/src/model/ModifyHichinaDomainDNSRequest.cc b/alidns/src/model/ModifyHichinaDomainDNSRequest.cc index 530f85028..d0719a45f 100644 --- a/alidns/src/model/ModifyHichinaDomainDNSRequest.cc +++ b/alidns/src/model/ModifyHichinaDomainDNSRequest.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::Alidns::Model::ModifyHichinaDomainDNSRequest; - -ModifyHichinaDomainDNSRequest::ModifyHichinaDomainDNSRequest() : - RpcServiceRequest("alidns", "2015-01-09", "ModifyHichinaDomainDNS") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyHichinaDomainDNSRequest::~ModifyHichinaDomainDNSRequest() -{} - -std::string ModifyHichinaDomainDNSRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::ModifyHichinaDomainDNSRequest; + +ModifyHichinaDomainDNSRequest::ModifyHichinaDomainDNSRequest() + : RpcServiceRequest("alidns", "2015-01-09", "ModifyHichinaDomainDNS") { + setMethod(HttpRequest::Method::Post); } -void ModifyHichinaDomainDNSRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +ModifyHichinaDomainDNSRequest::~ModifyHichinaDomainDNSRequest() {} + +std::string ModifyHichinaDomainDNSRequest::getDomainName() const { + return domainName_; } -std::string ModifyHichinaDomainDNSRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyHichinaDomainDNSRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void ModifyHichinaDomainDNSRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyHichinaDomainDNSRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyHichinaDomainDNSRequest::getUserClientIp()const -{ - return userClientIp_; +void ModifyHichinaDomainDNSRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyHichinaDomainDNSRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string ModifyHichinaDomainDNSRequest::getUserClientIp() const { + return userClientIp_; } -std::string ModifyHichinaDomainDNSRequest::getLang()const -{ - return lang_; +void ModifyHichinaDomainDNSRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void ModifyHichinaDomainDNSRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string ModifyHichinaDomainDNSRequest::getLang() const { + return lang_; +} + +void ModifyHichinaDomainDNSRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/ModifyHichinaDomainDNSResult.cc b/alidns/src/model/ModifyHichinaDomainDNSResult.cc index 3688b4b29..ca68a54da 100644 --- a/alidns/src/model/ModifyHichinaDomainDNSResult.cc +++ b/alidns/src/model/ModifyHichinaDomainDNSResult.cc @@ -39,12 +39,12 @@ void ModifyHichinaDomainDNSResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allOriginalDnsServers = value["OriginalDnsServers"]["DnsServer"]; - for (const auto &item : allOriginalDnsServers) - originalDnsServers_.push_back(item.asString()); auto allNewDnsServers = value["NewDnsServers"]["DnsServer"]; for (const auto &item : allNewDnsServers) newDnsServers_.push_back(item.asString()); + auto allOriginalDnsServers = value["OriginalDnsServers"]["DnsServer"]; + for (const auto &item : allOriginalDnsServers) + originalDnsServers_.push_back(item.asString()); } diff --git a/alidns/src/model/MoveDomainResourceGroupRequest.cc b/alidns/src/model/MoveDomainResourceGroupRequest.cc index 903aa9f1b..052e05bd5 100644 --- a/alidns/src/model/MoveDomainResourceGroupRequest.cc +++ b/alidns/src/model/MoveDomainResourceGroupRequest.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::Alidns::Model::MoveDomainResourceGroupRequest; - -MoveDomainResourceGroupRequest::MoveDomainResourceGroupRequest() : - RpcServiceRequest("alidns", "2015-01-09", "MoveDomainResourceGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -MoveDomainResourceGroupRequest::~MoveDomainResourceGroupRequest() -{} - -std::string MoveDomainResourceGroupRequest::getResourceId()const -{ - return resourceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::MoveDomainResourceGroupRequest; + +MoveDomainResourceGroupRequest::MoveDomainResourceGroupRequest() + : RpcServiceRequest("alidns", "2015-01-09", "MoveDomainResourceGroup") { + setMethod(HttpRequest::Method::Post); } -void MoveDomainResourceGroupRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +MoveDomainResourceGroupRequest::~MoveDomainResourceGroupRequest() {} + +std::string MoveDomainResourceGroupRequest::getResourceId() const { + return resourceId_; } -std::string MoveDomainResourceGroupRequest::getNewResourceGroupId()const -{ - return newResourceGroupId_; +void MoveDomainResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void MoveDomainResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId) -{ - newResourceGroupId_ = newResourceGroupId; - setParameter("NewResourceGroupId", newResourceGroupId); +std::string MoveDomainResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; } -std::string MoveDomainResourceGroupRequest::getUserClientIp()const -{ - return userClientIp_; +void MoveDomainResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); } -void MoveDomainResourceGroupRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string MoveDomainResourceGroupRequest::getUserClientIp() const { + return userClientIp_; } -std::string MoveDomainResourceGroupRequest::getLang()const -{ - return lang_; +void MoveDomainResourceGroupRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void MoveDomainResourceGroupRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string MoveDomainResourceGroupRequest::getLang() const { + return lang_; +} + +void MoveDomainResourceGroupRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/MoveGtmResourceGroupRequest.cc b/alidns/src/model/MoveGtmResourceGroupRequest.cc index 6eeebe913..0f430a6f9 100644 --- a/alidns/src/model/MoveGtmResourceGroupRequest.cc +++ b/alidns/src/model/MoveGtmResourceGroupRequest.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::Alidns::Model::MoveGtmResourceGroupRequest; - -MoveGtmResourceGroupRequest::MoveGtmResourceGroupRequest() : - RpcServiceRequest("alidns", "2015-01-09", "MoveGtmResourceGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -MoveGtmResourceGroupRequest::~MoveGtmResourceGroupRequest() -{} - -std::string MoveGtmResourceGroupRequest::getResourceId()const -{ - return resourceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::MoveGtmResourceGroupRequest; + +MoveGtmResourceGroupRequest::MoveGtmResourceGroupRequest() + : RpcServiceRequest("alidns", "2015-01-09", "MoveGtmResourceGroup") { + setMethod(HttpRequest::Method::Post); } -void MoveGtmResourceGroupRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +MoveGtmResourceGroupRequest::~MoveGtmResourceGroupRequest() {} + +std::string MoveGtmResourceGroupRequest::getResourceId() const { + return resourceId_; } -std::string MoveGtmResourceGroupRequest::getNewResourceGroupId()const -{ - return newResourceGroupId_; +void MoveGtmResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void MoveGtmResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId) -{ - newResourceGroupId_ = newResourceGroupId; - setParameter("NewResourceGroupId", newResourceGroupId); +std::string MoveGtmResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; } -std::string MoveGtmResourceGroupRequest::getUserClientIp()const -{ - return userClientIp_; +void MoveGtmResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); } -void MoveGtmResourceGroupRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string MoveGtmResourceGroupRequest::getUserClientIp() const { + return userClientIp_; } -std::string MoveGtmResourceGroupRequest::getLang()const -{ - return lang_; +void MoveGtmResourceGroupRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void MoveGtmResourceGroupRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string MoveGtmResourceGroupRequest::getLang() const { + return lang_; +} + +void MoveGtmResourceGroupRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/OperateBatchDomainRequest.cc b/alidns/src/model/OperateBatchDomainRequest.cc index ae05b6e24..c1fdfd8e8 100644 --- a/alidns/src/model/OperateBatchDomainRequest.cc +++ b/alidns/src/model/OperateBatchDomainRequest.cc @@ -1,86 +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::Alidns::Model::OperateBatchDomainRequest; - -OperateBatchDomainRequest::OperateBatchDomainRequest() : - RpcServiceRequest("alidns", "2015-01-09", "OperateBatchDomain") -{ - setMethod(HttpRequest::Method::Post); -} - -OperateBatchDomainRequest::~OperateBatchDomainRequest() -{} - -std::vector OperateBatchDomainRequest::getDomainRecordInfo()const -{ - return domainRecordInfo_; + */ + +#include + +using AlibabaCloud::Alidns::Model::OperateBatchDomainRequest; + +OperateBatchDomainRequest::OperateBatchDomainRequest() + : RpcServiceRequest("alidns", "2015-01-09", "OperateBatchDomain") { + setMethod(HttpRequest::Method::Post); } -void OperateBatchDomainRequest::setDomainRecordInfo(const std::vector& domainRecordInfo) -{ - domainRecordInfo_ = domainRecordInfo; - for(int dep1 = 0; dep1!= domainRecordInfo.size(); dep1++) { - auto domainRecordInfoObj = domainRecordInfo.at(dep1); - std::string domainRecordInfoObjStr = "DomainRecordInfo." + std::to_string(dep1 + 1); - setParameter(domainRecordInfoObjStr + ".Rr", domainRecordInfoObj.rr); - setParameter(domainRecordInfoObjStr + ".NewType", domainRecordInfoObj.newType); - setParameter(domainRecordInfoObjStr + ".NewValue", domainRecordInfoObj.newValue); - setParameter(domainRecordInfoObjStr + ".Line", domainRecordInfoObj.line); - setParameter(domainRecordInfoObjStr + ".Domain", domainRecordInfoObj.domain); - setParameter(domainRecordInfoObjStr + ".Type", domainRecordInfoObj.type); - setParameter(domainRecordInfoObjStr + ".Priority", std::to_string(domainRecordInfoObj.priority)); - setParameter(domainRecordInfoObjStr + ".Value", domainRecordInfoObj.value); - setParameter(domainRecordInfoObjStr + ".Ttl", std::to_string(domainRecordInfoObj.ttl)); - setParameter(domainRecordInfoObjStr + ".NewRr", domainRecordInfoObj.newRr); - } +OperateBatchDomainRequest::~OperateBatchDomainRequest() {} + +std::vector OperateBatchDomainRequest::getDomainRecordInfo() const { + return domainRecordInfo_; } -std::string OperateBatchDomainRequest::getType()const -{ - return type_; +void OperateBatchDomainRequest::setDomainRecordInfo(const std::vector &domainRecordInfo) { + domainRecordInfo_ = domainRecordInfo; + for(int dep1 = 0; dep1 != domainRecordInfo.size(); dep1++) { + auto domainRecordInfoObj = domainRecordInfo.at(dep1); + std::string domainRecordInfoObjStr = std::string("DomainRecordInfo") + "." + std::to_string(dep1 + 1); + setParameter(domainRecordInfoObjStr + ".Rr", domainRecordInfoObj.rr); + setParameter(domainRecordInfoObjStr + ".NewType", domainRecordInfoObj.newType); + setParameter(domainRecordInfoObjStr + ".NewValue", domainRecordInfoObj.newValue); + setParameter(domainRecordInfoObjStr + ".Line", domainRecordInfoObj.line); + setParameter(domainRecordInfoObjStr + ".Domain", domainRecordInfoObj.domain); + setParameter(domainRecordInfoObjStr + ".Type", domainRecordInfoObj.type); + setParameter(domainRecordInfoObjStr + ".Priority", std::to_string(domainRecordInfoObj.priority)); + setParameter(domainRecordInfoObjStr + ".Value", domainRecordInfoObj.value); + setParameter(domainRecordInfoObjStr + ".Ttl", std::to_string(domainRecordInfoObj.ttl)); + setParameter(domainRecordInfoObjStr + ".NewRr", domainRecordInfoObj.newRr); + } } -void OperateBatchDomainRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string OperateBatchDomainRequest::getType() const { + return type_; } -std::string OperateBatchDomainRequest::getUserClientIp()const -{ - return userClientIp_; +void OperateBatchDomainRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void OperateBatchDomainRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string OperateBatchDomainRequest::getUserClientIp() const { + return userClientIp_; } -std::string OperateBatchDomainRequest::getLang()const -{ - return lang_; +void OperateBatchDomainRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void OperateBatchDomainRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string OperateBatchDomainRequest::getLang() const { + return lang_; +} + +void OperateBatchDomainRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/PausePdnsServiceRequest.cc b/alidns/src/model/PausePdnsServiceRequest.cc index f604a557c..f69d53795 100644 --- a/alidns/src/model/PausePdnsServiceRequest.cc +++ b/alidns/src/model/PausePdnsServiceRequest.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::Alidns::Model::PausePdnsServiceRequest; - -PausePdnsServiceRequest::PausePdnsServiceRequest() : - RpcServiceRequest("alidns", "2015-01-09", "PausePdnsService") -{ - setMethod(HttpRequest::Method::Post); -} - -PausePdnsServiceRequest::~PausePdnsServiceRequest() -{} - -std::string PausePdnsServiceRequest::getServiceType()const -{ - return serviceType_; + */ + +#include + +using AlibabaCloud::Alidns::Model::PausePdnsServiceRequest; + +PausePdnsServiceRequest::PausePdnsServiceRequest() + : RpcServiceRequest("alidns", "2015-01-09", "PausePdnsService") { + setMethod(HttpRequest::Method::Post); } -void PausePdnsServiceRequest::setServiceType(const std::string& serviceType) -{ - serviceType_ = serviceType; - setParameter("ServiceType", serviceType); +PausePdnsServiceRequest::~PausePdnsServiceRequest() {} + +std::string PausePdnsServiceRequest::getServiceType() const { + return serviceType_; } -std::string PausePdnsServiceRequest::getLang()const -{ - return lang_; +void PausePdnsServiceRequest::setServiceType(const std::string &serviceType) { + serviceType_ = serviceType; + setParameter(std::string("ServiceType"), serviceType); } -void PausePdnsServiceRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string PausePdnsServiceRequest::getLang() const { + return lang_; +} + +void PausePdnsServiceRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/PreviewGtmRecoveryPlanRequest.cc b/alidns/src/model/PreviewGtmRecoveryPlanRequest.cc index 6ea754d19..ce75d5a51 100644 --- a/alidns/src/model/PreviewGtmRecoveryPlanRequest.cc +++ b/alidns/src/model/PreviewGtmRecoveryPlanRequest.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::Alidns::Model::PreviewGtmRecoveryPlanRequest; - -PreviewGtmRecoveryPlanRequest::PreviewGtmRecoveryPlanRequest() : - RpcServiceRequest("alidns", "2015-01-09", "PreviewGtmRecoveryPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -PreviewGtmRecoveryPlanRequest::~PreviewGtmRecoveryPlanRequest() -{} - -int PreviewGtmRecoveryPlanRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Alidns::Model::PreviewGtmRecoveryPlanRequest; + +PreviewGtmRecoveryPlanRequest::PreviewGtmRecoveryPlanRequest() + : RpcServiceRequest("alidns", "2015-01-09", "PreviewGtmRecoveryPlan") { + setMethod(HttpRequest::Method::Post); } -void PreviewGtmRecoveryPlanRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +PreviewGtmRecoveryPlanRequest::~PreviewGtmRecoveryPlanRequest() {} + +int PreviewGtmRecoveryPlanRequest::getPageNumber() const { + return pageNumber_; } -std::string PreviewGtmRecoveryPlanRequest::getUserClientIp()const -{ - return userClientIp_; +void PreviewGtmRecoveryPlanRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void PreviewGtmRecoveryPlanRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string PreviewGtmRecoveryPlanRequest::getUserClientIp() const { + return userClientIp_; } -int PreviewGtmRecoveryPlanRequest::getPageSize()const -{ - return pageSize_; +void PreviewGtmRecoveryPlanRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void PreviewGtmRecoveryPlanRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int PreviewGtmRecoveryPlanRequest::getPageSize() const { + return pageSize_; } -long PreviewGtmRecoveryPlanRequest::getRecoveryPlanId()const -{ - return recoveryPlanId_; +void PreviewGtmRecoveryPlanRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void PreviewGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) -{ - recoveryPlanId_ = recoveryPlanId; - setParameter("RecoveryPlanId", std::to_string(recoveryPlanId)); +long PreviewGtmRecoveryPlanRequest::getRecoveryPlanId() const { + return recoveryPlanId_; } -std::string PreviewGtmRecoveryPlanRequest::getLang()const -{ - return lang_; +void PreviewGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) { + recoveryPlanId_ = recoveryPlanId; + setParameter(std::string("RecoveryPlanId"), std::to_string(recoveryPlanId)); } -void PreviewGtmRecoveryPlanRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string PreviewGtmRecoveryPlanRequest::getLang() const { + return lang_; +} + +void PreviewGtmRecoveryPlanRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/PreviewGtmRecoveryPlanResult.cc b/alidns/src/model/PreviewGtmRecoveryPlanResult.cc index c4d26396f..1548fbdc7 100644 --- a/alidns/src/model/PreviewGtmRecoveryPlanResult.cc +++ b/alidns/src/model/PreviewGtmRecoveryPlanResult.cc @@ -61,14 +61,14 @@ void PreviewGtmRecoveryPlanResult::parse(const std::string &payload) } previews_.push_back(previewsObject); } - if(!value["TotalItems"].isNull()) - totalItems_ = std::stoi(value["TotalItems"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); + if(!value["TotalItems"].isNull()) + totalItems_ = std::stoi(value["TotalItems"].asString()); } diff --git a/alidns/src/model/RemovePdnsAppKeyRequest.cc b/alidns/src/model/RemovePdnsAppKeyRequest.cc index 98ed8faa7..61a18ab50 100644 --- a/alidns/src/model/RemovePdnsAppKeyRequest.cc +++ b/alidns/src/model/RemovePdnsAppKeyRequest.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::Alidns::Model::RemovePdnsAppKeyRequest; - -RemovePdnsAppKeyRequest::RemovePdnsAppKeyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "RemovePdnsAppKey") -{ - setMethod(HttpRequest::Method::Post); -} - -RemovePdnsAppKeyRequest::~RemovePdnsAppKeyRequest() -{} - -std::string RemovePdnsAppKeyRequest::getAppKeyId()const -{ - return appKeyId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::RemovePdnsAppKeyRequest; + +RemovePdnsAppKeyRequest::RemovePdnsAppKeyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "RemovePdnsAppKey") { + setMethod(HttpRequest::Method::Post); } -void RemovePdnsAppKeyRequest::setAppKeyId(const std::string& appKeyId) -{ - appKeyId_ = appKeyId; - setParameter("AppKeyId", appKeyId); +RemovePdnsAppKeyRequest::~RemovePdnsAppKeyRequest() {} + +std::string RemovePdnsAppKeyRequest::getAppKeyId() const { + return appKeyId_; } -std::string RemovePdnsAppKeyRequest::getLang()const -{ - return lang_; +void RemovePdnsAppKeyRequest::setAppKeyId(const std::string &appKeyId) { + appKeyId_ = appKeyId; + setParameter(std::string("AppKeyId"), appKeyId); } -void RemovePdnsAppKeyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string RemovePdnsAppKeyRequest::getLang() const { + return lang_; +} + +void RemovePdnsAppKeyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/RemovePdnsUdpIpSegmentRequest.cc b/alidns/src/model/RemovePdnsUdpIpSegmentRequest.cc index 492253bbf..1f6fcb055 100644 --- a/alidns/src/model/RemovePdnsUdpIpSegmentRequest.cc +++ b/alidns/src/model/RemovePdnsUdpIpSegmentRequest.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::Alidns::Model::RemovePdnsUdpIpSegmentRequest; - -RemovePdnsUdpIpSegmentRequest::RemovePdnsUdpIpSegmentRequest() : - RpcServiceRequest("alidns", "2015-01-09", "RemovePdnsUdpIpSegment") -{ - setMethod(HttpRequest::Method::Post); -} - -RemovePdnsUdpIpSegmentRequest::~RemovePdnsUdpIpSegmentRequest() -{} - -std::string RemovePdnsUdpIpSegmentRequest::getIp()const -{ - return ip_; + */ + +#include + +using AlibabaCloud::Alidns::Model::RemovePdnsUdpIpSegmentRequest; + +RemovePdnsUdpIpSegmentRequest::RemovePdnsUdpIpSegmentRequest() + : RpcServiceRequest("alidns", "2015-01-09", "RemovePdnsUdpIpSegment") { + setMethod(HttpRequest::Method::Post); } -void RemovePdnsUdpIpSegmentRequest::setIp(const std::string& ip) -{ - ip_ = ip; - setParameter("Ip", ip); +RemovePdnsUdpIpSegmentRequest::~RemovePdnsUdpIpSegmentRequest() {} + +std::string RemovePdnsUdpIpSegmentRequest::getIp() const { + return ip_; } -std::string RemovePdnsUdpIpSegmentRequest::getLang()const -{ - return lang_; +void RemovePdnsUdpIpSegmentRequest::setIp(const std::string &ip) { + ip_ = ip; + setParameter(std::string("Ip"), ip); } -void RemovePdnsUdpIpSegmentRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string RemovePdnsUdpIpSegmentRequest::getLang() const { + return lang_; +} + +void RemovePdnsUdpIpSegmentRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/ResumePdnsServiceRequest.cc b/alidns/src/model/ResumePdnsServiceRequest.cc index 1694639db..47a5061c4 100644 --- a/alidns/src/model/ResumePdnsServiceRequest.cc +++ b/alidns/src/model/ResumePdnsServiceRequest.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::Alidns::Model::ResumePdnsServiceRequest; - -ResumePdnsServiceRequest::ResumePdnsServiceRequest() : - RpcServiceRequest("alidns", "2015-01-09", "ResumePdnsService") -{ - setMethod(HttpRequest::Method::Post); -} - -ResumePdnsServiceRequest::~ResumePdnsServiceRequest() -{} - -std::string ResumePdnsServiceRequest::getServiceType()const -{ - return serviceType_; + */ + +#include + +using AlibabaCloud::Alidns::Model::ResumePdnsServiceRequest; + +ResumePdnsServiceRequest::ResumePdnsServiceRequest() + : RpcServiceRequest("alidns", "2015-01-09", "ResumePdnsService") { + setMethod(HttpRequest::Method::Post); } -void ResumePdnsServiceRequest::setServiceType(const std::string& serviceType) -{ - serviceType_ = serviceType; - setParameter("ServiceType", serviceType); +ResumePdnsServiceRequest::~ResumePdnsServiceRequest() {} + +std::string ResumePdnsServiceRequest::getServiceType() const { + return serviceType_; } -std::string ResumePdnsServiceRequest::getLang()const -{ - return lang_; +void ResumePdnsServiceRequest::setServiceType(const std::string &serviceType) { + serviceType_ = serviceType; + setParameter(std::string("ServiceType"), serviceType); } -void ResumePdnsServiceRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string ResumePdnsServiceRequest::getLang() const { + return lang_; +} + +void ResumePdnsServiceRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/RetrieveDomainRequest.cc b/alidns/src/model/RetrieveDomainRequest.cc index 962cd2c1e..32f6cb468 100644 --- a/alidns/src/model/RetrieveDomainRequest.cc +++ b/alidns/src/model/RetrieveDomainRequest.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::Alidns::Model::RetrieveDomainRequest; - -RetrieveDomainRequest::RetrieveDomainRequest() : - RpcServiceRequest("alidns", "2015-01-09", "RetrieveDomain") -{ - setMethod(HttpRequest::Method::Post); -} - -RetrieveDomainRequest::~RetrieveDomainRequest() -{} - -std::string RetrieveDomainRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::RetrieveDomainRequest; + +RetrieveDomainRequest::RetrieveDomainRequest() + : RpcServiceRequest("alidns", "2015-01-09", "RetrieveDomain") { + setMethod(HttpRequest::Method::Post); } -void RetrieveDomainRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +RetrieveDomainRequest::~RetrieveDomainRequest() {} + +std::string RetrieveDomainRequest::getDomainName() const { + return domainName_; } -std::string RetrieveDomainRequest::getUserClientIp()const -{ - return userClientIp_; +void RetrieveDomainRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void RetrieveDomainRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string RetrieveDomainRequest::getUserClientIp() const { + return userClientIp_; } -std::string RetrieveDomainRequest::getLang()const -{ - return lang_; +void RetrieveDomainRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void RetrieveDomainRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string RetrieveDomainRequest::getLang() const { + return lang_; +} + +void RetrieveDomainRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/RollbackGtmRecoveryPlanRequest.cc b/alidns/src/model/RollbackGtmRecoveryPlanRequest.cc index 7a501131e..d34befbf6 100644 --- a/alidns/src/model/RollbackGtmRecoveryPlanRequest.cc +++ b/alidns/src/model/RollbackGtmRecoveryPlanRequest.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::Alidns::Model::RollbackGtmRecoveryPlanRequest; - -RollbackGtmRecoveryPlanRequest::RollbackGtmRecoveryPlanRequest() : - RpcServiceRequest("alidns", "2015-01-09", "RollbackGtmRecoveryPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -RollbackGtmRecoveryPlanRequest::~RollbackGtmRecoveryPlanRequest() -{} - -std::string RollbackGtmRecoveryPlanRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::RollbackGtmRecoveryPlanRequest; + +RollbackGtmRecoveryPlanRequest::RollbackGtmRecoveryPlanRequest() + : RpcServiceRequest("alidns", "2015-01-09", "RollbackGtmRecoveryPlan") { + setMethod(HttpRequest::Method::Post); } -void RollbackGtmRecoveryPlanRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +RollbackGtmRecoveryPlanRequest::~RollbackGtmRecoveryPlanRequest() {} + +std::string RollbackGtmRecoveryPlanRequest::getUserClientIp() const { + return userClientIp_; } -long RollbackGtmRecoveryPlanRequest::getRecoveryPlanId()const -{ - return recoveryPlanId_; +void RollbackGtmRecoveryPlanRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void RollbackGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) -{ - recoveryPlanId_ = recoveryPlanId; - setParameter("RecoveryPlanId", std::to_string(recoveryPlanId)); +long RollbackGtmRecoveryPlanRequest::getRecoveryPlanId() const { + return recoveryPlanId_; } -std::string RollbackGtmRecoveryPlanRequest::getLang()const -{ - return lang_; +void RollbackGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) { + recoveryPlanId_ = recoveryPlanId; + setParameter(std::string("RecoveryPlanId"), std::to_string(recoveryPlanId)); } -void RollbackGtmRecoveryPlanRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string RollbackGtmRecoveryPlanRequest::getLang() const { + return lang_; +} + +void RollbackGtmRecoveryPlanRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/SetDNSSLBStatusRequest.cc b/alidns/src/model/SetDNSSLBStatusRequest.cc index 8ba81882d..f813d7797 100644 --- a/alidns/src/model/SetDNSSLBStatusRequest.cc +++ b/alidns/src/model/SetDNSSLBStatusRequest.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::Alidns::Model::SetDNSSLBStatusRequest; - -SetDNSSLBStatusRequest::SetDNSSLBStatusRequest() : - RpcServiceRequest("alidns", "2015-01-09", "SetDNSSLBStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -SetDNSSLBStatusRequest::~SetDNSSLBStatusRequest() -{} - -std::string SetDNSSLBStatusRequest::getLine()const -{ - return line_; + */ + +#include + +using AlibabaCloud::Alidns::Model::SetDNSSLBStatusRequest; + +SetDNSSLBStatusRequest::SetDNSSLBStatusRequest() + : RpcServiceRequest("alidns", "2015-01-09", "SetDNSSLBStatus") { + setMethod(HttpRequest::Method::Post); } -void SetDNSSLBStatusRequest::setLine(const std::string& line) -{ - line_ = line; - setParameter("Line", line); +SetDNSSLBStatusRequest::~SetDNSSLBStatusRequest() {} + +std::string SetDNSSLBStatusRequest::getLine() const { + return line_; } -std::string SetDNSSLBStatusRequest::getDomainName()const -{ - return domainName_; +void SetDNSSLBStatusRequest::setLine(const std::string &line) { + line_ = line; + setParameter(std::string("Line"), line); } -void SetDNSSLBStatusRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string SetDNSSLBStatusRequest::getDomainName() const { + return domainName_; } -std::string SetDNSSLBStatusRequest::getType()const -{ - return type_; +void SetDNSSLBStatusRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void SetDNSSLBStatusRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string SetDNSSLBStatusRequest::getType() const { + return type_; } -std::string SetDNSSLBStatusRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SetDNSSLBStatusRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void SetDNSSLBStatusRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SetDNSSLBStatusRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SetDNSSLBStatusRequest::getUserClientIp()const -{ - return userClientIp_; +void SetDNSSLBStatusRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SetDNSSLBStatusRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string SetDNSSLBStatusRequest::getUserClientIp() const { + return userClientIp_; } -std::string SetDNSSLBStatusRequest::getSubDomain()const -{ - return subDomain_; +void SetDNSSLBStatusRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void SetDNSSLBStatusRequest::setSubDomain(const std::string& subDomain) -{ - subDomain_ = subDomain; - setParameter("SubDomain", subDomain); +std::string SetDNSSLBStatusRequest::getSubDomain() const { + return subDomain_; } -std::string SetDNSSLBStatusRequest::getLang()const -{ - return lang_; +void SetDNSSLBStatusRequest::setSubDomain(const std::string &subDomain) { + subDomain_ = subDomain; + setParameter(std::string("SubDomain"), subDomain); } -void SetDNSSLBStatusRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string SetDNSSLBStatusRequest::getLang() const { + return lang_; } -bool SetDNSSLBStatusRequest::getOpen()const -{ - return open_; +void SetDNSSLBStatusRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void SetDNSSLBStatusRequest::setOpen(bool open) -{ - open_ = open; - setParameter("Open", open ? "true" : "false"); +bool SetDNSSLBStatusRequest::getOpen() const { + return open_; +} + +void SetDNSSLBStatusRequest::setOpen(bool open) { + open_ = open; + setParameter(std::string("Open"), open ? "true" : "false"); } diff --git a/alidns/src/model/SetDnsGtmAccessModeRequest.cc b/alidns/src/model/SetDnsGtmAccessModeRequest.cc index 2edd14aa4..9fcd522b7 100644 --- a/alidns/src/model/SetDnsGtmAccessModeRequest.cc +++ b/alidns/src/model/SetDnsGtmAccessModeRequest.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::Alidns::Model::SetDnsGtmAccessModeRequest; - -SetDnsGtmAccessModeRequest::SetDnsGtmAccessModeRequest() : - RpcServiceRequest("alidns", "2015-01-09", "SetDnsGtmAccessMode") -{ - setMethod(HttpRequest::Method::Post); -} - -SetDnsGtmAccessModeRequest::~SetDnsGtmAccessModeRequest() -{} - -std::string SetDnsGtmAccessModeRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::SetDnsGtmAccessModeRequest; + +SetDnsGtmAccessModeRequest::SetDnsGtmAccessModeRequest() + : RpcServiceRequest("alidns", "2015-01-09", "SetDnsGtmAccessMode") { + setMethod(HttpRequest::Method::Post); } -void SetDnsGtmAccessModeRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +SetDnsGtmAccessModeRequest::~SetDnsGtmAccessModeRequest() {} + +std::string SetDnsGtmAccessModeRequest::getUserClientIp() const { + return userClientIp_; } -std::string SetDnsGtmAccessModeRequest::getStrategyId()const -{ - return strategyId_; +void SetDnsGtmAccessModeRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void SetDnsGtmAccessModeRequest::setStrategyId(const std::string& strategyId) -{ - strategyId_ = strategyId; - setParameter("StrategyId", strategyId); +std::string SetDnsGtmAccessModeRequest::getStrategyId() const { + return strategyId_; } -std::string SetDnsGtmAccessModeRequest::getLang()const -{ - return lang_; +void SetDnsGtmAccessModeRequest::setStrategyId(const std::string &strategyId) { + strategyId_ = strategyId; + setParameter(std::string("StrategyId"), strategyId); } -void SetDnsGtmAccessModeRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string SetDnsGtmAccessModeRequest::getLang() const { + return lang_; } -std::string SetDnsGtmAccessModeRequest::getAccessMode()const -{ - return accessMode_; +void SetDnsGtmAccessModeRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void SetDnsGtmAccessModeRequest::setAccessMode(const std::string& accessMode) -{ - accessMode_ = accessMode; - setParameter("AccessMode", accessMode); +std::string SetDnsGtmAccessModeRequest::getAccessMode() const { + return accessMode_; +} + +void SetDnsGtmAccessModeRequest::setAccessMode(const std::string &accessMode) { + accessMode_ = accessMode; + setParameter(std::string("AccessMode"), accessMode); } diff --git a/alidns/src/model/SetDnsGtmMonitorStatusRequest.cc b/alidns/src/model/SetDnsGtmMonitorStatusRequest.cc index 35cbfd5b6..360f767be 100644 --- a/alidns/src/model/SetDnsGtmMonitorStatusRequest.cc +++ b/alidns/src/model/SetDnsGtmMonitorStatusRequest.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::Alidns::Model::SetDnsGtmMonitorStatusRequest; - -SetDnsGtmMonitorStatusRequest::SetDnsGtmMonitorStatusRequest() : - RpcServiceRequest("alidns", "2015-01-09", "SetDnsGtmMonitorStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -SetDnsGtmMonitorStatusRequest::~SetDnsGtmMonitorStatusRequest() -{} - -std::string SetDnsGtmMonitorStatusRequest::getMonitorConfigId()const -{ - return monitorConfigId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::SetDnsGtmMonitorStatusRequest; + +SetDnsGtmMonitorStatusRequest::SetDnsGtmMonitorStatusRequest() + : RpcServiceRequest("alidns", "2015-01-09", "SetDnsGtmMonitorStatus") { + setMethod(HttpRequest::Method::Post); } -void SetDnsGtmMonitorStatusRequest::setMonitorConfigId(const std::string& monitorConfigId) -{ - monitorConfigId_ = monitorConfigId; - setParameter("MonitorConfigId", monitorConfigId); +SetDnsGtmMonitorStatusRequest::~SetDnsGtmMonitorStatusRequest() {} + +std::string SetDnsGtmMonitorStatusRequest::getMonitorConfigId() const { + return monitorConfigId_; } -std::string SetDnsGtmMonitorStatusRequest::getUserClientIp()const -{ - return userClientIp_; +void SetDnsGtmMonitorStatusRequest::setMonitorConfigId(const std::string &monitorConfigId) { + monitorConfigId_ = monitorConfigId; + setParameter(std::string("MonitorConfigId"), monitorConfigId); } -void SetDnsGtmMonitorStatusRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string SetDnsGtmMonitorStatusRequest::getUserClientIp() const { + return userClientIp_; } -std::string SetDnsGtmMonitorStatusRequest::getLang()const -{ - return lang_; +void SetDnsGtmMonitorStatusRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void SetDnsGtmMonitorStatusRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string SetDnsGtmMonitorStatusRequest::getLang() const { + return lang_; } -std::string SetDnsGtmMonitorStatusRequest::getStatus()const -{ - return status_; +void SetDnsGtmMonitorStatusRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void SetDnsGtmMonitorStatusRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string SetDnsGtmMonitorStatusRequest::getStatus() const { + return status_; +} + +void SetDnsGtmMonitorStatusRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/alidns/src/model/SetDomainDnssecStatusRequest.cc b/alidns/src/model/SetDomainDnssecStatusRequest.cc index 1557deaf0..2b45b2c7d 100644 --- a/alidns/src/model/SetDomainDnssecStatusRequest.cc +++ b/alidns/src/model/SetDomainDnssecStatusRequest.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::Alidns::Model::SetDomainDnssecStatusRequest; - -SetDomainDnssecStatusRequest::SetDomainDnssecStatusRequest() : - RpcServiceRequest("alidns", "2015-01-09", "SetDomainDnssecStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -SetDomainDnssecStatusRequest::~SetDomainDnssecStatusRequest() -{} - -std::string SetDomainDnssecStatusRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::SetDomainDnssecStatusRequest; + +SetDomainDnssecStatusRequest::SetDomainDnssecStatusRequest() + : RpcServiceRequest("alidns", "2015-01-09", "SetDomainDnssecStatus") { + setMethod(HttpRequest::Method::Post); } -void SetDomainDnssecStatusRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +SetDomainDnssecStatusRequest::~SetDomainDnssecStatusRequest() {} + +std::string SetDomainDnssecStatusRequest::getDomainName() const { + return domainName_; } -std::string SetDomainDnssecStatusRequest::getUserClientIp()const -{ - return userClientIp_; +void SetDomainDnssecStatusRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void SetDomainDnssecStatusRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string SetDomainDnssecStatusRequest::getUserClientIp() const { + return userClientIp_; } -std::string SetDomainDnssecStatusRequest::getLang()const -{ - return lang_; +void SetDomainDnssecStatusRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void SetDomainDnssecStatusRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string SetDomainDnssecStatusRequest::getLang() const { + return lang_; } -std::string SetDomainDnssecStatusRequest::getStatus()const -{ - return status_; +void SetDomainDnssecStatusRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void SetDomainDnssecStatusRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string SetDomainDnssecStatusRequest::getStatus() const { + return status_; +} + +void SetDomainDnssecStatusRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/alidns/src/model/SetDomainRecordStatusRequest.cc b/alidns/src/model/SetDomainRecordStatusRequest.cc index c3087e257..cc9bae30a 100644 --- a/alidns/src/model/SetDomainRecordStatusRequest.cc +++ b/alidns/src/model/SetDomainRecordStatusRequest.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::Alidns::Model::SetDomainRecordStatusRequest; - -SetDomainRecordStatusRequest::SetDomainRecordStatusRequest() : - RpcServiceRequest("alidns", "2015-01-09", "SetDomainRecordStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -SetDomainRecordStatusRequest::~SetDomainRecordStatusRequest() -{} - -std::string SetDomainRecordStatusRequest::getAccessKeyId()const -{ - return accessKeyId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::SetDomainRecordStatusRequest; + +SetDomainRecordStatusRequest::SetDomainRecordStatusRequest() + : RpcServiceRequest("alidns", "2015-01-09", "SetDomainRecordStatus") { + setMethod(HttpRequest::Method::Post); } -void SetDomainRecordStatusRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +SetDomainRecordStatusRequest::~SetDomainRecordStatusRequest() {} + +std::string SetDomainRecordStatusRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SetDomainRecordStatusRequest::getRecordId()const -{ - return recordId_; +void SetDomainRecordStatusRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SetDomainRecordStatusRequest::setRecordId(const std::string& recordId) -{ - recordId_ = recordId; - setParameter("RecordId", recordId); +std::string SetDomainRecordStatusRequest::getRecordId() const { + return recordId_; } -std::string SetDomainRecordStatusRequest::getUserClientIp()const -{ - return userClientIp_; +void SetDomainRecordStatusRequest::setRecordId(const std::string &recordId) { + recordId_ = recordId; + setParameter(std::string("RecordId"), recordId); } -void SetDomainRecordStatusRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string SetDomainRecordStatusRequest::getUserClientIp() const { + return userClientIp_; } -std::string SetDomainRecordStatusRequest::getLang()const -{ - return lang_; +void SetDomainRecordStatusRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void SetDomainRecordStatusRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string SetDomainRecordStatusRequest::getLang() const { + return lang_; } -std::string SetDomainRecordStatusRequest::getStatus()const -{ - return status_; +void SetDomainRecordStatusRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void SetDomainRecordStatusRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string SetDomainRecordStatusRequest::getStatus() const { + return status_; +} + +void SetDomainRecordStatusRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/alidns/src/model/SetDomainRecordStatusResult.cc b/alidns/src/model/SetDomainRecordStatusResult.cc index a48f300fc..ff35f7139 100644 --- a/alidns/src/model/SetDomainRecordStatusResult.cc +++ b/alidns/src/model/SetDomainRecordStatusResult.cc @@ -39,10 +39,10 @@ void SetDomainRecordStatusResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["RecordId"].isNull()) - recordId_ = value["RecordId"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); + if(!value["RecordId"].isNull()) + recordId_ = value["RecordId"].asString(); } diff --git a/alidns/src/model/SetGtmAccessModeRequest.cc b/alidns/src/model/SetGtmAccessModeRequest.cc index 874375d40..1032ce6f1 100644 --- a/alidns/src/model/SetGtmAccessModeRequest.cc +++ b/alidns/src/model/SetGtmAccessModeRequest.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::Alidns::Model::SetGtmAccessModeRequest; - -SetGtmAccessModeRequest::SetGtmAccessModeRequest() : - RpcServiceRequest("alidns", "2015-01-09", "SetGtmAccessMode") -{ - setMethod(HttpRequest::Method::Post); -} - -SetGtmAccessModeRequest::~SetGtmAccessModeRequest() -{} - -std::string SetGtmAccessModeRequest::getUserClientIp()const -{ - return userClientIp_; + */ + +#include + +using AlibabaCloud::Alidns::Model::SetGtmAccessModeRequest; + +SetGtmAccessModeRequest::SetGtmAccessModeRequest() + : RpcServiceRequest("alidns", "2015-01-09", "SetGtmAccessMode") { + setMethod(HttpRequest::Method::Post); } -void SetGtmAccessModeRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +SetGtmAccessModeRequest::~SetGtmAccessModeRequest() {} + +std::string SetGtmAccessModeRequest::getUserClientIp() const { + return userClientIp_; } -std::string SetGtmAccessModeRequest::getStrategyId()const -{ - return strategyId_; +void SetGtmAccessModeRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void SetGtmAccessModeRequest::setStrategyId(const std::string& strategyId) -{ - strategyId_ = strategyId; - setParameter("StrategyId", strategyId); +std::string SetGtmAccessModeRequest::getStrategyId() const { + return strategyId_; } -std::string SetGtmAccessModeRequest::getLang()const -{ - return lang_; +void SetGtmAccessModeRequest::setStrategyId(const std::string &strategyId) { + strategyId_ = strategyId; + setParameter(std::string("StrategyId"), strategyId); } -void SetGtmAccessModeRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string SetGtmAccessModeRequest::getLang() const { + return lang_; } -std::string SetGtmAccessModeRequest::getAccessMode()const -{ - return accessMode_; +void SetGtmAccessModeRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void SetGtmAccessModeRequest::setAccessMode(const std::string& accessMode) -{ - accessMode_ = accessMode; - setParameter("AccessMode", accessMode); +std::string SetGtmAccessModeRequest::getAccessMode() const { + return accessMode_; +} + +void SetGtmAccessModeRequest::setAccessMode(const std::string &accessMode) { + accessMode_ = accessMode; + setParameter(std::string("AccessMode"), accessMode); } diff --git a/alidns/src/model/SetGtmMonitorStatusRequest.cc b/alidns/src/model/SetGtmMonitorStatusRequest.cc index 63f2c3aa2..cd1370bec 100644 --- a/alidns/src/model/SetGtmMonitorStatusRequest.cc +++ b/alidns/src/model/SetGtmMonitorStatusRequest.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::Alidns::Model::SetGtmMonitorStatusRequest; - -SetGtmMonitorStatusRequest::SetGtmMonitorStatusRequest() : - RpcServiceRequest("alidns", "2015-01-09", "SetGtmMonitorStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -SetGtmMonitorStatusRequest::~SetGtmMonitorStatusRequest() -{} - -std::string SetGtmMonitorStatusRequest::getMonitorConfigId()const -{ - return monitorConfigId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::SetGtmMonitorStatusRequest; + +SetGtmMonitorStatusRequest::SetGtmMonitorStatusRequest() + : RpcServiceRequest("alidns", "2015-01-09", "SetGtmMonitorStatus") { + setMethod(HttpRequest::Method::Post); } -void SetGtmMonitorStatusRequest::setMonitorConfigId(const std::string& monitorConfigId) -{ - monitorConfigId_ = monitorConfigId; - setParameter("MonitorConfigId", monitorConfigId); +SetGtmMonitorStatusRequest::~SetGtmMonitorStatusRequest() {} + +std::string SetGtmMonitorStatusRequest::getMonitorConfigId() const { + return monitorConfigId_; } -std::string SetGtmMonitorStatusRequest::getUserClientIp()const -{ - return userClientIp_; +void SetGtmMonitorStatusRequest::setMonitorConfigId(const std::string &monitorConfigId) { + monitorConfigId_ = monitorConfigId; + setParameter(std::string("MonitorConfigId"), monitorConfigId); } -void SetGtmMonitorStatusRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string SetGtmMonitorStatusRequest::getUserClientIp() const { + return userClientIp_; } -std::string SetGtmMonitorStatusRequest::getLang()const -{ - return lang_; +void SetGtmMonitorStatusRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void SetGtmMonitorStatusRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string SetGtmMonitorStatusRequest::getLang() const { + return lang_; } -std::string SetGtmMonitorStatusRequest::getStatus()const -{ - return status_; +void SetGtmMonitorStatusRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void SetGtmMonitorStatusRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string SetGtmMonitorStatusRequest::getStatus() const { + return status_; +} + +void SetGtmMonitorStatusRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/alidns/src/model/SubmitIspFlushCacheTaskRequest.cc b/alidns/src/model/SubmitIspFlushCacheTaskRequest.cc new file mode 100644 index 000000000..f51e5a352 --- /dev/null +++ b/alidns/src/model/SubmitIspFlushCacheTaskRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alidns::Model::SubmitIspFlushCacheTaskRequest; + +SubmitIspFlushCacheTaskRequest::SubmitIspFlushCacheTaskRequest() + : RpcServiceRequest("alidns", "2015-01-09", "SubmitIspFlushCacheTask") { + setMethod(HttpRequest::Method::Post); +} + +SubmitIspFlushCacheTaskRequest::~SubmitIspFlushCacheTaskRequest() {} + +std::string SubmitIspFlushCacheTaskRequest::getClientToken() const { + return clientToken_; +} + +void SubmitIspFlushCacheTaskRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector SubmitIspFlushCacheTaskRequest::getIsp() const { + return isp_; +} + +void SubmitIspFlushCacheTaskRequest::setIsp(const std::vector &isp) { + isp_ = isp; +} + +std::string SubmitIspFlushCacheTaskRequest::getDomainName() const { + return domainName_; +} + +void SubmitIspFlushCacheTaskRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); +} + +std::string SubmitIspFlushCacheTaskRequest::getUserClientIp() const { + return userClientIp_; +} + +void SubmitIspFlushCacheTaskRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); +} + +std::string SubmitIspFlushCacheTaskRequest::getLang() const { + return lang_; +} + +void SubmitIspFlushCacheTaskRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/alidns/src/model/SubmitIspFlushCacheTaskResult.cc b/alidns/src/model/SubmitIspFlushCacheTaskResult.cc new file mode 100644 index 000000000..cd4f7bb2b --- /dev/null +++ b/alidns/src/model/SubmitIspFlushCacheTaskResult.cc @@ -0,0 +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 +#include + +using namespace AlibabaCloud::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +SubmitIspFlushCacheTaskResult::SubmitIspFlushCacheTaskResult() : + ServiceResult() +{} + +SubmitIspFlushCacheTaskResult::SubmitIspFlushCacheTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitIspFlushCacheTaskResult::~SubmitIspFlushCacheTaskResult() +{} + +void SubmitIspFlushCacheTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alidns/src/model/SwitchDnsGtmInstanceStrategyModeRequest.cc b/alidns/src/model/SwitchDnsGtmInstanceStrategyModeRequest.cc index 8dfc5f52c..8a7d6b278 100644 --- a/alidns/src/model/SwitchDnsGtmInstanceStrategyModeRequest.cc +++ b/alidns/src/model/SwitchDnsGtmInstanceStrategyModeRequest.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::Alidns::Model::SwitchDnsGtmInstanceStrategyModeRequest; - -SwitchDnsGtmInstanceStrategyModeRequest::SwitchDnsGtmInstanceStrategyModeRequest() : - RpcServiceRequest("alidns", "2015-01-09", "SwitchDnsGtmInstanceStrategyMode") -{ - setMethod(HttpRequest::Method::Post); -} - -SwitchDnsGtmInstanceStrategyModeRequest::~SwitchDnsGtmInstanceStrategyModeRequest() -{} - -std::string SwitchDnsGtmInstanceStrategyModeRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::SwitchDnsGtmInstanceStrategyModeRequest; + +SwitchDnsGtmInstanceStrategyModeRequest::SwitchDnsGtmInstanceStrategyModeRequest() + : RpcServiceRequest("alidns", "2015-01-09", "SwitchDnsGtmInstanceStrategyMode") { + setMethod(HttpRequest::Method::Post); } -void SwitchDnsGtmInstanceStrategyModeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +SwitchDnsGtmInstanceStrategyModeRequest::~SwitchDnsGtmInstanceStrategyModeRequest() {} + +std::string SwitchDnsGtmInstanceStrategyModeRequest::getInstanceId() const { + return instanceId_; } -std::string SwitchDnsGtmInstanceStrategyModeRequest::getUserClientIp()const -{ - return userClientIp_; +void SwitchDnsGtmInstanceStrategyModeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void SwitchDnsGtmInstanceStrategyModeRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string SwitchDnsGtmInstanceStrategyModeRequest::getUserClientIp() const { + return userClientIp_; } -std::string SwitchDnsGtmInstanceStrategyModeRequest::getStrategyMode()const -{ - return strategyMode_; +void SwitchDnsGtmInstanceStrategyModeRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void SwitchDnsGtmInstanceStrategyModeRequest::setStrategyMode(const std::string& strategyMode) -{ - strategyMode_ = strategyMode; - setParameter("StrategyMode", strategyMode); +std::string SwitchDnsGtmInstanceStrategyModeRequest::getStrategyMode() const { + return strategyMode_; } -std::string SwitchDnsGtmInstanceStrategyModeRequest::getLang()const -{ - return lang_; +void SwitchDnsGtmInstanceStrategyModeRequest::setStrategyMode(const std::string &strategyMode) { + strategyMode_ = strategyMode; + setParameter(std::string("StrategyMode"), strategyMode); } -void SwitchDnsGtmInstanceStrategyModeRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string SwitchDnsGtmInstanceStrategyModeRequest::getLang() const { + return lang_; +} + +void SwitchDnsGtmInstanceStrategyModeRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/TagResourcesRequest.cc b/alidns/src/model/TagResourcesRequest.cc index e8cb5d134..3fc51decd 100644 --- a/alidns/src/model/TagResourcesRequest.cc +++ b/alidns/src/model/TagResourcesRequest.cc @@ -1,102 +1,85 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() : - RpcServiceRequest("alidns", "2015-01-09", "TagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -TagResourcesRequest::~TagResourcesRequest() -{} - -std::vector TagResourcesRequest::getResourceId()const -{ - return resourceId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "TagResources") { + setMethod(HttpRequest::Method::Post); } -void TagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string TagResourcesRequest::getResourceType()const -{ - return resourceType_; +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void TagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; } -std::string TagResourcesRequest::getUserClientIp()const -{ - return userClientIp_; +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void TagResourcesRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string TagResourcesRequest::getUserClientIp() const { + return userClientIp_; } -std::vector TagResourcesRequest::getTag()const -{ - return tag_; +void TagResourcesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void TagResourcesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector TagResourcesRequest::getTag() const { + return tag_; } -std::string TagResourcesRequest::getLang()const -{ - return lang_; +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void TagResourcesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string TagResourcesRequest::getLang() const { + return lang_; } -bool TagResourcesRequest::getOverWrite()const -{ - return overWrite_; +void TagResourcesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void TagResourcesRequest::setOverWrite(bool overWrite) -{ - overWrite_ = overWrite; - setParameter("OverWrite", overWrite ? "true" : "false"); +bool TagResourcesRequest::getOverWrite() const { + return overWrite_; +} + +void TagResourcesRequest::setOverWrite(bool overWrite) { + overWrite_ = overWrite; + setParameter(std::string("OverWrite"), overWrite ? "true" : "false"); } diff --git a/alidns/src/model/TransferDomainRequest.cc b/alidns/src/model/TransferDomainRequest.cc index 3490f8c4f..0341dc07d 100644 --- a/alidns/src/model/TransferDomainRequest.cc +++ b/alidns/src/model/TransferDomainRequest.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::Alidns::Model::TransferDomainRequest; - -TransferDomainRequest::TransferDomainRequest() : - RpcServiceRequest("alidns", "2015-01-09", "TransferDomain") -{ - setMethod(HttpRequest::Method::Post); -} - -TransferDomainRequest::~TransferDomainRequest() -{} - -std::string TransferDomainRequest::getDomainNames()const -{ - return domainNames_; + */ + +#include + +using AlibabaCloud::Alidns::Model::TransferDomainRequest; + +TransferDomainRequest::TransferDomainRequest() + : RpcServiceRequest("alidns", "2015-01-09", "TransferDomain") { + setMethod(HttpRequest::Method::Post); } -void TransferDomainRequest::setDomainNames(const std::string& domainNames) -{ - domainNames_ = domainNames; - setParameter("DomainNames", domainNames); +TransferDomainRequest::~TransferDomainRequest() {} + +std::string TransferDomainRequest::getDomainNames() const { + return domainNames_; } -std::string TransferDomainRequest::getRemark()const -{ - return remark_; +void TransferDomainRequest::setDomainNames(const std::string &domainNames) { + domainNames_ = domainNames; + setParameter(std::string("DomainNames"), domainNames); } -void TransferDomainRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setParameter("Remark", remark); +std::string TransferDomainRequest::getRemark() const { + return remark_; } -std::string TransferDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; +void TransferDomainRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); } -void TransferDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string TransferDomainRequest::getAccessKeyId() const { + return accessKeyId_; } -long TransferDomainRequest::getTargetUserId()const -{ - return targetUserId_; +void TransferDomainRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void TransferDomainRequest::setTargetUserId(long targetUserId) -{ - targetUserId_ = targetUserId; - setParameter("TargetUserId", std::to_string(targetUserId)); +long TransferDomainRequest::getTargetUserId() const { + return targetUserId_; } -std::string TransferDomainRequest::getUserClientIp()const -{ - return userClientIp_; +void TransferDomainRequest::setTargetUserId(long targetUserId) { + targetUserId_ = targetUserId; + setParameter(std::string("TargetUserId"), std::to_string(targetUserId)); } -void TransferDomainRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string TransferDomainRequest::getUserClientIp() const { + return userClientIp_; } -std::string TransferDomainRequest::getLang()const -{ - return lang_; +void TransferDomainRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void TransferDomainRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string TransferDomainRequest::getLang() const { + return lang_; +} + +void TransferDomainRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UnbindInstanceDomainsRequest.cc b/alidns/src/model/UnbindInstanceDomainsRequest.cc index 421203f95..4d285039d 100644 --- a/alidns/src/model/UnbindInstanceDomainsRequest.cc +++ b/alidns/src/model/UnbindInstanceDomainsRequest.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::Alidns::Model::UnbindInstanceDomainsRequest; - -UnbindInstanceDomainsRequest::UnbindInstanceDomainsRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UnbindInstanceDomains") -{ - setMethod(HttpRequest::Method::Post); -} - -UnbindInstanceDomainsRequest::~UnbindInstanceDomainsRequest() -{} - -std::string UnbindInstanceDomainsRequest::getDomainNames()const -{ - return domainNames_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UnbindInstanceDomainsRequest; + +UnbindInstanceDomainsRequest::UnbindInstanceDomainsRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UnbindInstanceDomains") { + setMethod(HttpRequest::Method::Post); } -void UnbindInstanceDomainsRequest::setDomainNames(const std::string& domainNames) -{ - domainNames_ = domainNames; - setParameter("DomainNames", domainNames); +UnbindInstanceDomainsRequest::~UnbindInstanceDomainsRequest() {} + +std::string UnbindInstanceDomainsRequest::getDomainNames() const { + return domainNames_; } -std::string UnbindInstanceDomainsRequest::getInstanceId()const -{ - return instanceId_; +void UnbindInstanceDomainsRequest::setDomainNames(const std::string &domainNames) { + domainNames_ = domainNames; + setParameter(std::string("DomainNames"), domainNames); } -void UnbindInstanceDomainsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string UnbindInstanceDomainsRequest::getInstanceId() const { + return instanceId_; } -std::string UnbindInstanceDomainsRequest::getUserClientIp()const -{ - return userClientIp_; +void UnbindInstanceDomainsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void UnbindInstanceDomainsRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UnbindInstanceDomainsRequest::getUserClientIp() const { + return userClientIp_; } -std::string UnbindInstanceDomainsRequest::getLang()const -{ - return lang_; +void UnbindInstanceDomainsRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UnbindInstanceDomainsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UnbindInstanceDomainsRequest::getLang() const { + return lang_; +} + +void UnbindInstanceDomainsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UnbindInstanceDomainsResult.cc b/alidns/src/model/UnbindInstanceDomainsResult.cc index c85a7c9dc..ba46cfaae 100644 --- a/alidns/src/model/UnbindInstanceDomainsResult.cc +++ b/alidns/src/model/UnbindInstanceDomainsResult.cc @@ -39,10 +39,10 @@ void UnbindInstanceDomainsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["SuccessCount"].isNull()) - successCount_ = std::stoi(value["SuccessCount"].asString()); if(!value["FailedCount"].isNull()) failedCount_ = std::stoi(value["FailedCount"].asString()); + if(!value["SuccessCount"].isNull()) + successCount_ = std::stoi(value["SuccessCount"].asString()); } diff --git a/alidns/src/model/UntagResourcesRequest.cc b/alidns/src/model/UntagResourcesRequest.cc index 7811ab791..994f091aa 100644 --- a/alidns/src/model/UntagResourcesRequest.cc +++ b/alidns/src/model/UntagResourcesRequest.cc @@ -1,99 +1,79 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UntagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -UntagResourcesRequest::~UntagResourcesRequest() -{} - -bool UntagResourcesRequest::getAll()const -{ - return all_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UntagResources") { + setMethod(HttpRequest::Method::Post); } -void UntagResourcesRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +UntagResourcesRequest::~UntagResourcesRequest() {} + +bool UntagResourcesRequest::getAll() const { + return all_; } -std::vector UntagResourcesRequest::getResourceId()const -{ - return resourceId_; +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); } -void UntagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string UntagResourcesRequest::getResourceType()const -{ - return resourceType_; +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void UntagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; } -std::string UntagResourcesRequest::getUserClientIp()const -{ - return userClientIp_; +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void UntagResourcesRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UntagResourcesRequest::getUserClientIp() const { + return userClientIp_; } -std::string UntagResourcesRequest::getLang()const -{ - return lang_; +void UntagResourcesRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UntagResourcesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UntagResourcesRequest::getLang() const { + return lang_; } -std::vector UntagResourcesRequest::getTagKey()const -{ - return tagKey_; +void UntagResourcesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void UntagResourcesRequest::setTagKey(const std::vector& tagKey) -{ - tagKey_ = tagKey; - for(int dep1 = 0; dep1!= tagKey.size(); dep1++) { - setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1)); - } +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; } diff --git a/alidns/src/model/UpdateAppKeyStateRequest.cc b/alidns/src/model/UpdateAppKeyStateRequest.cc index cd20d844b..f129bdfe6 100644 --- a/alidns/src/model/UpdateAppKeyStateRequest.cc +++ b/alidns/src/model/UpdateAppKeyStateRequest.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::Alidns::Model::UpdateAppKeyStateRequest; - -UpdateAppKeyStateRequest::UpdateAppKeyStateRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateAppKeyState") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateAppKeyStateRequest::~UpdateAppKeyStateRequest() -{} - -std::string UpdateAppKeyStateRequest::getAppKeyId()const -{ - return appKeyId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateAppKeyStateRequest; + +UpdateAppKeyStateRequest::UpdateAppKeyStateRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateAppKeyState") { + setMethod(HttpRequest::Method::Post); } -void UpdateAppKeyStateRequest::setAppKeyId(const std::string& appKeyId) -{ - appKeyId_ = appKeyId; - setParameter("AppKeyId", appKeyId); +UpdateAppKeyStateRequest::~UpdateAppKeyStateRequest() {} + +std::string UpdateAppKeyStateRequest::getAppKeyId() const { + return appKeyId_; } -std::string UpdateAppKeyStateRequest::getState()const -{ - return state_; +void UpdateAppKeyStateRequest::setAppKeyId(const std::string &appKeyId) { + appKeyId_ = appKeyId; + setParameter(std::string("AppKeyId"), appKeyId); } -void UpdateAppKeyStateRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string UpdateAppKeyStateRequest::getState() const { + return state_; } -std::string UpdateAppKeyStateRequest::getLang()const -{ - return lang_; +void UpdateAppKeyStateRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void UpdateAppKeyStateRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateAppKeyStateRequest::getLang() const { + return lang_; +} + +void UpdateAppKeyStateRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UpdateCustomLineRequest.cc b/alidns/src/model/UpdateCustomLineRequest.cc index 2e830c98d..0a7d30d22 100644 --- a/alidns/src/model/UpdateCustomLineRequest.cc +++ b/alidns/src/model/UpdateCustomLineRequest.cc @@ -1,89 +1,77 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Alidns::Model::UpdateCustomLineRequest; - -UpdateCustomLineRequest::UpdateCustomLineRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateCustomLine") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateCustomLineRequest::~UpdateCustomLineRequest() -{} - -long UpdateCustomLineRequest::getLineId()const -{ - return lineId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateCustomLineRequest; + +UpdateCustomLineRequest::UpdateCustomLineRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateCustomLine") { + setMethod(HttpRequest::Method::Post); } -void UpdateCustomLineRequest::setLineId(long lineId) -{ - lineId_ = lineId; - setParameter("LineId", std::to_string(lineId)); +UpdateCustomLineRequest::~UpdateCustomLineRequest() {} + +long UpdateCustomLineRequest::getLineId() const { + return lineId_; } -std::vector UpdateCustomLineRequest::getIpSegment()const -{ - return ipSegment_; +void UpdateCustomLineRequest::setLineId(long lineId) { + lineId_ = lineId; + setParameter(std::string("LineId"), std::to_string(lineId)); } -void UpdateCustomLineRequest::setIpSegment(const std::vector& ipSegment) -{ - ipSegment_ = ipSegment; - for(int dep1 = 0; dep1!= ipSegment.size(); dep1++) { - auto ipSegmentObj = ipSegment.at(dep1); - std::string ipSegmentObjStr = "IpSegment." + std::to_string(dep1 + 1); - setParameter(ipSegmentObjStr + ".EndIp", ipSegmentObj.endIp); - setParameter(ipSegmentObjStr + ".StartIp", ipSegmentObj.startIp); - } +std::vector UpdateCustomLineRequest::getIpSegment() const { + return ipSegment_; } -std::string UpdateCustomLineRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateCustomLineRequest::setIpSegment(const std::vector &ipSegment) { + ipSegment_ = ipSegment; + for(int dep1 = 0; dep1 != ipSegment.size(); dep1++) { + auto ipSegmentObj = ipSegment.at(dep1); + std::string ipSegmentObjStr = std::string("IpSegment") + "." + std::to_string(dep1 + 1); + setParameter(ipSegmentObjStr + ".EndIp", ipSegmentObj.endIp); + setParameter(ipSegmentObjStr + ".StartIp", ipSegmentObj.startIp); + } } -void UpdateCustomLineRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateCustomLineRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateCustomLineRequest::getLineName()const -{ - return lineName_; +void UpdateCustomLineRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateCustomLineRequest::setLineName(const std::string& lineName) -{ - lineName_ = lineName; - setParameter("LineName", lineName); +std::string UpdateCustomLineRequest::getLineName() const { + return lineName_; } -std::string UpdateCustomLineRequest::getLang()const -{ - return lang_; +void UpdateCustomLineRequest::setLineName(const std::string &lineName) { + lineName_ = lineName; + setParameter(std::string("LineName"), lineName); } -void UpdateCustomLineRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateCustomLineRequest::getLang() const { + return lang_; +} + +void UpdateCustomLineRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UpdateDNSSLBWeightRequest.cc b/alidns/src/model/UpdateDNSSLBWeightRequest.cc index b44674169..aa780139b 100644 --- a/alidns/src/model/UpdateDNSSLBWeightRequest.cc +++ b/alidns/src/model/UpdateDNSSLBWeightRequest.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::Alidns::Model::UpdateDNSSLBWeightRequest; - -UpdateDNSSLBWeightRequest::UpdateDNSSLBWeightRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateDNSSLBWeight") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateDNSSLBWeightRequest::~UpdateDNSSLBWeightRequest() -{} - -int UpdateDNSSLBWeightRequest::getWeight()const -{ - return weight_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateDNSSLBWeightRequest; + +UpdateDNSSLBWeightRequest::UpdateDNSSLBWeightRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateDNSSLBWeight") { + setMethod(HttpRequest::Method::Post); } -void UpdateDNSSLBWeightRequest::setWeight(int weight) -{ - weight_ = weight; - setParameter("Weight", std::to_string(weight)); +UpdateDNSSLBWeightRequest::~UpdateDNSSLBWeightRequest() {} + +int UpdateDNSSLBWeightRequest::getWeight() const { + return weight_; } -std::string UpdateDNSSLBWeightRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateDNSSLBWeightRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); } -void UpdateDNSSLBWeightRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateDNSSLBWeightRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateDNSSLBWeightRequest::getRecordId()const -{ - return recordId_; +void UpdateDNSSLBWeightRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateDNSSLBWeightRequest::setRecordId(const std::string& recordId) -{ - recordId_ = recordId; - setParameter("RecordId", recordId); +std::string UpdateDNSSLBWeightRequest::getRecordId() const { + return recordId_; } -std::string UpdateDNSSLBWeightRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateDNSSLBWeightRequest::setRecordId(const std::string &recordId) { + recordId_ = recordId; + setParameter(std::string("RecordId"), recordId); } -void UpdateDNSSLBWeightRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateDNSSLBWeightRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateDNSSLBWeightRequest::getLang()const -{ - return lang_; +void UpdateDNSSLBWeightRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateDNSSLBWeightRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateDNSSLBWeightRequest::getLang() const { + return lang_; +} + +void UpdateDNSSLBWeightRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UpdateDnsCacheDomainRemarkRequest.cc b/alidns/src/model/UpdateDnsCacheDomainRemarkRequest.cc index ec393e316..91276f2ae 100644 --- a/alidns/src/model/UpdateDnsCacheDomainRemarkRequest.cc +++ b/alidns/src/model/UpdateDnsCacheDomainRemarkRequest.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::Alidns::Model::UpdateDnsCacheDomainRemarkRequest; - -UpdateDnsCacheDomainRemarkRequest::UpdateDnsCacheDomainRemarkRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsCacheDomainRemark") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateDnsCacheDomainRemarkRequest::~UpdateDnsCacheDomainRemarkRequest() -{} - -std::string UpdateDnsCacheDomainRemarkRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateDnsCacheDomainRemarkRequest; + +UpdateDnsCacheDomainRemarkRequest::UpdateDnsCacheDomainRemarkRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsCacheDomainRemark") { + setMethod(HttpRequest::Method::Post); } -void UpdateDnsCacheDomainRemarkRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +UpdateDnsCacheDomainRemarkRequest::~UpdateDnsCacheDomainRemarkRequest() {} + +std::string UpdateDnsCacheDomainRemarkRequest::getDomainName() const { + return domainName_; } -std::string UpdateDnsCacheDomainRemarkRequest::getRemark()const -{ - return remark_; +void UpdateDnsCacheDomainRemarkRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void UpdateDnsCacheDomainRemarkRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setParameter("Remark", remark); +std::string UpdateDnsCacheDomainRemarkRequest::getRemark() const { + return remark_; } -std::string UpdateDnsCacheDomainRemarkRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateDnsCacheDomainRemarkRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); } -void UpdateDnsCacheDomainRemarkRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateDnsCacheDomainRemarkRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateDnsCacheDomainRemarkRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateDnsCacheDomainRemarkRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateDnsCacheDomainRemarkRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateDnsCacheDomainRemarkRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateDnsCacheDomainRemarkRequest::getLang()const -{ - return lang_; +void UpdateDnsCacheDomainRemarkRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateDnsCacheDomainRemarkRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateDnsCacheDomainRemarkRequest::getLang() const { + return lang_; +} + +void UpdateDnsCacheDomainRemarkRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UpdateDnsCacheDomainRequest.cc b/alidns/src/model/UpdateDnsCacheDomainRequest.cc index 9b0ca53f4..878ba79a3 100644 --- a/alidns/src/model/UpdateDnsCacheDomainRequest.cc +++ b/alidns/src/model/UpdateDnsCacheDomainRequest.cc @@ -1,144 +1,122 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::UpdateDnsCacheDomainRequest; - -UpdateDnsCacheDomainRequest::UpdateDnsCacheDomainRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsCacheDomain") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateDnsCacheDomainRequest::~UpdateDnsCacheDomainRequest() -{} - -std::string UpdateDnsCacheDomainRequest::getAccessKeyId()const -{ - return accessKeyId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateDnsCacheDomainRequest; + +UpdateDnsCacheDomainRequest::UpdateDnsCacheDomainRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsCacheDomain") { + setMethod(HttpRequest::Method::Post); } -void UpdateDnsCacheDomainRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +UpdateDnsCacheDomainRequest::~UpdateDnsCacheDomainRequest() {} + +std::string UpdateDnsCacheDomainRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateDnsCacheDomainRequest::getSourceProtocol()const -{ - return sourceProtocol_; +void UpdateDnsCacheDomainRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateDnsCacheDomainRequest::setSourceProtocol(const std::string& sourceProtocol) -{ - sourceProtocol_ = sourceProtocol; - setParameter("SourceProtocol", sourceProtocol); +std::string UpdateDnsCacheDomainRequest::getSourceProtocol() const { + return sourceProtocol_; } -std::string UpdateDnsCacheDomainRequest::getLang()const -{ - return lang_; +void UpdateDnsCacheDomainRequest::setSourceProtocol(const std::string &sourceProtocol) { + sourceProtocol_ = sourceProtocol; + setParameter(std::string("SourceProtocol"), sourceProtocol); } -void UpdateDnsCacheDomainRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateDnsCacheDomainRequest::getLang() const { + return lang_; } -std::string UpdateDnsCacheDomainRequest::getDomainName()const -{ - return domainName_; +void UpdateDnsCacheDomainRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void UpdateDnsCacheDomainRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +std::string UpdateDnsCacheDomainRequest::getDomainName() const { + return domainName_; } -int UpdateDnsCacheDomainRequest::getCacheTtlMax()const -{ - return cacheTtlMax_; +void UpdateDnsCacheDomainRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void UpdateDnsCacheDomainRequest::setCacheTtlMax(int cacheTtlMax) -{ - cacheTtlMax_ = cacheTtlMax; - setParameter("CacheTtlMax", std::to_string(cacheTtlMax)); +int UpdateDnsCacheDomainRequest::getCacheTtlMax() const { + return cacheTtlMax_; } -std::string UpdateDnsCacheDomainRequest::getInstanceId()const -{ - return instanceId_; +void UpdateDnsCacheDomainRequest::setCacheTtlMax(int cacheTtlMax) { + cacheTtlMax_ = cacheTtlMax; + setParameter(std::string("CacheTtlMax"), std::to_string(cacheTtlMax)); } -void UpdateDnsCacheDomainRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string UpdateDnsCacheDomainRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateDnsCacheDomainRequest::getSourceEdns()const -{ - return sourceEdns_; +void UpdateDnsCacheDomainRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void UpdateDnsCacheDomainRequest::setSourceEdns(const std::string& sourceEdns) -{ - sourceEdns_ = sourceEdns; - setParameter("SourceEdns", sourceEdns); +std::string UpdateDnsCacheDomainRequest::getSourceEdns() const { + return sourceEdns_; } -std::string UpdateDnsCacheDomainRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateDnsCacheDomainRequest::setSourceEdns(const std::string &sourceEdns) { + sourceEdns_ = sourceEdns; + setParameter(std::string("SourceEdns"), sourceEdns); } -void UpdateDnsCacheDomainRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateDnsCacheDomainRequest::getUserClientIp() const { + return userClientIp_; } -int UpdateDnsCacheDomainRequest::getCacheTtlMin()const -{ - return cacheTtlMin_; +void UpdateDnsCacheDomainRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateDnsCacheDomainRequest::setCacheTtlMin(int cacheTtlMin) -{ - cacheTtlMin_ = cacheTtlMin; - setParameter("CacheTtlMin", std::to_string(cacheTtlMin)); +int UpdateDnsCacheDomainRequest::getCacheTtlMin() const { + return cacheTtlMin_; } -std::vector UpdateDnsCacheDomainRequest::getSourceDnsServer()const -{ - return sourceDnsServer_; +void UpdateDnsCacheDomainRequest::setCacheTtlMin(int cacheTtlMin) { + cacheTtlMin_ = cacheTtlMin; + setParameter(std::string("CacheTtlMin"), std::to_string(cacheTtlMin)); } -void UpdateDnsCacheDomainRequest::setSourceDnsServer(const std::vector& sourceDnsServer) -{ - sourceDnsServer_ = sourceDnsServer; - for(int dep1 = 0; dep1!= sourceDnsServer.size(); dep1++) { - auto sourceDnsServerObj = sourceDnsServer.at(dep1); - std::string sourceDnsServerObjStr = "SourceDnsServer." + std::to_string(dep1 + 1); - setParameter(sourceDnsServerObjStr + ".Port", sourceDnsServerObj.port); - setParameter(sourceDnsServerObjStr + ".Host", sourceDnsServerObj.host); - } +std::vector UpdateDnsCacheDomainRequest::getSourceDnsServer() const { + return sourceDnsServer_; +} + +void UpdateDnsCacheDomainRequest::setSourceDnsServer(const std::vector &sourceDnsServer) { + sourceDnsServer_ = sourceDnsServer; + for(int dep1 = 0; dep1 != sourceDnsServer.size(); dep1++) { + auto sourceDnsServerObj = sourceDnsServer.at(dep1); + std::string sourceDnsServerObjStr = std::string("SourceDnsServer") + "." + std::to_string(dep1 + 1); + setParameter(sourceDnsServerObjStr + ".Port", sourceDnsServerObj.port); + setParameter(sourceDnsServerObjStr + ".Host", sourceDnsServerObj.host); + } } diff --git a/alidns/src/model/UpdateDnsGtmAccessStrategyRequest.cc b/alidns/src/model/UpdateDnsGtmAccessStrategyRequest.cc index 60232cc23..3aec72915 100644 --- a/alidns/src/model/UpdateDnsGtmAccessStrategyRequest.cc +++ b/alidns/src/model/UpdateDnsGtmAccessStrategyRequest.cc @@ -1,237 +1,199 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::UpdateDnsGtmAccessStrategyRequest; - -UpdateDnsGtmAccessStrategyRequest::UpdateDnsGtmAccessStrategyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsGtmAccessStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateDnsGtmAccessStrategyRequest::~UpdateDnsGtmAccessStrategyRequest() -{} - -std::string UpdateDnsGtmAccessStrategyRequest::getDefaultLbaStrategy()const -{ - return defaultLbaStrategy_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateDnsGtmAccessStrategyRequest; + +UpdateDnsGtmAccessStrategyRequest::UpdateDnsGtmAccessStrategyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsGtmAccessStrategy") { + setMethod(HttpRequest::Method::Post); } -void UpdateDnsGtmAccessStrategyRequest::setDefaultLbaStrategy(const std::string& defaultLbaStrategy) -{ - defaultLbaStrategy_ = defaultLbaStrategy; - setParameter("DefaultLbaStrategy", defaultLbaStrategy); +UpdateDnsGtmAccessStrategyRequest::~UpdateDnsGtmAccessStrategyRequest() {} + +std::string UpdateDnsGtmAccessStrategyRequest::getDefaultLbaStrategy() const { + return defaultLbaStrategy_; } -std::string UpdateDnsGtmAccessStrategyRequest::getFailoverAddrPoolType()const -{ - return failoverAddrPoolType_; +void UpdateDnsGtmAccessStrategyRequest::setDefaultLbaStrategy(const std::string &defaultLbaStrategy) { + defaultLbaStrategy_ = defaultLbaStrategy; + setParameter(std::string("DefaultLbaStrategy"), defaultLbaStrategy); } -void UpdateDnsGtmAccessStrategyRequest::setFailoverAddrPoolType(const std::string& failoverAddrPoolType) -{ - failoverAddrPoolType_ = failoverAddrPoolType; - setParameter("FailoverAddrPoolType", failoverAddrPoolType); +std::string UpdateDnsGtmAccessStrategyRequest::getFailoverAddrPoolType() const { + return failoverAddrPoolType_; } -std::string UpdateDnsGtmAccessStrategyRequest::getDefaultAddrPoolType()const -{ - return defaultAddrPoolType_; +void UpdateDnsGtmAccessStrategyRequest::setFailoverAddrPoolType(const std::string &failoverAddrPoolType) { + failoverAddrPoolType_ = failoverAddrPoolType; + setParameter(std::string("FailoverAddrPoolType"), failoverAddrPoolType); } -void UpdateDnsGtmAccessStrategyRequest::setDefaultAddrPoolType(const std::string& defaultAddrPoolType) -{ - defaultAddrPoolType_ = defaultAddrPoolType; - setParameter("DefaultAddrPoolType", defaultAddrPoolType); +std::string UpdateDnsGtmAccessStrategyRequest::getDefaultAddrPoolType() const { + return defaultAddrPoolType_; } -int UpdateDnsGtmAccessStrategyRequest::getFailoverMaxReturnAddrNum()const -{ - return failoverMaxReturnAddrNum_; +void UpdateDnsGtmAccessStrategyRequest::setDefaultAddrPoolType(const std::string &defaultAddrPoolType) { + defaultAddrPoolType_ = defaultAddrPoolType; + setParameter(std::string("DefaultAddrPoolType"), defaultAddrPoolType); } -void UpdateDnsGtmAccessStrategyRequest::setFailoverMaxReturnAddrNum(int failoverMaxReturnAddrNum) -{ - failoverMaxReturnAddrNum_ = failoverMaxReturnAddrNum; - setParameter("FailoverMaxReturnAddrNum", std::to_string(failoverMaxReturnAddrNum)); +int UpdateDnsGtmAccessStrategyRequest::getFailoverMaxReturnAddrNum() const { + return failoverMaxReturnAddrNum_; } -std::string UpdateDnsGtmAccessStrategyRequest::getFailoverLbaStrategy()const -{ - return failoverLbaStrategy_; +void UpdateDnsGtmAccessStrategyRequest::setFailoverMaxReturnAddrNum(int failoverMaxReturnAddrNum) { + failoverMaxReturnAddrNum_ = failoverMaxReturnAddrNum; + setParameter(std::string("FailoverMaxReturnAddrNum"), std::to_string(failoverMaxReturnAddrNum)); } -void UpdateDnsGtmAccessStrategyRequest::setFailoverLbaStrategy(const std::string& failoverLbaStrategy) -{ - failoverLbaStrategy_ = failoverLbaStrategy; - setParameter("FailoverLbaStrategy", failoverLbaStrategy); +std::string UpdateDnsGtmAccessStrategyRequest::getFailoverLbaStrategy() const { + return failoverLbaStrategy_; } -std::vector UpdateDnsGtmAccessStrategyRequest::getDefaultAddrPool()const -{ - return defaultAddrPool_; +void UpdateDnsGtmAccessStrategyRequest::setFailoverLbaStrategy(const std::string &failoverLbaStrategy) { + failoverLbaStrategy_ = failoverLbaStrategy; + setParameter(std::string("FailoverLbaStrategy"), failoverLbaStrategy); } -void UpdateDnsGtmAccessStrategyRequest::setDefaultAddrPool(const std::vector& defaultAddrPool) -{ - defaultAddrPool_ = defaultAddrPool; - for(int dep1 = 0; dep1!= defaultAddrPool.size(); dep1++) { - auto defaultAddrPoolObj = defaultAddrPool.at(dep1); - std::string defaultAddrPoolObjStr = "DefaultAddrPool." + std::to_string(dep1 + 1); - setParameter(defaultAddrPoolObjStr + ".Id", defaultAddrPoolObj.id); - setParameter(defaultAddrPoolObjStr + ".LbaWeight", std::to_string(defaultAddrPoolObj.lbaWeight)); - } +std::vector UpdateDnsGtmAccessStrategyRequest::getDefaultAddrPool() const { + return defaultAddrPool_; } -int UpdateDnsGtmAccessStrategyRequest::getFailoverMinAvailableAddrNum()const -{ - return failoverMinAvailableAddrNum_; +void UpdateDnsGtmAccessStrategyRequest::setDefaultAddrPool(const std::vector &defaultAddrPool) { + defaultAddrPool_ = defaultAddrPool; + for(int dep1 = 0; dep1 != defaultAddrPool.size(); dep1++) { + auto defaultAddrPoolObj = defaultAddrPool.at(dep1); + std::string defaultAddrPoolObjStr = std::string("DefaultAddrPool") + "." + std::to_string(dep1 + 1); + setParameter(defaultAddrPoolObjStr + ".Id", defaultAddrPoolObj.id); + setParameter(defaultAddrPoolObjStr + ".LbaWeight", std::to_string(defaultAddrPoolObj.lbaWeight)); + } } -void UpdateDnsGtmAccessStrategyRequest::setFailoverMinAvailableAddrNum(int failoverMinAvailableAddrNum) -{ - failoverMinAvailableAddrNum_ = failoverMinAvailableAddrNum; - setParameter("FailoverMinAvailableAddrNum", std::to_string(failoverMinAvailableAddrNum)); +int UpdateDnsGtmAccessStrategyRequest::getFailoverMinAvailableAddrNum() const { + return failoverMinAvailableAddrNum_; } -int UpdateDnsGtmAccessStrategyRequest::getDefaultMaxReturnAddrNum()const -{ - return defaultMaxReturnAddrNum_; +void UpdateDnsGtmAccessStrategyRequest::setFailoverMinAvailableAddrNum(int failoverMinAvailableAddrNum) { + failoverMinAvailableAddrNum_ = failoverMinAvailableAddrNum; + setParameter(std::string("FailoverMinAvailableAddrNum"), std::to_string(failoverMinAvailableAddrNum)); } -void UpdateDnsGtmAccessStrategyRequest::setDefaultMaxReturnAddrNum(int defaultMaxReturnAddrNum) -{ - defaultMaxReturnAddrNum_ = defaultMaxReturnAddrNum; - setParameter("DefaultMaxReturnAddrNum", std::to_string(defaultMaxReturnAddrNum)); +int UpdateDnsGtmAccessStrategyRequest::getDefaultMaxReturnAddrNum() const { + return defaultMaxReturnAddrNum_; } -int UpdateDnsGtmAccessStrategyRequest::getDefaultMinAvailableAddrNum()const -{ - return defaultMinAvailableAddrNum_; +void UpdateDnsGtmAccessStrategyRequest::setDefaultMaxReturnAddrNum(int defaultMaxReturnAddrNum) { + defaultMaxReturnAddrNum_ = defaultMaxReturnAddrNum; + setParameter(std::string("DefaultMaxReturnAddrNum"), std::to_string(defaultMaxReturnAddrNum)); } -void UpdateDnsGtmAccessStrategyRequest::setDefaultMinAvailableAddrNum(int defaultMinAvailableAddrNum) -{ - defaultMinAvailableAddrNum_ = defaultMinAvailableAddrNum; - setParameter("DefaultMinAvailableAddrNum", std::to_string(defaultMinAvailableAddrNum)); +int UpdateDnsGtmAccessStrategyRequest::getDefaultMinAvailableAddrNum() const { + return defaultMinAvailableAddrNum_; } -std::string UpdateDnsGtmAccessStrategyRequest::getLang()const -{ - return lang_; +void UpdateDnsGtmAccessStrategyRequest::setDefaultMinAvailableAddrNum(int defaultMinAvailableAddrNum) { + defaultMinAvailableAddrNum_ = defaultMinAvailableAddrNum; + setParameter(std::string("DefaultMinAvailableAddrNum"), std::to_string(defaultMinAvailableAddrNum)); } -void UpdateDnsGtmAccessStrategyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateDnsGtmAccessStrategyRequest::getLang() const { + return lang_; } -std::string UpdateDnsGtmAccessStrategyRequest::getLines()const -{ - return lines_; +void UpdateDnsGtmAccessStrategyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void UpdateDnsGtmAccessStrategyRequest::setLines(const std::string& lines) -{ - lines_ = lines; - setParameter("Lines", lines); +std::string UpdateDnsGtmAccessStrategyRequest::getLines() const { + return lines_; } -std::string UpdateDnsGtmAccessStrategyRequest::getStrategyName()const -{ - return strategyName_; +void UpdateDnsGtmAccessStrategyRequest::setLines(const std::string &lines) { + lines_ = lines; + setParameter(std::string("Lines"), lines); } -void UpdateDnsGtmAccessStrategyRequest::setStrategyName(const std::string& strategyName) -{ - strategyName_ = strategyName; - setParameter("StrategyName", strategyName); +std::string UpdateDnsGtmAccessStrategyRequest::getStrategyName() const { + return strategyName_; } -std::string UpdateDnsGtmAccessStrategyRequest::getDefaultLatencyOptimization()const -{ - return defaultLatencyOptimization_; +void UpdateDnsGtmAccessStrategyRequest::setStrategyName(const std::string &strategyName) { + strategyName_ = strategyName; + setParameter(std::string("StrategyName"), strategyName); } -void UpdateDnsGtmAccessStrategyRequest::setDefaultLatencyOptimization(const std::string& defaultLatencyOptimization) -{ - defaultLatencyOptimization_ = defaultLatencyOptimization; - setParameter("DefaultLatencyOptimization", defaultLatencyOptimization); +std::string UpdateDnsGtmAccessStrategyRequest::getDefaultLatencyOptimization() const { + return defaultLatencyOptimization_; } -std::string UpdateDnsGtmAccessStrategyRequest::getFailoverLatencyOptimization()const -{ - return failoverLatencyOptimization_; +void UpdateDnsGtmAccessStrategyRequest::setDefaultLatencyOptimization(const std::string &defaultLatencyOptimization) { + defaultLatencyOptimization_ = defaultLatencyOptimization; + setParameter(std::string("DefaultLatencyOptimization"), defaultLatencyOptimization); } -void UpdateDnsGtmAccessStrategyRequest::setFailoverLatencyOptimization(const std::string& failoverLatencyOptimization) -{ - failoverLatencyOptimization_ = failoverLatencyOptimization; - setParameter("FailoverLatencyOptimization", failoverLatencyOptimization); +std::string UpdateDnsGtmAccessStrategyRequest::getFailoverLatencyOptimization() const { + return failoverLatencyOptimization_; } -std::string UpdateDnsGtmAccessStrategyRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateDnsGtmAccessStrategyRequest::setFailoverLatencyOptimization(const std::string &failoverLatencyOptimization) { + failoverLatencyOptimization_ = failoverLatencyOptimization; + setParameter(std::string("FailoverLatencyOptimization"), failoverLatencyOptimization); } -void UpdateDnsGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateDnsGtmAccessStrategyRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateDnsGtmAccessStrategyRequest::getStrategyId()const -{ - return strategyId_; +void UpdateDnsGtmAccessStrategyRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateDnsGtmAccessStrategyRequest::setStrategyId(const std::string& strategyId) -{ - strategyId_ = strategyId; - setParameter("StrategyId", strategyId); +std::string UpdateDnsGtmAccessStrategyRequest::getStrategyId() const { + return strategyId_; } -std::vector UpdateDnsGtmAccessStrategyRequest::getFailoverAddrPool()const -{ - return failoverAddrPool_; +void UpdateDnsGtmAccessStrategyRequest::setStrategyId(const std::string &strategyId) { + strategyId_ = strategyId; + setParameter(std::string("StrategyId"), strategyId); } -void UpdateDnsGtmAccessStrategyRequest::setFailoverAddrPool(const std::vector& failoverAddrPool) -{ - failoverAddrPool_ = failoverAddrPool; - for(int dep1 = 0; dep1!= failoverAddrPool.size(); dep1++) { - auto failoverAddrPoolObj = failoverAddrPool.at(dep1); - std::string failoverAddrPoolObjStr = "FailoverAddrPool." + std::to_string(dep1 + 1); - setParameter(failoverAddrPoolObjStr + ".Id", failoverAddrPoolObj.id); - setParameter(failoverAddrPoolObjStr + ".LbaWeight", std::to_string(failoverAddrPoolObj.lbaWeight)); - } +std::vector UpdateDnsGtmAccessStrategyRequest::getFailoverAddrPool() const { + return failoverAddrPool_; } -std::string UpdateDnsGtmAccessStrategyRequest::getAccessMode()const -{ - return accessMode_; +void UpdateDnsGtmAccessStrategyRequest::setFailoverAddrPool(const std::vector &failoverAddrPool) { + failoverAddrPool_ = failoverAddrPool; + for(int dep1 = 0; dep1 != failoverAddrPool.size(); dep1++) { + auto failoverAddrPoolObj = failoverAddrPool.at(dep1); + std::string failoverAddrPoolObjStr = std::string("FailoverAddrPool") + "." + std::to_string(dep1 + 1); + setParameter(failoverAddrPoolObjStr + ".Id", failoverAddrPoolObj.id); + setParameter(failoverAddrPoolObjStr + ".LbaWeight", std::to_string(failoverAddrPoolObj.lbaWeight)); + } } -void UpdateDnsGtmAccessStrategyRequest::setAccessMode(const std::string& accessMode) -{ - accessMode_ = accessMode; - setParameter("AccessMode", accessMode); +std::string UpdateDnsGtmAccessStrategyRequest::getAccessMode() const { + return accessMode_; +} + +void UpdateDnsGtmAccessStrategyRequest::setAccessMode(const std::string &accessMode) { + accessMode_ = accessMode; + setParameter(std::string("AccessMode"), accessMode); } diff --git a/alidns/src/model/UpdateDnsGtmAddressPoolRequest.cc b/alidns/src/model/UpdateDnsGtmAddressPoolRequest.cc index cb3ca9f7f..27135bfba 100644 --- a/alidns/src/model/UpdateDnsGtmAddressPoolRequest.cc +++ b/alidns/src/model/UpdateDnsGtmAddressPoolRequest.cc @@ -1,103 +1,89 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::UpdateDnsGtmAddressPoolRequest; - -UpdateDnsGtmAddressPoolRequest::UpdateDnsGtmAddressPoolRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsGtmAddressPool") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateDnsGtmAddressPoolRequest::~UpdateDnsGtmAddressPoolRequest() -{} - -std::string UpdateDnsGtmAddressPoolRequest::getLbaStrategy()const -{ - return lbaStrategy_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateDnsGtmAddressPoolRequest; + +UpdateDnsGtmAddressPoolRequest::UpdateDnsGtmAddressPoolRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsGtmAddressPool") { + setMethod(HttpRequest::Method::Post); } -void UpdateDnsGtmAddressPoolRequest::setLbaStrategy(const std::string& lbaStrategy) -{ - lbaStrategy_ = lbaStrategy; - setParameter("LbaStrategy", lbaStrategy); +UpdateDnsGtmAddressPoolRequest::~UpdateDnsGtmAddressPoolRequest() {} + +std::string UpdateDnsGtmAddressPoolRequest::getLbaStrategy() const { + return lbaStrategy_; } -std::string UpdateDnsGtmAddressPoolRequest::getAddrPoolId()const -{ - return addrPoolId_; +void UpdateDnsGtmAddressPoolRequest::setLbaStrategy(const std::string &lbaStrategy) { + lbaStrategy_ = lbaStrategy; + setParameter(std::string("LbaStrategy"), lbaStrategy); } -void UpdateDnsGtmAddressPoolRequest::setAddrPoolId(const std::string& addrPoolId) -{ - addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); +std::string UpdateDnsGtmAddressPoolRequest::getAddrPoolId() const { + return addrPoolId_; } -std::string UpdateDnsGtmAddressPoolRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateDnsGtmAddressPoolRequest::setAddrPoolId(const std::string &addrPoolId) { + addrPoolId_ = addrPoolId; + setParameter(std::string("AddrPoolId"), addrPoolId); } -void UpdateDnsGtmAddressPoolRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateDnsGtmAddressPoolRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateDnsGtmAddressPoolRequest::getName()const -{ - return name_; +void UpdateDnsGtmAddressPoolRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateDnsGtmAddressPoolRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateDnsGtmAddressPoolRequest::getName() const { + return name_; } -std::string UpdateDnsGtmAddressPoolRequest::getLang()const -{ - return lang_; +void UpdateDnsGtmAddressPoolRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void UpdateDnsGtmAddressPoolRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateDnsGtmAddressPoolRequest::getLang() const { + return lang_; } -std::vector UpdateDnsGtmAddressPoolRequest::getAddr()const -{ - return addr_; +void UpdateDnsGtmAddressPoolRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void UpdateDnsGtmAddressPoolRequest::setAddr(const std::vector& addr) -{ - addr_ = addr; - for(int dep1 = 0; dep1!= addr.size(); dep1++) { - auto addrObj = addr.at(dep1); - std::string addrObjStr = "Addr." + std::to_string(dep1 + 1); - setParameter(addrObjStr + ".Mode", addrObj.mode); - setParameter(addrObjStr + ".AttributeInfo", addrObj.attributeInfo); - setParameter(addrObjStr + ".Remark", addrObj.remark); - setParameter(addrObjStr + ".Addr", addrObj.addr); - setParameter(addrObjStr + ".LbaWeight", std::to_string(addrObj.lbaWeight)); - } +std::vector UpdateDnsGtmAddressPoolRequest::getAddr() const { + return addr_; +} + +void UpdateDnsGtmAddressPoolRequest::setAddr(const std::vector &addr) { + addr_ = addr; + for(int dep1 = 0; dep1 != addr.size(); dep1++) { + auto addrObj = addr.at(dep1); + std::string addrObjStr = std::string("Addr") + "." + std::to_string(dep1 + 1); + setParameter(addrObjStr + ".AttributeInfo", addrObj.attributeInfo); + setParameter(addrObjStr + ".Mode", addrObj.mode); + setParameter(addrObjStr + ".Remark", addrObj.remark); + setParameter(addrObjStr + ".LbaWeight", std::to_string(addrObj.lbaWeight)); + setParameter(addrObjStr + ".Addr", addrObj.addr); + } } diff --git a/alidns/src/model/UpdateDnsGtmInstanceGlobalConfigRequest.cc b/alidns/src/model/UpdateDnsGtmInstanceGlobalConfigRequest.cc index d55473c24..cbd433ddb 100644 --- a/alidns/src/model/UpdateDnsGtmInstanceGlobalConfigRequest.cc +++ b/alidns/src/model/UpdateDnsGtmInstanceGlobalConfigRequest.cc @@ -1,179 +1,151 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::UpdateDnsGtmInstanceGlobalConfigRequest; - -UpdateDnsGtmInstanceGlobalConfigRequest::UpdateDnsGtmInstanceGlobalConfigRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsGtmInstanceGlobalConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateDnsGtmInstanceGlobalConfigRequest::~UpdateDnsGtmInstanceGlobalConfigRequest() -{} - -std::string UpdateDnsGtmInstanceGlobalConfigRequest::getAlertGroup()const -{ - return alertGroup_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateDnsGtmInstanceGlobalConfigRequest; + +UpdateDnsGtmInstanceGlobalConfigRequest::UpdateDnsGtmInstanceGlobalConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsGtmInstanceGlobalConfig") { + setMethod(HttpRequest::Method::Post); } -void UpdateDnsGtmInstanceGlobalConfigRequest::setAlertGroup(const std::string& alertGroup) -{ - alertGroup_ = alertGroup; - setParameter("AlertGroup", alertGroup); +UpdateDnsGtmInstanceGlobalConfigRequest::~UpdateDnsGtmInstanceGlobalConfigRequest() {} + +std::string UpdateDnsGtmInstanceGlobalConfigRequest::getAlertGroup() const { + return alertGroup_; } -std::string UpdateDnsGtmInstanceGlobalConfigRequest::getCnameType()const -{ - return cnameType_; +void UpdateDnsGtmInstanceGlobalConfigRequest::setAlertGroup(const std::string &alertGroup) { + alertGroup_ = alertGroup; + setParameter(std::string("AlertGroup"), alertGroup); } -void UpdateDnsGtmInstanceGlobalConfigRequest::setCnameType(const std::string& cnameType) -{ - cnameType_ = cnameType; - setParameter("CnameType", cnameType); +std::string UpdateDnsGtmInstanceGlobalConfigRequest::getCnameType() const { + return cnameType_; } -std::string UpdateDnsGtmInstanceGlobalConfigRequest::getLang()const -{ - return lang_; +void UpdateDnsGtmInstanceGlobalConfigRequest::setCnameType(const std::string &cnameType) { + cnameType_ = cnameType; + setParameter(std::string("CnameType"), cnameType); } -void UpdateDnsGtmInstanceGlobalConfigRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateDnsGtmInstanceGlobalConfigRequest::getLang() const { + return lang_; } -std::vector UpdateDnsGtmInstanceGlobalConfigRequest::getAlertConfig()const -{ - return alertConfig_; +void UpdateDnsGtmInstanceGlobalConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void UpdateDnsGtmInstanceGlobalConfigRequest::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 + ".DingtalkNotice", alertConfigObj.dingtalkNotice ? "true" : "false"); - setParameter(alertConfigObjStr + ".SmsNotice", alertConfigObj.smsNotice ? "true" : "false"); - setParameter(alertConfigObjStr + ".NoticeType", alertConfigObj.noticeType); - setParameter(alertConfigObjStr + ".EmailNotice", alertConfigObj.emailNotice ? "true" : "false"); - } +std::vector UpdateDnsGtmInstanceGlobalConfigRequest::getAlertConfig() const { + return alertConfig_; } -std::string UpdateDnsGtmInstanceGlobalConfigRequest::getPublicCnameMode()const -{ - return publicCnameMode_; +void UpdateDnsGtmInstanceGlobalConfigRequest::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 + ".DingtalkNotice", alertConfigObj.dingtalkNotice ? "true" : "false"); + setParameter(alertConfigObjStr + ".SmsNotice", alertConfigObj.smsNotice ? "true" : "false"); + setParameter(alertConfigObjStr + ".NoticeType", alertConfigObj.noticeType); + setParameter(alertConfigObjStr + ".EmailNotice", alertConfigObj.emailNotice ? "true" : "false"); + } } -void UpdateDnsGtmInstanceGlobalConfigRequest::setPublicCnameMode(const std::string& publicCnameMode) -{ - publicCnameMode_ = publicCnameMode; - setParameter("PublicCnameMode", publicCnameMode); +std::string UpdateDnsGtmInstanceGlobalConfigRequest::getPublicCnameMode() const { + return publicCnameMode_; } -std::string UpdateDnsGtmInstanceGlobalConfigRequest::getPublicUserDomainName()const -{ - return publicUserDomainName_; +void UpdateDnsGtmInstanceGlobalConfigRequest::setPublicCnameMode(const std::string &publicCnameMode) { + publicCnameMode_ = publicCnameMode; + setParameter(std::string("PublicCnameMode"), publicCnameMode); } -void UpdateDnsGtmInstanceGlobalConfigRequest::setPublicUserDomainName(const std::string& publicUserDomainName) -{ - publicUserDomainName_ = publicUserDomainName; - setParameter("PublicUserDomainName", publicUserDomainName); +std::string UpdateDnsGtmInstanceGlobalConfigRequest::getPublicUserDomainName() const { + return publicUserDomainName_; } -int UpdateDnsGtmInstanceGlobalConfigRequest::getTtl()const -{ - return ttl_; +void UpdateDnsGtmInstanceGlobalConfigRequest::setPublicUserDomainName(const std::string &publicUserDomainName) { + publicUserDomainName_ = publicUserDomainName; + setParameter(std::string("PublicUserDomainName"), publicUserDomainName); } -void UpdateDnsGtmInstanceGlobalConfigRequest::setTtl(int ttl) -{ - ttl_ = ttl; - setParameter("Ttl", std::to_string(ttl)); +int UpdateDnsGtmInstanceGlobalConfigRequest::getTtl() const { + return ttl_; } -bool UpdateDnsGtmInstanceGlobalConfigRequest::getForceUpdate()const -{ - return forceUpdate_; +void UpdateDnsGtmInstanceGlobalConfigRequest::setTtl(int ttl) { + ttl_ = ttl; + setParameter(std::string("Ttl"), std::to_string(ttl)); } -void UpdateDnsGtmInstanceGlobalConfigRequest::setForceUpdate(bool forceUpdate) -{ - forceUpdate_ = forceUpdate; - setParameter("ForceUpdate", forceUpdate ? "true" : "false"); +bool UpdateDnsGtmInstanceGlobalConfigRequest::getForceUpdate() const { + return forceUpdate_; } -std::string UpdateDnsGtmInstanceGlobalConfigRequest::getInstanceId()const -{ - return instanceId_; +void UpdateDnsGtmInstanceGlobalConfigRequest::setForceUpdate(bool forceUpdate) { + forceUpdate_ = forceUpdate; + setParameter(std::string("ForceUpdate"), forceUpdate ? "true" : "false"); } -void UpdateDnsGtmInstanceGlobalConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string UpdateDnsGtmInstanceGlobalConfigRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateDnsGtmInstanceGlobalConfigRequest::getInstanceName()const -{ - return instanceName_; +void UpdateDnsGtmInstanceGlobalConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void UpdateDnsGtmInstanceGlobalConfigRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +std::string UpdateDnsGtmInstanceGlobalConfigRequest::getInstanceName() const { + return instanceName_; } -std::string UpdateDnsGtmInstanceGlobalConfigRequest::getPublicRr()const -{ - return publicRr_; +void UpdateDnsGtmInstanceGlobalConfigRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -void UpdateDnsGtmInstanceGlobalConfigRequest::setPublicRr(const std::string& publicRr) -{ - publicRr_ = publicRr; - setParameter("PublicRr", publicRr); +std::string UpdateDnsGtmInstanceGlobalConfigRequest::getPublicRr() const { + return publicRr_; } -std::string UpdateDnsGtmInstanceGlobalConfigRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateDnsGtmInstanceGlobalConfigRequest::setPublicRr(const std::string &publicRr) { + publicRr_ = publicRr; + setParameter(std::string("PublicRr"), publicRr); } -void UpdateDnsGtmInstanceGlobalConfigRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateDnsGtmInstanceGlobalConfigRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateDnsGtmInstanceGlobalConfigRequest::getPublicZoneName()const -{ - return publicZoneName_; +void UpdateDnsGtmInstanceGlobalConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateDnsGtmInstanceGlobalConfigRequest::setPublicZoneName(const std::string& publicZoneName) -{ - publicZoneName_ = publicZoneName; - setParameter("PublicZoneName", publicZoneName); +std::string UpdateDnsGtmInstanceGlobalConfigRequest::getPublicZoneName() const { + return publicZoneName_; +} + +void UpdateDnsGtmInstanceGlobalConfigRequest::setPublicZoneName(const std::string &publicZoneName) { + publicZoneName_ = publicZoneName; + setParameter(std::string("PublicZoneName"), publicZoneName); } diff --git a/alidns/src/model/UpdateDnsGtmMonitorRequest.cc b/alidns/src/model/UpdateDnsGtmMonitorRequest.cc index 58747ffae..3a8c17861 100644 --- a/alidns/src/model/UpdateDnsGtmMonitorRequest.cc +++ b/alidns/src/model/UpdateDnsGtmMonitorRequest.cc @@ -1,133 +1,113 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::UpdateDnsGtmMonitorRequest; - -UpdateDnsGtmMonitorRequest::UpdateDnsGtmMonitorRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsGtmMonitor") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateDnsGtmMonitorRequest::~UpdateDnsGtmMonitorRequest() -{} - -std::string UpdateDnsGtmMonitorRequest::getMonitorExtendInfo()const -{ - return monitorExtendInfo_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateDnsGtmMonitorRequest; + +UpdateDnsGtmMonitorRequest::UpdateDnsGtmMonitorRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsGtmMonitor") { + setMethod(HttpRequest::Method::Post); } -void UpdateDnsGtmMonitorRequest::setMonitorExtendInfo(const std::string& monitorExtendInfo) -{ - monitorExtendInfo_ = monitorExtendInfo; - setParameter("MonitorExtendInfo", monitorExtendInfo); +UpdateDnsGtmMonitorRequest::~UpdateDnsGtmMonitorRequest() {} + +std::string UpdateDnsGtmMonitorRequest::getMonitorExtendInfo() const { + return monitorExtendInfo_; } -std::string UpdateDnsGtmMonitorRequest::getMonitorConfigId()const -{ - return monitorConfigId_; +void UpdateDnsGtmMonitorRequest::setMonitorExtendInfo(const std::string &monitorExtendInfo) { + monitorExtendInfo_ = monitorExtendInfo; + setParameter(std::string("MonitorExtendInfo"), monitorExtendInfo); } -void UpdateDnsGtmMonitorRequest::setMonitorConfigId(const std::string& monitorConfigId) -{ - monitorConfigId_ = monitorConfigId; - setParameter("MonitorConfigId", monitorConfigId); +std::string UpdateDnsGtmMonitorRequest::getMonitorConfigId() const { + return monitorConfigId_; } -int UpdateDnsGtmMonitorRequest::getTimeout()const -{ - return timeout_; +void UpdateDnsGtmMonitorRequest::setMonitorConfigId(const std::string &monitorConfigId) { + monitorConfigId_ = monitorConfigId; + setParameter(std::string("MonitorConfigId"), monitorConfigId); } -void UpdateDnsGtmMonitorRequest::setTimeout(int timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); +int UpdateDnsGtmMonitorRequest::getTimeout() const { + return timeout_; } -std::string UpdateDnsGtmMonitorRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateDnsGtmMonitorRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); } -void UpdateDnsGtmMonitorRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateDnsGtmMonitorRequest::getUserClientIp() const { + return userClientIp_; } -int UpdateDnsGtmMonitorRequest::getEvaluationCount()const -{ - return evaluationCount_; +void UpdateDnsGtmMonitorRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateDnsGtmMonitorRequest::setEvaluationCount(int evaluationCount) -{ - evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); +int UpdateDnsGtmMonitorRequest::getEvaluationCount() const { + return evaluationCount_; } -std::string UpdateDnsGtmMonitorRequest::getProtocolType()const -{ - return protocolType_; +void UpdateDnsGtmMonitorRequest::setEvaluationCount(int evaluationCount) { + evaluationCount_ = evaluationCount; + setParameter(std::string("EvaluationCount"), std::to_string(evaluationCount)); } -void UpdateDnsGtmMonitorRequest::setProtocolType(const std::string& protocolType) -{ - protocolType_ = protocolType; - setParameter("ProtocolType", protocolType); +std::string UpdateDnsGtmMonitorRequest::getProtocolType() const { + return protocolType_; } -int UpdateDnsGtmMonitorRequest::getInterval()const -{ - return interval_; +void UpdateDnsGtmMonitorRequest::setProtocolType(const std::string &protocolType) { + protocolType_ = protocolType; + setParameter(std::string("ProtocolType"), protocolType); } -void UpdateDnsGtmMonitorRequest::setInterval(int interval) -{ - interval_ = interval; - setParameter("Interval", std::to_string(interval)); +int UpdateDnsGtmMonitorRequest::getInterval() const { + return interval_; } -std::string UpdateDnsGtmMonitorRequest::getLang()const -{ - return lang_; +void UpdateDnsGtmMonitorRequest::setInterval(int interval) { + interval_ = interval; + setParameter(std::string("Interval"), std::to_string(interval)); } -void UpdateDnsGtmMonitorRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateDnsGtmMonitorRequest::getLang() const { + return lang_; } -std::vector UpdateDnsGtmMonitorRequest::getIspCityNode()const -{ - return ispCityNode_; +void UpdateDnsGtmMonitorRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void UpdateDnsGtmMonitorRequest::setIspCityNode(const std::vector& ispCityNode) -{ - ispCityNode_ = ispCityNode; - for(int dep1 = 0; dep1!= ispCityNode.size(); dep1++) { - auto ispCityNodeObj = ispCityNode.at(dep1); - std::string ispCityNodeObjStr = "IspCityNode." + std::to_string(dep1 + 1); - setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); - setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); - } +std::vector UpdateDnsGtmMonitorRequest::getIspCityNode() const { + return ispCityNode_; +} + +void UpdateDnsGtmMonitorRequest::setIspCityNode(const std::vector &ispCityNode) { + ispCityNode_ = ispCityNode; + for(int dep1 = 0; dep1 != ispCityNode.size(); dep1++) { + auto ispCityNodeObj = ispCityNode.at(dep1); + std::string ispCityNodeObjStr = std::string("IspCityNode") + "." + std::to_string(dep1 + 1); + setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); + setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); + } } diff --git a/alidns/src/model/UpdateDomainGroupRequest.cc b/alidns/src/model/UpdateDomainGroupRequest.cc index f677b1668..acb574096 100644 --- a/alidns/src/model/UpdateDomainGroupRequest.cc +++ b/alidns/src/model/UpdateDomainGroupRequest.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::Alidns::Model::UpdateDomainGroupRequest; - -UpdateDomainGroupRequest::UpdateDomainGroupRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateDomainGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateDomainGroupRequest::~UpdateDomainGroupRequest() -{} - -std::string UpdateDomainGroupRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateDomainGroupRequest; + +UpdateDomainGroupRequest::UpdateDomainGroupRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateDomainGroup") { + setMethod(HttpRequest::Method::Post); } -void UpdateDomainGroupRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +UpdateDomainGroupRequest::~UpdateDomainGroupRequest() {} + +std::string UpdateDomainGroupRequest::getGroupId() const { + return groupId_; } -std::string UpdateDomainGroupRequest::getGroupName()const -{ - return groupName_; +void UpdateDomainGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void UpdateDomainGroupRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); +std::string UpdateDomainGroupRequest::getGroupName() const { + return groupName_; } -std::string UpdateDomainGroupRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateDomainGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } -void UpdateDomainGroupRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateDomainGroupRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateDomainGroupRequest::getLang()const -{ - return lang_; +void UpdateDomainGroupRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateDomainGroupRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateDomainGroupRequest::getLang() const { + return lang_; +} + +void UpdateDomainGroupRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UpdateDomainGroupResult.cc b/alidns/src/model/UpdateDomainGroupResult.cc index 23f39cb9e..e3192b0bf 100644 --- a/alidns/src/model/UpdateDomainGroupResult.cc +++ b/alidns/src/model/UpdateDomainGroupResult.cc @@ -39,10 +39,10 @@ void UpdateDomainGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["GroupId"].isNull()) - groupId_ = value["GroupId"].asString(); if(!value["GroupName"].isNull()) groupName_ = value["GroupName"].asString(); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); } diff --git a/alidns/src/model/UpdateDomainRecordRemarkRequest.cc b/alidns/src/model/UpdateDomainRecordRemarkRequest.cc index 790d48d60..43cf1cc50 100644 --- a/alidns/src/model/UpdateDomainRecordRemarkRequest.cc +++ b/alidns/src/model/UpdateDomainRecordRemarkRequest.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::Alidns::Model::UpdateDomainRecordRemarkRequest; - -UpdateDomainRecordRemarkRequest::UpdateDomainRecordRemarkRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateDomainRecordRemark") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateDomainRecordRemarkRequest::~UpdateDomainRecordRemarkRequest() -{} - -std::string UpdateDomainRecordRemarkRequest::getRemark()const -{ - return remark_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateDomainRecordRemarkRequest; + +UpdateDomainRecordRemarkRequest::UpdateDomainRecordRemarkRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateDomainRecordRemark") { + setMethod(HttpRequest::Method::Post); } -void UpdateDomainRecordRemarkRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setParameter("Remark", remark); +UpdateDomainRecordRemarkRequest::~UpdateDomainRecordRemarkRequest() {} + +std::string UpdateDomainRecordRemarkRequest::getRemark() const { + return remark_; } -std::string UpdateDomainRecordRemarkRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateDomainRecordRemarkRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); } -void UpdateDomainRecordRemarkRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateDomainRecordRemarkRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateDomainRecordRemarkRequest::getRecordId()const -{ - return recordId_; +void UpdateDomainRecordRemarkRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateDomainRecordRemarkRequest::setRecordId(const std::string& recordId) -{ - recordId_ = recordId; - setParameter("RecordId", recordId); +std::string UpdateDomainRecordRemarkRequest::getRecordId() const { + return recordId_; } -std::string UpdateDomainRecordRemarkRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateDomainRecordRemarkRequest::setRecordId(const std::string &recordId) { + recordId_ = recordId; + setParameter(std::string("RecordId"), recordId); } -void UpdateDomainRecordRemarkRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateDomainRecordRemarkRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateDomainRecordRemarkRequest::getLang()const -{ - return lang_; +void UpdateDomainRecordRemarkRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateDomainRecordRemarkRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateDomainRecordRemarkRequest::getLang() const { + return lang_; +} + +void UpdateDomainRecordRemarkRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UpdateDomainRecordRequest.cc b/alidns/src/model/UpdateDomainRecordRequest.cc index 21cf55d4a..bbe1a0538 100644 --- a/alidns/src/model/UpdateDomainRecordRequest.cc +++ b/alidns/src/model/UpdateDomainRecordRequest.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::Alidns::Model::UpdateDomainRecordRequest; - -UpdateDomainRecordRequest::UpdateDomainRecordRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateDomainRecord") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateDomainRecordRequest::~UpdateDomainRecordRequest() -{} - -std::string UpdateDomainRecordRequest::getRR()const -{ - return rR_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateDomainRecordRequest; + +UpdateDomainRecordRequest::UpdateDomainRecordRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateDomainRecord") { + setMethod(HttpRequest::Method::Post); } -void UpdateDomainRecordRequest::setRR(const std::string& rR) -{ - rR_ = rR; - setParameter("RR", rR); +UpdateDomainRecordRequest::~UpdateDomainRecordRequest() {} + +std::string UpdateDomainRecordRequest::getRR() const { + return rR_; } -std::string UpdateDomainRecordRequest::getLine()const -{ - return line_; +void UpdateDomainRecordRequest::setRR(const std::string &rR) { + rR_ = rR; + setParameter(std::string("RR"), rR); } -void UpdateDomainRecordRequest::setLine(const std::string& line) -{ - line_ = line; - setParameter("Line", line); +std::string UpdateDomainRecordRequest::getLine() const { + return line_; } -std::string UpdateDomainRecordRequest::getType()const -{ - return type_; +void UpdateDomainRecordRequest::setLine(const std::string &line) { + line_ = line; + setParameter(std::string("Line"), line); } -void UpdateDomainRecordRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string UpdateDomainRecordRequest::getType() const { + return type_; } -std::string UpdateDomainRecordRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateDomainRecordRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void UpdateDomainRecordRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateDomainRecordRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateDomainRecordRequest::getLang()const -{ - return lang_; +void UpdateDomainRecordRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateDomainRecordRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateDomainRecordRequest::getLang() const { + return lang_; } -std::string UpdateDomainRecordRequest::getValue()const -{ - return value_; +void UpdateDomainRecordRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void UpdateDomainRecordRequest::setValue(const std::string& value) -{ - value_ = value; - setParameter("Value", value); +std::string UpdateDomainRecordRequest::getValue() const { + return value_; } -long UpdateDomainRecordRequest::getPriority()const -{ - return priority_; +void UpdateDomainRecordRequest::setValue(const std::string &value) { + value_ = value; + setParameter(std::string("Value"), value); } -void UpdateDomainRecordRequest::setPriority(long priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +long UpdateDomainRecordRequest::getPriority() const { + return priority_; } -long UpdateDomainRecordRequest::getTTL()const -{ - return tTL_; +void UpdateDomainRecordRequest::setPriority(long priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void UpdateDomainRecordRequest::setTTL(long tTL) -{ - tTL_ = tTL; - setParameter("TTL", std::to_string(tTL)); +long UpdateDomainRecordRequest::getTTL() const { + return tTL_; } -std::string UpdateDomainRecordRequest::getRecordId()const -{ - return recordId_; +void UpdateDomainRecordRequest::setTTL(long tTL) { + tTL_ = tTL; + setParameter(std::string("TTL"), std::to_string(tTL)); } -void UpdateDomainRecordRequest::setRecordId(const std::string& recordId) -{ - recordId_ = recordId; - setParameter("RecordId", recordId); +std::string UpdateDomainRecordRequest::getRecordId() const { + return recordId_; } -std::string UpdateDomainRecordRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateDomainRecordRequest::setRecordId(const std::string &recordId) { + recordId_ = recordId; + setParameter(std::string("RecordId"), recordId); } -void UpdateDomainRecordRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateDomainRecordRequest::getUserClientIp() const { + return userClientIp_; +} + +void UpdateDomainRecordRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } diff --git a/alidns/src/model/UpdateDomainRemarkRequest.cc b/alidns/src/model/UpdateDomainRemarkRequest.cc index 6306558ad..fb978ba5f 100644 --- a/alidns/src/model/UpdateDomainRemarkRequest.cc +++ b/alidns/src/model/UpdateDomainRemarkRequest.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::Alidns::Model::UpdateDomainRemarkRequest; - -UpdateDomainRemarkRequest::UpdateDomainRemarkRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateDomainRemark") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateDomainRemarkRequest::~UpdateDomainRemarkRequest() -{} - -std::string UpdateDomainRemarkRequest::getDomainName()const -{ - return domainName_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateDomainRemarkRequest; + +UpdateDomainRemarkRequest::UpdateDomainRemarkRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateDomainRemark") { + setMethod(HttpRequest::Method::Post); } -void UpdateDomainRemarkRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); +UpdateDomainRemarkRequest::~UpdateDomainRemarkRequest() {} + +std::string UpdateDomainRemarkRequest::getDomainName() const { + return domainName_; } -std::string UpdateDomainRemarkRequest::getRemark()const -{ - return remark_; +void UpdateDomainRemarkRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); } -void UpdateDomainRemarkRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setParameter("Remark", remark); +std::string UpdateDomainRemarkRequest::getRemark() const { + return remark_; } -std::string UpdateDomainRemarkRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateDomainRemarkRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); } -void UpdateDomainRemarkRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateDomainRemarkRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateDomainRemarkRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateDomainRemarkRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateDomainRemarkRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateDomainRemarkRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateDomainRemarkRequest::getLang()const -{ - return lang_; +void UpdateDomainRemarkRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateDomainRemarkRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateDomainRemarkRequest::getLang() const { + return lang_; +} + +void UpdateDomainRemarkRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UpdateGtmAccessStrategyRequest.cc b/alidns/src/model/UpdateGtmAccessStrategyRequest.cc index eb50cab9b..7a92b39c7 100644 --- a/alidns/src/model/UpdateGtmAccessStrategyRequest.cc +++ b/alidns/src/model/UpdateGtmAccessStrategyRequest.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::Alidns::Model::UpdateGtmAccessStrategyRequest; - -UpdateGtmAccessStrategyRequest::UpdateGtmAccessStrategyRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateGtmAccessStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateGtmAccessStrategyRequest::~UpdateGtmAccessStrategyRequest() -{} - -std::string UpdateGtmAccessStrategyRequest::getDefaultAddrPoolId()const -{ - return defaultAddrPoolId_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateGtmAccessStrategyRequest; + +UpdateGtmAccessStrategyRequest::UpdateGtmAccessStrategyRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateGtmAccessStrategy") { + setMethod(HttpRequest::Method::Post); } -void UpdateGtmAccessStrategyRequest::setDefaultAddrPoolId(const std::string& defaultAddrPoolId) -{ - defaultAddrPoolId_ = defaultAddrPoolId; - setParameter("DefaultAddrPoolId", defaultAddrPoolId); +UpdateGtmAccessStrategyRequest::~UpdateGtmAccessStrategyRequest() {} + +std::string UpdateGtmAccessStrategyRequest::getDefaultAddrPoolId() const { + return defaultAddrPoolId_; } -std::string UpdateGtmAccessStrategyRequest::getFailoverAddrPoolId()const -{ - return failoverAddrPoolId_; +void UpdateGtmAccessStrategyRequest::setDefaultAddrPoolId(const std::string &defaultAddrPoolId) { + defaultAddrPoolId_ = defaultAddrPoolId; + setParameter(std::string("DefaultAddrPoolId"), defaultAddrPoolId); } -void UpdateGtmAccessStrategyRequest::setFailoverAddrPoolId(const std::string& failoverAddrPoolId) -{ - failoverAddrPoolId_ = failoverAddrPoolId; - setParameter("FailoverAddrPoolId", failoverAddrPoolId); +std::string UpdateGtmAccessStrategyRequest::getFailoverAddrPoolId() const { + return failoverAddrPoolId_; } -std::string UpdateGtmAccessStrategyRequest::getStrategyName()const -{ - return strategyName_; +void UpdateGtmAccessStrategyRequest::setFailoverAddrPoolId(const std::string &failoverAddrPoolId) { + failoverAddrPoolId_ = failoverAddrPoolId; + setParameter(std::string("FailoverAddrPoolId"), failoverAddrPoolId); } -void UpdateGtmAccessStrategyRequest::setStrategyName(const std::string& strategyName) -{ - strategyName_ = strategyName; - setParameter("StrategyName", strategyName); +std::string UpdateGtmAccessStrategyRequest::getStrategyName() const { + return strategyName_; } -std::string UpdateGtmAccessStrategyRequest::getAccessLines()const -{ - return accessLines_; +void UpdateGtmAccessStrategyRequest::setStrategyName(const std::string &strategyName) { + strategyName_ = strategyName; + setParameter(std::string("StrategyName"), strategyName); } -void UpdateGtmAccessStrategyRequest::setAccessLines(const std::string& accessLines) -{ - accessLines_ = accessLines; - setParameter("AccessLines", accessLines); +std::string UpdateGtmAccessStrategyRequest::getAccessLines() const { + return accessLines_; } -std::string UpdateGtmAccessStrategyRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateGtmAccessStrategyRequest::setAccessLines(const std::string &accessLines) { + accessLines_ = accessLines; + setParameter(std::string("AccessLines"), accessLines); } -void UpdateGtmAccessStrategyRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateGtmAccessStrategyRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateGtmAccessStrategyRequest::getStrategyId()const -{ - return strategyId_; +void UpdateGtmAccessStrategyRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateGtmAccessStrategyRequest::setStrategyId(const std::string& strategyId) -{ - strategyId_ = strategyId; - setParameter("StrategyId", strategyId); +std::string UpdateGtmAccessStrategyRequest::getStrategyId() const { + return strategyId_; } -std::string UpdateGtmAccessStrategyRequest::getLang()const -{ - return lang_; +void UpdateGtmAccessStrategyRequest::setStrategyId(const std::string &strategyId) { + strategyId_ = strategyId; + setParameter(std::string("StrategyId"), strategyId); } -void UpdateGtmAccessStrategyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateGtmAccessStrategyRequest::getLang() const { + return lang_; +} + +void UpdateGtmAccessStrategyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UpdateGtmAddressPoolRequest.cc b/alidns/src/model/UpdateGtmAddressPoolRequest.cc index 4da3bf309..65701cab3 100644 --- a/alidns/src/model/UpdateGtmAddressPoolRequest.cc +++ b/alidns/src/model/UpdateGtmAddressPoolRequest.cc @@ -1,112 +1,96 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::UpdateGtmAddressPoolRequest; - -UpdateGtmAddressPoolRequest::UpdateGtmAddressPoolRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateGtmAddressPool") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateGtmAddressPoolRequest::~UpdateGtmAddressPoolRequest() -{} - -std::string UpdateGtmAddressPoolRequest::getType()const -{ - return type_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateGtmAddressPoolRequest; + +UpdateGtmAddressPoolRequest::UpdateGtmAddressPoolRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateGtmAddressPool") { + setMethod(HttpRequest::Method::Post); } -void UpdateGtmAddressPoolRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +UpdateGtmAddressPoolRequest::~UpdateGtmAddressPoolRequest() {} + +std::string UpdateGtmAddressPoolRequest::getType() const { + return type_; } -int UpdateGtmAddressPoolRequest::getMinAvailableAddrNum()const -{ - return minAvailableAddrNum_; +void UpdateGtmAddressPoolRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void UpdateGtmAddressPoolRequest::setMinAvailableAddrNum(int minAvailableAddrNum) -{ - minAvailableAddrNum_ = minAvailableAddrNum; - setParameter("MinAvailableAddrNum", std::to_string(minAvailableAddrNum)); +int UpdateGtmAddressPoolRequest::getMinAvailableAddrNum() const { + return minAvailableAddrNum_; } -std::string UpdateGtmAddressPoolRequest::getAddrPoolId()const -{ - return addrPoolId_; +void UpdateGtmAddressPoolRequest::setMinAvailableAddrNum(int minAvailableAddrNum) { + minAvailableAddrNum_ = minAvailableAddrNum; + setParameter(std::string("MinAvailableAddrNum"), std::to_string(minAvailableAddrNum)); } -void UpdateGtmAddressPoolRequest::setAddrPoolId(const std::string& addrPoolId) -{ - addrPoolId_ = addrPoolId; - setParameter("AddrPoolId", addrPoolId); +std::string UpdateGtmAddressPoolRequest::getAddrPoolId() const { + return addrPoolId_; } -std::string UpdateGtmAddressPoolRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateGtmAddressPoolRequest::setAddrPoolId(const std::string &addrPoolId) { + addrPoolId_ = addrPoolId; + setParameter(std::string("AddrPoolId"), addrPoolId); } -void UpdateGtmAddressPoolRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateGtmAddressPoolRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateGtmAddressPoolRequest::getName()const -{ - return name_; +void UpdateGtmAddressPoolRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateGtmAddressPoolRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateGtmAddressPoolRequest::getName() const { + return name_; } -std::string UpdateGtmAddressPoolRequest::getLang()const -{ - return lang_; +void UpdateGtmAddressPoolRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void UpdateGtmAddressPoolRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateGtmAddressPoolRequest::getLang() const { + return lang_; } -std::vector UpdateGtmAddressPoolRequest::getAddr()const -{ - return addr_; +void UpdateGtmAddressPoolRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void UpdateGtmAddressPoolRequest::setAddr(const std::vector& addr) -{ - addr_ = addr; - for(int dep1 = 0; dep1!= addr.size(); dep1++) { - auto addrObj = addr.at(dep1); - std::string addrObjStr = "Addr." + std::to_string(dep1 + 1); - setParameter(addrObjStr + ".Mode", addrObj.mode); - setParameter(addrObjStr + ".LbaWeight", std::to_string(addrObj.lbaWeight)); - setParameter(addrObjStr + ".Value", addrObj.value); - } +std::vector UpdateGtmAddressPoolRequest::getAddr() const { + return addr_; +} + +void UpdateGtmAddressPoolRequest::setAddr(const std::vector &addr) { + addr_ = addr; + for(int dep1 = 0; dep1 != addr.size(); dep1++) { + auto addrObj = addr.at(dep1); + std::string addrObjStr = std::string("Addr") + "." + std::to_string(dep1 + 1); + setParameter(addrObjStr + ".Mode", addrObj.mode); + setParameter(addrObjStr + ".LbaWeight", std::to_string(addrObj.lbaWeight)); + setParameter(addrObjStr + ".Value", addrObj.value); + } } diff --git a/alidns/src/model/UpdateGtmInstanceGlobalConfigRequest.cc b/alidns/src/model/UpdateGtmInstanceGlobalConfigRequest.cc index 1d69462e7..c65e4c711 100644 --- a/alidns/src/model/UpdateGtmInstanceGlobalConfigRequest.cc +++ b/alidns/src/model/UpdateGtmInstanceGlobalConfigRequest.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::Alidns::Model::UpdateGtmInstanceGlobalConfigRequest; - -UpdateGtmInstanceGlobalConfigRequest::UpdateGtmInstanceGlobalConfigRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateGtmInstanceGlobalConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateGtmInstanceGlobalConfigRequest::~UpdateGtmInstanceGlobalConfigRequest() -{} - -std::string UpdateGtmInstanceGlobalConfigRequest::getAlertGroup()const -{ - return alertGroup_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateGtmInstanceGlobalConfigRequest; + +UpdateGtmInstanceGlobalConfigRequest::UpdateGtmInstanceGlobalConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateGtmInstanceGlobalConfig") { + setMethod(HttpRequest::Method::Post); } -void UpdateGtmInstanceGlobalConfigRequest::setAlertGroup(const std::string& alertGroup) -{ - alertGroup_ = alertGroup; - setParameter("AlertGroup", alertGroup); +UpdateGtmInstanceGlobalConfigRequest::~UpdateGtmInstanceGlobalConfigRequest() {} + +std::string UpdateGtmInstanceGlobalConfigRequest::getAlertGroup() const { + return alertGroup_; } -std::string UpdateGtmInstanceGlobalConfigRequest::getCnameMode()const -{ - return cnameMode_; +void UpdateGtmInstanceGlobalConfigRequest::setAlertGroup(const std::string &alertGroup) { + alertGroup_ = alertGroup; + setParameter(std::string("AlertGroup"), alertGroup); } -void UpdateGtmInstanceGlobalConfigRequest::setCnameMode(const std::string& cnameMode) -{ - cnameMode_ = cnameMode; - setParameter("CnameMode", cnameMode); +std::string UpdateGtmInstanceGlobalConfigRequest::getCnameMode() const { + return cnameMode_; } -std::string UpdateGtmInstanceGlobalConfigRequest::getLbaStrategy()const -{ - return lbaStrategy_; +void UpdateGtmInstanceGlobalConfigRequest::setCnameMode(const std::string &cnameMode) { + cnameMode_ = cnameMode; + setParameter(std::string("CnameMode"), cnameMode); } -void UpdateGtmInstanceGlobalConfigRequest::setLbaStrategy(const std::string& lbaStrategy) -{ - lbaStrategy_ = lbaStrategy; - setParameter("LbaStrategy", lbaStrategy); +std::string UpdateGtmInstanceGlobalConfigRequest::getLbaStrategy() const { + return lbaStrategy_; } -int UpdateGtmInstanceGlobalConfigRequest::getTtl()const -{ - return ttl_; +void UpdateGtmInstanceGlobalConfigRequest::setLbaStrategy(const std::string &lbaStrategy) { + lbaStrategy_ = lbaStrategy; + setParameter(std::string("LbaStrategy"), lbaStrategy); } -void UpdateGtmInstanceGlobalConfigRequest::setTtl(int ttl) -{ - ttl_ = ttl; - setParameter("Ttl", std::to_string(ttl)); +int UpdateGtmInstanceGlobalConfigRequest::getTtl() const { + return ttl_; } -std::string UpdateGtmInstanceGlobalConfigRequest::getCnameCustomDomainName()const -{ - return cnameCustomDomainName_; +void UpdateGtmInstanceGlobalConfigRequest::setTtl(int ttl) { + ttl_ = ttl; + setParameter(std::string("Ttl"), std::to_string(ttl)); } -void UpdateGtmInstanceGlobalConfigRequest::setCnameCustomDomainName(const std::string& cnameCustomDomainName) -{ - cnameCustomDomainName_ = cnameCustomDomainName; - setParameter("CnameCustomDomainName", cnameCustomDomainName); +std::string UpdateGtmInstanceGlobalConfigRequest::getCnameCustomDomainName() const { + return cnameCustomDomainName_; } -std::string UpdateGtmInstanceGlobalConfigRequest::getInstanceId()const -{ - return instanceId_; +void UpdateGtmInstanceGlobalConfigRequest::setCnameCustomDomainName(const std::string &cnameCustomDomainName) { + cnameCustomDomainName_ = cnameCustomDomainName; + setParameter(std::string("CnameCustomDomainName"), cnameCustomDomainName); } -void UpdateGtmInstanceGlobalConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string UpdateGtmInstanceGlobalConfigRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateGtmInstanceGlobalConfigRequest::getInstanceName()const -{ - return instanceName_; +void UpdateGtmInstanceGlobalConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void UpdateGtmInstanceGlobalConfigRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +std::string UpdateGtmInstanceGlobalConfigRequest::getInstanceName() const { + return instanceName_; } -std::string UpdateGtmInstanceGlobalConfigRequest::getUserDomainName()const -{ - return userDomainName_; +void UpdateGtmInstanceGlobalConfigRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -void UpdateGtmInstanceGlobalConfigRequest::setUserDomainName(const std::string& userDomainName) -{ - userDomainName_ = userDomainName; - setParameter("UserDomainName", userDomainName); +std::string UpdateGtmInstanceGlobalConfigRequest::getUserDomainName() const { + return userDomainName_; } -std::string UpdateGtmInstanceGlobalConfigRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateGtmInstanceGlobalConfigRequest::setUserDomainName(const std::string &userDomainName) { + userDomainName_ = userDomainName; + setParameter(std::string("UserDomainName"), userDomainName); } -void UpdateGtmInstanceGlobalConfigRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateGtmInstanceGlobalConfigRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateGtmInstanceGlobalConfigRequest::getLang()const -{ - return lang_; +void UpdateGtmInstanceGlobalConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateGtmInstanceGlobalConfigRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateGtmInstanceGlobalConfigRequest::getLang() const { + return lang_; +} + +void UpdateGtmInstanceGlobalConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UpdateGtmMonitorRequest.cc b/alidns/src/model/UpdateGtmMonitorRequest.cc index 4a922aff8..f076fc641 100644 --- a/alidns/src/model/UpdateGtmMonitorRequest.cc +++ b/alidns/src/model/UpdateGtmMonitorRequest.cc @@ -1,133 +1,113 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Alidns::Model::UpdateGtmMonitorRequest; - -UpdateGtmMonitorRequest::UpdateGtmMonitorRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateGtmMonitor") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateGtmMonitorRequest::~UpdateGtmMonitorRequest() -{} - -std::string UpdateGtmMonitorRequest::getMonitorExtendInfo()const -{ - return monitorExtendInfo_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateGtmMonitorRequest; + +UpdateGtmMonitorRequest::UpdateGtmMonitorRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateGtmMonitor") { + setMethod(HttpRequest::Method::Post); } -void UpdateGtmMonitorRequest::setMonitorExtendInfo(const std::string& monitorExtendInfo) -{ - monitorExtendInfo_ = monitorExtendInfo; - setParameter("MonitorExtendInfo", monitorExtendInfo); +UpdateGtmMonitorRequest::~UpdateGtmMonitorRequest() {} + +std::string UpdateGtmMonitorRequest::getMonitorExtendInfo() const { + return monitorExtendInfo_; } -std::string UpdateGtmMonitorRequest::getMonitorConfigId()const -{ - return monitorConfigId_; +void UpdateGtmMonitorRequest::setMonitorExtendInfo(const std::string &monitorExtendInfo) { + monitorExtendInfo_ = monitorExtendInfo; + setParameter(std::string("MonitorExtendInfo"), monitorExtendInfo); } -void UpdateGtmMonitorRequest::setMonitorConfigId(const std::string& monitorConfigId) -{ - monitorConfigId_ = monitorConfigId; - setParameter("MonitorConfigId", monitorConfigId); +std::string UpdateGtmMonitorRequest::getMonitorConfigId() const { + return monitorConfigId_; } -int UpdateGtmMonitorRequest::getTimeout()const -{ - return timeout_; +void UpdateGtmMonitorRequest::setMonitorConfigId(const std::string &monitorConfigId) { + monitorConfigId_ = monitorConfigId; + setParameter(std::string("MonitorConfigId"), monitorConfigId); } -void UpdateGtmMonitorRequest::setTimeout(int timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); +int UpdateGtmMonitorRequest::getTimeout() const { + return timeout_; } -std::string UpdateGtmMonitorRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateGtmMonitorRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); } -void UpdateGtmMonitorRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateGtmMonitorRequest::getUserClientIp() const { + return userClientIp_; } -int UpdateGtmMonitorRequest::getEvaluationCount()const -{ - return evaluationCount_; +void UpdateGtmMonitorRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateGtmMonitorRequest::setEvaluationCount(int evaluationCount) -{ - evaluationCount_ = evaluationCount; - setParameter("EvaluationCount", std::to_string(evaluationCount)); +int UpdateGtmMonitorRequest::getEvaluationCount() const { + return evaluationCount_; } -std::string UpdateGtmMonitorRequest::getProtocolType()const -{ - return protocolType_; +void UpdateGtmMonitorRequest::setEvaluationCount(int evaluationCount) { + evaluationCount_ = evaluationCount; + setParameter(std::string("EvaluationCount"), std::to_string(evaluationCount)); } -void UpdateGtmMonitorRequest::setProtocolType(const std::string& protocolType) -{ - protocolType_ = protocolType; - setParameter("ProtocolType", protocolType); +std::string UpdateGtmMonitorRequest::getProtocolType() const { + return protocolType_; } -int UpdateGtmMonitorRequest::getInterval()const -{ - return interval_; +void UpdateGtmMonitorRequest::setProtocolType(const std::string &protocolType) { + protocolType_ = protocolType; + setParameter(std::string("ProtocolType"), protocolType); } -void UpdateGtmMonitorRequest::setInterval(int interval) -{ - interval_ = interval; - setParameter("Interval", std::to_string(interval)); +int UpdateGtmMonitorRequest::getInterval() const { + return interval_; } -std::string UpdateGtmMonitorRequest::getLang()const -{ - return lang_; +void UpdateGtmMonitorRequest::setInterval(int interval) { + interval_ = interval; + setParameter(std::string("Interval"), std::to_string(interval)); } -void UpdateGtmMonitorRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateGtmMonitorRequest::getLang() const { + return lang_; } -std::vector UpdateGtmMonitorRequest::getIspCityNode()const -{ - return ispCityNode_; +void UpdateGtmMonitorRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void UpdateGtmMonitorRequest::setIspCityNode(const std::vector& ispCityNode) -{ - ispCityNode_ = ispCityNode; - for(int dep1 = 0; dep1!= ispCityNode.size(); dep1++) { - auto ispCityNodeObj = ispCityNode.at(dep1); - std::string ispCityNodeObjStr = "IspCityNode." + std::to_string(dep1 + 1); - setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); - setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); - } +std::vector UpdateGtmMonitorRequest::getIspCityNode() const { + return ispCityNode_; +} + +void UpdateGtmMonitorRequest::setIspCityNode(const std::vector &ispCityNode) { + ispCityNode_ = ispCityNode; + for(int dep1 = 0; dep1 != ispCityNode.size(); dep1++) { + auto ispCityNodeObj = ispCityNode.at(dep1); + std::string ispCityNodeObjStr = std::string("IspCityNode") + "." + std::to_string(dep1 + 1); + setParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode); + setParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode); + } } diff --git a/alidns/src/model/UpdateGtmRecoveryPlanRequest.cc b/alidns/src/model/UpdateGtmRecoveryPlanRequest.cc index 0ac33994e..fc6e5f235 100644 --- a/alidns/src/model/UpdateGtmRecoveryPlanRequest.cc +++ b/alidns/src/model/UpdateGtmRecoveryPlanRequest.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::Alidns::Model::UpdateGtmRecoveryPlanRequest; - -UpdateGtmRecoveryPlanRequest::UpdateGtmRecoveryPlanRequest() : - RpcServiceRequest("alidns", "2015-01-09", "UpdateGtmRecoveryPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateGtmRecoveryPlanRequest::~UpdateGtmRecoveryPlanRequest() -{} - -std::string UpdateGtmRecoveryPlanRequest::getFaultAddrPool()const -{ - return faultAddrPool_; + */ + +#include + +using AlibabaCloud::Alidns::Model::UpdateGtmRecoveryPlanRequest; + +UpdateGtmRecoveryPlanRequest::UpdateGtmRecoveryPlanRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateGtmRecoveryPlan") { + setMethod(HttpRequest::Method::Post); } -void UpdateGtmRecoveryPlanRequest::setFaultAddrPool(const std::string& faultAddrPool) -{ - faultAddrPool_ = faultAddrPool; - setParameter("FaultAddrPool", faultAddrPool); +UpdateGtmRecoveryPlanRequest::~UpdateGtmRecoveryPlanRequest() {} + +std::string UpdateGtmRecoveryPlanRequest::getFaultAddrPool() const { + return faultAddrPool_; } -std::string UpdateGtmRecoveryPlanRequest::getRemark()const -{ - return remark_; +void UpdateGtmRecoveryPlanRequest::setFaultAddrPool(const std::string &faultAddrPool) { + faultAddrPool_ = faultAddrPool; + setParameter(std::string("FaultAddrPool"), faultAddrPool); } -void UpdateGtmRecoveryPlanRequest::setRemark(const std::string& remark) -{ - remark_ = remark; - setParameter("Remark", remark); +std::string UpdateGtmRecoveryPlanRequest::getRemark() const { + return remark_; } -std::string UpdateGtmRecoveryPlanRequest::getUserClientIp()const -{ - return userClientIp_; +void UpdateGtmRecoveryPlanRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); } -void UpdateGtmRecoveryPlanRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string UpdateGtmRecoveryPlanRequest::getUserClientIp() const { + return userClientIp_; } -std::string UpdateGtmRecoveryPlanRequest::getName()const -{ - return name_; +void UpdateGtmRecoveryPlanRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void UpdateGtmRecoveryPlanRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateGtmRecoveryPlanRequest::getName() const { + return name_; } -long UpdateGtmRecoveryPlanRequest::getRecoveryPlanId()const -{ - return recoveryPlanId_; +void UpdateGtmRecoveryPlanRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void UpdateGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) -{ - recoveryPlanId_ = recoveryPlanId; - setParameter("RecoveryPlanId", std::to_string(recoveryPlanId)); +long UpdateGtmRecoveryPlanRequest::getRecoveryPlanId() const { + return recoveryPlanId_; } -std::string UpdateGtmRecoveryPlanRequest::getLang()const -{ - return lang_; +void UpdateGtmRecoveryPlanRequest::setRecoveryPlanId(long recoveryPlanId) { + recoveryPlanId_ = recoveryPlanId; + setParameter(std::string("RecoveryPlanId"), std::to_string(recoveryPlanId)); } -void UpdateGtmRecoveryPlanRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string UpdateGtmRecoveryPlanRequest::getLang() const { + return lang_; +} + +void UpdateGtmRecoveryPlanRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/UpdateIspFlushCacheInstanceConfigRequest.cc b/alidns/src/model/UpdateIspFlushCacheInstanceConfigRequest.cc new file mode 100644 index 000000000..0c48d6ba1 --- /dev/null +++ b/alidns/src/model/UpdateIspFlushCacheInstanceConfigRequest.cc @@ -0,0 +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::Alidns::Model::UpdateIspFlushCacheInstanceConfigRequest; + +UpdateIspFlushCacheInstanceConfigRequest::UpdateIspFlushCacheInstanceConfigRequest() + : RpcServiceRequest("alidns", "2015-01-09", "UpdateIspFlushCacheInstanceConfig") { + setMethod(HttpRequest::Method::Post); +} + +UpdateIspFlushCacheInstanceConfigRequest::~UpdateIspFlushCacheInstanceConfigRequest() {} + +std::string UpdateIspFlushCacheInstanceConfigRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateIspFlushCacheInstanceConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string UpdateIspFlushCacheInstanceConfigRequest::getInstanceName() const { + return instanceName_; +} + +void UpdateIspFlushCacheInstanceConfigRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); +} + +std::string UpdateIspFlushCacheInstanceConfigRequest::getUserClientIp() const { + return userClientIp_; +} + +void UpdateIspFlushCacheInstanceConfigRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); +} + +std::string UpdateIspFlushCacheInstanceConfigRequest::getLang() const { + return lang_; +} + +void UpdateIspFlushCacheInstanceConfigRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/alidns/src/model/UpdateIspFlushCacheInstanceConfigResult.cc b/alidns/src/model/UpdateIspFlushCacheInstanceConfigResult.cc new file mode 100644 index 000000000..8f04f7d99 --- /dev/null +++ b/alidns/src/model/UpdateIspFlushCacheInstanceConfigResult.cc @@ -0,0 +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 +#include + +using namespace AlibabaCloud::Alidns; +using namespace AlibabaCloud::Alidns::Model; + +UpdateIspFlushCacheInstanceConfigResult::UpdateIspFlushCacheInstanceConfigResult() : + ServiceResult() +{} + +UpdateIspFlushCacheInstanceConfigResult::UpdateIspFlushCacheInstanceConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateIspFlushCacheInstanceConfigResult::~UpdateIspFlushCacheInstanceConfigResult() +{} + +void UpdateIspFlushCacheInstanceConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alidns/src/model/ValidateDnsGtmCnameRrCanUseRequest.cc b/alidns/src/model/ValidateDnsGtmCnameRrCanUseRequest.cc index 94d5a947c..ec516c2fb 100644 --- a/alidns/src/model/ValidateDnsGtmCnameRrCanUseRequest.cc +++ b/alidns/src/model/ValidateDnsGtmCnameRrCanUseRequest.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::Alidns::Model::ValidateDnsGtmCnameRrCanUseRequest; - -ValidateDnsGtmCnameRrCanUseRequest::ValidateDnsGtmCnameRrCanUseRequest() : - RpcServiceRequest("alidns", "2015-01-09", "ValidateDnsGtmCnameRrCanUse") -{ - setMethod(HttpRequest::Method::Post); -} - -ValidateDnsGtmCnameRrCanUseRequest::~ValidateDnsGtmCnameRrCanUseRequest() -{} - -std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameMode()const -{ - return cnameMode_; + */ + +#include + +using AlibabaCloud::Alidns::Model::ValidateDnsGtmCnameRrCanUseRequest; + +ValidateDnsGtmCnameRrCanUseRequest::ValidateDnsGtmCnameRrCanUseRequest() + : RpcServiceRequest("alidns", "2015-01-09", "ValidateDnsGtmCnameRrCanUse") { + setMethod(HttpRequest::Method::Post); } -void ValidateDnsGtmCnameRrCanUseRequest::setCnameMode(const std::string& cnameMode) -{ - cnameMode_ = cnameMode; - setParameter("CnameMode", cnameMode); +ValidateDnsGtmCnameRrCanUseRequest::~ValidateDnsGtmCnameRrCanUseRequest() {} + +std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameMode() const { + return cnameMode_; } -std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameZone()const -{ - return cnameZone_; +void ValidateDnsGtmCnameRrCanUseRequest::setCnameMode(const std::string &cnameMode) { + cnameMode_ = cnameMode; + setParameter(std::string("CnameMode"), cnameMode); } -void ValidateDnsGtmCnameRrCanUseRequest::setCnameZone(const std::string& cnameZone) -{ - cnameZone_ = cnameZone; - setParameter("CnameZone", cnameZone); +std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameZone() const { + return cnameZone_; } -std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameRr()const -{ - return cnameRr_; +void ValidateDnsGtmCnameRrCanUseRequest::setCnameZone(const std::string &cnameZone) { + cnameZone_ = cnameZone; + setParameter(std::string("CnameZone"), cnameZone); } -void ValidateDnsGtmCnameRrCanUseRequest::setCnameRr(const std::string& cnameRr) -{ - cnameRr_ = cnameRr; - setParameter("CnameRr", cnameRr); +std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameRr() const { + return cnameRr_; } -std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameType()const -{ - return cnameType_; +void ValidateDnsGtmCnameRrCanUseRequest::setCnameRr(const std::string &cnameRr) { + cnameRr_ = cnameRr; + setParameter(std::string("CnameRr"), cnameRr); } -void ValidateDnsGtmCnameRrCanUseRequest::setCnameType(const std::string& cnameType) -{ - cnameType_ = cnameType; - setParameter("CnameType", cnameType); +std::string ValidateDnsGtmCnameRrCanUseRequest::getCnameType() const { + return cnameType_; } -std::string ValidateDnsGtmCnameRrCanUseRequest::getInstanceId()const -{ - return instanceId_; +void ValidateDnsGtmCnameRrCanUseRequest::setCnameType(const std::string &cnameType) { + cnameType_ = cnameType; + setParameter(std::string("CnameType"), cnameType); } -void ValidateDnsGtmCnameRrCanUseRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ValidateDnsGtmCnameRrCanUseRequest::getInstanceId() const { + return instanceId_; } -std::string ValidateDnsGtmCnameRrCanUseRequest::getUserClientIp()const -{ - return userClientIp_; +void ValidateDnsGtmCnameRrCanUseRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ValidateDnsGtmCnameRrCanUseRequest::setUserClientIp(const std::string& userClientIp) -{ - userClientIp_ = userClientIp; - setParameter("UserClientIp", userClientIp); +std::string ValidateDnsGtmCnameRrCanUseRequest::getUserClientIp() const { + return userClientIp_; } -std::string ValidateDnsGtmCnameRrCanUseRequest::getLang()const -{ - return lang_; +void ValidateDnsGtmCnameRrCanUseRequest::setUserClientIp(const std::string &userClientIp) { + userClientIp_ = userClientIp; + setParameter(std::string("UserClientIp"), userClientIp); } -void ValidateDnsGtmCnameRrCanUseRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string ValidateDnsGtmCnameRrCanUseRequest::getLang() const { + return lang_; +} + +void ValidateDnsGtmCnameRrCanUseRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/alidns/src/model/ValidatePdnsUdpIpSegmentRequest.cc b/alidns/src/model/ValidatePdnsUdpIpSegmentRequest.cc index debc18815..8a7b9e127 100644 --- a/alidns/src/model/ValidatePdnsUdpIpSegmentRequest.cc +++ b/alidns/src/model/ValidatePdnsUdpIpSegmentRequest.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::Alidns::Model::ValidatePdnsUdpIpSegmentRequest; - -ValidatePdnsUdpIpSegmentRequest::ValidatePdnsUdpIpSegmentRequest() : - RpcServiceRequest("alidns", "2015-01-09", "ValidatePdnsUdpIpSegment") -{ - setMethod(HttpRequest::Method::Post); -} - -ValidatePdnsUdpIpSegmentRequest::~ValidatePdnsUdpIpSegmentRequest() -{} - -std::string ValidatePdnsUdpIpSegmentRequest::getIp()const -{ - return ip_; + */ + +#include + +using AlibabaCloud::Alidns::Model::ValidatePdnsUdpIpSegmentRequest; + +ValidatePdnsUdpIpSegmentRequest::ValidatePdnsUdpIpSegmentRequest() + : RpcServiceRequest("alidns", "2015-01-09", "ValidatePdnsUdpIpSegment") { + setMethod(HttpRequest::Method::Post); } -void ValidatePdnsUdpIpSegmentRequest::setIp(const std::string& ip) -{ - ip_ = ip; - setParameter("Ip", ip); +ValidatePdnsUdpIpSegmentRequest::~ValidatePdnsUdpIpSegmentRequest() {} + +std::string ValidatePdnsUdpIpSegmentRequest::getIp() const { + return ip_; } -std::string ValidatePdnsUdpIpSegmentRequest::getLang()const -{ - return lang_; +void ValidatePdnsUdpIpSegmentRequest::setIp(const std::string &ip) { + ip_ = ip; + setParameter(std::string("Ip"), ip); } -void ValidatePdnsUdpIpSegmentRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string ValidatePdnsUdpIpSegmentRequest::getLang() const { + return lang_; +} + +void ValidatePdnsUdpIpSegmentRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); }