From 979ae0c882858f525aeaf2e754496870b6ea49f0 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 28 Jul 2022 07:11:21 +0000 Subject: [PATCH] Automatically generate sdk tasks. --- CHANGELOG | 3 + VERSION | 2 +- dbs/CMakeLists.txt | 8 - dbs/include/alibabacloud/dbs/DbsClient.h | 16 - .../dbs/model/ConfigureBackupPlanRequest.h | 245 ++++---- .../model/CreateAndStartBackupPlanRequest.h | 311 +++++----- .../dbs/model/CreateBackupPlanRequest.h | 149 +++-- .../CreateFullBackupSetDownloadRequest.h | 86 ++- .../CreateGetDBListFromAgentTaskRequest.h | 104 ++-- .../CreateIncrementBackupSetDownloadRequest.h | 92 ++- .../dbs/model/CreateRestoreTaskRequest.h | 194 +++---- .../model/DescribeBackupGatewayListRequest.h | 98 ++-- .../model/DescribeBackupGatewayListResult.h | 8 +- .../model/DescribeBackupPlanBillingRequest.h | 86 ++- .../model/DescribeBackupPlanBillingResult.h | 3 +- .../dbs/model/DescribeBackupPlanListRequest.h | 113 ++-- .../dbs/model/DescribeBackupPlanListResult.h | 15 +- ...DescribeBackupSetDownloadTaskListRequest.h | 98 ++-- .../DescribeBackupSetDownloadTaskListResult.h | 8 +- .../dbs/model/DescribeDLAServiceRequest.h | 80 ++- .../dbs/model/DescribeFullBackupListRequest.h | 116 ++-- .../dbs/model/DescribeFullBackupListResult.h | 12 +- .../dbs/model/DescribeFullBackupSetRequest.h | 57 -- .../dbs/model/DescribeFullBackupSetResult.h | 81 --- .../DescribeIncrementBackupListRequest.h | 110 ++-- .../model/DescribeIncrementBackupListResult.h | 6 +- .../dbs/model/DescribeJobErrorCodeRequest.h | 86 ++- .../model/DescribeLogicalBackupSetRequest.h | 57 -- .../model/DescribeLogicalBackupSetResult.h | 61 -- .../dbs/model/DescribeNodeCidrListRequest.h | 80 ++- .../DescribePreCheckProgressListRequest.h | 86 ++- .../DescribePreCheckProgressListResult.h | 2 +- .../dbs/model/DescribeRegionsRequest.h | 74 ++- .../model/DescribeRestoreRangeInfoRequest.h | 98 ++-- .../model/DescribeRestoreRangeInfoResult.h | 2 +- .../model/DescribeRestoreTaskListRequest.h | 110 ++-- .../dbs/model/DescribeRestoreTaskListResult.h | 10 +- .../dbs/model/DisableBackupLogRequest.h | 80 ++- .../dbs/model/EnableBackupLogRequest.h | 80 ++- .../dbs/model/GetDBListFromAgentRequest.h | 92 ++- .../InitializeDbsServiceLinkedRoleRequest.h | 62 +- .../dbs/model/ModifyBackupObjectsRequest.h | 86 ++- .../dbs/model/ModifyBackupPlanNameRequest.h | 86 ++- .../ModifyBackupSetDownloadRulesRequest.h | 122 ++-- .../model/ModifyBackupSourceEndpointRequest.h | 158 +++--- .../dbs/model/ModifyBackupStrategyRequest.h | 104 ++-- .../dbs/model/ModifyStorageStrategyRequest.h | 98 ++-- .../dbs/model/ReleaseBackupPlanRequest.h | 80 ++- .../dbs/model/RenewBackupPlanRequest.h | 92 ++- .../dbs/model/StartBackupPlanRequest.h | 80 ++- .../dbs/model/StartBackupPlanResult.h | 2 + .../dbs/model/StartRestoreTaskRequest.h | 80 ++- .../dbs/model/StopBackupPlanRequest.h | 86 ++- .../dbs/model/UpgradeBackupPlanRequest.h | 86 ++- dbs/src/DbsClient.cc | 78 +-- dbs/src/model/ConfigureBackupPlanRequest.cc | 403 ++++++------- dbs/src/model/ConfigureBackupPlanResult.cc | 12 +- .../model/CreateAndStartBackupPlanRequest.cc | 535 ++++++++---------- .../model/CreateAndStartBackupPlanResult.cc | 16 +- dbs/src/model/CreateBackupPlanRequest.cc | 211 ++++--- dbs/src/model/CreateBackupPlanResult.cc | 12 +- .../CreateFullBackupSetDownloadRequest.cc | 82 ++- .../CreateFullBackupSetDownloadResult.cc | 12 +- .../CreateGetDBListFromAgentTaskRequest.cc | 118 ++-- .../CreateGetDBListFromAgentTaskResult.cc | 12 +- ...CreateIncrementBackupSetDownloadRequest.cc | 94 ++- .../CreateIncrementBackupSetDownloadResult.cc | 12 +- dbs/src/model/CreateRestoreTaskRequest.cc | 298 +++++----- dbs/src/model/CreateRestoreTaskResult.cc | 12 +- .../model/DescribeBackupGatewayListRequest.cc | 106 ++-- .../model/DescribeBackupGatewayListResult.cc | 62 +- .../model/DescribeBackupPlanBillingRequest.cc | 82 ++- .../model/DescribeBackupPlanBillingResult.cc | 50 +- .../model/DescribeBackupPlanListRequest.cc | 139 +++-- dbs/src/model/DescribeBackupPlanListResult.cc | 160 +++--- ...escribeBackupSetDownloadTaskListRequest.cc | 106 ++-- ...DescribeBackupSetDownloadTaskListResult.cc | 90 +-- dbs/src/model/DescribeDLAServiceRequest.cc | 70 +-- dbs/src/model/DescribeDLAServiceResult.cc | 12 +- .../model/DescribeFullBackupListRequest.cc | 142 ++--- dbs/src/model/DescribeFullBackupListResult.cc | 66 +-- dbs/src/model/DescribeFullBackupSetRequest.cc | 73 --- dbs/src/model/DescribeFullBackupSetResult.cc | 156 ----- .../DescribeIncrementBackupListRequest.cc | 130 ++--- .../DescribeIncrementBackupListResult.cc | 54 +- dbs/src/model/DescribeJobErrorCodeRequest.cc | 82 ++- dbs/src/model/DescribeJobErrorCodeResult.cc | 32 +- .../model/DescribeLogicalBackupSetRequest.cc | 73 --- .../model/DescribeLogicalBackupSetResult.cc | 86 --- dbs/src/model/DescribeNodeCidrListRequest.cc | 70 +-- dbs/src/model/DescribeNodeCidrListResult.cc | 18 +- .../DescribePreCheckProgressListRequest.cc | 82 ++- .../DescribePreCheckProgressListResult.cc | 44 +- dbs/src/model/DescribeRegionsRequest.cc | 58 +- dbs/src/model/DescribeRegionsResult.cc | 12 +- .../model/DescribeRestoreRangeInfoRequest.cc | 106 ++-- .../model/DescribeRestoreRangeInfoResult.cc | 32 +- .../model/DescribeRestoreTaskListRequest.cc | 130 ++--- .../model/DescribeRestoreTaskListResult.cc | 98 ++-- dbs/src/model/DisableBackupLogRequest.cc | 70 +-- dbs/src/model/DisableBackupLogResult.cc | 12 +- dbs/src/model/EnableBackupLogRequest.cc | 70 +-- dbs/src/model/EnableBackupLogResult.cc | 12 +- dbs/src/model/GetDBListFromAgentRequest.cc | 94 ++- dbs/src/model/GetDBListFromAgentResult.cc | 12 +- .../InitializeDbsServiceLinkedRoleRequest.cc | 34 +- .../InitializeDbsServiceLinkedRoleResult.cc | 8 +- dbs/src/model/ModifyBackupObjectsRequest.cc | 82 ++- dbs/src/model/ModifyBackupObjectsResult.cc | 12 +- dbs/src/model/ModifyBackupPlanNameRequest.cc | 82 ++- dbs/src/model/ModifyBackupPlanNameResult.cc | 12 +- .../ModifyBackupSetDownloadRulesRequest.cc | 154 +++-- .../ModifyBackupSetDownloadRulesResult.cc | 12 +- .../ModifyBackupSourceEndpointRequest.cc | 226 ++++---- .../model/ModifyBackupSourceEndpointResult.cc | 12 +- dbs/src/model/ModifyBackupStrategyRequest.cc | 118 ++-- dbs/src/model/ModifyBackupStrategyResult.cc | 12 +- dbs/src/model/ModifyStorageStrategyRequest.cc | 106 ++-- dbs/src/model/ModifyStorageStrategyResult.cc | 12 +- dbs/src/model/ReleaseBackupPlanRequest.cc | 70 +-- dbs/src/model/ReleaseBackupPlanResult.cc | 12 +- dbs/src/model/RenewBackupPlanRequest.cc | 94 ++- dbs/src/model/RenewBackupPlanResult.cc | 12 +- dbs/src/model/StartBackupPlanRequest.cc | 70 +-- dbs/src/model/StartBackupPlanResult.cc | 19 +- dbs/src/model/StartRestoreTaskRequest.cc | 70 +-- dbs/src/model/StartRestoreTaskResult.cc | 12 +- dbs/src/model/StopBackupPlanRequest.cc | 82 ++- dbs/src/model/StopBackupPlanResult.cc | 12 +- dbs/src/model/UpgradeBackupPlanRequest.cc | 82 ++- dbs/src/model/UpgradeBackupPlanResult.cc | 12 +- 131 files changed, 4379 insertions(+), 5889 deletions(-) delete mode 100644 dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetRequest.h delete mode 100644 dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetResult.h delete mode 100644 dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetRequest.h delete mode 100644 dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetResult.h delete mode 100644 dbs/src/model/DescribeFullBackupSetRequest.cc delete mode 100644 dbs/src/model/DescribeFullBackupSetResult.cc delete mode 100644 dbs/src/model/DescribeLogicalBackupSetRequest.cc delete mode 100644 dbs/src/model/DescribeLogicalBackupSetResult.cc diff --git a/CHANGELOG b/CHANGELOG index 3627ced38..f22c8b19b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-07-28 Version: 1.36.1210 +- Automatically generate sdk tasks. + 2022-07-28 Version: 1.36.1209 - Add GetImageInfos api. diff --git a/VERSION b/VERSION index 693d001db..fdf19d7d1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1209 \ No newline at end of file +1.36.1210 \ No newline at end of file diff --git a/dbs/CMakeLists.txt b/dbs/CMakeLists.txt index 744fb0702..ee27bda5c 100644 --- a/dbs/CMakeLists.txt +++ b/dbs/CMakeLists.txt @@ -47,14 +47,10 @@ set(dbs_public_header_model include/alibabacloud/dbs/model/DescribeDLAServiceResult.h include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h include/alibabacloud/dbs/model/DescribeFullBackupListResult.h - include/alibabacloud/dbs/model/DescribeFullBackupSetRequest.h - include/alibabacloud/dbs/model/DescribeFullBackupSetResult.h include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h include/alibabacloud/dbs/model/DescribeJobErrorCodeRequest.h include/alibabacloud/dbs/model/DescribeJobErrorCodeResult.h - include/alibabacloud/dbs/model/DescribeLogicalBackupSetRequest.h - include/alibabacloud/dbs/model/DescribeLogicalBackupSetResult.h include/alibabacloud/dbs/model/DescribeNodeCidrListRequest.h include/alibabacloud/dbs/model/DescribeNodeCidrListResult.h include/alibabacloud/dbs/model/DescribePreCheckProgressListRequest.h @@ -126,14 +122,10 @@ set(dbs_src src/model/DescribeDLAServiceResult.cc src/model/DescribeFullBackupListRequest.cc src/model/DescribeFullBackupListResult.cc - src/model/DescribeFullBackupSetRequest.cc - src/model/DescribeFullBackupSetResult.cc src/model/DescribeIncrementBackupListRequest.cc src/model/DescribeIncrementBackupListResult.cc src/model/DescribeJobErrorCodeRequest.cc src/model/DescribeJobErrorCodeResult.cc - src/model/DescribeLogicalBackupSetRequest.cc - src/model/DescribeLogicalBackupSetResult.cc src/model/DescribeNodeCidrListRequest.cc src/model/DescribeNodeCidrListResult.cc src/model/DescribePreCheckProgressListRequest.cc diff --git a/dbs/include/alibabacloud/dbs/DbsClient.h b/dbs/include/alibabacloud/dbs/DbsClient.h index 15715ab44..5c5fc65d0 100644 --- a/dbs/include/alibabacloud/dbs/DbsClient.h +++ b/dbs/include/alibabacloud/dbs/DbsClient.h @@ -48,14 +48,10 @@ #include "model/DescribeDLAServiceResult.h" #include "model/DescribeFullBackupListRequest.h" #include "model/DescribeFullBackupListResult.h" -#include "model/DescribeFullBackupSetRequest.h" -#include "model/DescribeFullBackupSetResult.h" #include "model/DescribeIncrementBackupListRequest.h" #include "model/DescribeIncrementBackupListResult.h" #include "model/DescribeJobErrorCodeRequest.h" #include "model/DescribeJobErrorCodeResult.h" -#include "model/DescribeLogicalBackupSetRequest.h" -#include "model/DescribeLogicalBackupSetResult.h" #include "model/DescribeNodeCidrListRequest.h" #include "model/DescribeNodeCidrListResult.h" #include "model/DescribePreCheckProgressListRequest.h" @@ -146,18 +142,12 @@ namespace AlibabaCloud typedef Outcome DescribeFullBackupListOutcome; typedef std::future DescribeFullBackupListOutcomeCallable; typedef std::function&)> DescribeFullBackupListAsyncHandler; - typedef Outcome DescribeFullBackupSetOutcome; - typedef std::future DescribeFullBackupSetOutcomeCallable; - typedef std::function&)> DescribeFullBackupSetAsyncHandler; typedef Outcome DescribeIncrementBackupListOutcome; typedef std::future DescribeIncrementBackupListOutcomeCallable; typedef std::function&)> DescribeIncrementBackupListAsyncHandler; typedef Outcome DescribeJobErrorCodeOutcome; typedef std::future DescribeJobErrorCodeOutcomeCallable; typedef std::function&)> DescribeJobErrorCodeAsyncHandler; - typedef Outcome DescribeLogicalBackupSetOutcome; - typedef std::future DescribeLogicalBackupSetOutcomeCallable; - typedef std::function&)> DescribeLogicalBackupSetAsyncHandler; typedef Outcome DescribeNodeCidrListOutcome; typedef std::future DescribeNodeCidrListOutcomeCallable; typedef std::function&)> DescribeNodeCidrListAsyncHandler; @@ -265,18 +255,12 @@ namespace AlibabaCloud DescribeFullBackupListOutcome describeFullBackupList(const Model::DescribeFullBackupListRequest &request)const; void describeFullBackupListAsync(const Model::DescribeFullBackupListRequest& request, const DescribeFullBackupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFullBackupListOutcomeCallable describeFullBackupListCallable(const Model::DescribeFullBackupListRequest& request) const; - DescribeFullBackupSetOutcome describeFullBackupSet(const Model::DescribeFullBackupSetRequest &request)const; - void describeFullBackupSetAsync(const Model::DescribeFullBackupSetRequest& request, const DescribeFullBackupSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeFullBackupSetOutcomeCallable describeFullBackupSetCallable(const Model::DescribeFullBackupSetRequest& request) const; DescribeIncrementBackupListOutcome describeIncrementBackupList(const Model::DescribeIncrementBackupListRequest &request)const; void describeIncrementBackupListAsync(const Model::DescribeIncrementBackupListRequest& request, const DescribeIncrementBackupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIncrementBackupListOutcomeCallable describeIncrementBackupListCallable(const Model::DescribeIncrementBackupListRequest& request) const; DescribeJobErrorCodeOutcome describeJobErrorCode(const Model::DescribeJobErrorCodeRequest &request)const; void describeJobErrorCodeAsync(const Model::DescribeJobErrorCodeRequest& request, const DescribeJobErrorCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeJobErrorCodeOutcomeCallable describeJobErrorCodeCallable(const Model::DescribeJobErrorCodeRequest& request) const; - DescribeLogicalBackupSetOutcome describeLogicalBackupSet(const Model::DescribeLogicalBackupSetRequest &request)const; - void describeLogicalBackupSetAsync(const Model::DescribeLogicalBackupSetRequest& request, const DescribeLogicalBackupSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLogicalBackupSetOutcomeCallable describeLogicalBackupSetCallable(const Model::DescribeLogicalBackupSetRequest& request) const; DescribeNodeCidrListOutcome describeNodeCidrList(const Model::DescribeNodeCidrListRequest &request)const; void describeNodeCidrListAsync(const Model::DescribeNodeCidrListRequest& request, const DescribeNodeCidrListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNodeCidrListOutcomeCallable describeNodeCidrListCallable(const Model::DescribeNodeCidrListRequest& request) const; diff --git a/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h index 904d80fc2..44f0fa80f 100644 --- a/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h @@ -1,135 +1,132 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanRequest : public RpcServiceRequest - { - - public: - ConfigureBackupPlanRequest(); - ~ConfigureBackupPlanRequest(); - - std::string getSourceEndpointRegion()const; - void setSourceEndpointRegion(const std::string& sourceEndpointRegion); - long getBackupGatewayId()const; - void setBackupGatewayId(long backupGatewayId); - std::string getSourceEndpointInstanceID()const; - void setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID); - std::string getSourceEndpointUserName()const; - void setSourceEndpointUserName(const std::string& sourceEndpointUserName); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getSourceEndpointDatabaseName()const; - void setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName); - int getDuplicationInfrequentAccessPeriod()const; - void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod); - std::string getBackupStartTime()const; - void setBackupStartTime(const std::string& backupStartTime); - std::string getSourceEndpointIP()const; - void setSourceEndpointIP(const std::string& sourceEndpointIP); - std::string getCrossRoleName()const; - void setCrossRoleName(const std::string& crossRoleName); - bool getEnableBackupLog()const; - void setEnableBackupLog(bool enableBackupLog); - std::string getBackupStorageType()const; - void setBackupStorageType(const std::string& backupStorageType); - int getDuplicationArchivePeriod()const; - void setDuplicationArchivePeriod(int duplicationArchivePeriod); - int getBackupLogIntervalSeconds()const; - void setBackupLogIntervalSeconds(int backupLogIntervalSeconds); - std::string getCrossAliyunId()const; - void setCrossAliyunId(const std::string& crossAliyunId); - bool getAutoStartBackup()const; - void setAutoStartBackup(bool autoStartBackup); - std::string getSourceEndpointPassword()const; - void setSourceEndpointPassword(const std::string& sourceEndpointPassword); - std::string getBackupObjects()const; - void setBackupObjects(const std::string& backupObjects); - long getBackupRateLimit()const; - void setBackupRateLimit(long backupRateLimit); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - int getSourceEndpointPort()const; - void setSourceEndpointPort(int sourceEndpointPort); - int getBackupRetentionPeriod()const; - void setBackupRetentionPeriod(int backupRetentionPeriod); - std::string getBackupPeriod()const; - void setBackupPeriod(const std::string& backupPeriod); - long getBackupSpeedLimit()const; - void setBackupSpeedLimit(long backupSpeedLimit); - std::string getSourceEndpointInstanceType()const; - void setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType); - std::string getBackupPlanName()const; - void setBackupPlanName(const std::string& backupPlanName); - std::string getSourceEndpointOracleSID()const; - void setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID); - std::string getOSSBucketName()const; - void setOSSBucketName(const std::string& oSSBucketName); - std::string getBackupStrategyType()const; - void setBackupStrategyType(const std::string& backupStrategyType); - - private: - std::string sourceEndpointRegion_; - long backupGatewayId_; - std::string sourceEndpointInstanceID_; - std::string sourceEndpointUserName_; - std::string clientToken_; - std::string backupPlanId_; - std::string sourceEndpointDatabaseName_; - int duplicationInfrequentAccessPeriod_; - std::string backupStartTime_; - std::string sourceEndpointIP_; - std::string crossRoleName_; - bool enableBackupLog_; - std::string backupStorageType_; - int duplicationArchivePeriod_; - int backupLogIntervalSeconds_; - std::string crossAliyunId_; - bool autoStartBackup_; - std::string sourceEndpointPassword_; - std::string backupObjects_; - long backupRateLimit_; - std::string ownerId_; - int sourceEndpointPort_; - int backupRetentionPeriod_; - std::string backupPeriod_; - long backupSpeedLimit_; - std::string sourceEndpointInstanceType_; - std::string backupPlanName_; - std::string sourceEndpointOracleSID_; - std::string oSSBucketName_; - std::string backupStrategyType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT ConfigureBackupPlanRequest : public RpcServiceRequest { +public: + ConfigureBackupPlanRequest(); + ~ConfigureBackupPlanRequest(); + std::string getSourceEndpointRegion() const; + void setSourceEndpointRegion(const std::string &sourceEndpointRegion); + long getBackupGatewayId() const; + void setBackupGatewayId(long backupGatewayId); + std::string getSourceEndpointInstanceID() const; + void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID); + std::string getSourceEndpointUserName() const; + void setSourceEndpointUserName(const std::string &sourceEndpointUserName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getSourceEndpointDatabaseName() const; + void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName); + int getDuplicationInfrequentAccessPeriod() const; + void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getBackupStartTime() const; + void setBackupStartTime(const std::string &backupStartTime); + std::string getSourceEndpointIP() const; + void setSourceEndpointIP(const std::string &sourceEndpointIP); + std::string getCrossRoleName() const; + void setCrossRoleName(const std::string &crossRoleName); + bool getEnableBackupLog() const; + void setEnableBackupLog(bool enableBackupLog); + std::string getBackupStorageType() const; + void setBackupStorageType(const std::string &backupStorageType); + int getDuplicationArchivePeriod() const; + void setDuplicationArchivePeriod(int duplicationArchivePeriod); + int getBackupLogIntervalSeconds() const; + void setBackupLogIntervalSeconds(int backupLogIntervalSeconds); + std::string getCrossAliyunId() const; + void setCrossAliyunId(const std::string &crossAliyunId); + bool getAutoStartBackup() const; + void setAutoStartBackup(bool autoStartBackup); + std::string getSourceEndpointPassword() const; + void setSourceEndpointPassword(const std::string &sourceEndpointPassword); + std::string getBackupObjects() const; + void setBackupObjects(const std::string &backupObjects); + long getBackupRateLimit() const; + void setBackupRateLimit(long backupRateLimit); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + int getSourceEndpointPort() const; + void setSourceEndpointPort(int sourceEndpointPort); + int getBackupRetentionPeriod() const; + void setBackupRetentionPeriod(int backupRetentionPeriod); + std::string getBackupPeriod() const; + void setBackupPeriod(const std::string &backupPeriod); + long getBackupSpeedLimit() const; + void setBackupSpeedLimit(long backupSpeedLimit); + std::string getSourceEndpointInstanceType() const; + void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); + std::string getBackupPlanName() const; + void setBackupPlanName(const std::string &backupPlanName); + std::string getSourceEndpointOracleSID() const; + void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID); + std::string getOSSBucketName() const; + void setOSSBucketName(const std::string &oSSBucketName); + std::string getBackupStrategyType() const; + void setBackupStrategyType(const std::string &backupStrategyType); + +private: + std::string sourceEndpointRegion_; + long backupGatewayId_; + std::string sourceEndpointInstanceID_; + std::string sourceEndpointUserName_; + std::string clientToken_; + std::string backupPlanId_; + std::string sourceEndpointDatabaseName_; + int duplicationInfrequentAccessPeriod_; + std::string resourceGroupId_; + std::string backupStartTime_; + std::string sourceEndpointIP_; + std::string crossRoleName_; + bool enableBackupLog_; + std::string backupStorageType_; + int duplicationArchivePeriod_; + int backupLogIntervalSeconds_; + std::string crossAliyunId_; + bool autoStartBackup_; + std::string sourceEndpointPassword_; + std::string backupObjects_; + long backupRateLimit_; + std::string ownerId_; + int sourceEndpointPort_; + int backupRetentionPeriod_; + std::string backupPeriod_; + long backupSpeedLimit_; + std::string sourceEndpointInstanceType_; + std::string backupPlanName_; + std::string sourceEndpointOracleSID_; + std::string oSSBucketName_; + std::string backupStrategyType_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_CONFIGUREBACKUPPLANREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/CreateAndStartBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/CreateAndStartBackupPlanRequest.h index 06345f74f..e9cd36b36 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateAndStartBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/CreateAndStartBackupPlanRequest.h @@ -1,168 +1,165 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_CREATEANDSTARTBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATEANDSTARTBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT CreateAndStartBackupPlanRequest : public RpcServiceRequest - { - - public: - CreateAndStartBackupPlanRequest(); - ~CreateAndStartBackupPlanRequest(); - - std::string getDatabaseType()const; - void setDatabaseType(const std::string& databaseType); - long getBackupGatewayId()const; - void setBackupGatewayId(long backupGatewayId); - std::string getSourceEndpointUserName()const; - void setSourceEndpointUserName(const std::string& sourceEndpointUserName); - std::string getStorageType()const; - void setStorageType(const std::string& storageType); - std::string getDatabaseRegion()const; - void setDatabaseRegion(const std::string& databaseRegion); - std::string getBackupStartTime()const; - void setBackupStartTime(const std::string& backupStartTime); - std::string getSourceEndpointIP()const; - void setSourceEndpointIP(const std::string& sourceEndpointIP); - std::string getCrossRoleName()const; - void setCrossRoleName(const std::string& crossRoleName); - std::string getBackupStorageType()const; - void setBackupStorageType(const std::string& backupStorageType); - int getDuplicationArchivePeriod()const; - void setDuplicationArchivePeriod(int duplicationArchivePeriod); - std::string getPeriod()const; - void setPeriod(const std::string& period); - int getBackupLogIntervalSeconds()const; - void setBackupLogIntervalSeconds(int backupLogIntervalSeconds); - std::string getFromApp()const; - void setFromApp(const std::string& fromApp); - std::string getSourceEndpointPassword()const; - void setSourceEndpointPassword(const std::string& sourceEndpointPassword); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getBackupMethod()const; - void setBackupMethod(const std::string& backupMethod); - int getBackupRetentionPeriod()const; - void setBackupRetentionPeriod(int backupRetentionPeriod); - std::string getBackupPeriod()const; - void setBackupPeriod(const std::string& backupPeriod); - long getBackupSpeedLimit()const; - void setBackupSpeedLimit(long backupSpeedLimit); - std::string getSourceEndpointInstanceType()const; - void setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType); - std::string getBackupPlanName()const; - void setBackupPlanName(const std::string& backupPlanName); - std::string getOSSBucketName()const; - void setOSSBucketName(const std::string& oSSBucketName); - std::string getRegion()const; - void setRegion(const std::string& region); - std::string getSourceEndpointRegion()const; - void setSourceEndpointRegion(const std::string& sourceEndpointRegion); - std::string getSourceEndpointInstanceID()const; - void setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getInstanceClass()const; - void setInstanceClass(const std::string& instanceClass); - std::string getSourceEndpointDatabaseName()const; - void setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName); - int getDuplicationInfrequentAccessPeriod()const; - void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - bool getEnableBackupLog()const; - void setEnableBackupLog(bool enableBackupLog); - std::string getCrossAliyunId()const; - void setCrossAliyunId(const std::string& crossAliyunId); - std::string getBackupObjects()const; - void setBackupObjects(const std::string& backupObjects); - long getBackupRateLimit()const; - void setBackupRateLimit(long backupRateLimit); - int getUsedTime()const; - void setUsedTime(int usedTime); - int getSourceEndpointPort()const; - void setSourceEndpointPort(int sourceEndpointPort); - std::string getStorageRegion()const; - void setStorageRegion(const std::string& storageRegion); - std::string getSourceEndpointOracleSID()const; - void setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID); - std::string getBackupStrategyType()const; - void setBackupStrategyType(const std::string& backupStrategyType); - std::string getPayType()const; - void setPayType(const std::string& payType); - - private: - std::string databaseType_; - long backupGatewayId_; - std::string sourceEndpointUserName_; - std::string storageType_; - std::string databaseRegion_; - std::string backupStartTime_; - std::string sourceEndpointIP_; - std::string crossRoleName_; - std::string backupStorageType_; - int duplicationArchivePeriod_; - std::string period_; - int backupLogIntervalSeconds_; - std::string fromApp_; - std::string sourceEndpointPassword_; - std::string ownerId_; - std::string backupMethod_; - int backupRetentionPeriod_; - std::string backupPeriod_; - long backupSpeedLimit_; - std::string sourceEndpointInstanceType_; - std::string backupPlanName_; - std::string oSSBucketName_; - std::string region_; - std::string sourceEndpointRegion_; - std::string sourceEndpointInstanceID_; - std::string clientToken_; - std::string backupPlanId_; - std::string instanceClass_; - std::string sourceEndpointDatabaseName_; - int duplicationInfrequentAccessPeriod_; - std::string instanceType_; - bool enableBackupLog_; - std::string crossAliyunId_; - std::string backupObjects_; - long backupRateLimit_; - int usedTime_; - int sourceEndpointPort_; - std::string storageRegion_; - std::string sourceEndpointOracleSID_; - std::string backupStrategyType_; - std::string payType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_CREATEANDSTARTBACKUPPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CREATEANDSTARTBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_CREATEANDSTARTBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT CreateAndStartBackupPlanRequest : public RpcServiceRequest { +public: + CreateAndStartBackupPlanRequest(); + ~CreateAndStartBackupPlanRequest(); + std::string getDatabaseType() const; + void setDatabaseType(const std::string &databaseType); + long getBackupGatewayId() const; + void setBackupGatewayId(long backupGatewayId); + std::string getSourceEndpointUserName() const; + void setSourceEndpointUserName(const std::string &sourceEndpointUserName); + std::string getStorageType() const; + void setStorageType(const std::string &storageType); + std::string getDatabaseRegion() const; + void setDatabaseRegion(const std::string &databaseRegion); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getBackupStartTime() const; + void setBackupStartTime(const std::string &backupStartTime); + std::string getSourceEndpointIP() const; + void setSourceEndpointIP(const std::string &sourceEndpointIP); + std::string getCrossRoleName() const; + void setCrossRoleName(const std::string &crossRoleName); + std::string getBackupStorageType() const; + void setBackupStorageType(const std::string &backupStorageType); + int getDuplicationArchivePeriod() const; + void setDuplicationArchivePeriod(int duplicationArchivePeriod); + std::string getPeriod() const; + void setPeriod(const std::string &period); + int getBackupLogIntervalSeconds() const; + void setBackupLogIntervalSeconds(int backupLogIntervalSeconds); + std::string getFromApp() const; + void setFromApp(const std::string &fromApp); + std::string getSourceEndpointPassword() const; + void setSourceEndpointPassword(const std::string &sourceEndpointPassword); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getBackupMethod() const; + void setBackupMethod(const std::string &backupMethod); + int getBackupRetentionPeriod() const; + void setBackupRetentionPeriod(int backupRetentionPeriod); + std::string getBackupPeriod() const; + void setBackupPeriod(const std::string &backupPeriod); + long getBackupSpeedLimit() const; + void setBackupSpeedLimit(long backupSpeedLimit); + std::string getSourceEndpointInstanceType() const; + void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); + std::string getBackupPlanName() const; + void setBackupPlanName(const std::string &backupPlanName); + std::string getOSSBucketName() const; + void setOSSBucketName(const std::string &oSSBucketName); + std::string getRegion() const; + void setRegion(const std::string ®ion); + std::string getSourceEndpointRegion() const; + void setSourceEndpointRegion(const std::string &sourceEndpointRegion); + std::string getSourceEndpointInstanceID() const; + void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getInstanceClass() const; + void setInstanceClass(const std::string &instanceClass); + std::string getSourceEndpointDatabaseName() const; + void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName); + int getDuplicationInfrequentAccessPeriod() const; + void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + bool getEnableBackupLog() const; + void setEnableBackupLog(bool enableBackupLog); + std::string getCrossAliyunId() const; + void setCrossAliyunId(const std::string &crossAliyunId); + std::string getBackupObjects() const; + void setBackupObjects(const std::string &backupObjects); + long getBackupRateLimit() const; + void setBackupRateLimit(long backupRateLimit); + int getUsedTime() const; + void setUsedTime(int usedTime); + int getSourceEndpointPort() const; + void setSourceEndpointPort(int sourceEndpointPort); + std::string getStorageRegion() const; + void setStorageRegion(const std::string &storageRegion); + std::string getSourceEndpointOracleSID() const; + void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID); + std::string getBackupStrategyType() const; + void setBackupStrategyType(const std::string &backupStrategyType); + std::string getPayType() const; + void setPayType(const std::string &payType); + +private: + std::string databaseType_; + long backupGatewayId_; + std::string sourceEndpointUserName_; + std::string storageType_; + std::string databaseRegion_; + std::string resourceGroupId_; + std::string backupStartTime_; + std::string sourceEndpointIP_; + std::string crossRoleName_; + std::string backupStorageType_; + int duplicationArchivePeriod_; + std::string period_; + int backupLogIntervalSeconds_; + std::string fromApp_; + std::string sourceEndpointPassword_; + std::string ownerId_; + std::string backupMethod_; + int backupRetentionPeriod_; + std::string backupPeriod_; + long backupSpeedLimit_; + std::string sourceEndpointInstanceType_; + std::string backupPlanName_; + std::string oSSBucketName_; + std::string region_; + std::string sourceEndpointRegion_; + std::string sourceEndpointInstanceID_; + std::string clientToken_; + std::string backupPlanId_; + std::string instanceClass_; + std::string sourceEndpointDatabaseName_; + int duplicationInfrequentAccessPeriod_; + std::string instanceType_; + bool enableBackupLog_; + std::string crossAliyunId_; + std::string backupObjects_; + long backupRateLimit_; + int usedTime_; + int sourceEndpointPort_; + std::string storageRegion_; + std::string sourceEndpointOracleSID_; + std::string backupStrategyType_; + std::string payType_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_CREATEANDSTARTBACKUPPLANREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/CreateBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/CreateBackupPlanRequest.h index 0ff636ff4..7bc3efabf 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/CreateBackupPlanRequest.h @@ -1,87 +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_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT CreateBackupPlanRequest : public RpcServiceRequest - { - - public: - CreateBackupPlanRequest(); - ~CreateBackupPlanRequest(); - - std::string getDatabaseType()const; - void setDatabaseType(const std::string& databaseType); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getInstanceClass()const; - void setInstanceClass(const std::string& instanceClass); - std::string getStorageType()const; - void setStorageType(const std::string& storageType); - std::string getDatabaseRegion()const; - void setDatabaseRegion(const std::string& databaseRegion); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getFromApp()const; - void setFromApp(const std::string& fromApp); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - int getUsedTime()const; - void setUsedTime(int usedTime); - std::string getBackupMethod()const; - void setBackupMethod(const std::string& backupMethod); - std::string getStorageRegion()const; - void setStorageRegion(const std::string& storageRegion); - std::string getRegion()const; - void setRegion(const std::string& region); - std::string getPayType()const; - void setPayType(const std::string& payType); - - private: - std::string databaseType_; - std::string clientToken_; - std::string instanceClass_; - std::string storageType_; - std::string databaseRegion_; - std::string instanceType_; - std::string period_; - std::string fromApp_; - std::string ownerId_; - int usedTime_; - std::string backupMethod_; - std::string storageRegion_; - std::string region_; - std::string payType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT CreateBackupPlanRequest : public RpcServiceRequest { +public: + CreateBackupPlanRequest(); + ~CreateBackupPlanRequest(); + std::string getDatabaseType() const; + void setDatabaseType(const std::string &databaseType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getInstanceClass() const; + void setInstanceClass(const std::string &instanceClass); + std::string getStorageType() const; + void setStorageType(const std::string &storageType); + std::string getDatabaseRegion() const; + void setDatabaseRegion(const std::string &databaseRegion); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getFromApp() const; + void setFromApp(const std::string &fromApp); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + int getUsedTime() const; + void setUsedTime(int usedTime); + std::string getBackupMethod() const; + void setBackupMethod(const std::string &backupMethod); + std::string getStorageRegion() const; + void setStorageRegion(const std::string &storageRegion); + std::string getRegion() const; + void setRegion(const std::string ®ion); + std::string getPayType() const; + void setPayType(const std::string &payType); + +private: + std::string databaseType_; + std::string clientToken_; + std::string instanceClass_; + std::string storageType_; + std::string databaseRegion_; + std::string resourceGroupId_; + std::string instanceType_; + std::string period_; + std::string fromApp_; + std::string ownerId_; + int usedTime_; + std::string backupMethod_; + std::string storageRegion_; + std::string region_; + std::string payType_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_CREATEBACKUPPLANREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/CreateFullBackupSetDownloadRequest.h b/dbs/include/alibabacloud/dbs/model/CreateFullBackupSetDownloadRequest.h index 17541e854..5f251c56f 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateFullBackupSetDownloadRequest.h +++ b/dbs/include/alibabacloud/dbs/model/CreateFullBackupSetDownloadRequest.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_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT CreateFullBackupSetDownloadRequest : public RpcServiceRequest - { - - public: - CreateFullBackupSetDownloadRequest(); - ~CreateFullBackupSetDownloadRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupSetId()const; - void setBackupSetId(const std::string& backupSetId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getBackupSetDataFormat()const; - void setBackupSetDataFormat(const std::string& backupSetDataFormat); - - private: - std::string clientToken_; - std::string backupSetId_; - std::string ownerId_; - std::string backupSetDataFormat_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT CreateFullBackupSetDownloadRequest : public RpcServiceRequest { +public: + CreateFullBackupSetDownloadRequest(); + ~CreateFullBackupSetDownloadRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupSetId() const; + void setBackupSetId(const std::string &backupSetId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getBackupSetDataFormat() const; + void setBackupSetDataFormat(const std::string &backupSetDataFormat); + +private: + std::string clientToken_; + std::string backupSetId_; + std::string ownerId_; + std::string backupSetDataFormat_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/CreateGetDBListFromAgentTaskRequest.h b/dbs/include/alibabacloud/dbs/model/CreateGetDBListFromAgentTaskRequest.h index b46860d91..aa7bf38bb 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateGetDBListFromAgentTaskRequest.h +++ b/dbs/include/alibabacloud/dbs/model/CreateGetDBListFromAgentTaskRequest.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_DBS_MODEL_CREATEGETDBLISTFROMAGENTTASKREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATEGETDBLISTFROMAGENTTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT CreateGetDBListFromAgentTaskRequest : public RpcServiceRequest - { - - public: - CreateGetDBListFromAgentTaskRequest(); - ~CreateGetDBListFromAgentTaskRequest(); - - std::string getSourceEndpointRegion()const; - void setSourceEndpointRegion(const std::string& sourceEndpointRegion); - long getBackupGatewayId()const; - void setBackupGatewayId(long backupGatewayId); - std::string getDatabaseType()const; - void setDatabaseType(const std::string& databaseType); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - int getSourceEndpointPort()const; - void setSourceEndpointPort(int sourceEndpointPort); - std::string getSourceEndpointIP()const; - void setSourceEndpointIP(const std::string& sourceEndpointIP); - - private: - std::string sourceEndpointRegion_; - long backupGatewayId_; - std::string databaseType_; - std::string clientToken_; - std::string ownerId_; - int sourceEndpointPort_; - std::string sourceEndpointIP_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_CREATEGETDBLISTFROMAGENTTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CREATEGETDBLISTFROMAGENTTASKREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_CREATEGETDBLISTFROMAGENTTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT CreateGetDBListFromAgentTaskRequest : public RpcServiceRequest { +public: + CreateGetDBListFromAgentTaskRequest(); + ~CreateGetDBListFromAgentTaskRequest(); + std::string getSourceEndpointRegion() const; + void setSourceEndpointRegion(const std::string &sourceEndpointRegion); + long getBackupGatewayId() const; + void setBackupGatewayId(long backupGatewayId); + std::string getDatabaseType() const; + void setDatabaseType(const std::string &databaseType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + int getSourceEndpointPort() const; + void setSourceEndpointPort(int sourceEndpointPort); + std::string getSourceEndpointIP() const; + void setSourceEndpointIP(const std::string &sourceEndpointIP); + +private: + std::string sourceEndpointRegion_; + long backupGatewayId_; + std::string databaseType_; + std::string clientToken_; + std::string ownerId_; + int sourceEndpointPort_; + std::string sourceEndpointIP_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_CREATEGETDBLISTFROMAGENTTASKREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/CreateIncrementBackupSetDownloadRequest.h b/dbs/include/alibabacloud/dbs/model/CreateIncrementBackupSetDownloadRequest.h index 11a95c3e7..b9b0149ca 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateIncrementBackupSetDownloadRequest.h +++ b/dbs/include/alibabacloud/dbs/model/CreateIncrementBackupSetDownloadRequest.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_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT CreateIncrementBackupSetDownloadRequest : public RpcServiceRequest - { - - public: - CreateIncrementBackupSetDownloadRequest(); - ~CreateIncrementBackupSetDownloadRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupSetName()const; - void setBackupSetName(const std::string& backupSetName); - std::string getBackupSetId()const; - void setBackupSetId(const std::string& backupSetId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getBackupSetDataFormat()const; - void setBackupSetDataFormat(const std::string& backupSetDataFormat); - - private: - std::string clientToken_; - std::string backupSetName_; - std::string backupSetId_; - std::string ownerId_; - std::string backupSetDataFormat_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT CreateIncrementBackupSetDownloadRequest : public RpcServiceRequest { +public: + CreateIncrementBackupSetDownloadRequest(); + ~CreateIncrementBackupSetDownloadRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupSetName() const; + void setBackupSetName(const std::string &backupSetName); + std::string getBackupSetId() const; + void setBackupSetId(const std::string &backupSetId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getBackupSetDataFormat() const; + void setBackupSetDataFormat(const std::string &backupSetDataFormat); + +private: + std::string clientToken_; + std::string backupSetName_; + std::string backupSetId_; + std::string ownerId_; + std::string backupSetDataFormat_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskRequest.h b/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskRequest.h index 1cf1b49e4..82eb4a656 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskRequest.h +++ b/dbs/include/alibabacloud/dbs/model/CreateRestoreTaskRequest.h @@ -1,111 +1,105 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT CreateRestoreTaskRequest : public RpcServiceRequest - { - - public: - CreateRestoreTaskRequest(); - ~CreateRestoreTaskRequest(); - - long getBackupGatewayId()const; - void setBackupGatewayId(long backupGatewayId); - std::string getDestinationEndpointInstanceType()const; - void setDestinationEndpointInstanceType(const std::string& destinationEndpointInstanceType); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getDestinationEndpointRegion()const; - void setDestinationEndpointRegion(const std::string& destinationEndpointRegion); - std::string getCrossRoleName()const; - void setCrossRoleName(const std::string& crossRoleName); - std::string getDestinationEndpointUserName()const; - void setDestinationEndpointUserName(const std::string& destinationEndpointUserName); - std::string getRestoreObjects()const; - void setRestoreObjects(const std::string& restoreObjects); - std::string getRestoreTaskName()const; - void setRestoreTaskName(const std::string& restoreTaskName); - std::string getRestoreHome()const; - void setRestoreHome(const std::string& restoreHome); - std::string getDestinationEndpointOracleSID()const; - void setDestinationEndpointOracleSID(const std::string& destinationEndpointOracleSID); - long getRestoreTime()const; - void setRestoreTime(long restoreTime); - std::string getCrossAliyunId()const; - void setCrossAliyunId(const std::string& crossAliyunId); - std::string getDestinationEndpointInstanceID()const; - void setDestinationEndpointInstanceID(const std::string& destinationEndpointInstanceID); - int getDestinationEndpointPort()const; - void setDestinationEndpointPort(int destinationEndpointPort); - std::string getBackupSetId()const; - void setBackupSetId(const std::string& backupSetId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getRestoreDir()const; - void setRestoreDir(const std::string& restoreDir); - std::string getDestinationEndpointIP()const; - void setDestinationEndpointIP(const std::string& destinationEndpointIP); - std::string getDestinationEndpointDatabaseName()const; - void setDestinationEndpointDatabaseName(const std::string& destinationEndpointDatabaseName); - std::string getDuplicateConflict()const; - void setDuplicateConflict(const std::string& duplicateConflict); - std::string getDestinationEndpointPassword()const; - void setDestinationEndpointPassword(const std::string& destinationEndpointPassword); - - private: - long backupGatewayId_; - std::string destinationEndpointInstanceType_; - std::string clientToken_; - std::string backupPlanId_; - std::string destinationEndpointRegion_; - std::string crossRoleName_; - std::string destinationEndpointUserName_; - std::string restoreObjects_; - std::string restoreTaskName_; - std::string restoreHome_; - std::string destinationEndpointOracleSID_; - long restoreTime_; - std::string crossAliyunId_; - std::string destinationEndpointInstanceID_; - int destinationEndpointPort_; - std::string backupSetId_; - std::string ownerId_; - std::string restoreDir_; - std::string destinationEndpointIP_; - std::string destinationEndpointDatabaseName_; - std::string duplicateConflict_; - std::string destinationEndpointPassword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT CreateRestoreTaskRequest : public RpcServiceRequest { +public: + CreateRestoreTaskRequest(); + ~CreateRestoreTaskRequest(); + long getBackupGatewayId() const; + void setBackupGatewayId(long backupGatewayId); + std::string getDestinationEndpointInstanceType() const; + void setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getDestinationEndpointRegion() const; + void setDestinationEndpointRegion(const std::string &destinationEndpointRegion); + std::string getCrossRoleName() const; + void setCrossRoleName(const std::string &crossRoleName); + std::string getDestinationEndpointUserName() const; + void setDestinationEndpointUserName(const std::string &destinationEndpointUserName); + std::string getRestoreObjects() const; + void setRestoreObjects(const std::string &restoreObjects); + std::string getRestoreTaskName() const; + void setRestoreTaskName(const std::string &restoreTaskName); + std::string getRestoreHome() const; + void setRestoreHome(const std::string &restoreHome); + std::string getDestinationEndpointOracleSID() const; + void setDestinationEndpointOracleSID(const std::string &destinationEndpointOracleSID); + long getRestoreTime() const; + void setRestoreTime(long restoreTime); + std::string getCrossAliyunId() const; + void setCrossAliyunId(const std::string &crossAliyunId); + std::string getDestinationEndpointInstanceID() const; + void setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID); + int getDestinationEndpointPort() const; + void setDestinationEndpointPort(int destinationEndpointPort); + std::string getBackupSetId() const; + void setBackupSetId(const std::string &backupSetId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getRestoreDir() const; + void setRestoreDir(const std::string &restoreDir); + std::string getDestinationEndpointIP() const; + void setDestinationEndpointIP(const std::string &destinationEndpointIP); + std::string getDestinationEndpointDatabaseName() const; + void setDestinationEndpointDatabaseName(const std::string &destinationEndpointDatabaseName); + std::string getDuplicateConflict() const; + void setDuplicateConflict(const std::string &duplicateConflict); + std::string getDestinationEndpointPassword() const; + void setDestinationEndpointPassword(const std::string &destinationEndpointPassword); + +private: + long backupGatewayId_; + std::string destinationEndpointInstanceType_; + std::string clientToken_; + std::string backupPlanId_; + std::string destinationEndpointRegion_; + std::string crossRoleName_; + std::string destinationEndpointUserName_; + std::string restoreObjects_; + std::string restoreTaskName_; + std::string restoreHome_; + std::string destinationEndpointOracleSID_; + long restoreTime_; + std::string crossAliyunId_; + std::string destinationEndpointInstanceID_; + int destinationEndpointPort_; + std::string backupSetId_; + std::string ownerId_; + std::string restoreDir_; + std::string destinationEndpointIP_; + std::string destinationEndpointDatabaseName_; + std::string duplicateConflict_; + std::string destinationEndpointPassword_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_CREATERESTORETASKREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListRequest.h index 1707746b8..f4dda9d61 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListRequest.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_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListRequest : public RpcServiceRequest - { - - public: - DescribeBackupGatewayListRequest(); - ~DescribeBackupGatewayListRequest(); - - std::string getIdentifier()const; - void setIdentifier(const std::string& identifier); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getRegion()const; - void setRegion(const std::string& region); - - private: - std::string identifier_; - std::string clientToken_; - int pageNum_; - std::string ownerId_; - int pageSize_; - std::string region_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeBackupGatewayListRequest : public RpcServiceRequest { +public: + DescribeBackupGatewayListRequest(); + ~DescribeBackupGatewayListRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string identifier_; + std::string clientToken_; + int pageNum_; + std::string ownerId_; + int pageSize_; + std::string region_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPGATEWAYLISTREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h index 6fbda035a..2ec57c3a0 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h @@ -38,11 +38,11 @@ namespace AlibabaCloud std::string identifier; long backupGatewayCreateTime; std::string backupGatewayStatus; + std::string displayName; std::string sourceEndpointInternetIP; std::string sourceEndpointIntranetIP; - std::string displayName; - long lastHeartbeatTime; std::string region; + long lastHeartbeatTime; std::string backupGatewayId; }; @@ -50,8 +50,8 @@ namespace AlibabaCloud DescribeBackupGatewayListResult(); explicit DescribeBackupGatewayListResult(const std::string &payload); ~DescribeBackupGatewayListResult(); - int getPageSize()const; int getPageNum()const; + int getPageSize()const; int getHttpStatusCode()const; int getTotalElements()const; std::vector getItems()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - int pageSize_; int pageNum_; + int pageSize_; int httpStatusCode_; int totalElements_; std::vector items_; diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanBillingRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanBillingRequest.h index 3c5440fc9..cbf72f78e 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanBillingRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanBillingRequest.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_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanBillingRequest : public RpcServiceRequest - { - - public: - DescribeBackupPlanBillingRequest(); - ~DescribeBackupPlanBillingRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - bool getShowStorageType()const; - void setShowStorageType(bool showStorageType); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - bool showStorageType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanBillingRequest : public RpcServiceRequest { +public: + DescribeBackupPlanBillingRequest(); + ~DescribeBackupPlanBillingRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + bool getShowStorageType() const; + void setShowStorageType(bool showStorageType); + +private: + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; + bool showStorageType_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANBILLINGREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanBillingResult.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanBillingResult.h index 4c4cdcf33..250b01207 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanBillingResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanBillingResult.h @@ -36,9 +36,10 @@ namespace AlibabaCloud { bool isExpired; long buyExpiredTimestamp; + std::string resourceGroupId; + long quotaStartTimestamp; long totalFreeBytes; long paiedBytes; - long quotaStartTimestamp; long fullStorageSize; long buyCreateTimestamp; bool isFreeBytesUnlimited; diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h index 712628956..d0b7fab02 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h @@ -1,69 +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_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanListRequest : public RpcServiceRequest - { - - public: - DescribeBackupPlanListRequest(); - ~DescribeBackupPlanListRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getBackupPlanStatus()const; - void setBackupPlanStatus(const std::string& backupPlanStatus); - std::string getBackupPlanName()const; - void setBackupPlanName(const std::string& backupPlanName); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getRegion()const; - void setRegion(const std::string& region); - - private: - std::string clientToken_; - std::string backupPlanId_; - int pageNum_; - std::string ownerId_; - std::string backupPlanStatus_; - std::string backupPlanName_; - int pageSize_; - std::string region_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeBackupPlanListRequest : public RpcServiceRequest { +public: + DescribeBackupPlanListRequest(); + ~DescribeBackupPlanListRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getBackupPlanStatus() const; + void setBackupPlanStatus(const std::string &backupPlanStatus); + std::string getBackupPlanName() const; + void setBackupPlanName(const std::string &backupPlanName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string clientToken_; + std::string backupPlanId_; + int pageNum_; + std::string ownerId_; + std::string resourceGroupId_; + std::string backupPlanStatus_; + std::string backupPlanName_; + int pageSize_; + std::string region_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPPLANLISTREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h index 2f791ad43..271fbb47a 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h @@ -34,9 +34,10 @@ namespace AlibabaCloud public: struct BackupPlanDetail { - std::string backupPlanName; long backupPlanCreateTime; + std::string backupPlanName; std::string backupObjects; + std::string resourceGroupId; std::string backupSetDownloadDir; std::string sourceEndpointInstanceID; std::string crossAliyunId; @@ -50,12 +51,12 @@ namespace AlibabaCloud std::string backupPlanId; std::string sourceEndpointInstanceType; long backupGatewayId; - std::string sourceEndpointUserName; std::string backupStorageType; - int duplicationInfrequentAccessPeriod; + std::string sourceEndpointUserName; std::string crossRoleName; - std::string backupMethod; + int duplicationInfrequentAccessPeriod; std::string backupSetDownloadFullDataFormat; + std::string backupMethod; std::string backupPeriod; std::string instanceClass; std::string backupSetDownloadIncrementDataFormat; @@ -63,8 +64,8 @@ namespace AlibabaCloud std::string errMessage; std::string backupSetDownloadTargetType; int duplicationArchivePeriod; - std::string oSSBucketName; std::string backupPlanStatus; + std::string oSSBucketName; std::string backupStartTime; bool enableBackupLog; std::string sourceEndpointOracleSID; @@ -75,8 +76,8 @@ namespace AlibabaCloud DescribeBackupPlanListResult(); explicit DescribeBackupPlanListResult(const std::string &payload); ~DescribeBackupPlanListResult(); - int getPageSize()const; int getPageNum()const; + int getPageSize()const; int getHttpStatusCode()const; int getTotalElements()const; std::vector getItems()const; @@ -88,8 +89,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - int pageSize_; int pageNum_; + int pageSize_; int httpStatusCode_; int totalElements_; std::vector items_; diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupSetDownloadTaskListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupSetDownloadTaskListRequest.h index 24621a9c1..6859e01c0 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupSetDownloadTaskListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupSetDownloadTaskListRequest.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_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeBackupSetDownloadTaskListRequest : public RpcServiceRequest - { - - public: - DescribeBackupSetDownloadTaskListRequest(); - ~DescribeBackupSetDownloadTaskListRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupSetDownloadTaskId()const; - void setBackupSetDownloadTaskId(const std::string& backupSetDownloadTaskId); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string clientToken_; - std::string backupSetDownloadTaskId_; - std::string backupPlanId_; - int pageNum_; - std::string ownerId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeBackupSetDownloadTaskListRequest : public RpcServiceRequest { +public: + DescribeBackupSetDownloadTaskListRequest(); + ~DescribeBackupSetDownloadTaskListRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupSetDownloadTaskId() const; + void setBackupSetDownloadTaskId(const std::string &backupSetDownloadTaskId); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string clientToken_; + std::string backupSetDownloadTaskId_; + std::string backupPlanId_; + int pageNum_; + std::string ownerId_; + int pageSize_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupSetDownloadTaskListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupSetDownloadTaskListResult.h index 4db1c4e1f..1c30b66b5 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupSetDownloadTaskListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupSetDownloadTaskListResult.h @@ -36,12 +36,12 @@ namespace AlibabaCloud { std::string backupSetDbType; long backupSetDownloadCreateTime; - std::string backupSetDownloadTaskName; std::string backupSetDownloadDir; + std::string backupSetDownloadTaskName; std::string backupSetDownloadWay; std::string backupSetCode; - std::string backupSetId; std::string errMessage; + std::string backupSetId; std::string backupSetDownloadTargetType; std::string backupSetDownloadStatus; std::string backupSetDownloadIntranetUrl; @@ -59,8 +59,8 @@ namespace AlibabaCloud DescribeBackupSetDownloadTaskListResult(); explicit DescribeBackupSetDownloadTaskListResult(const std::string &payload); ~DescribeBackupSetDownloadTaskListResult(); - int getPageSize()const; int getPageNum()const; + int getPageSize()const; int getHttpStatusCode()const; int getTotalElements()const; std::vector getItems()const; @@ -72,8 +72,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - int pageSize_; int pageNum_; + int pageSize_; int httpStatusCode_; int totalElements_; std::vector items_; diff --git a/dbs/include/alibabacloud/dbs/model/DescribeDLAServiceRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeDLAServiceRequest.h index d7fd5956c..0d0fe7a11 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeDLAServiceRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeDLAServiceRequest.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_DBS_MODEL_DESCRIBEDLASERVICEREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEDLASERVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeDLAServiceRequest : public RpcServiceRequest - { - - public: - DescribeDLAServiceRequest(); - ~DescribeDLAServiceRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEDLASERVICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEDLASERVICEREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEDLASERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeDLAServiceRequest : public RpcServiceRequest { +public: + DescribeDLAServiceRequest(); + ~DescribeDLAServiceRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + +private: + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEDLASERVICEREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h index e6872eb6d..3938299d8 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.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_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupListRequest : public RpcServiceRequest - { - - public: - DescribeFullBackupListRequest(); - ~DescribeFullBackupListRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getBackupSetId()const; - void setBackupSetId(const std::string& backupSetId); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - long getStartTimestamp()const; - void setStartTimestamp(long startTimestamp); - long getEndTimestamp()const; - void setEndTimestamp(long endTimestamp); - bool getShowStorageType()const; - void setShowStorageType(bool showStorageType); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string backupSetId_; - int pageNum_; - std::string ownerId_; - long startTimestamp_; - long endTimestamp_; - bool showStorageType_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupListRequest : public RpcServiceRequest { +public: + DescribeFullBackupListRequest(); + ~DescribeFullBackupListRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getBackupSetId() const; + void setBackupSetId(const std::string &backupSetId); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + long getStartTimestamp() const; + void setStartTimestamp(long startTimestamp); + long getEndTimestamp() const; + void setEndTimestamp(long endTimestamp); + bool getShowStorageType() const; + void setShowStorageType(bool showStorageType); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string clientToken_; + std::string backupPlanId_; + std::string backupSetId_; + int pageNum_; + std::string ownerId_; + long startTimestamp_; + long endTimestamp_; + bool showStorageType_; + int pageSize_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPLISTREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListResult.h index 5e14f38d4..47d047962 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListResult.h @@ -35,16 +35,16 @@ namespace AlibabaCloud struct FullBackupFile { std::string sourceEndpointIpPort; - std::string storageMethod; std::string backupObjects; - long endTime; + std::string storageMethod; long finishTime; - long backupSize; + long endTime; long createTime; + long backupSize; long startTime; long backupSetExpiredTime; - std::string backupSetId; std::string errMessage; + std::string backupSetId; std::string backupStatus; }; @@ -52,8 +52,8 @@ namespace AlibabaCloud DescribeFullBackupListResult(); explicit DescribeFullBackupListResult(const std::string &payload); ~DescribeFullBackupListResult(); - int getPageSize()const; int getPageNum()const; + int getPageSize()const; int getHttpStatusCode()const; int getTotalElements()const; std::vector getItems()const; @@ -65,8 +65,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - int pageSize_; int pageNum_; + int pageSize_; int httpStatusCode_; int totalElements_; std::vector items_; diff --git a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetRequest.h deleted file mode 100644 index d44e5f152..000000000 --- a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupSetRequest : public RpcServiceRequest - { - - public: - DescribeFullBackupSetRequest(); - ~DescribeFullBackupSetRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getBackupsetId()const; - void setBackupsetId(const std::string& backupsetId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string backupsetId_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetResult.h b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetResult.h deleted file mode 100644 index d74f2a904..000000000 --- a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetResult.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupSetResult : public ServiceResult - { - public: - - - DescribeFullBackupSetResult(); - explicit DescribeFullBackupSetResult(const std::string &payload); - ~DescribeFullBackupSetResult(); - std::string getStorageMethod()const; - std::string getBackupObjects()const; - long getEndTime()const; - long getBackupSize()const; - long getCreateTime()const; - long getStartTime()const; - long getBackupSetExpiredTime()const; - std::string getErrMessage()const; - std::string getBackupSetId()const; - bool getSuccess()const; - std::string getErrMessage1()const; - std::string getErrCode()const; - std::string getSourceEndpointIpPort()const; - long getFinishTime()const; - int getHttpStatusCode()const; - std::string getBackupStatus()const; - - protected: - void parse(const std::string &payload); - private: - std::string storageMethod_; - std::string backupObjects_; - long endTime_; - long backupSize_; - long createTime_; - long startTime_; - long backupSetExpiredTime_; - std::string errMessage_; - std::string backupSetId_; - bool success_; - std::string errMessage1_; - std::string errCode_; - std::string sourceEndpointIpPort_; - long finishTime_; - int httpStatusCode_; - std::string backupStatus_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h index c4db3cafb..2d4b8663b 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.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_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeIncrementBackupListRequest : public RpcServiceRequest - { - - public: - DescribeIncrementBackupListRequest(); - ~DescribeIncrementBackupListRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - long getStartTimestamp()const; - void setStartTimestamp(long startTimestamp); - long getEndTimestamp()const; - void setEndTimestamp(long endTimestamp); - bool getShowStorageType()const; - void setShowStorageType(bool showStorageType); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string clientToken_; - std::string backupPlanId_; - int pageNum_; - std::string ownerId_; - long startTimestamp_; - long endTimestamp_; - bool showStorageType_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeIncrementBackupListRequest : public RpcServiceRequest { +public: + DescribeIncrementBackupListRequest(); + ~DescribeIncrementBackupListRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + long getStartTimestamp() const; + void setStartTimestamp(long startTimestamp); + long getEndTimestamp() const; + void setEndTimestamp(long endTimestamp); + bool getShowStorageType() const; + void setShowStorageType(bool showStorageType); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string clientToken_; + std::string backupPlanId_; + int pageNum_; + std::string ownerId_; + long startTimestamp_; + long endTimestamp_; + bool showStorageType_; + int pageSize_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEINCREMENTBACKUPLISTREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h index 9c0c7683b..feb16f030 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud long endTime; std::string backupSetJobId; long backupSize; - long startTime; long backupSetExpiredTime; + long startTime; std::string backupSetId; std::string backupStatus; }; @@ -49,8 +49,8 @@ namespace AlibabaCloud DescribeIncrementBackupListResult(); explicit DescribeIncrementBackupListResult(const std::string &payload); ~DescribeIncrementBackupListResult(); - int getPageSize()const; int getPageNum()const; + int getPageSize()const; int getHttpStatusCode()const; int getTotalElements()const; std::vector getItems()const; @@ -62,8 +62,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - int pageSize_; int pageNum_; + int pageSize_; int httpStatusCode_; int totalElements_; std::vector items_; diff --git a/dbs/include/alibabacloud/dbs/model/DescribeJobErrorCodeRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeJobErrorCodeRequest.h index 563802270..062920d5e 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeJobErrorCodeRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeJobErrorCodeRequest.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_DBS_MODEL_DESCRIBEJOBERRORCODEREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEJOBERRORCODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeJobErrorCodeRequest : public RpcServiceRequest - { - - public: - DescribeJobErrorCodeRequest(); - ~DescribeJobErrorCodeRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getLanguage()const; - void setLanguage(const std::string& language); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string clientToken_; - std::string language_; - std::string ownerId_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEJOBERRORCODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEJOBERRORCODEREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEJOBERRORCODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeJobErrorCodeRequest : public RpcServiceRequest { +public: + DescribeJobErrorCodeRequest(); + ~DescribeJobErrorCodeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getLanguage() const; + void setLanguage(const std::string &language); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string clientToken_; + std::string language_; + std::string ownerId_; + std::string taskId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEJOBERRORCODEREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetRequest.h deleted file mode 100644 index c219814ad..000000000 --- a/dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeLogicalBackupSetRequest : public RpcServiceRequest - { - - public: - DescribeLogicalBackupSetRequest(); - ~DescribeLogicalBackupSetRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getBackupsetId()const; - void setBackupsetId(const std::string& backupsetId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string backupsetId_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetResult.h b/dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetResult.h deleted file mode 100644 index bbbd404c5..000000000 --- a/dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETRESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeLogicalBackupSetResult : public ServiceResult - { - public: - - - DescribeLogicalBackupSetResult(); - explicit DescribeLogicalBackupSetResult(const std::string &payload); - ~DescribeLogicalBackupSetResult(); - std::string getStatus()const; - int getHttpStatusCode()const; - std::string getErrMessage()const; - long getRowNum()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string status_; - int httpStatusCode_; - std::string errMessage_; - long rowNum_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListRequest.h index 23beb2642..492222869 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeNodeCidrListRequest.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_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeNodeCidrListRequest : public RpcServiceRequest - { - - public: - DescribeNodeCidrListRequest(); - ~DescribeNodeCidrListRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getRegion()const; - void setRegion(const std::string& region); - - private: - std::string clientToken_; - std::string ownerId_; - std::string region_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeNodeCidrListRequest : public RpcServiceRequest { +public: + DescribeNodeCidrListRequest(); + ~DescribeNodeCidrListRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string clientToken_; + std::string ownerId_; + std::string region_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBENODECIDRLISTREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribePreCheckProgressListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribePreCheckProgressListRequest.h index 2c972d259..f4edc54de 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribePreCheckProgressListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribePreCheckProgressListRequest.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_DBS_MODEL_DESCRIBEPRECHECKPROGRESSLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEPRECHECKPROGRESSLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribePreCheckProgressListRequest : public RpcServiceRequest - { - - public: - DescribePreCheckProgressListRequest(); - ~DescribePreCheckProgressListRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getRestoreTaskId()const; - void setRestoreTaskId(const std::string& restoreTaskId); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - std::string restoreTaskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEPRECHECKPROGRESSLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEPRECHECKPROGRESSLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEPRECHECKPROGRESSLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribePreCheckProgressListRequest : public RpcServiceRequest { +public: + DescribePreCheckProgressListRequest(); + ~DescribePreCheckProgressListRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getRestoreTaskId() const; + void setRestoreTaskId(const std::string &restoreTaskId); + +private: + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; + std::string restoreTaskId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEPRECHECKPROGRESSLISTREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribePreCheckProgressListResult.h b/dbs/include/alibabacloud/dbs/model/DescribePreCheckProgressListResult.h index b364264f3..639a19042 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribePreCheckProgressListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribePreCheckProgressListResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string names; std::string item; - std::string orderNum; long finishTime; + std::string orderNum; std::string errMsg; std::string state; long bootTime; diff --git a/dbs/include/alibabacloud/dbs/model/DescribeRegionsRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeRegionsRequest.h index 446e80b4a..6df38e793 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeRegionsRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeRegionsRequest.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_DBS_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string clientToken_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeRegionsRequest : public RpcServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + +private: + std::string clientToken_; + std::string ownerId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoRequest.h index fa812c44a..a6831dbde 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoRequest.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_DBS_MODEL_DESCRIBERESTORERANGEINFOREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORERANGEINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeRestoreRangeInfoRequest : public RpcServiceRequest - { - - public: - DescribeRestoreRangeInfoRequest(); - ~DescribeRestoreRangeInfoRequest(); - - long getBeginTimestampForRestore()const; - void setBeginTimestampForRestore(long beginTimestampForRestore); - long getEndTimestampForRestore()const; - void setEndTimestampForRestore(long endTimestampForRestore); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - bool getRecentlyRestore()const; - void setRecentlyRestore(bool recentlyRestore); - - private: - long beginTimestampForRestore_; - long endTimestampForRestore_; - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - bool recentlyRestore_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORERANGEINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORERANGEINFOREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORERANGEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeRestoreRangeInfoRequest : public RpcServiceRequest { +public: + DescribeRestoreRangeInfoRequest(); + ~DescribeRestoreRangeInfoRequest(); + long getBeginTimestampForRestore() const; + void setBeginTimestampForRestore(long beginTimestampForRestore); + long getEndTimestampForRestore() const; + void setEndTimestampForRestore(long endTimestampForRestore); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + bool getRecentlyRestore() const; + void setRecentlyRestore(bool recentlyRestore); + +private: + long beginTimestampForRestore_; + long endTimestampForRestore_; + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; + bool recentlyRestore_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORERANGEINFOREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoResult.h b/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoResult.h index 0babe1a83..bf1078741 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoResult.h @@ -43,8 +43,8 @@ namespace AlibabaCloud std::string rangeType; std::vector fullBackupList; std::string sourceEndpointInstanceID; - std::string sourceEndpointInstanceType; long endTimestampForRestore; + std::string sourceEndpointInstanceType; long beginTimestampForRestore; }; diff --git a/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.h index 7c6e06272..f4b5fdf6c 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.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_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DescribeRestoreTaskListRequest : public RpcServiceRequest - { - - public: - DescribeRestoreTaskListRequest(); - ~DescribeRestoreTaskListRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - int getPageNum()const; - void setPageNum(int pageNum); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - long getStartTimestamp()const; - void setStartTimestamp(long startTimestamp); - long getEndTimestamp()const; - void setEndTimestamp(long endTimestamp); - std::string getRestoreTaskId()const; - void setRestoreTaskId(const std::string& restoreTaskId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string clientToken_; - std::string backupPlanId_; - int pageNum_; - std::string ownerId_; - long startTimestamp_; - long endTimestamp_; - std::string restoreTaskId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DescribeRestoreTaskListRequest : public RpcServiceRequest { +public: + DescribeRestoreTaskListRequest(); + ~DescribeRestoreTaskListRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + int getPageNum() const; + void setPageNum(int pageNum); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + long getStartTimestamp() const; + void setStartTimestamp(long startTimestamp); + long getEndTimestamp() const; + void setEndTimestamp(long endTimestamp); + std::string getRestoreTaskId() const; + void setRestoreTaskId(const std::string &restoreTaskId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string clientToken_; + std::string backupPlanId_; + int pageNum_; + std::string ownerId_; + long startTimestamp_; + long endTimestamp_; + std::string restoreTaskId_; + int pageSize_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBERESTORETASKLISTREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListResult.h index 383cd2576..9661160b3 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeRestoreTaskListResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { int fullStruAfterRestoreProgress; std::string crossAliyunId; - std::string destinationEndpointOracleSID; std::string restoreStatus; + std::string destinationEndpointOracleSID; long restoreTime; std::string destinationEndpointRegion; int fullDataRestoreProgress; @@ -48,12 +48,12 @@ namespace AlibabaCloud std::string restoreTaskName; std::string backupPlanId; long backupGatewayId; - long restoreTaskFinishTime; std::string crossRoleName; + long restoreTaskFinishTime; std::string restoreDir; int fullStruforeRestoreProgress; - std::string backupSetId; std::string errMessage; + std::string backupSetId; std::string destinationEndpointInstanceType; std::string restoreTaskId; std::string destinationEndpointUserName; @@ -65,8 +65,8 @@ namespace AlibabaCloud DescribeRestoreTaskListResult(); explicit DescribeRestoreTaskListResult(const std::string &payload); ~DescribeRestoreTaskListResult(); - int getPageSize()const; int getPageNum()const; + int getPageSize()const; int getHttpStatusCode()const; int getTotalElements()const; std::vector getItems()const; @@ -78,8 +78,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - int pageSize_; int pageNum_; + int pageSize_; int httpStatusCode_; int totalElements_; std::vector items_; diff --git a/dbs/include/alibabacloud/dbs/model/DisableBackupLogRequest.h b/dbs/include/alibabacloud/dbs/model/DisableBackupLogRequest.h index 11df55997..67bafb9a6 100644 --- a/dbs/include/alibabacloud/dbs/model/DisableBackupLogRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DisableBackupLogRequest.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_DBS_MODEL_DISABLEBACKUPLOGREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_DISABLEBACKUPLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT DisableBackupLogRequest : public RpcServiceRequest - { - - public: - DisableBackupLogRequest(); - ~DisableBackupLogRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_DISABLEBACKUPLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DISABLEBACKUPLOGREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DISABLEBACKUPLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT DisableBackupLogRequest : public RpcServiceRequest { +public: + DisableBackupLogRequest(); + ~DisableBackupLogRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + +private: + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_DISABLEBACKUPLOGREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/EnableBackupLogRequest.h b/dbs/include/alibabacloud/dbs/model/EnableBackupLogRequest.h index 83345b083..1b2b42c90 100644 --- a/dbs/include/alibabacloud/dbs/model/EnableBackupLogRequest.h +++ b/dbs/include/alibabacloud/dbs/model/EnableBackupLogRequest.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_DBS_MODEL_ENABLEBACKUPLOGREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_ENABLEBACKUPLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT EnableBackupLogRequest : public RpcServiceRequest - { - - public: - EnableBackupLogRequest(); - ~EnableBackupLogRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_ENABLEBACKUPLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_ENABLEBACKUPLOGREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_ENABLEBACKUPLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT EnableBackupLogRequest : public RpcServiceRequest { +public: + EnableBackupLogRequest(); + ~EnableBackupLogRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + +private: + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_ENABLEBACKUPLOGREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/GetDBListFromAgentRequest.h b/dbs/include/alibabacloud/dbs/model/GetDBListFromAgentRequest.h index b769f368c..619969462 100644 --- a/dbs/include/alibabacloud/dbs/model/GetDBListFromAgentRequest.h +++ b/dbs/include/alibabacloud/dbs/model/GetDBListFromAgentRequest.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_DBS_MODEL_GETDBLISTFROMAGENTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_GETDBLISTFROMAGENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT GetDBListFromAgentRequest : public RpcServiceRequest - { - - public: - GetDBListFromAgentRequest(); - ~GetDBListFromAgentRequest(); - - std::string getSourceEndpointRegion()const; - void setSourceEndpointRegion(const std::string& sourceEndpointRegion); - long getBackupGatewayId()const; - void setBackupGatewayId(long backupGatewayId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - long getTaskId()const; - void setTaskId(long taskId); - - private: - std::string sourceEndpointRegion_; - long backupGatewayId_; - std::string clientToken_; - std::string ownerId_; - long taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_GETDBLISTFROMAGENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_GETDBLISTFROMAGENTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_GETDBLISTFROMAGENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT GetDBListFromAgentRequest : public RpcServiceRequest { +public: + GetDBListFromAgentRequest(); + ~GetDBListFromAgentRequest(); + std::string getSourceEndpointRegion() const; + void setSourceEndpointRegion(const std::string &sourceEndpointRegion); + long getBackupGatewayId() const; + void setBackupGatewayId(long backupGatewayId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + long getTaskId() const; + void setTaskId(long taskId); + +private: + std::string sourceEndpointRegion_; + long backupGatewayId_; + std::string clientToken_; + std::string ownerId_; + long taskId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_GETDBLISTFROMAGENTREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/InitializeDbsServiceLinkedRoleRequest.h b/dbs/include/alibabacloud/dbs/model/InitializeDbsServiceLinkedRoleRequest.h index 683ebbb76..389bcb407 100644 --- a/dbs/include/alibabacloud/dbs/model/InitializeDbsServiceLinkedRoleRequest.h +++ b/dbs/include/alibabacloud/dbs/model/InitializeDbsServiceLinkedRoleRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_INITIALIZEDBSSERVICELINKEDROLEREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_INITIALIZEDBSSERVICELINKEDROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT InitializeDbsServiceLinkedRoleRequest : public RpcServiceRequest - { - - public: - InitializeDbsServiceLinkedRoleRequest(); - ~InitializeDbsServiceLinkedRoleRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_INITIALIZEDBSSERVICELINKEDROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_INITIALIZEDBSSERVICELINKEDROLEREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_INITIALIZEDBSSERVICELINKEDROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT InitializeDbsServiceLinkedRoleRequest : public RpcServiceRequest { +public: + InitializeDbsServiceLinkedRoleRequest(); + ~InitializeDbsServiceLinkedRoleRequest(); + +private: +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_INITIALIZEDBSSERVICELINKEDROLEREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.h index 8c77087e9..daeb87a7e 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.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_DBS_MODEL_MODIFYBACKUPOBJECTSREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupObjectsRequest : public RpcServiceRequest - { - - public: - ModifyBackupObjectsRequest(); - ~ModifyBackupObjectsRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getBackupObjects()const; - void setBackupObjects(const std::string& backupObjects); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string backupObjects_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT ModifyBackupObjectsRequest : public RpcServiceRequest { +public: + ModifyBackupObjectsRequest(); + ~ModifyBackupObjectsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getBackupObjects() const; + void setBackupObjects(const std::string &backupObjects); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + +private: + std::string clientToken_; + std::string backupPlanId_; + std::string backupObjects_; + std::string ownerId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPOBJECTSREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameRequest.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameRequest.h index f471b377d..e74c382f2 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupPlanNameRequest.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_DBS_MODEL_MODIFYBACKUPPLANNAMEREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupPlanNameRequest : public RpcServiceRequest - { - - public: - ModifyBackupPlanNameRequest(); - ~ModifyBackupPlanNameRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getBackupPlanName()const; - void setBackupPlanName(const std::string& backupPlanName); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - std::string backupPlanName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMEREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT ModifyBackupPlanNameRequest : public RpcServiceRequest { +public: + ModifyBackupPlanNameRequest(); + ~ModifyBackupPlanNameRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getBackupPlanName() const; + void setBackupPlanName(const std::string &backupPlanName); + +private: + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; + std::string backupPlanName_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPPLANNAMEREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupSetDownloadRulesRequest.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupSetDownloadRulesRequest.h index 9b08e2255..8e9a15623 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupSetDownloadRulesRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupSetDownloadRulesRequest.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_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupSetDownloadRulesRequest : public RpcServiceRequest - { - - public: - ModifyBackupSetDownloadRulesRequest(); - ~ModifyBackupSetDownloadRulesRequest(); - - std::string getFullDataFormat()const; - void setFullDataFormat(const std::string& fullDataFormat); - long getBackupGatewayId()const; - void setBackupGatewayId(long backupGatewayId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupSetDownloadTargetType()const; - void setBackupSetDownloadTargetType(const std::string& backupSetDownloadTargetType); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - bool getOpenAutoDownload()const; - void setOpenAutoDownload(bool openAutoDownload); - std::string getIncrementDataFormat()const; - void setIncrementDataFormat(const std::string& incrementDataFormat); - std::string getBackupSetDownloadTargetTypeLocation()const; - void setBackupSetDownloadTargetTypeLocation(const std::string& backupSetDownloadTargetTypeLocation); - std::string getBackupSetDownloadDir()const; - void setBackupSetDownloadDir(const std::string& backupSetDownloadDir); - - private: - std::string fullDataFormat_; - long backupGatewayId_; - std::string clientToken_; - std::string backupSetDownloadTargetType_; - std::string backupPlanId_; - std::string ownerId_; - bool openAutoDownload_; - std::string incrementDataFormat_; - std::string backupSetDownloadTargetTypeLocation_; - std::string backupSetDownloadDir_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT ModifyBackupSetDownloadRulesRequest : public RpcServiceRequest { +public: + ModifyBackupSetDownloadRulesRequest(); + ~ModifyBackupSetDownloadRulesRequest(); + std::string getFullDataFormat() const; + void setFullDataFormat(const std::string &fullDataFormat); + long getBackupGatewayId() const; + void setBackupGatewayId(long backupGatewayId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupSetDownloadTargetType() const; + void setBackupSetDownloadTargetType(const std::string &backupSetDownloadTargetType); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + bool getOpenAutoDownload() const; + void setOpenAutoDownload(bool openAutoDownload); + std::string getIncrementDataFormat() const; + void setIncrementDataFormat(const std::string &incrementDataFormat); + std::string getBackupSetDownloadTargetTypeLocation() const; + void setBackupSetDownloadTargetTypeLocation(const std::string &backupSetDownloadTargetTypeLocation); + std::string getBackupSetDownloadDir() const; + void setBackupSetDownloadDir(const std::string &backupSetDownloadDir); + +private: + std::string fullDataFormat_; + long backupGatewayId_; + std::string clientToken_; + std::string backupSetDownloadTargetType_; + std::string backupPlanId_; + std::string ownerId_; + bool openAutoDownload_; + std::string incrementDataFormat_; + std::string backupSetDownloadTargetTypeLocation_; + std::string backupSetDownloadDir_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointRequest.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointRequest.h index f47d075d9..f4c8e1c47 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupSourceEndpointRequest.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_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupSourceEndpointRequest : public RpcServiceRequest - { - - public: - ModifyBackupSourceEndpointRequest(); - ~ModifyBackupSourceEndpointRequest(); - - std::string getSourceEndpointRegion()const; - void setSourceEndpointRegion(const std::string& sourceEndpointRegion); - long getBackupGatewayId()const; - void setBackupGatewayId(long backupGatewayId); - std::string getSourceEndpointInstanceID()const; - void setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID); - std::string getSourceEndpointUserName()const; - void setSourceEndpointUserName(const std::string& sourceEndpointUserName); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getSourceEndpointDatabaseName()const; - void setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName); - std::string getSourceEndpointIP()const; - void setSourceEndpointIP(const std::string& sourceEndpointIP); - std::string getCrossRoleName()const; - void setCrossRoleName(const std::string& crossRoleName); - std::string getCrossAliyunId()const; - void setCrossAliyunId(const std::string& crossAliyunId); - std::string getSourceEndpointPassword()const; - void setSourceEndpointPassword(const std::string& sourceEndpointPassword); - std::string getBackupObjects()const; - void setBackupObjects(const std::string& backupObjects); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - int getSourceEndpointPort()const; - void setSourceEndpointPort(int sourceEndpointPort); - std::string getSourceEndpointInstanceType()const; - void setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType); - std::string getSourceEndpointOracleSID()const; - void setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID); - - private: - std::string sourceEndpointRegion_; - long backupGatewayId_; - std::string sourceEndpointInstanceID_; - std::string sourceEndpointUserName_; - std::string clientToken_; - std::string backupPlanId_; - std::string sourceEndpointDatabaseName_; - std::string sourceEndpointIP_; - std::string crossRoleName_; - std::string crossAliyunId_; - std::string sourceEndpointPassword_; - std::string backupObjects_; - std::string ownerId_; - int sourceEndpointPort_; - std::string sourceEndpointInstanceType_; - std::string sourceEndpointOracleSID_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT ModifyBackupSourceEndpointRequest : public RpcServiceRequest { +public: + ModifyBackupSourceEndpointRequest(); + ~ModifyBackupSourceEndpointRequest(); + std::string getSourceEndpointRegion() const; + void setSourceEndpointRegion(const std::string &sourceEndpointRegion); + long getBackupGatewayId() const; + void setBackupGatewayId(long backupGatewayId); + std::string getSourceEndpointInstanceID() const; + void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID); + std::string getSourceEndpointUserName() const; + void setSourceEndpointUserName(const std::string &sourceEndpointUserName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getSourceEndpointDatabaseName() const; + void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName); + std::string getSourceEndpointIP() const; + void setSourceEndpointIP(const std::string &sourceEndpointIP); + std::string getCrossRoleName() const; + void setCrossRoleName(const std::string &crossRoleName); + std::string getCrossAliyunId() const; + void setCrossAliyunId(const std::string &crossAliyunId); + std::string getSourceEndpointPassword() const; + void setSourceEndpointPassword(const std::string &sourceEndpointPassword); + std::string getBackupObjects() const; + void setBackupObjects(const std::string &backupObjects); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + int getSourceEndpointPort() const; + void setSourceEndpointPort(int sourceEndpointPort); + std::string getSourceEndpointInstanceType() const; + void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); + std::string getSourceEndpointOracleSID() const; + void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID); + +private: + std::string sourceEndpointRegion_; + long backupGatewayId_; + std::string sourceEndpointInstanceID_; + std::string sourceEndpointUserName_; + std::string clientToken_; + std::string backupPlanId_; + std::string sourceEndpointDatabaseName_; + std::string sourceEndpointIP_; + std::string crossRoleName_; + std::string crossAliyunId_; + std::string sourceEndpointPassword_; + std::string backupObjects_; + std::string ownerId_; + int sourceEndpointPort_; + std::string sourceEndpointInstanceType_; + std::string sourceEndpointOracleSID_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSOURCEENDPOINTREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyRequest.h b/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyRequest.h index ffd0f554a..7fb472e0f 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyBackupStrategyRequest.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_DBS_MODEL_MODIFYBACKUPSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyBackupStrategyRequest : public RpcServiceRequest - { - - public: - ModifyBackupStrategyRequest(); - ~ModifyBackupStrategyRequest(); - - int getBackupLogIntervalSeconds()const; - void setBackupLogIntervalSeconds(int backupLogIntervalSeconds); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getBackupPeriod()const; - void setBackupPeriod(const std::string& backupPeriod); - std::string getBackupStartTime()const; - void setBackupStartTime(const std::string& backupStartTime); - std::string getBackupStrategyType()const; - void setBackupStrategyType(const std::string& backupStrategyType); - - private: - int backupLogIntervalSeconds_; - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - std::string backupPeriod_; - std::string backupStartTime_; - std::string backupStrategyType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT ModifyBackupStrategyRequest : public RpcServiceRequest { +public: + ModifyBackupStrategyRequest(); + ~ModifyBackupStrategyRequest(); + int getBackupLogIntervalSeconds() const; + void setBackupLogIntervalSeconds(int backupLogIntervalSeconds); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getBackupPeriod() const; + void setBackupPeriod(const std::string &backupPeriod); + std::string getBackupStartTime() const; + void setBackupStartTime(const std::string &backupStartTime); + std::string getBackupStrategyType() const; + void setBackupStrategyType(const std::string &backupStrategyType); + +private: + int backupLogIntervalSeconds_; + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; + std::string backupPeriod_; + std::string backupStartTime_; + std::string backupStrategyType_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSTRATEGYREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/ModifyStorageStrategyRequest.h b/dbs/include/alibabacloud/dbs/model/ModifyStorageStrategyRequest.h index 9cec98e09..02b92a84f 100644 --- a/dbs/include/alibabacloud/dbs/model/ModifyStorageStrategyRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ModifyStorageStrategyRequest.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_DBS_MODEL_MODIFYSTORAGESTRATEGYREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_MODIFYSTORAGESTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ModifyStorageStrategyRequest : public RpcServiceRequest - { - - public: - ModifyStorageStrategyRequest(); - ~ModifyStorageStrategyRequest(); - - int getDuplicationArchivePeriod()const; - void setDuplicationArchivePeriod(int duplicationArchivePeriod); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - int getBackupRetentionPeriod()const; - void setBackupRetentionPeriod(int backupRetentionPeriod); - int getDuplicationInfrequentAccessPeriod()const; - void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod); - - private: - int duplicationArchivePeriod_; - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - int backupRetentionPeriod_; - int duplicationInfrequentAccessPeriod_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYSTORAGESTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYSTORAGESTRATEGYREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_MODIFYSTORAGESTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT ModifyStorageStrategyRequest : public RpcServiceRequest { +public: + ModifyStorageStrategyRequest(); + ~ModifyStorageStrategyRequest(); + int getDuplicationArchivePeriod() const; + void setDuplicationArchivePeriod(int duplicationArchivePeriod); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + int getBackupRetentionPeriod() const; + void setBackupRetentionPeriod(int backupRetentionPeriod); + int getDuplicationInfrequentAccessPeriod() const; + void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod); + +private: + int duplicationArchivePeriod_; + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; + int backupRetentionPeriod_; + int duplicationInfrequentAccessPeriod_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYSTORAGESTRATEGYREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/ReleaseBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/ReleaseBackupPlanRequest.h index 7a78b82a8..82b872470 100644 --- a/dbs/include/alibabacloud/dbs/model/ReleaseBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ReleaseBackupPlanRequest.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_DBS_MODEL_RELEASEBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_RELEASEBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT ReleaseBackupPlanRequest : public RpcServiceRequest - { - - public: - ReleaseBackupPlanRequest(); - ~ReleaseBackupPlanRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_RELEASEBACKUPPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_RELEASEBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_RELEASEBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT ReleaseBackupPlanRequest : public RpcServiceRequest { +public: + ReleaseBackupPlanRequest(); + ~ReleaseBackupPlanRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + +private: + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_RELEASEBACKUPPLANREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/RenewBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/RenewBackupPlanRequest.h index 5aadb94f7..a0c35814f 100644 --- a/dbs/include/alibabacloud/dbs/model/RenewBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/RenewBackupPlanRequest.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_DBS_MODEL_RENEWBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT RenewBackupPlanRequest : public RpcServiceRequest - { - - public: - RenewBackupPlanRequest(); - ~RenewBackupPlanRequest(); - - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - int getUsedTime()const; - void setUsedTime(int usedTime); - - private: - std::string period_; - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - int usedTime_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT RenewBackupPlanRequest : public RpcServiceRequest { +public: + RenewBackupPlanRequest(); + ~RenewBackupPlanRequest(); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + int getUsedTime() const; + void setUsedTime(int usedTime); + +private: + std::string period_; + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; + int usedTime_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_RENEWBACKUPPLANREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/StartBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/StartBackupPlanRequest.h index 9232b65f1..c6da5a8e7 100644 --- a/dbs/include/alibabacloud/dbs/model/StartBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/StartBackupPlanRequest.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_DBS_MODEL_STARTBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT StartBackupPlanRequest : public RpcServiceRequest - { - - public: - StartBackupPlanRequest(); - ~StartBackupPlanRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT StartBackupPlanRequest : public RpcServiceRequest { +public: + StartBackupPlanRequest(); + ~StartBackupPlanRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + +private: + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_STARTBACKUPPLANREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/StartBackupPlanResult.h b/dbs/include/alibabacloud/dbs/model/StartBackupPlanResult.h index 42c6d2e4a..d068c5bab 100644 --- a/dbs/include/alibabacloud/dbs/model/StartBackupPlanResult.h +++ b/dbs/include/alibabacloud/dbs/model/StartBackupPlanResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud explicit StartBackupPlanResult(const std::string &payload); ~StartBackupPlanResult(); int getHttpStatusCode()const; + std::string getCreatedFullBackupsetId()const; std::string getBackupPlanId()const; std::string getErrMessage()const; bool getSuccess()const; @@ -47,6 +48,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: int httpStatusCode_; + std::string createdFullBackupsetId_; std::string backupPlanId_; std::string errMessage_; bool success_; diff --git a/dbs/include/alibabacloud/dbs/model/StartRestoreTaskRequest.h b/dbs/include/alibabacloud/dbs/model/StartRestoreTaskRequest.h index 31b6c4154..89a3cb3f3 100644 --- a/dbs/include/alibabacloud/dbs/model/StartRestoreTaskRequest.h +++ b/dbs/include/alibabacloud/dbs/model/StartRestoreTaskRequest.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_DBS_MODEL_STARTRESTORETASKREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT StartRestoreTaskRequest : public RpcServiceRequest - { - - public: - StartRestoreTaskRequest(); - ~StartRestoreTaskRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getRestoreTaskId()const; - void setRestoreTaskId(const std::string& restoreTaskId); - - private: - std::string clientToken_; - std::string ownerId_; - std::string restoreTaskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT StartRestoreTaskRequest : public RpcServiceRequest { +public: + StartRestoreTaskRequest(); + ~StartRestoreTaskRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getRestoreTaskId() const; + void setRestoreTaskId(const std::string &restoreTaskId); + +private: + std::string clientToken_; + std::string ownerId_; + std::string restoreTaskId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_STARTRESTORETASKREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/StopBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/StopBackupPlanRequest.h index f84e641b4..cc4841e3f 100644 --- a/dbs/include/alibabacloud/dbs/model/StopBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/StopBackupPlanRequest.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_DBS_MODEL_STOPBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT StopBackupPlanRequest : public RpcServiceRequest - { - - public: - StopBackupPlanRequest(); - ~StopBackupPlanRequest(); - - std::string getStopMethod()const; - void setStopMethod(const std::string& stopMethod); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string stopMethod_; - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT StopBackupPlanRequest : public RpcServiceRequest { +public: + StopBackupPlanRequest(); + ~StopBackupPlanRequest(); + std::string getStopMethod() const; + void setStopMethod(const std::string &stopMethod); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + +private: + std::string stopMethod_; + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_STOPBACKUPPLANREQUEST_H_ diff --git a/dbs/include/alibabacloud/dbs/model/UpgradeBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/UpgradeBackupPlanRequest.h index 9148e1458..fd3580e0f 100644 --- a/dbs/include/alibabacloud/dbs/model/UpgradeBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/UpgradeBackupPlanRequest.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_DBS_MODEL_UPGRADEBACKUPPLANREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_UPGRADEBACKUPPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT UpgradeBackupPlanRequest : public RpcServiceRequest - { - - public: - UpgradeBackupPlanRequest(); - ~UpgradeBackupPlanRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBackupPlanId()const; - void setBackupPlanId(const std::string& backupPlanId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getInstanceClass()const; - void setInstanceClass(const std::string& instanceClass); - - private: - std::string clientToken_; - std::string backupPlanId_; - std::string ownerId_; - std::string instanceClass_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_UPGRADEBACKUPPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_UPGRADEBACKUPPLANREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_UPGRADEBACKUPPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dbs { +namespace Model { +class ALIBABACLOUD_DBS_EXPORT UpgradeBackupPlanRequest : public RpcServiceRequest { +public: + UpgradeBackupPlanRequest(); + ~UpgradeBackupPlanRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getBackupPlanId() const; + void setBackupPlanId(const std::string &backupPlanId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getInstanceClass() const; + void setInstanceClass(const std::string &instanceClass); + +private: + std::string clientToken_; + std::string backupPlanId_; + std::string ownerId_; + std::string instanceClass_; +}; +} // namespace Model +} // namespace Dbs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DBS_MODEL_UPGRADEBACKUPPLANREQUEST_H_ diff --git a/dbs/src/DbsClient.cc b/dbs/src/DbsClient.cc index ba81affc6..f9177a7f3 100644 --- a/dbs/src/DbsClient.cc +++ b/dbs/src/DbsClient.cc @@ -31,21 +31,21 @@ DbsClient::DbsClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cbs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DbsClient::DbsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cbs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DbsClient::DbsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cbs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DbsClient::~DbsClient() @@ -519,42 +519,6 @@ DbsClient::DescribeFullBackupListOutcomeCallable DbsClient::describeFullBackupLi return task->get_future(); } -DbsClient::DescribeFullBackupSetOutcome DbsClient::describeFullBackupSet(const DescribeFullBackupSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeFullBackupSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeFullBackupSetOutcome(DescribeFullBackupSetResult(outcome.result())); - else - return DescribeFullBackupSetOutcome(outcome.error()); -} - -void DbsClient::describeFullBackupSetAsync(const DescribeFullBackupSetRequest& request, const DescribeFullBackupSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeFullBackupSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DbsClient::DescribeFullBackupSetOutcomeCallable DbsClient::describeFullBackupSetCallable(const DescribeFullBackupSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeFullBackupSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DbsClient::DescribeIncrementBackupListOutcome DbsClient::describeIncrementBackupList(const DescribeIncrementBackupListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,42 +591,6 @@ DbsClient::DescribeJobErrorCodeOutcomeCallable DbsClient::describeJobErrorCodeCa return task->get_future(); } -DbsClient::DescribeLogicalBackupSetOutcome DbsClient::describeLogicalBackupSet(const DescribeLogicalBackupSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLogicalBackupSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLogicalBackupSetOutcome(DescribeLogicalBackupSetResult(outcome.result())); - else - return DescribeLogicalBackupSetOutcome(outcome.error()); -} - -void DbsClient::describeLogicalBackupSetAsync(const DescribeLogicalBackupSetRequest& request, const DescribeLogicalBackupSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLogicalBackupSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DbsClient::DescribeLogicalBackupSetOutcomeCallable DbsClient::describeLogicalBackupSetCallable(const DescribeLogicalBackupSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLogicalBackupSet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DbsClient::DescribeNodeCidrListOutcome DbsClient::describeNodeCidrList(const DescribeNodeCidrListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dbs/src/model/ConfigureBackupPlanRequest.cc b/dbs/src/model/ConfigureBackupPlanRequest.cc index 85a888dcd..23492b298 100644 --- a/dbs/src/model/ConfigureBackupPlanRequest.cc +++ b/dbs/src/model/ConfigureBackupPlanRequest.cc @@ -1,359 +1,306 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dbs::Model::ConfigureBackupPlanRequest; - -ConfigureBackupPlanRequest::ConfigureBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ConfigureBackupPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -ConfigureBackupPlanRequest::~ConfigureBackupPlanRequest() -{} - -std::string ConfigureBackupPlanRequest::getSourceEndpointRegion()const -{ - return sourceEndpointRegion_; + */ + +#include + +using AlibabaCloud::Dbs::Model::ConfigureBackupPlanRequest; + +ConfigureBackupPlanRequest::ConfigureBackupPlanRequest() + : RpcServiceRequest("dbs", "2019-03-06", "ConfigureBackupPlan") { + setMethod(HttpRequest::Method::Post); } -void ConfigureBackupPlanRequest::setSourceEndpointRegion(const std::string& sourceEndpointRegion) -{ - sourceEndpointRegion_ = sourceEndpointRegion; - setParameter("SourceEndpointRegion", sourceEndpointRegion); +ConfigureBackupPlanRequest::~ConfigureBackupPlanRequest() {} + +std::string ConfigureBackupPlanRequest::getSourceEndpointRegion() const { + return sourceEndpointRegion_; } -long ConfigureBackupPlanRequest::getBackupGatewayId()const -{ - return backupGatewayId_; +void ConfigureBackupPlanRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) { + sourceEndpointRegion_ = sourceEndpointRegion; + setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion); } -void ConfigureBackupPlanRequest::setBackupGatewayId(long backupGatewayId) -{ - backupGatewayId_ = backupGatewayId; - setParameter("BackupGatewayId", std::to_string(backupGatewayId)); +long ConfigureBackupPlanRequest::getBackupGatewayId() const { + return backupGatewayId_; } -std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceID()const -{ - return sourceEndpointInstanceID_; +void ConfigureBackupPlanRequest::setBackupGatewayId(long backupGatewayId) { + backupGatewayId_ = backupGatewayId; + setParameter(std::string("BackupGatewayId"), std::to_string(backupGatewayId)); } -void ConfigureBackupPlanRequest::setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID) -{ - sourceEndpointInstanceID_ = sourceEndpointInstanceID; - setParameter("SourceEndpointInstanceID", sourceEndpointInstanceID); +std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceID() const { + return sourceEndpointInstanceID_; } -std::string ConfigureBackupPlanRequest::getSourceEndpointUserName()const -{ - return sourceEndpointUserName_; +void ConfigureBackupPlanRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) { + sourceEndpointInstanceID_ = sourceEndpointInstanceID; + setParameter(std::string("SourceEndpointInstanceID"), sourceEndpointInstanceID); } -void ConfigureBackupPlanRequest::setSourceEndpointUserName(const std::string& sourceEndpointUserName) -{ - sourceEndpointUserName_ = sourceEndpointUserName; - setParameter("SourceEndpointUserName", sourceEndpointUserName); +std::string ConfigureBackupPlanRequest::getSourceEndpointUserName() const { + return sourceEndpointUserName_; } -std::string ConfigureBackupPlanRequest::getClientToken()const -{ - return clientToken_; +void ConfigureBackupPlanRequest::setSourceEndpointUserName(const std::string &sourceEndpointUserName) { + sourceEndpointUserName_ = sourceEndpointUserName; + setParameter(std::string("SourceEndpointUserName"), sourceEndpointUserName); } -void ConfigureBackupPlanRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ConfigureBackupPlanRequest::getClientToken() const { + return clientToken_; } -std::string ConfigureBackupPlanRequest::getBackupPlanId()const -{ - return backupPlanId_; +void ConfigureBackupPlanRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ConfigureBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string ConfigureBackupPlanRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string ConfigureBackupPlanRequest::getSourceEndpointDatabaseName()const -{ - return sourceEndpointDatabaseName_; +void ConfigureBackupPlanRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void ConfigureBackupPlanRequest::setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName) -{ - sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; - setParameter("SourceEndpointDatabaseName", sourceEndpointDatabaseName); +std::string ConfigureBackupPlanRequest::getSourceEndpointDatabaseName() const { + return sourceEndpointDatabaseName_; } -int ConfigureBackupPlanRequest::getDuplicationInfrequentAccessPeriod()const -{ - return duplicationInfrequentAccessPeriod_; +void ConfigureBackupPlanRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) { + sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; + setParameter(std::string("SourceEndpointDatabaseName"), sourceEndpointDatabaseName); } -void ConfigureBackupPlanRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod) -{ - duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod; - setParameter("DuplicationInfrequentAccessPeriod", std::to_string(duplicationInfrequentAccessPeriod)); +int ConfigureBackupPlanRequest::getDuplicationInfrequentAccessPeriod() const { + return duplicationInfrequentAccessPeriod_; } -std::string ConfigureBackupPlanRequest::getBackupStartTime()const -{ - return backupStartTime_; +void ConfigureBackupPlanRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod) { + duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod; + setParameter(std::string("DuplicationInfrequentAccessPeriod"), std::to_string(duplicationInfrequentAccessPeriod)); } -void ConfigureBackupPlanRequest::setBackupStartTime(const std::string& backupStartTime) -{ - backupStartTime_ = backupStartTime; - setParameter("BackupStartTime", backupStartTime); +std::string ConfigureBackupPlanRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string ConfigureBackupPlanRequest::getSourceEndpointIP()const -{ - return sourceEndpointIP_; +void ConfigureBackupPlanRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void ConfigureBackupPlanRequest::setSourceEndpointIP(const std::string& sourceEndpointIP) -{ - sourceEndpointIP_ = sourceEndpointIP; - setParameter("SourceEndpointIP", sourceEndpointIP); +std::string ConfigureBackupPlanRequest::getBackupStartTime() const { + return backupStartTime_; } -std::string ConfigureBackupPlanRequest::getCrossRoleName()const -{ - return crossRoleName_; +void ConfigureBackupPlanRequest::setBackupStartTime(const std::string &backupStartTime) { + backupStartTime_ = backupStartTime; + setParameter(std::string("BackupStartTime"), backupStartTime); } -void ConfigureBackupPlanRequest::setCrossRoleName(const std::string& crossRoleName) -{ - crossRoleName_ = crossRoleName; - setParameter("CrossRoleName", crossRoleName); +std::string ConfigureBackupPlanRequest::getSourceEndpointIP() const { + return sourceEndpointIP_; } -bool ConfigureBackupPlanRequest::getEnableBackupLog()const -{ - return enableBackupLog_; +void ConfigureBackupPlanRequest::setSourceEndpointIP(const std::string &sourceEndpointIP) { + sourceEndpointIP_ = sourceEndpointIP; + setParameter(std::string("SourceEndpointIP"), sourceEndpointIP); } -void ConfigureBackupPlanRequest::setEnableBackupLog(bool enableBackupLog) -{ - enableBackupLog_ = enableBackupLog; - setParameter("EnableBackupLog", enableBackupLog ? "true" : "false"); +std::string ConfigureBackupPlanRequest::getCrossRoleName() const { + return crossRoleName_; } -std::string ConfigureBackupPlanRequest::getBackupStorageType()const -{ - return backupStorageType_; +void ConfigureBackupPlanRequest::setCrossRoleName(const std::string &crossRoleName) { + crossRoleName_ = crossRoleName; + setParameter(std::string("CrossRoleName"), crossRoleName); } -void ConfigureBackupPlanRequest::setBackupStorageType(const std::string& backupStorageType) -{ - backupStorageType_ = backupStorageType; - setParameter("BackupStorageType", backupStorageType); +bool ConfigureBackupPlanRequest::getEnableBackupLog() const { + return enableBackupLog_; } -int ConfigureBackupPlanRequest::getDuplicationArchivePeriod()const -{ - return duplicationArchivePeriod_; +void ConfigureBackupPlanRequest::setEnableBackupLog(bool enableBackupLog) { + enableBackupLog_ = enableBackupLog; + setParameter(std::string("EnableBackupLog"), enableBackupLog ? "true" : "false"); } -void ConfigureBackupPlanRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod) -{ - duplicationArchivePeriod_ = duplicationArchivePeriod; - setParameter("DuplicationArchivePeriod", std::to_string(duplicationArchivePeriod)); +std::string ConfigureBackupPlanRequest::getBackupStorageType() const { + return backupStorageType_; } -int ConfigureBackupPlanRequest::getBackupLogIntervalSeconds()const -{ - return backupLogIntervalSeconds_; +void ConfigureBackupPlanRequest::setBackupStorageType(const std::string &backupStorageType) { + backupStorageType_ = backupStorageType; + setParameter(std::string("BackupStorageType"), backupStorageType); } -void ConfigureBackupPlanRequest::setBackupLogIntervalSeconds(int backupLogIntervalSeconds) -{ - backupLogIntervalSeconds_ = backupLogIntervalSeconds; - setParameter("BackupLogIntervalSeconds", std::to_string(backupLogIntervalSeconds)); +int ConfigureBackupPlanRequest::getDuplicationArchivePeriod() const { + return duplicationArchivePeriod_; } -std::string ConfigureBackupPlanRequest::getCrossAliyunId()const -{ - return crossAliyunId_; +void ConfigureBackupPlanRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod) { + duplicationArchivePeriod_ = duplicationArchivePeriod; + setParameter(std::string("DuplicationArchivePeriod"), std::to_string(duplicationArchivePeriod)); } -void ConfigureBackupPlanRequest::setCrossAliyunId(const std::string& crossAliyunId) -{ - crossAliyunId_ = crossAliyunId; - setParameter("CrossAliyunId", crossAliyunId); +int ConfigureBackupPlanRequest::getBackupLogIntervalSeconds() const { + return backupLogIntervalSeconds_; } -bool ConfigureBackupPlanRequest::getAutoStartBackup()const -{ - return autoStartBackup_; +void ConfigureBackupPlanRequest::setBackupLogIntervalSeconds(int backupLogIntervalSeconds) { + backupLogIntervalSeconds_ = backupLogIntervalSeconds; + setParameter(std::string("BackupLogIntervalSeconds"), std::to_string(backupLogIntervalSeconds)); } -void ConfigureBackupPlanRequest::setAutoStartBackup(bool autoStartBackup) -{ - autoStartBackup_ = autoStartBackup; - setParameter("AutoStartBackup", autoStartBackup ? "true" : "false"); +std::string ConfigureBackupPlanRequest::getCrossAliyunId() const { + return crossAliyunId_; } -std::string ConfigureBackupPlanRequest::getSourceEndpointPassword()const -{ - return sourceEndpointPassword_; +void ConfigureBackupPlanRequest::setCrossAliyunId(const std::string &crossAliyunId) { + crossAliyunId_ = crossAliyunId; + setParameter(std::string("CrossAliyunId"), crossAliyunId); } -void ConfigureBackupPlanRequest::setSourceEndpointPassword(const std::string& sourceEndpointPassword) -{ - sourceEndpointPassword_ = sourceEndpointPassword; - setParameter("SourceEndpointPassword", sourceEndpointPassword); +bool ConfigureBackupPlanRequest::getAutoStartBackup() const { + return autoStartBackup_; } -std::string ConfigureBackupPlanRequest::getBackupObjects()const -{ - return backupObjects_; +void ConfigureBackupPlanRequest::setAutoStartBackup(bool autoStartBackup) { + autoStartBackup_ = autoStartBackup; + setParameter(std::string("AutoStartBackup"), autoStartBackup ? "true" : "false"); } -void ConfigureBackupPlanRequest::setBackupObjects(const std::string& backupObjects) -{ - backupObjects_ = backupObjects; - setParameter("BackupObjects", backupObjects); +std::string ConfigureBackupPlanRequest::getSourceEndpointPassword() const { + return sourceEndpointPassword_; } -long ConfigureBackupPlanRequest::getBackupRateLimit()const -{ - return backupRateLimit_; +void ConfigureBackupPlanRequest::setSourceEndpointPassword(const std::string &sourceEndpointPassword) { + sourceEndpointPassword_ = sourceEndpointPassword; + setParameter(std::string("SourceEndpointPassword"), sourceEndpointPassword); } -void ConfigureBackupPlanRequest::setBackupRateLimit(long backupRateLimit) -{ - backupRateLimit_ = backupRateLimit; - setParameter("BackupRateLimit", std::to_string(backupRateLimit)); +std::string ConfigureBackupPlanRequest::getBackupObjects() const { + return backupObjects_; } -std::string ConfigureBackupPlanRequest::getOwnerId()const -{ - return ownerId_; +void ConfigureBackupPlanRequest::setBackupObjects(const std::string &backupObjects) { + backupObjects_ = backupObjects; + setParameter(std::string("BackupObjects"), backupObjects); } -void ConfigureBackupPlanRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +long ConfigureBackupPlanRequest::getBackupRateLimit() const { + return backupRateLimit_; } -int ConfigureBackupPlanRequest::getSourceEndpointPort()const -{ - return sourceEndpointPort_; +void ConfigureBackupPlanRequest::setBackupRateLimit(long backupRateLimit) { + backupRateLimit_ = backupRateLimit; + setParameter(std::string("BackupRateLimit"), std::to_string(backupRateLimit)); } -void ConfigureBackupPlanRequest::setSourceEndpointPort(int sourceEndpointPort) -{ - sourceEndpointPort_ = sourceEndpointPort; - setParameter("SourceEndpointPort", std::to_string(sourceEndpointPort)); +std::string ConfigureBackupPlanRequest::getOwnerId() const { + return ownerId_; } -int ConfigureBackupPlanRequest::getBackupRetentionPeriod()const -{ - return backupRetentionPeriod_; +void ConfigureBackupPlanRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void ConfigureBackupPlanRequest::setBackupRetentionPeriod(int backupRetentionPeriod) -{ - backupRetentionPeriod_ = backupRetentionPeriod; - setParameter("BackupRetentionPeriod", std::to_string(backupRetentionPeriod)); +int ConfigureBackupPlanRequest::getSourceEndpointPort() const { + return sourceEndpointPort_; } -std::string ConfigureBackupPlanRequest::getBackupPeriod()const -{ - return backupPeriod_; +void ConfigureBackupPlanRequest::setSourceEndpointPort(int sourceEndpointPort) { + sourceEndpointPort_ = sourceEndpointPort; + setParameter(std::string("SourceEndpointPort"), std::to_string(sourceEndpointPort)); } -void ConfigureBackupPlanRequest::setBackupPeriod(const std::string& backupPeriod) -{ - backupPeriod_ = backupPeriod; - setParameter("BackupPeriod", backupPeriod); +int ConfigureBackupPlanRequest::getBackupRetentionPeriod() const { + return backupRetentionPeriod_; } -long ConfigureBackupPlanRequest::getBackupSpeedLimit()const -{ - return backupSpeedLimit_; +void ConfigureBackupPlanRequest::setBackupRetentionPeriod(int backupRetentionPeriod) { + backupRetentionPeriod_ = backupRetentionPeriod; + setParameter(std::string("BackupRetentionPeriod"), std::to_string(backupRetentionPeriod)); } -void ConfigureBackupPlanRequest::setBackupSpeedLimit(long backupSpeedLimit) -{ - backupSpeedLimit_ = backupSpeedLimit; - setParameter("BackupSpeedLimit", std::to_string(backupSpeedLimit)); +std::string ConfigureBackupPlanRequest::getBackupPeriod() const { + return backupPeriod_; } -std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceType()const -{ - return sourceEndpointInstanceType_; +void ConfigureBackupPlanRequest::setBackupPeriod(const std::string &backupPeriod) { + backupPeriod_ = backupPeriod; + setParameter(std::string("BackupPeriod"), backupPeriod); } -void ConfigureBackupPlanRequest::setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType) -{ - sourceEndpointInstanceType_ = sourceEndpointInstanceType; - setParameter("SourceEndpointInstanceType", sourceEndpointInstanceType); +long ConfigureBackupPlanRequest::getBackupSpeedLimit() const { + return backupSpeedLimit_; } -std::string ConfigureBackupPlanRequest::getBackupPlanName()const -{ - return backupPlanName_; +void ConfigureBackupPlanRequest::setBackupSpeedLimit(long backupSpeedLimit) { + backupSpeedLimit_ = backupSpeedLimit; + setParameter(std::string("BackupSpeedLimit"), std::to_string(backupSpeedLimit)); } -void ConfigureBackupPlanRequest::setBackupPlanName(const std::string& backupPlanName) -{ - backupPlanName_ = backupPlanName; - setParameter("BackupPlanName", backupPlanName); +std::string ConfigureBackupPlanRequest::getSourceEndpointInstanceType() const { + return sourceEndpointInstanceType_; } -std::string ConfigureBackupPlanRequest::getSourceEndpointOracleSID()const -{ - return sourceEndpointOracleSID_; +void ConfigureBackupPlanRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) { + sourceEndpointInstanceType_ = sourceEndpointInstanceType; + setParameter(std::string("SourceEndpointInstanceType"), sourceEndpointInstanceType); } -void ConfigureBackupPlanRequest::setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID) -{ - sourceEndpointOracleSID_ = sourceEndpointOracleSID; - setParameter("SourceEndpointOracleSID", sourceEndpointOracleSID); +std::string ConfigureBackupPlanRequest::getBackupPlanName() const { + return backupPlanName_; } -std::string ConfigureBackupPlanRequest::getOSSBucketName()const -{ - return oSSBucketName_; +void ConfigureBackupPlanRequest::setBackupPlanName(const std::string &backupPlanName) { + backupPlanName_ = backupPlanName; + setParameter(std::string("BackupPlanName"), backupPlanName); } -void ConfigureBackupPlanRequest::setOSSBucketName(const std::string& oSSBucketName) -{ - oSSBucketName_ = oSSBucketName; - setParameter("OSSBucketName", oSSBucketName); +std::string ConfigureBackupPlanRequest::getSourceEndpointOracleSID() const { + return sourceEndpointOracleSID_; } -std::string ConfigureBackupPlanRequest::getBackupStrategyType()const -{ - return backupStrategyType_; +void ConfigureBackupPlanRequest::setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID) { + sourceEndpointOracleSID_ = sourceEndpointOracleSID; + setParameter(std::string("SourceEndpointOracleSID"), sourceEndpointOracleSID); } -void ConfigureBackupPlanRequest::setBackupStrategyType(const std::string& backupStrategyType) -{ - backupStrategyType_ = backupStrategyType; - setParameter("BackupStrategyType", backupStrategyType); +std::string ConfigureBackupPlanRequest::getOSSBucketName() const { + return oSSBucketName_; +} + +void ConfigureBackupPlanRequest::setOSSBucketName(const std::string &oSSBucketName) { + oSSBucketName_ = oSSBucketName; + setParameter(std::string("OSSBucketName"), oSSBucketName); +} + +std::string ConfigureBackupPlanRequest::getBackupStrategyType() const { + return backupStrategyType_; +} + +void ConfigureBackupPlanRequest::setBackupStrategyType(const std::string &backupStrategyType) { + backupStrategyType_ = backupStrategyType; + setParameter(std::string("BackupStrategyType"), backupStrategyType); } diff --git a/dbs/src/model/ConfigureBackupPlanResult.cc b/dbs/src/model/ConfigureBackupPlanResult.cc index ef6662e7f..92c095407 100644 --- a/dbs/src/model/ConfigureBackupPlanResult.cc +++ b/dbs/src/model/ConfigureBackupPlanResult.cc @@ -39,14 +39,14 @@ void ConfigureBackupPlanResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); diff --git a/dbs/src/model/CreateAndStartBackupPlanRequest.cc b/dbs/src/model/CreateAndStartBackupPlanRequest.cc index a43106138..98d699dba 100644 --- a/dbs/src/model/CreateAndStartBackupPlanRequest.cc +++ b/dbs/src/model/CreateAndStartBackupPlanRequest.cc @@ -1,480 +1,405 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dbs::Model::CreateAndStartBackupPlanRequest; - -CreateAndStartBackupPlanRequest::CreateAndStartBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "CreateAndStartBackupPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateAndStartBackupPlanRequest::~CreateAndStartBackupPlanRequest() -{} - -std::string CreateAndStartBackupPlanRequest::getDatabaseType()const -{ - return databaseType_; + */ + +#include + +using AlibabaCloud::Dbs::Model::CreateAndStartBackupPlanRequest; + +CreateAndStartBackupPlanRequest::CreateAndStartBackupPlanRequest() + : RpcServiceRequest("dbs", "2019-03-06", "CreateAndStartBackupPlan") { + setMethod(HttpRequest::Method::Post); +} + +CreateAndStartBackupPlanRequest::~CreateAndStartBackupPlanRequest() {} + +std::string CreateAndStartBackupPlanRequest::getDatabaseType() const { + return databaseType_; +} + +void CreateAndStartBackupPlanRequest::setDatabaseType(const std::string &databaseType) { + databaseType_ = databaseType; + setParameter(std::string("DatabaseType"), databaseType); +} + +long CreateAndStartBackupPlanRequest::getBackupGatewayId() const { + return backupGatewayId_; } -void CreateAndStartBackupPlanRequest::setDatabaseType(const std::string& databaseType) -{ - databaseType_ = databaseType; - setParameter("DatabaseType", databaseType); +void CreateAndStartBackupPlanRequest::setBackupGatewayId(long backupGatewayId) { + backupGatewayId_ = backupGatewayId; + setParameter(std::string("BackupGatewayId"), std::to_string(backupGatewayId)); } -long CreateAndStartBackupPlanRequest::getBackupGatewayId()const -{ - return backupGatewayId_; +std::string CreateAndStartBackupPlanRequest::getSourceEndpointUserName() const { + return sourceEndpointUserName_; } -void CreateAndStartBackupPlanRequest::setBackupGatewayId(long backupGatewayId) -{ - backupGatewayId_ = backupGatewayId; - setParameter("BackupGatewayId", std::to_string(backupGatewayId)); +void CreateAndStartBackupPlanRequest::setSourceEndpointUserName(const std::string &sourceEndpointUserName) { + sourceEndpointUserName_ = sourceEndpointUserName; + setParameter(std::string("SourceEndpointUserName"), sourceEndpointUserName); } -std::string CreateAndStartBackupPlanRequest::getSourceEndpointUserName()const -{ - return sourceEndpointUserName_; +std::string CreateAndStartBackupPlanRequest::getStorageType() const { + return storageType_; } -void CreateAndStartBackupPlanRequest::setSourceEndpointUserName(const std::string& sourceEndpointUserName) -{ - sourceEndpointUserName_ = sourceEndpointUserName; - setParameter("SourceEndpointUserName", sourceEndpointUserName); +void CreateAndStartBackupPlanRequest::setStorageType(const std::string &storageType) { + storageType_ = storageType; + setParameter(std::string("StorageType"), storageType); } -std::string CreateAndStartBackupPlanRequest::getStorageType()const -{ - return storageType_; +std::string CreateAndStartBackupPlanRequest::getDatabaseRegion() const { + return databaseRegion_; } -void CreateAndStartBackupPlanRequest::setStorageType(const std::string& storageType) -{ - storageType_ = storageType; - setParameter("StorageType", storageType); +void CreateAndStartBackupPlanRequest::setDatabaseRegion(const std::string &databaseRegion) { + databaseRegion_ = databaseRegion; + setParameter(std::string("DatabaseRegion"), databaseRegion); } -std::string CreateAndStartBackupPlanRequest::getDatabaseRegion()const -{ - return databaseRegion_; +std::string CreateAndStartBackupPlanRequest::getResourceGroupId() const { + return resourceGroupId_; } -void CreateAndStartBackupPlanRequest::setDatabaseRegion(const std::string& databaseRegion) -{ - databaseRegion_ = databaseRegion; - setParameter("DatabaseRegion", databaseRegion); +void CreateAndStartBackupPlanRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -std::string CreateAndStartBackupPlanRequest::getBackupStartTime()const -{ - return backupStartTime_; +std::string CreateAndStartBackupPlanRequest::getBackupStartTime() const { + return backupStartTime_; } -void CreateAndStartBackupPlanRequest::setBackupStartTime(const std::string& backupStartTime) -{ - backupStartTime_ = backupStartTime; - setParameter("BackupStartTime", backupStartTime); +void CreateAndStartBackupPlanRequest::setBackupStartTime(const std::string &backupStartTime) { + backupStartTime_ = backupStartTime; + setParameter(std::string("BackupStartTime"), backupStartTime); } -std::string CreateAndStartBackupPlanRequest::getSourceEndpointIP()const -{ - return sourceEndpointIP_; +std::string CreateAndStartBackupPlanRequest::getSourceEndpointIP() const { + return sourceEndpointIP_; } -void CreateAndStartBackupPlanRequest::setSourceEndpointIP(const std::string& sourceEndpointIP) -{ - sourceEndpointIP_ = sourceEndpointIP; - setParameter("SourceEndpointIP", sourceEndpointIP); +void CreateAndStartBackupPlanRequest::setSourceEndpointIP(const std::string &sourceEndpointIP) { + sourceEndpointIP_ = sourceEndpointIP; + setParameter(std::string("SourceEndpointIP"), sourceEndpointIP); } -std::string CreateAndStartBackupPlanRequest::getCrossRoleName()const -{ - return crossRoleName_; +std::string CreateAndStartBackupPlanRequest::getCrossRoleName() const { + return crossRoleName_; } -void CreateAndStartBackupPlanRequest::setCrossRoleName(const std::string& crossRoleName) -{ - crossRoleName_ = crossRoleName; - setParameter("CrossRoleName", crossRoleName); +void CreateAndStartBackupPlanRequest::setCrossRoleName(const std::string &crossRoleName) { + crossRoleName_ = crossRoleName; + setParameter(std::string("CrossRoleName"), crossRoleName); } -std::string CreateAndStartBackupPlanRequest::getBackupStorageType()const -{ - return backupStorageType_; +std::string CreateAndStartBackupPlanRequest::getBackupStorageType() const { + return backupStorageType_; } -void CreateAndStartBackupPlanRequest::setBackupStorageType(const std::string& backupStorageType) -{ - backupStorageType_ = backupStorageType; - setParameter("BackupStorageType", backupStorageType); +void CreateAndStartBackupPlanRequest::setBackupStorageType(const std::string &backupStorageType) { + backupStorageType_ = backupStorageType; + setParameter(std::string("BackupStorageType"), backupStorageType); } -int CreateAndStartBackupPlanRequest::getDuplicationArchivePeriod()const -{ - return duplicationArchivePeriod_; +int CreateAndStartBackupPlanRequest::getDuplicationArchivePeriod() const { + return duplicationArchivePeriod_; } -void CreateAndStartBackupPlanRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod) -{ - duplicationArchivePeriod_ = duplicationArchivePeriod; - setParameter("DuplicationArchivePeriod", std::to_string(duplicationArchivePeriod)); +void CreateAndStartBackupPlanRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod) { + duplicationArchivePeriod_ = duplicationArchivePeriod; + setParameter(std::string("DuplicationArchivePeriod"), std::to_string(duplicationArchivePeriod)); } -std::string CreateAndStartBackupPlanRequest::getPeriod()const -{ - return period_; +std::string CreateAndStartBackupPlanRequest::getPeriod() const { + return period_; } -void CreateAndStartBackupPlanRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +void CreateAndStartBackupPlanRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -int CreateAndStartBackupPlanRequest::getBackupLogIntervalSeconds()const -{ - return backupLogIntervalSeconds_; +int CreateAndStartBackupPlanRequest::getBackupLogIntervalSeconds() const { + return backupLogIntervalSeconds_; } -void CreateAndStartBackupPlanRequest::setBackupLogIntervalSeconds(int backupLogIntervalSeconds) -{ - backupLogIntervalSeconds_ = backupLogIntervalSeconds; - setParameter("BackupLogIntervalSeconds", std::to_string(backupLogIntervalSeconds)); +void CreateAndStartBackupPlanRequest::setBackupLogIntervalSeconds(int backupLogIntervalSeconds) { + backupLogIntervalSeconds_ = backupLogIntervalSeconds; + setParameter(std::string("BackupLogIntervalSeconds"), std::to_string(backupLogIntervalSeconds)); } -std::string CreateAndStartBackupPlanRequest::getFromApp()const -{ - return fromApp_; +std::string CreateAndStartBackupPlanRequest::getFromApp() const { + return fromApp_; } -void CreateAndStartBackupPlanRequest::setFromApp(const std::string& fromApp) -{ - fromApp_ = fromApp; - setParameter("FromApp", fromApp); +void CreateAndStartBackupPlanRequest::setFromApp(const std::string &fromApp) { + fromApp_ = fromApp; + setParameter(std::string("FromApp"), fromApp); } -std::string CreateAndStartBackupPlanRequest::getSourceEndpointPassword()const -{ - return sourceEndpointPassword_; +std::string CreateAndStartBackupPlanRequest::getSourceEndpointPassword() const { + return sourceEndpointPassword_; } -void CreateAndStartBackupPlanRequest::setSourceEndpointPassword(const std::string& sourceEndpointPassword) -{ - sourceEndpointPassword_ = sourceEndpointPassword; - setParameter("SourceEndpointPassword", sourceEndpointPassword); +void CreateAndStartBackupPlanRequest::setSourceEndpointPassword(const std::string &sourceEndpointPassword) { + sourceEndpointPassword_ = sourceEndpointPassword; + setParameter(std::string("SourceEndpointPassword"), sourceEndpointPassword); } -std::string CreateAndStartBackupPlanRequest::getOwnerId()const -{ - return ownerId_; +std::string CreateAndStartBackupPlanRequest::getOwnerId() const { + return ownerId_; } -void CreateAndStartBackupPlanRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +void CreateAndStartBackupPlanRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -std::string CreateAndStartBackupPlanRequest::getBackupMethod()const -{ - return backupMethod_; +std::string CreateAndStartBackupPlanRequest::getBackupMethod() const { + return backupMethod_; } -void CreateAndStartBackupPlanRequest::setBackupMethod(const std::string& backupMethod) -{ - backupMethod_ = backupMethod; - setParameter("BackupMethod", backupMethod); +void CreateAndStartBackupPlanRequest::setBackupMethod(const std::string &backupMethod) { + backupMethod_ = backupMethod; + setParameter(std::string("BackupMethod"), backupMethod); } -int CreateAndStartBackupPlanRequest::getBackupRetentionPeriod()const -{ - return backupRetentionPeriod_; +int CreateAndStartBackupPlanRequest::getBackupRetentionPeriod() const { + return backupRetentionPeriod_; } -void CreateAndStartBackupPlanRequest::setBackupRetentionPeriod(int backupRetentionPeriod) -{ - backupRetentionPeriod_ = backupRetentionPeriod; - setParameter("BackupRetentionPeriod", std::to_string(backupRetentionPeriod)); +void CreateAndStartBackupPlanRequest::setBackupRetentionPeriod(int backupRetentionPeriod) { + backupRetentionPeriod_ = backupRetentionPeriod; + setParameter(std::string("BackupRetentionPeriod"), std::to_string(backupRetentionPeriod)); } -std::string CreateAndStartBackupPlanRequest::getBackupPeriod()const -{ - return backupPeriod_; +std::string CreateAndStartBackupPlanRequest::getBackupPeriod() const { + return backupPeriod_; } -void CreateAndStartBackupPlanRequest::setBackupPeriod(const std::string& backupPeriod) -{ - backupPeriod_ = backupPeriod; - setParameter("BackupPeriod", backupPeriod); +void CreateAndStartBackupPlanRequest::setBackupPeriod(const std::string &backupPeriod) { + backupPeriod_ = backupPeriod; + setParameter(std::string("BackupPeriod"), backupPeriod); } -long CreateAndStartBackupPlanRequest::getBackupSpeedLimit()const -{ - return backupSpeedLimit_; +long CreateAndStartBackupPlanRequest::getBackupSpeedLimit() const { + return backupSpeedLimit_; } -void CreateAndStartBackupPlanRequest::setBackupSpeedLimit(long backupSpeedLimit) -{ - backupSpeedLimit_ = backupSpeedLimit; - setParameter("BackupSpeedLimit", std::to_string(backupSpeedLimit)); +void CreateAndStartBackupPlanRequest::setBackupSpeedLimit(long backupSpeedLimit) { + backupSpeedLimit_ = backupSpeedLimit; + setParameter(std::string("BackupSpeedLimit"), std::to_string(backupSpeedLimit)); } -std::string CreateAndStartBackupPlanRequest::getSourceEndpointInstanceType()const -{ - return sourceEndpointInstanceType_; +std::string CreateAndStartBackupPlanRequest::getSourceEndpointInstanceType() const { + return sourceEndpointInstanceType_; } -void CreateAndStartBackupPlanRequest::setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType) -{ - sourceEndpointInstanceType_ = sourceEndpointInstanceType; - setParameter("SourceEndpointInstanceType", sourceEndpointInstanceType); +void CreateAndStartBackupPlanRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) { + sourceEndpointInstanceType_ = sourceEndpointInstanceType; + setParameter(std::string("SourceEndpointInstanceType"), sourceEndpointInstanceType); } -std::string CreateAndStartBackupPlanRequest::getBackupPlanName()const -{ - return backupPlanName_; +std::string CreateAndStartBackupPlanRequest::getBackupPlanName() const { + return backupPlanName_; } -void CreateAndStartBackupPlanRequest::setBackupPlanName(const std::string& backupPlanName) -{ - backupPlanName_ = backupPlanName; - setParameter("BackupPlanName", backupPlanName); +void CreateAndStartBackupPlanRequest::setBackupPlanName(const std::string &backupPlanName) { + backupPlanName_ = backupPlanName; + setParameter(std::string("BackupPlanName"), backupPlanName); } -std::string CreateAndStartBackupPlanRequest::getOSSBucketName()const -{ - return oSSBucketName_; +std::string CreateAndStartBackupPlanRequest::getOSSBucketName() const { + return oSSBucketName_; } -void CreateAndStartBackupPlanRequest::setOSSBucketName(const std::string& oSSBucketName) -{ - oSSBucketName_ = oSSBucketName; - setParameter("OSSBucketName", oSSBucketName); +void CreateAndStartBackupPlanRequest::setOSSBucketName(const std::string &oSSBucketName) { + oSSBucketName_ = oSSBucketName; + setParameter(std::string("OSSBucketName"), oSSBucketName); } -std::string CreateAndStartBackupPlanRequest::getRegion()const -{ - return region_; +std::string CreateAndStartBackupPlanRequest::getRegion() const { + return region_; } -void CreateAndStartBackupPlanRequest::setRegion(const std::string& region) -{ - region_ = region; - setParameter("Region", region); +void CreateAndStartBackupPlanRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); } -std::string CreateAndStartBackupPlanRequest::getSourceEndpointRegion()const -{ - return sourceEndpointRegion_; +std::string CreateAndStartBackupPlanRequest::getSourceEndpointRegion() const { + return sourceEndpointRegion_; } -void CreateAndStartBackupPlanRequest::setSourceEndpointRegion(const std::string& sourceEndpointRegion) -{ - sourceEndpointRegion_ = sourceEndpointRegion; - setParameter("SourceEndpointRegion", sourceEndpointRegion); +void CreateAndStartBackupPlanRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) { + sourceEndpointRegion_ = sourceEndpointRegion; + setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion); } -std::string CreateAndStartBackupPlanRequest::getSourceEndpointInstanceID()const -{ - return sourceEndpointInstanceID_; +std::string CreateAndStartBackupPlanRequest::getSourceEndpointInstanceID() const { + return sourceEndpointInstanceID_; } -void CreateAndStartBackupPlanRequest::setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID) -{ - sourceEndpointInstanceID_ = sourceEndpointInstanceID; - setParameter("SourceEndpointInstanceID", sourceEndpointInstanceID); +void CreateAndStartBackupPlanRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) { + sourceEndpointInstanceID_ = sourceEndpointInstanceID; + setParameter(std::string("SourceEndpointInstanceID"), sourceEndpointInstanceID); } -std::string CreateAndStartBackupPlanRequest::getClientToken()const -{ - return clientToken_; +std::string CreateAndStartBackupPlanRequest::getClientToken() const { + return clientToken_; } -void CreateAndStartBackupPlanRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +void CreateAndStartBackupPlanRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -std::string CreateAndStartBackupPlanRequest::getBackupPlanId()const -{ - return backupPlanId_; +std::string CreateAndStartBackupPlanRequest::getBackupPlanId() const { + return backupPlanId_; } -void CreateAndStartBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +void CreateAndStartBackupPlanRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -std::string CreateAndStartBackupPlanRequest::getInstanceClass()const -{ - return instanceClass_; +std::string CreateAndStartBackupPlanRequest::getInstanceClass() const { + return instanceClass_; } -void CreateAndStartBackupPlanRequest::setInstanceClass(const std::string& instanceClass) -{ - instanceClass_ = instanceClass; - setParameter("InstanceClass", instanceClass); +void CreateAndStartBackupPlanRequest::setInstanceClass(const std::string &instanceClass) { + instanceClass_ = instanceClass; + setParameter(std::string("InstanceClass"), instanceClass); } -std::string CreateAndStartBackupPlanRequest::getSourceEndpointDatabaseName()const -{ - return sourceEndpointDatabaseName_; +std::string CreateAndStartBackupPlanRequest::getSourceEndpointDatabaseName() const { + return sourceEndpointDatabaseName_; } -void CreateAndStartBackupPlanRequest::setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName) -{ - sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; - setParameter("SourceEndpointDatabaseName", sourceEndpointDatabaseName); +void CreateAndStartBackupPlanRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) { + sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; + setParameter(std::string("SourceEndpointDatabaseName"), sourceEndpointDatabaseName); } -int CreateAndStartBackupPlanRequest::getDuplicationInfrequentAccessPeriod()const -{ - return duplicationInfrequentAccessPeriod_; +int CreateAndStartBackupPlanRequest::getDuplicationInfrequentAccessPeriod() const { + return duplicationInfrequentAccessPeriod_; } -void CreateAndStartBackupPlanRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod) -{ - duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod; - setParameter("DuplicationInfrequentAccessPeriod", std::to_string(duplicationInfrequentAccessPeriod)); +void CreateAndStartBackupPlanRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod) { + duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod; + setParameter(std::string("DuplicationInfrequentAccessPeriod"), std::to_string(duplicationInfrequentAccessPeriod)); } -std::string CreateAndStartBackupPlanRequest::getInstanceType()const -{ - return instanceType_; +std::string CreateAndStartBackupPlanRequest::getInstanceType() const { + return instanceType_; } -void CreateAndStartBackupPlanRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +void CreateAndStartBackupPlanRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -bool CreateAndStartBackupPlanRequest::getEnableBackupLog()const -{ - return enableBackupLog_; +bool CreateAndStartBackupPlanRequest::getEnableBackupLog() const { + return enableBackupLog_; } -void CreateAndStartBackupPlanRequest::setEnableBackupLog(bool enableBackupLog) -{ - enableBackupLog_ = enableBackupLog; - setParameter("EnableBackupLog", enableBackupLog ? "true" : "false"); +void CreateAndStartBackupPlanRequest::setEnableBackupLog(bool enableBackupLog) { + enableBackupLog_ = enableBackupLog; + setParameter(std::string("EnableBackupLog"), enableBackupLog ? "true" : "false"); } -std::string CreateAndStartBackupPlanRequest::getCrossAliyunId()const -{ - return crossAliyunId_; +std::string CreateAndStartBackupPlanRequest::getCrossAliyunId() const { + return crossAliyunId_; } -void CreateAndStartBackupPlanRequest::setCrossAliyunId(const std::string& crossAliyunId) -{ - crossAliyunId_ = crossAliyunId; - setParameter("CrossAliyunId", crossAliyunId); +void CreateAndStartBackupPlanRequest::setCrossAliyunId(const std::string &crossAliyunId) { + crossAliyunId_ = crossAliyunId; + setParameter(std::string("CrossAliyunId"), crossAliyunId); } -std::string CreateAndStartBackupPlanRequest::getBackupObjects()const -{ - return backupObjects_; +std::string CreateAndStartBackupPlanRequest::getBackupObjects() const { + return backupObjects_; } -void CreateAndStartBackupPlanRequest::setBackupObjects(const std::string& backupObjects) -{ - backupObjects_ = backupObjects; - setParameter("BackupObjects", backupObjects); +void CreateAndStartBackupPlanRequest::setBackupObjects(const std::string &backupObjects) { + backupObjects_ = backupObjects; + setParameter(std::string("BackupObjects"), backupObjects); } -long CreateAndStartBackupPlanRequest::getBackupRateLimit()const -{ - return backupRateLimit_; +long CreateAndStartBackupPlanRequest::getBackupRateLimit() const { + return backupRateLimit_; } -void CreateAndStartBackupPlanRequest::setBackupRateLimit(long backupRateLimit) -{ - backupRateLimit_ = backupRateLimit; - setParameter("BackupRateLimit", std::to_string(backupRateLimit)); +void CreateAndStartBackupPlanRequest::setBackupRateLimit(long backupRateLimit) { + backupRateLimit_ = backupRateLimit; + setParameter(std::string("BackupRateLimit"), std::to_string(backupRateLimit)); } -int CreateAndStartBackupPlanRequest::getUsedTime()const -{ - return usedTime_; +int CreateAndStartBackupPlanRequest::getUsedTime() const { + return usedTime_; } -void CreateAndStartBackupPlanRequest::setUsedTime(int usedTime) -{ - usedTime_ = usedTime; - setParameter("UsedTime", std::to_string(usedTime)); +void CreateAndStartBackupPlanRequest::setUsedTime(int usedTime) { + usedTime_ = usedTime; + setParameter(std::string("UsedTime"), std::to_string(usedTime)); } -int CreateAndStartBackupPlanRequest::getSourceEndpointPort()const -{ - return sourceEndpointPort_; +int CreateAndStartBackupPlanRequest::getSourceEndpointPort() const { + return sourceEndpointPort_; } -void CreateAndStartBackupPlanRequest::setSourceEndpointPort(int sourceEndpointPort) -{ - sourceEndpointPort_ = sourceEndpointPort; - setParameter("SourceEndpointPort", std::to_string(sourceEndpointPort)); +void CreateAndStartBackupPlanRequest::setSourceEndpointPort(int sourceEndpointPort) { + sourceEndpointPort_ = sourceEndpointPort; + setParameter(std::string("SourceEndpointPort"), std::to_string(sourceEndpointPort)); } -std::string CreateAndStartBackupPlanRequest::getStorageRegion()const -{ - return storageRegion_; +std::string CreateAndStartBackupPlanRequest::getStorageRegion() const { + return storageRegion_; } -void CreateAndStartBackupPlanRequest::setStorageRegion(const std::string& storageRegion) -{ - storageRegion_ = storageRegion; - setParameter("StorageRegion", storageRegion); +void CreateAndStartBackupPlanRequest::setStorageRegion(const std::string &storageRegion) { + storageRegion_ = storageRegion; + setParameter(std::string("StorageRegion"), storageRegion); } -std::string CreateAndStartBackupPlanRequest::getSourceEndpointOracleSID()const -{ - return sourceEndpointOracleSID_; +std::string CreateAndStartBackupPlanRequest::getSourceEndpointOracleSID() const { + return sourceEndpointOracleSID_; } -void CreateAndStartBackupPlanRequest::setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID) -{ - sourceEndpointOracleSID_ = sourceEndpointOracleSID; - setParameter("SourceEndpointOracleSID", sourceEndpointOracleSID); +void CreateAndStartBackupPlanRequest::setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID) { + sourceEndpointOracleSID_ = sourceEndpointOracleSID; + setParameter(std::string("SourceEndpointOracleSID"), sourceEndpointOracleSID); } -std::string CreateAndStartBackupPlanRequest::getBackupStrategyType()const -{ - return backupStrategyType_; +std::string CreateAndStartBackupPlanRequest::getBackupStrategyType() const { + return backupStrategyType_; } -void CreateAndStartBackupPlanRequest::setBackupStrategyType(const std::string& backupStrategyType) -{ - backupStrategyType_ = backupStrategyType; - setParameter("BackupStrategyType", backupStrategyType); +void CreateAndStartBackupPlanRequest::setBackupStrategyType(const std::string &backupStrategyType) { + backupStrategyType_ = backupStrategyType; + setParameter(std::string("BackupStrategyType"), backupStrategyType); } -std::string CreateAndStartBackupPlanRequest::getPayType()const -{ - return payType_; +std::string CreateAndStartBackupPlanRequest::getPayType() const { + return payType_; } -void CreateAndStartBackupPlanRequest::setPayType(const std::string& payType) -{ - payType_ = payType; - setParameter("PayType", payType); +void CreateAndStartBackupPlanRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); } diff --git a/dbs/src/model/CreateAndStartBackupPlanResult.cc b/dbs/src/model/CreateAndStartBackupPlanResult.cc index 10ebef0fe..c410f9b80 100644 --- a/dbs/src/model/CreateAndStartBackupPlanResult.cc +++ b/dbs/src/model/CreateAndStartBackupPlanResult.cc @@ -39,18 +39,18 @@ void CreateAndStartBackupPlanResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["BackupPlanId"].isNull()) - backupPlanId_ = value["BackupPlanId"].asString(); if(!value["CreateBackupSet"].isNull()) createBackupSet_ = value["CreateBackupSet"].asString() == "true"; + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); + if(!value["BackupPlanId"].isNull()) + backupPlanId_ = value["BackupPlanId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); diff --git a/dbs/src/model/CreateBackupPlanRequest.cc b/dbs/src/model/CreateBackupPlanRequest.cc index e88605f21..5dbc55c3b 100644 --- a/dbs/src/model/CreateBackupPlanRequest.cc +++ b/dbs/src/model/CreateBackupPlanRequest.cc @@ -1,183 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dbs::Model::CreateBackupPlanRequest; - -CreateBackupPlanRequest::CreateBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "CreateBackupPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateBackupPlanRequest::~CreateBackupPlanRequest() -{} - -std::string CreateBackupPlanRequest::getDatabaseType()const -{ - return databaseType_; + */ + +#include + +using AlibabaCloud::Dbs::Model::CreateBackupPlanRequest; + +CreateBackupPlanRequest::CreateBackupPlanRequest() + : RpcServiceRequest("dbs", "2019-03-06", "CreateBackupPlan") { + setMethod(HttpRequest::Method::Post); } -void CreateBackupPlanRequest::setDatabaseType(const std::string& databaseType) -{ - databaseType_ = databaseType; - setParameter("DatabaseType", databaseType); +CreateBackupPlanRequest::~CreateBackupPlanRequest() {} + +std::string CreateBackupPlanRequest::getDatabaseType() const { + return databaseType_; } -std::string CreateBackupPlanRequest::getClientToken()const -{ - return clientToken_; +void CreateBackupPlanRequest::setDatabaseType(const std::string &databaseType) { + databaseType_ = databaseType; + setParameter(std::string("DatabaseType"), databaseType); } -void CreateBackupPlanRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateBackupPlanRequest::getClientToken() const { + return clientToken_; } -std::string CreateBackupPlanRequest::getInstanceClass()const -{ - return instanceClass_; +void CreateBackupPlanRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateBackupPlanRequest::setInstanceClass(const std::string& instanceClass) -{ - instanceClass_ = instanceClass; - setParameter("InstanceClass", instanceClass); +std::string CreateBackupPlanRequest::getInstanceClass() const { + return instanceClass_; } -std::string CreateBackupPlanRequest::getStorageType()const -{ - return storageType_; +void CreateBackupPlanRequest::setInstanceClass(const std::string &instanceClass) { + instanceClass_ = instanceClass; + setParameter(std::string("InstanceClass"), instanceClass); } -void CreateBackupPlanRequest::setStorageType(const std::string& storageType) -{ - storageType_ = storageType; - setParameter("StorageType", storageType); +std::string CreateBackupPlanRequest::getStorageType() const { + return storageType_; } -std::string CreateBackupPlanRequest::getDatabaseRegion()const -{ - return databaseRegion_; +void CreateBackupPlanRequest::setStorageType(const std::string &storageType) { + storageType_ = storageType; + setParameter(std::string("StorageType"), storageType); } -void CreateBackupPlanRequest::setDatabaseRegion(const std::string& databaseRegion) -{ - databaseRegion_ = databaseRegion; - setParameter("DatabaseRegion", databaseRegion); +std::string CreateBackupPlanRequest::getDatabaseRegion() const { + return databaseRegion_; } -std::string CreateBackupPlanRequest::getInstanceType()const -{ - return instanceType_; +void CreateBackupPlanRequest::setDatabaseRegion(const std::string &databaseRegion) { + databaseRegion_ = databaseRegion; + setParameter(std::string("DatabaseRegion"), databaseRegion); } -void CreateBackupPlanRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string CreateBackupPlanRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateBackupPlanRequest::getPeriod()const -{ - return period_; +void CreateBackupPlanRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateBackupPlanRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +std::string CreateBackupPlanRequest::getInstanceType() const { + return instanceType_; } -std::string CreateBackupPlanRequest::getFromApp()const -{ - return fromApp_; +void CreateBackupPlanRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void CreateBackupPlanRequest::setFromApp(const std::string& fromApp) -{ - fromApp_ = fromApp; - setParameter("FromApp", fromApp); +std::string CreateBackupPlanRequest::getPeriod() const { + return period_; } -std::string CreateBackupPlanRequest::getOwnerId()const -{ - return ownerId_; +void CreateBackupPlanRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -void CreateBackupPlanRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string CreateBackupPlanRequest::getFromApp() const { + return fromApp_; } -int CreateBackupPlanRequest::getUsedTime()const -{ - return usedTime_; +void CreateBackupPlanRequest::setFromApp(const std::string &fromApp) { + fromApp_ = fromApp; + setParameter(std::string("FromApp"), fromApp); } -void CreateBackupPlanRequest::setUsedTime(int usedTime) -{ - usedTime_ = usedTime; - setParameter("UsedTime", std::to_string(usedTime)); +std::string CreateBackupPlanRequest::getOwnerId() const { + return ownerId_; } -std::string CreateBackupPlanRequest::getBackupMethod()const -{ - return backupMethod_; +void CreateBackupPlanRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void CreateBackupPlanRequest::setBackupMethod(const std::string& backupMethod) -{ - backupMethod_ = backupMethod; - setParameter("BackupMethod", backupMethod); +int CreateBackupPlanRequest::getUsedTime() const { + return usedTime_; } -std::string CreateBackupPlanRequest::getStorageRegion()const -{ - return storageRegion_; +void CreateBackupPlanRequest::setUsedTime(int usedTime) { + usedTime_ = usedTime; + setParameter(std::string("UsedTime"), std::to_string(usedTime)); } -void CreateBackupPlanRequest::setStorageRegion(const std::string& storageRegion) -{ - storageRegion_ = storageRegion; - setParameter("StorageRegion", storageRegion); +std::string CreateBackupPlanRequest::getBackupMethod() const { + return backupMethod_; } -std::string CreateBackupPlanRequest::getRegion()const -{ - return region_; +void CreateBackupPlanRequest::setBackupMethod(const std::string &backupMethod) { + backupMethod_ = backupMethod; + setParameter(std::string("BackupMethod"), backupMethod); } -void CreateBackupPlanRequest::setRegion(const std::string& region) -{ - region_ = region; - setParameter("Region", region); +std::string CreateBackupPlanRequest::getStorageRegion() const { + return storageRegion_; } -std::string CreateBackupPlanRequest::getPayType()const -{ - return payType_; +void CreateBackupPlanRequest::setStorageRegion(const std::string &storageRegion) { + storageRegion_ = storageRegion; + setParameter(std::string("StorageRegion"), storageRegion); } -void CreateBackupPlanRequest::setPayType(const std::string& payType) -{ - payType_ = payType; - setParameter("PayType", payType); +std::string CreateBackupPlanRequest::getRegion() const { + return region_; +} + +void CreateBackupPlanRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + +std::string CreateBackupPlanRequest::getPayType() const { + return payType_; +} + +void CreateBackupPlanRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); } diff --git a/dbs/src/model/CreateBackupPlanResult.cc b/dbs/src/model/CreateBackupPlanResult.cc index 1b6988154..103aaf1c9 100644 --- a/dbs/src/model/CreateBackupPlanResult.cc +++ b/dbs/src/model/CreateBackupPlanResult.cc @@ -39,14 +39,14 @@ void CreateBackupPlanResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["OrderId"].isNull()) diff --git a/dbs/src/model/CreateFullBackupSetDownloadRequest.cc b/dbs/src/model/CreateFullBackupSetDownloadRequest.cc index 0badde550..71966f222 100644 --- a/dbs/src/model/CreateFullBackupSetDownloadRequest.cc +++ b/dbs/src/model/CreateFullBackupSetDownloadRequest.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::Dbs::Model::CreateFullBackupSetDownloadRequest; - -CreateFullBackupSetDownloadRequest::CreateFullBackupSetDownloadRequest() : - RpcServiceRequest("dbs", "2019-03-06", "CreateFullBackupSetDownload") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateFullBackupSetDownloadRequest::~CreateFullBackupSetDownloadRequest() -{} - -std::string CreateFullBackupSetDownloadRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::CreateFullBackupSetDownloadRequest; + +CreateFullBackupSetDownloadRequest::CreateFullBackupSetDownloadRequest() + : RpcServiceRequest("dbs", "2019-03-06", "CreateFullBackupSetDownload") { + setMethod(HttpRequest::Method::Post); } -void CreateFullBackupSetDownloadRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +CreateFullBackupSetDownloadRequest::~CreateFullBackupSetDownloadRequest() {} + +std::string CreateFullBackupSetDownloadRequest::getClientToken() const { + return clientToken_; } -std::string CreateFullBackupSetDownloadRequest::getBackupSetId()const -{ - return backupSetId_; +void CreateFullBackupSetDownloadRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateFullBackupSetDownloadRequest::setBackupSetId(const std::string& backupSetId) -{ - backupSetId_ = backupSetId; - setParameter("BackupSetId", backupSetId); +std::string CreateFullBackupSetDownloadRequest::getBackupSetId() const { + return backupSetId_; } -std::string CreateFullBackupSetDownloadRequest::getOwnerId()const -{ - return ownerId_; +void CreateFullBackupSetDownloadRequest::setBackupSetId(const std::string &backupSetId) { + backupSetId_ = backupSetId; + setParameter(std::string("BackupSetId"), backupSetId); } -void CreateFullBackupSetDownloadRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string CreateFullBackupSetDownloadRequest::getOwnerId() const { + return ownerId_; } -std::string CreateFullBackupSetDownloadRequest::getBackupSetDataFormat()const -{ - return backupSetDataFormat_; +void CreateFullBackupSetDownloadRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void CreateFullBackupSetDownloadRequest::setBackupSetDataFormat(const std::string& backupSetDataFormat) -{ - backupSetDataFormat_ = backupSetDataFormat; - setParameter("BackupSetDataFormat", backupSetDataFormat); +std::string CreateFullBackupSetDownloadRequest::getBackupSetDataFormat() const { + return backupSetDataFormat_; +} + +void CreateFullBackupSetDownloadRequest::setBackupSetDataFormat(const std::string &backupSetDataFormat) { + backupSetDataFormat_ = backupSetDataFormat; + setParameter(std::string("BackupSetDataFormat"), backupSetDataFormat); } diff --git a/dbs/src/model/CreateFullBackupSetDownloadResult.cc b/dbs/src/model/CreateFullBackupSetDownloadResult.cc index e4e6c8530..d3dccfafa 100644 --- a/dbs/src/model/CreateFullBackupSetDownloadResult.cc +++ b/dbs/src/model/CreateFullBackupSetDownloadResult.cc @@ -39,14 +39,14 @@ void CreateFullBackupSetDownloadResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupSetDownloadTaskId"].isNull()) backupSetDownloadTaskId_ = value["BackupSetDownloadTaskId"].asString(); diff --git a/dbs/src/model/CreateGetDBListFromAgentTaskRequest.cc b/dbs/src/model/CreateGetDBListFromAgentTaskRequest.cc index 7f00b1a3e..a82b59746 100644 --- a/dbs/src/model/CreateGetDBListFromAgentTaskRequest.cc +++ b/dbs/src/model/CreateGetDBListFromAgentTaskRequest.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::Dbs::Model::CreateGetDBListFromAgentTaskRequest; - -CreateGetDBListFromAgentTaskRequest::CreateGetDBListFromAgentTaskRequest() : - RpcServiceRequest("dbs", "2019-03-06", "CreateGetDBListFromAgentTask") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateGetDBListFromAgentTaskRequest::~CreateGetDBListFromAgentTaskRequest() -{} - -std::string CreateGetDBListFromAgentTaskRequest::getSourceEndpointRegion()const -{ - return sourceEndpointRegion_; + */ + +#include + +using AlibabaCloud::Dbs::Model::CreateGetDBListFromAgentTaskRequest; + +CreateGetDBListFromAgentTaskRequest::CreateGetDBListFromAgentTaskRequest() + : RpcServiceRequest("dbs", "2019-03-06", "CreateGetDBListFromAgentTask") { + setMethod(HttpRequest::Method::Post); } -void CreateGetDBListFromAgentTaskRequest::setSourceEndpointRegion(const std::string& sourceEndpointRegion) -{ - sourceEndpointRegion_ = sourceEndpointRegion; - setParameter("SourceEndpointRegion", sourceEndpointRegion); +CreateGetDBListFromAgentTaskRequest::~CreateGetDBListFromAgentTaskRequest() {} + +std::string CreateGetDBListFromAgentTaskRequest::getSourceEndpointRegion() const { + return sourceEndpointRegion_; } -long CreateGetDBListFromAgentTaskRequest::getBackupGatewayId()const -{ - return backupGatewayId_; +void CreateGetDBListFromAgentTaskRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) { + sourceEndpointRegion_ = sourceEndpointRegion; + setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion); } -void CreateGetDBListFromAgentTaskRequest::setBackupGatewayId(long backupGatewayId) -{ - backupGatewayId_ = backupGatewayId; - setParameter("BackupGatewayId", std::to_string(backupGatewayId)); +long CreateGetDBListFromAgentTaskRequest::getBackupGatewayId() const { + return backupGatewayId_; } -std::string CreateGetDBListFromAgentTaskRequest::getDatabaseType()const -{ - return databaseType_; +void CreateGetDBListFromAgentTaskRequest::setBackupGatewayId(long backupGatewayId) { + backupGatewayId_ = backupGatewayId; + setParameter(std::string("BackupGatewayId"), std::to_string(backupGatewayId)); } -void CreateGetDBListFromAgentTaskRequest::setDatabaseType(const std::string& databaseType) -{ - databaseType_ = databaseType; - setParameter("DatabaseType", databaseType); +std::string CreateGetDBListFromAgentTaskRequest::getDatabaseType() const { + return databaseType_; } -std::string CreateGetDBListFromAgentTaskRequest::getClientToken()const -{ - return clientToken_; +void CreateGetDBListFromAgentTaskRequest::setDatabaseType(const std::string &databaseType) { + databaseType_ = databaseType; + setParameter(std::string("DatabaseType"), databaseType); } -void CreateGetDBListFromAgentTaskRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateGetDBListFromAgentTaskRequest::getClientToken() const { + return clientToken_; } -std::string CreateGetDBListFromAgentTaskRequest::getOwnerId()const -{ - return ownerId_; +void CreateGetDBListFromAgentTaskRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateGetDBListFromAgentTaskRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string CreateGetDBListFromAgentTaskRequest::getOwnerId() const { + return ownerId_; } -int CreateGetDBListFromAgentTaskRequest::getSourceEndpointPort()const -{ - return sourceEndpointPort_; +void CreateGetDBListFromAgentTaskRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void CreateGetDBListFromAgentTaskRequest::setSourceEndpointPort(int sourceEndpointPort) -{ - sourceEndpointPort_ = sourceEndpointPort; - setParameter("SourceEndpointPort", std::to_string(sourceEndpointPort)); +int CreateGetDBListFromAgentTaskRequest::getSourceEndpointPort() const { + return sourceEndpointPort_; } -std::string CreateGetDBListFromAgentTaskRequest::getSourceEndpointIP()const -{ - return sourceEndpointIP_; +void CreateGetDBListFromAgentTaskRequest::setSourceEndpointPort(int sourceEndpointPort) { + sourceEndpointPort_ = sourceEndpointPort; + setParameter(std::string("SourceEndpointPort"), std::to_string(sourceEndpointPort)); } -void CreateGetDBListFromAgentTaskRequest::setSourceEndpointIP(const std::string& sourceEndpointIP) -{ - sourceEndpointIP_ = sourceEndpointIP; - setParameter("SourceEndpointIP", sourceEndpointIP); +std::string CreateGetDBListFromAgentTaskRequest::getSourceEndpointIP() const { + return sourceEndpointIP_; +} + +void CreateGetDBListFromAgentTaskRequest::setSourceEndpointIP(const std::string &sourceEndpointIP) { + sourceEndpointIP_ = sourceEndpointIP; + setParameter(std::string("SourceEndpointIP"), sourceEndpointIP); } diff --git a/dbs/src/model/CreateGetDBListFromAgentTaskResult.cc b/dbs/src/model/CreateGetDBListFromAgentTaskResult.cc index 7379ef159..b734d03fa 100644 --- a/dbs/src/model/CreateGetDBListFromAgentTaskResult.cc +++ b/dbs/src/model/CreateGetDBListFromAgentTaskResult.cc @@ -39,14 +39,14 @@ void CreateGetDBListFromAgentTaskResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["TaskId"].isNull()) taskId_ = std::stol(value["TaskId"].asString()); diff --git a/dbs/src/model/CreateIncrementBackupSetDownloadRequest.cc b/dbs/src/model/CreateIncrementBackupSetDownloadRequest.cc index fac92562d..c2cd12591 100644 --- a/dbs/src/model/CreateIncrementBackupSetDownloadRequest.cc +++ b/dbs/src/model/CreateIncrementBackupSetDownloadRequest.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::Dbs::Model::CreateIncrementBackupSetDownloadRequest; - -CreateIncrementBackupSetDownloadRequest::CreateIncrementBackupSetDownloadRequest() : - RpcServiceRequest("dbs", "2019-03-06", "CreateIncrementBackupSetDownload") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateIncrementBackupSetDownloadRequest::~CreateIncrementBackupSetDownloadRequest() -{} - -std::string CreateIncrementBackupSetDownloadRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::CreateIncrementBackupSetDownloadRequest; + +CreateIncrementBackupSetDownloadRequest::CreateIncrementBackupSetDownloadRequest() + : RpcServiceRequest("dbs", "2019-03-06", "CreateIncrementBackupSetDownload") { + setMethod(HttpRequest::Method::Post); } -void CreateIncrementBackupSetDownloadRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +CreateIncrementBackupSetDownloadRequest::~CreateIncrementBackupSetDownloadRequest() {} + +std::string CreateIncrementBackupSetDownloadRequest::getClientToken() const { + return clientToken_; } -std::string CreateIncrementBackupSetDownloadRequest::getBackupSetName()const -{ - return backupSetName_; +void CreateIncrementBackupSetDownloadRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateIncrementBackupSetDownloadRequest::setBackupSetName(const std::string& backupSetName) -{ - backupSetName_ = backupSetName; - setParameter("BackupSetName", backupSetName); +std::string CreateIncrementBackupSetDownloadRequest::getBackupSetName() const { + return backupSetName_; } -std::string CreateIncrementBackupSetDownloadRequest::getBackupSetId()const -{ - return backupSetId_; +void CreateIncrementBackupSetDownloadRequest::setBackupSetName(const std::string &backupSetName) { + backupSetName_ = backupSetName; + setParameter(std::string("BackupSetName"), backupSetName); } -void CreateIncrementBackupSetDownloadRequest::setBackupSetId(const std::string& backupSetId) -{ - backupSetId_ = backupSetId; - setParameter("BackupSetId", backupSetId); +std::string CreateIncrementBackupSetDownloadRequest::getBackupSetId() const { + return backupSetId_; } -std::string CreateIncrementBackupSetDownloadRequest::getOwnerId()const -{ - return ownerId_; +void CreateIncrementBackupSetDownloadRequest::setBackupSetId(const std::string &backupSetId) { + backupSetId_ = backupSetId; + setParameter(std::string("BackupSetId"), backupSetId); } -void CreateIncrementBackupSetDownloadRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string CreateIncrementBackupSetDownloadRequest::getOwnerId() const { + return ownerId_; } -std::string CreateIncrementBackupSetDownloadRequest::getBackupSetDataFormat()const -{ - return backupSetDataFormat_; +void CreateIncrementBackupSetDownloadRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void CreateIncrementBackupSetDownloadRequest::setBackupSetDataFormat(const std::string& backupSetDataFormat) -{ - backupSetDataFormat_ = backupSetDataFormat; - setParameter("BackupSetDataFormat", backupSetDataFormat); +std::string CreateIncrementBackupSetDownloadRequest::getBackupSetDataFormat() const { + return backupSetDataFormat_; +} + +void CreateIncrementBackupSetDownloadRequest::setBackupSetDataFormat(const std::string &backupSetDataFormat) { + backupSetDataFormat_ = backupSetDataFormat; + setParameter(std::string("BackupSetDataFormat"), backupSetDataFormat); } diff --git a/dbs/src/model/CreateIncrementBackupSetDownloadResult.cc b/dbs/src/model/CreateIncrementBackupSetDownloadResult.cc index 08465f640..7295eb2b6 100644 --- a/dbs/src/model/CreateIncrementBackupSetDownloadResult.cc +++ b/dbs/src/model/CreateIncrementBackupSetDownloadResult.cc @@ -39,14 +39,14 @@ void CreateIncrementBackupSetDownloadResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupSetDownloadTaskId"].isNull()) backupSetDownloadTaskId_ = value["BackupSetDownloadTaskId"].asString(); diff --git a/dbs/src/model/CreateRestoreTaskRequest.cc b/dbs/src/model/CreateRestoreTaskRequest.cc index 02f89a97d..20d953756 100644 --- a/dbs/src/model/CreateRestoreTaskRequest.cc +++ b/dbs/src/model/CreateRestoreTaskRequest.cc @@ -1,271 +1,225 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dbs::Model::CreateRestoreTaskRequest; - -CreateRestoreTaskRequest::CreateRestoreTaskRequest() : - RpcServiceRequest("dbs", "2019-03-06", "CreateRestoreTask") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateRestoreTaskRequest::~CreateRestoreTaskRequest() -{} - -long CreateRestoreTaskRequest::getBackupGatewayId()const -{ - return backupGatewayId_; + */ + +#include + +using AlibabaCloud::Dbs::Model::CreateRestoreTaskRequest; + +CreateRestoreTaskRequest::CreateRestoreTaskRequest() + : RpcServiceRequest("dbs", "2019-03-06", "CreateRestoreTask") { + setMethod(HttpRequest::Method::Post); } -void CreateRestoreTaskRequest::setBackupGatewayId(long backupGatewayId) -{ - backupGatewayId_ = backupGatewayId; - setParameter("BackupGatewayId", std::to_string(backupGatewayId)); +CreateRestoreTaskRequest::~CreateRestoreTaskRequest() {} + +long CreateRestoreTaskRequest::getBackupGatewayId() const { + return backupGatewayId_; } -std::string CreateRestoreTaskRequest::getDestinationEndpointInstanceType()const -{ - return destinationEndpointInstanceType_; +void CreateRestoreTaskRequest::setBackupGatewayId(long backupGatewayId) { + backupGatewayId_ = backupGatewayId; + setParameter(std::string("BackupGatewayId"), std::to_string(backupGatewayId)); } -void CreateRestoreTaskRequest::setDestinationEndpointInstanceType(const std::string& destinationEndpointInstanceType) -{ - destinationEndpointInstanceType_ = destinationEndpointInstanceType; - setParameter("DestinationEndpointInstanceType", destinationEndpointInstanceType); +std::string CreateRestoreTaskRequest::getDestinationEndpointInstanceType() const { + return destinationEndpointInstanceType_; } -std::string CreateRestoreTaskRequest::getClientToken()const -{ - return clientToken_; +void CreateRestoreTaskRequest::setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType) { + destinationEndpointInstanceType_ = destinationEndpointInstanceType; + setParameter(std::string("DestinationEndpointInstanceType"), destinationEndpointInstanceType); } -void CreateRestoreTaskRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateRestoreTaskRequest::getClientToken() const { + return clientToken_; } -std::string CreateRestoreTaskRequest::getBackupPlanId()const -{ - return backupPlanId_; +void CreateRestoreTaskRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateRestoreTaskRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string CreateRestoreTaskRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string CreateRestoreTaskRequest::getDestinationEndpointRegion()const -{ - return destinationEndpointRegion_; +void CreateRestoreTaskRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void CreateRestoreTaskRequest::setDestinationEndpointRegion(const std::string& destinationEndpointRegion) -{ - destinationEndpointRegion_ = destinationEndpointRegion; - setParameter("DestinationEndpointRegion", destinationEndpointRegion); +std::string CreateRestoreTaskRequest::getDestinationEndpointRegion() const { + return destinationEndpointRegion_; } -std::string CreateRestoreTaskRequest::getCrossRoleName()const -{ - return crossRoleName_; +void CreateRestoreTaskRequest::setDestinationEndpointRegion(const std::string &destinationEndpointRegion) { + destinationEndpointRegion_ = destinationEndpointRegion; + setParameter(std::string("DestinationEndpointRegion"), destinationEndpointRegion); } -void CreateRestoreTaskRequest::setCrossRoleName(const std::string& crossRoleName) -{ - crossRoleName_ = crossRoleName; - setParameter("CrossRoleName", crossRoleName); +std::string CreateRestoreTaskRequest::getCrossRoleName() const { + return crossRoleName_; } -std::string CreateRestoreTaskRequest::getDestinationEndpointUserName()const -{ - return destinationEndpointUserName_; +void CreateRestoreTaskRequest::setCrossRoleName(const std::string &crossRoleName) { + crossRoleName_ = crossRoleName; + setParameter(std::string("CrossRoleName"), crossRoleName); } -void CreateRestoreTaskRequest::setDestinationEndpointUserName(const std::string& destinationEndpointUserName) -{ - destinationEndpointUserName_ = destinationEndpointUserName; - setParameter("DestinationEndpointUserName", destinationEndpointUserName); +std::string CreateRestoreTaskRequest::getDestinationEndpointUserName() const { + return destinationEndpointUserName_; } -std::string CreateRestoreTaskRequest::getRestoreObjects()const -{ - return restoreObjects_; +void CreateRestoreTaskRequest::setDestinationEndpointUserName(const std::string &destinationEndpointUserName) { + destinationEndpointUserName_ = destinationEndpointUserName; + setParameter(std::string("DestinationEndpointUserName"), destinationEndpointUserName); } -void CreateRestoreTaskRequest::setRestoreObjects(const std::string& restoreObjects) -{ - restoreObjects_ = restoreObjects; - setParameter("RestoreObjects", restoreObjects); +std::string CreateRestoreTaskRequest::getRestoreObjects() const { + return restoreObjects_; } -std::string CreateRestoreTaskRequest::getRestoreTaskName()const -{ - return restoreTaskName_; +void CreateRestoreTaskRequest::setRestoreObjects(const std::string &restoreObjects) { + restoreObjects_ = restoreObjects; + setParameter(std::string("RestoreObjects"), restoreObjects); } -void CreateRestoreTaskRequest::setRestoreTaskName(const std::string& restoreTaskName) -{ - restoreTaskName_ = restoreTaskName; - setParameter("RestoreTaskName", restoreTaskName); +std::string CreateRestoreTaskRequest::getRestoreTaskName() const { + return restoreTaskName_; } -std::string CreateRestoreTaskRequest::getRestoreHome()const -{ - return restoreHome_; +void CreateRestoreTaskRequest::setRestoreTaskName(const std::string &restoreTaskName) { + restoreTaskName_ = restoreTaskName; + setParameter(std::string("RestoreTaskName"), restoreTaskName); } -void CreateRestoreTaskRequest::setRestoreHome(const std::string& restoreHome) -{ - restoreHome_ = restoreHome; - setParameter("RestoreHome", restoreHome); +std::string CreateRestoreTaskRequest::getRestoreHome() const { + return restoreHome_; } -std::string CreateRestoreTaskRequest::getDestinationEndpointOracleSID()const -{ - return destinationEndpointOracleSID_; +void CreateRestoreTaskRequest::setRestoreHome(const std::string &restoreHome) { + restoreHome_ = restoreHome; + setParameter(std::string("RestoreHome"), restoreHome); } -void CreateRestoreTaskRequest::setDestinationEndpointOracleSID(const std::string& destinationEndpointOracleSID) -{ - destinationEndpointOracleSID_ = destinationEndpointOracleSID; - setParameter("DestinationEndpointOracleSID", destinationEndpointOracleSID); +std::string CreateRestoreTaskRequest::getDestinationEndpointOracleSID() const { + return destinationEndpointOracleSID_; } -long CreateRestoreTaskRequest::getRestoreTime()const -{ - return restoreTime_; +void CreateRestoreTaskRequest::setDestinationEndpointOracleSID(const std::string &destinationEndpointOracleSID) { + destinationEndpointOracleSID_ = destinationEndpointOracleSID; + setParameter(std::string("DestinationEndpointOracleSID"), destinationEndpointOracleSID); } -void CreateRestoreTaskRequest::setRestoreTime(long restoreTime) -{ - restoreTime_ = restoreTime; - setParameter("RestoreTime", std::to_string(restoreTime)); +long CreateRestoreTaskRequest::getRestoreTime() const { + return restoreTime_; } -std::string CreateRestoreTaskRequest::getCrossAliyunId()const -{ - return crossAliyunId_; +void CreateRestoreTaskRequest::setRestoreTime(long restoreTime) { + restoreTime_ = restoreTime; + setParameter(std::string("RestoreTime"), std::to_string(restoreTime)); } -void CreateRestoreTaskRequest::setCrossAliyunId(const std::string& crossAliyunId) -{ - crossAliyunId_ = crossAliyunId; - setParameter("CrossAliyunId", crossAliyunId); +std::string CreateRestoreTaskRequest::getCrossAliyunId() const { + return crossAliyunId_; } -std::string CreateRestoreTaskRequest::getDestinationEndpointInstanceID()const -{ - return destinationEndpointInstanceID_; +void CreateRestoreTaskRequest::setCrossAliyunId(const std::string &crossAliyunId) { + crossAliyunId_ = crossAliyunId; + setParameter(std::string("CrossAliyunId"), crossAliyunId); } -void CreateRestoreTaskRequest::setDestinationEndpointInstanceID(const std::string& destinationEndpointInstanceID) -{ - destinationEndpointInstanceID_ = destinationEndpointInstanceID; - setParameter("DestinationEndpointInstanceID", destinationEndpointInstanceID); +std::string CreateRestoreTaskRequest::getDestinationEndpointInstanceID() const { + return destinationEndpointInstanceID_; } -int CreateRestoreTaskRequest::getDestinationEndpointPort()const -{ - return destinationEndpointPort_; +void CreateRestoreTaskRequest::setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID) { + destinationEndpointInstanceID_ = destinationEndpointInstanceID; + setParameter(std::string("DestinationEndpointInstanceID"), destinationEndpointInstanceID); } -void CreateRestoreTaskRequest::setDestinationEndpointPort(int destinationEndpointPort) -{ - destinationEndpointPort_ = destinationEndpointPort; - setParameter("DestinationEndpointPort", std::to_string(destinationEndpointPort)); +int CreateRestoreTaskRequest::getDestinationEndpointPort() const { + return destinationEndpointPort_; } -std::string CreateRestoreTaskRequest::getBackupSetId()const -{ - return backupSetId_; +void CreateRestoreTaskRequest::setDestinationEndpointPort(int destinationEndpointPort) { + destinationEndpointPort_ = destinationEndpointPort; + setParameter(std::string("DestinationEndpointPort"), std::to_string(destinationEndpointPort)); } -void CreateRestoreTaskRequest::setBackupSetId(const std::string& backupSetId) -{ - backupSetId_ = backupSetId; - setParameter("BackupSetId", backupSetId); +std::string CreateRestoreTaskRequest::getBackupSetId() const { + return backupSetId_; } -std::string CreateRestoreTaskRequest::getOwnerId()const -{ - return ownerId_; +void CreateRestoreTaskRequest::setBackupSetId(const std::string &backupSetId) { + backupSetId_ = backupSetId; + setParameter(std::string("BackupSetId"), backupSetId); } -void CreateRestoreTaskRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string CreateRestoreTaskRequest::getOwnerId() const { + return ownerId_; } -std::string CreateRestoreTaskRequest::getRestoreDir()const -{ - return restoreDir_; +void CreateRestoreTaskRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void CreateRestoreTaskRequest::setRestoreDir(const std::string& restoreDir) -{ - restoreDir_ = restoreDir; - setParameter("RestoreDir", restoreDir); +std::string CreateRestoreTaskRequest::getRestoreDir() const { + return restoreDir_; } -std::string CreateRestoreTaskRequest::getDestinationEndpointIP()const -{ - return destinationEndpointIP_; +void CreateRestoreTaskRequest::setRestoreDir(const std::string &restoreDir) { + restoreDir_ = restoreDir; + setParameter(std::string("RestoreDir"), restoreDir); } -void CreateRestoreTaskRequest::setDestinationEndpointIP(const std::string& destinationEndpointIP) -{ - destinationEndpointIP_ = destinationEndpointIP; - setParameter("DestinationEndpointIP", destinationEndpointIP); +std::string CreateRestoreTaskRequest::getDestinationEndpointIP() const { + return destinationEndpointIP_; } -std::string CreateRestoreTaskRequest::getDestinationEndpointDatabaseName()const -{ - return destinationEndpointDatabaseName_; +void CreateRestoreTaskRequest::setDestinationEndpointIP(const std::string &destinationEndpointIP) { + destinationEndpointIP_ = destinationEndpointIP; + setParameter(std::string("DestinationEndpointIP"), destinationEndpointIP); } -void CreateRestoreTaskRequest::setDestinationEndpointDatabaseName(const std::string& destinationEndpointDatabaseName) -{ - destinationEndpointDatabaseName_ = destinationEndpointDatabaseName; - setParameter("DestinationEndpointDatabaseName", destinationEndpointDatabaseName); +std::string CreateRestoreTaskRequest::getDestinationEndpointDatabaseName() const { + return destinationEndpointDatabaseName_; } -std::string CreateRestoreTaskRequest::getDuplicateConflict()const -{ - return duplicateConflict_; +void CreateRestoreTaskRequest::setDestinationEndpointDatabaseName(const std::string &destinationEndpointDatabaseName) { + destinationEndpointDatabaseName_ = destinationEndpointDatabaseName; + setParameter(std::string("DestinationEndpointDatabaseName"), destinationEndpointDatabaseName); } -void CreateRestoreTaskRequest::setDuplicateConflict(const std::string& duplicateConflict) -{ - duplicateConflict_ = duplicateConflict; - setParameter("DuplicateConflict", duplicateConflict); +std::string CreateRestoreTaskRequest::getDuplicateConflict() const { + return duplicateConflict_; } -std::string CreateRestoreTaskRequest::getDestinationEndpointPassword()const -{ - return destinationEndpointPassword_; +void CreateRestoreTaskRequest::setDuplicateConflict(const std::string &duplicateConflict) { + duplicateConflict_ = duplicateConflict; + setParameter(std::string("DuplicateConflict"), duplicateConflict); } -void CreateRestoreTaskRequest::setDestinationEndpointPassword(const std::string& destinationEndpointPassword) -{ - destinationEndpointPassword_ = destinationEndpointPassword; - setParameter("DestinationEndpointPassword", destinationEndpointPassword); +std::string CreateRestoreTaskRequest::getDestinationEndpointPassword() const { + return destinationEndpointPassword_; +} + +void CreateRestoreTaskRequest::setDestinationEndpointPassword(const std::string &destinationEndpointPassword) { + destinationEndpointPassword_ = destinationEndpointPassword; + setParameter(std::string("DestinationEndpointPassword"), destinationEndpointPassword); } diff --git a/dbs/src/model/CreateRestoreTaskResult.cc b/dbs/src/model/CreateRestoreTaskResult.cc index 0048ab76e..de4b7b7cc 100644 --- a/dbs/src/model/CreateRestoreTaskResult.cc +++ b/dbs/src/model/CreateRestoreTaskResult.cc @@ -39,14 +39,14 @@ void CreateRestoreTaskResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["RestoreTaskId"].isNull()) restoreTaskId_ = value["RestoreTaskId"].asString(); diff --git a/dbs/src/model/DescribeBackupGatewayListRequest.cc b/dbs/src/model/DescribeBackupGatewayListRequest.cc index 41e105a28..fe209c5f3 100644 --- a/dbs/src/model/DescribeBackupGatewayListRequest.cc +++ b/dbs/src/model/DescribeBackupGatewayListRequest.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::Dbs::Model::DescribeBackupGatewayListRequest; - -DescribeBackupGatewayListRequest::DescribeBackupGatewayListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupGatewayList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBackupGatewayListRequest::~DescribeBackupGatewayListRequest() -{} - -std::string DescribeBackupGatewayListRequest::getIdentifier()const -{ - return identifier_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeBackupGatewayListRequest; + +DescribeBackupGatewayListRequest::DescribeBackupGatewayListRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupGatewayList") { + setMethod(HttpRequest::Method::Post); } -void DescribeBackupGatewayListRequest::setIdentifier(const std::string& identifier) -{ - identifier_ = identifier; - setParameter("Identifier", identifier); +DescribeBackupGatewayListRequest::~DescribeBackupGatewayListRequest() {} + +std::string DescribeBackupGatewayListRequest::getIdentifier() const { + return identifier_; } -std::string DescribeBackupGatewayListRequest::getClientToken()const -{ - return clientToken_; +void DescribeBackupGatewayListRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("Identifier"), identifier); } -void DescribeBackupGatewayListRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribeBackupGatewayListRequest::getClientToken() const { + return clientToken_; } -int DescribeBackupGatewayListRequest::getPageNum()const -{ - return pageNum_; +void DescribeBackupGatewayListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeBackupGatewayListRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int DescribeBackupGatewayListRequest::getPageNum() const { + return pageNum_; } -std::string DescribeBackupGatewayListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBackupGatewayListRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void DescribeBackupGatewayListRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeBackupGatewayListRequest::getOwnerId() const { + return ownerId_; } -int DescribeBackupGatewayListRequest::getPageSize()const -{ - return pageSize_; +void DescribeBackupGatewayListRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void DescribeBackupGatewayListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeBackupGatewayListRequest::getPageSize() const { + return pageSize_; } -std::string DescribeBackupGatewayListRequest::getRegion()const -{ - return region_; +void DescribeBackupGatewayListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeBackupGatewayListRequest::setRegion(const std::string& region) -{ - region_ = region; - setParameter("Region", region); +std::string DescribeBackupGatewayListRequest::getRegion() const { + return region_; +} + +void DescribeBackupGatewayListRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); } diff --git a/dbs/src/model/DescribeBackupGatewayListResult.cc b/dbs/src/model/DescribeBackupGatewayListResult.cc index 3244320f4..2feaa05c5 100644 --- a/dbs/src/model/DescribeBackupGatewayListResult.cc +++ b/dbs/src/model/DescribeBackupGatewayListResult.cc @@ -43,57 +43,57 @@ void DescribeBackupGatewayListResult::parse(const std::string &payload) for (auto valueItemsBackupGateway : allItemsNode) { BackupGateway itemsObject; - if(!valueItemsBackupGateway["BackupGatewayId"].isNull()) - itemsObject.backupGatewayId = valueItemsBackupGateway["BackupGatewayId"].asString(); - if(!valueItemsBackupGateway["SourceEndpointInternetIP"].isNull()) - itemsObject.sourceEndpointInternetIP = valueItemsBackupGateway["SourceEndpointInternetIP"].asString(); - if(!valueItemsBackupGateway["SourceEndpointIntranetIP"].isNull()) - itemsObject.sourceEndpointIntranetIP = valueItemsBackupGateway["SourceEndpointIntranetIP"].asString(); - if(!valueItemsBackupGateway["SourceEndpointHostname"].isNull()) - itemsObject.sourceEndpointHostname = valueItemsBackupGateway["SourceEndpointHostname"].asString(); - if(!valueItemsBackupGateway["BackupGatewayStatus"].isNull()) - itemsObject.backupGatewayStatus = valueItemsBackupGateway["BackupGatewayStatus"].asString(); - if(!valueItemsBackupGateway["LastHeartbeatTime"].isNull()) - itemsObject.lastHeartbeatTime = std::stol(valueItemsBackupGateway["LastHeartbeatTime"].asString()); - if(!valueItemsBackupGateway["BackupGatewayCreateTime"].isNull()) - itemsObject.backupGatewayCreateTime = std::stol(valueItemsBackupGateway["BackupGatewayCreateTime"].asString()); - if(!valueItemsBackupGateway["Region"].isNull()) - itemsObject.region = valueItemsBackupGateway["Region"].asString(); if(!valueItemsBackupGateway["DisplayName"].isNull()) itemsObject.displayName = valueItemsBackupGateway["DisplayName"].asString(); + if(!valueItemsBackupGateway["BackupGatewayCreateTime"].isNull()) + itemsObject.backupGatewayCreateTime = std::stol(valueItemsBackupGateway["BackupGatewayCreateTime"].asString()); + if(!valueItemsBackupGateway["BackupGatewayId"].isNull()) + itemsObject.backupGatewayId = valueItemsBackupGateway["BackupGatewayId"].asString(); + if(!valueItemsBackupGateway["Region"].isNull()) + itemsObject.region = valueItemsBackupGateway["Region"].asString(); if(!valueItemsBackupGateway["Identifier"].isNull()) itemsObject.identifier = valueItemsBackupGateway["Identifier"].asString(); + if(!valueItemsBackupGateway["SourceEndpointInternetIP"].isNull()) + itemsObject.sourceEndpointInternetIP = valueItemsBackupGateway["SourceEndpointInternetIP"].asString(); + if(!valueItemsBackupGateway["BackupGatewayStatus"].isNull()) + itemsObject.backupGatewayStatus = valueItemsBackupGateway["BackupGatewayStatus"].asString(); + if(!valueItemsBackupGateway["SourceEndpointIntranetIP"].isNull()) + itemsObject.sourceEndpointIntranetIP = valueItemsBackupGateway["SourceEndpointIntranetIP"].asString(); + if(!valueItemsBackupGateway["LastHeartbeatTime"].isNull()) + itemsObject.lastHeartbeatTime = std::stol(valueItemsBackupGateway["LastHeartbeatTime"].asString()); + if(!valueItemsBackupGateway["SourceEndpointHostname"].isNull()) + itemsObject.sourceEndpointHostname = valueItemsBackupGateway["SourceEndpointHostname"].asString(); items_.push_back(itemsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNum"].isNull()) pageNum_ = std::stoi(value["PageNum"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["TotalElements"].isNull()) totalElements_ = std::stoi(value["TotalElements"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); } -int DescribeBackupGatewayListResult::getPageSize()const -{ - return pageSize_; -} - int DescribeBackupGatewayListResult::getPageNum()const { return pageNum_; } +int DescribeBackupGatewayListResult::getPageSize()const +{ + return pageSize_; +} + int DescribeBackupGatewayListResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/DescribeBackupPlanBillingRequest.cc b/dbs/src/model/DescribeBackupPlanBillingRequest.cc index c2260fe76..f325e4368 100644 --- a/dbs/src/model/DescribeBackupPlanBillingRequest.cc +++ b/dbs/src/model/DescribeBackupPlanBillingRequest.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::Dbs::Model::DescribeBackupPlanBillingRequest; - -DescribeBackupPlanBillingRequest::DescribeBackupPlanBillingRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupPlanBilling") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBackupPlanBillingRequest::~DescribeBackupPlanBillingRequest() -{} - -std::string DescribeBackupPlanBillingRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeBackupPlanBillingRequest; + +DescribeBackupPlanBillingRequest::DescribeBackupPlanBillingRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupPlanBilling") { + setMethod(HttpRequest::Method::Post); } -void DescribeBackupPlanBillingRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DescribeBackupPlanBillingRequest::~DescribeBackupPlanBillingRequest() {} + +std::string DescribeBackupPlanBillingRequest::getClientToken() const { + return clientToken_; } -std::string DescribeBackupPlanBillingRequest::getBackupPlanId()const -{ - return backupPlanId_; +void DescribeBackupPlanBillingRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeBackupPlanBillingRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string DescribeBackupPlanBillingRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string DescribeBackupPlanBillingRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBackupPlanBillingRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void DescribeBackupPlanBillingRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeBackupPlanBillingRequest::getOwnerId() const { + return ownerId_; } -bool DescribeBackupPlanBillingRequest::getShowStorageType()const -{ - return showStorageType_; +void DescribeBackupPlanBillingRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void DescribeBackupPlanBillingRequest::setShowStorageType(bool showStorageType) -{ - showStorageType_ = showStorageType; - setParameter("ShowStorageType", showStorageType ? "true" : "false"); +bool DescribeBackupPlanBillingRequest::getShowStorageType() const { + return showStorageType_; +} + +void DescribeBackupPlanBillingRequest::setShowStorageType(bool showStorageType) { + showStorageType_ = showStorageType; + setParameter(std::string("ShowStorageType"), showStorageType ? "true" : "false"); } diff --git a/dbs/src/model/DescribeBackupPlanBillingResult.cc b/dbs/src/model/DescribeBackupPlanBillingResult.cc index f0b252546..b0e769aec 100644 --- a/dbs/src/model/DescribeBackupPlanBillingResult.cc +++ b/dbs/src/model/DescribeBackupPlanBillingResult.cc @@ -40,42 +40,44 @@ void DescribeBackupPlanBillingResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto itemNode = value["Item"]; - if(!itemNode["BuySpec"].isNull()) - item_.buySpec = itemNode["BuySpec"].asString(); - if(!itemNode["BuyChargeType"].isNull()) - item_.buyChargeType = itemNode["BuyChargeType"].asString(); + if(!itemNode["BuyCreateTimestamp"].isNull()) + item_.buyCreateTimestamp = std::stol(itemNode["BuyCreateTimestamp"].asString()); + if(!itemNode["FullStorageSize"].isNull()) + item_.fullStorageSize = std::stol(itemNode["FullStorageSize"].asString()); if(!itemNode["BuyExpiredTimestamp"].isNull()) item_.buyExpiredTimestamp = std::stol(itemNode["BuyExpiredTimestamp"].asString()); + if(!itemNode["BuySpec"].isNull()) + item_.buySpec = itemNode["BuySpec"].asString(); + if(!itemNode["QuotaEndTimestamp"].isNull()) + item_.quotaEndTimestamp = std::stol(itemNode["QuotaEndTimestamp"].asString()); + if(!itemNode["IsExpired"].isNull()) + item_.isExpired = itemNode["IsExpired"].asString() == "true"; + if(!itemNode["QuotaStartTimestamp"].isNull()) + item_.quotaStartTimestamp = std::stol(itemNode["QuotaStartTimestamp"].asString()); if(!itemNode["TotalFreeBytes"].isNull()) item_.totalFreeBytes = std::stol(itemNode["TotalFreeBytes"].asString()); if(!itemNode["PaiedBytes"].isNull()) item_.paiedBytes = std::stol(itemNode["PaiedBytes"].asString()); if(!itemNode["UsedFullBytes"].isNull()) item_.usedFullBytes = std::stol(itemNode["UsedFullBytes"].asString()); - if(!itemNode["UsedIncrementBytes"].isNull()) - item_.usedIncrementBytes = std::stol(itemNode["UsedIncrementBytes"].asString()); - if(!itemNode["QuotaStartTimestamp"].isNull()) - item_.quotaStartTimestamp = std::stol(itemNode["QuotaStartTimestamp"].asString()); - if(!itemNode["QuotaEndTimestamp"].isNull()) - item_.quotaEndTimestamp = std::stol(itemNode["QuotaEndTimestamp"].asString()); - if(!itemNode["BuyCreateTimestamp"].isNull()) - item_.buyCreateTimestamp = std::stol(itemNode["BuyCreateTimestamp"].asString()); - if(!itemNode["FullStorageSize"].isNull()) - item_.fullStorageSize = std::stol(itemNode["FullStorageSize"].asString()); - if(!itemNode["ContStorageSize"].isNull()) - item_.contStorageSize = std::stol(itemNode["ContStorageSize"].asString()); - if(!itemNode["IsExpired"].isNull()) - item_.isExpired = itemNode["IsExpired"].asString() == "true"; if(!itemNode["IsFreeBytesUnlimited"].isNull()) item_.isFreeBytesUnlimited = itemNode["IsFreeBytesUnlimited"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); + if(!itemNode["ContStorageSize"].isNull()) + item_.contStorageSize = std::stol(itemNode["ContStorageSize"].asString()); + if(!itemNode["BuyChargeType"].isNull()) + item_.buyChargeType = itemNode["BuyChargeType"].asString(); + if(!itemNode["UsedIncrementBytes"].isNull()) + item_.usedIncrementBytes = std::stol(itemNode["UsedIncrementBytes"].asString()); + if(!itemNode["ResourceGroupId"].isNull()) + item_.resourceGroupId = itemNode["ResourceGroupId"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); } diff --git a/dbs/src/model/DescribeBackupPlanListRequest.cc b/dbs/src/model/DescribeBackupPlanListRequest.cc index 7bebda87e..6909e7dda 100644 --- a/dbs/src/model/DescribeBackupPlanListRequest.cc +++ b/dbs/src/model/DescribeBackupPlanListRequest.cc @@ -1,117 +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::Dbs::Model::DescribeBackupPlanListRequest; - -DescribeBackupPlanListRequest::DescribeBackupPlanListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupPlanList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBackupPlanListRequest::~DescribeBackupPlanListRequest() -{} - -std::string DescribeBackupPlanListRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeBackupPlanListRequest; + +DescribeBackupPlanListRequest::DescribeBackupPlanListRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupPlanList") { + setMethod(HttpRequest::Method::Post); } -void DescribeBackupPlanListRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DescribeBackupPlanListRequest::~DescribeBackupPlanListRequest() {} + +std::string DescribeBackupPlanListRequest::getClientToken() const { + return clientToken_; } -std::string DescribeBackupPlanListRequest::getBackupPlanId()const -{ - return backupPlanId_; +void DescribeBackupPlanListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeBackupPlanListRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string DescribeBackupPlanListRequest::getBackupPlanId() const { + return backupPlanId_; } -int DescribeBackupPlanListRequest::getPageNum()const -{ - return pageNum_; +void DescribeBackupPlanListRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void DescribeBackupPlanListRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int DescribeBackupPlanListRequest::getPageNum() const { + return pageNum_; } -std::string DescribeBackupPlanListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBackupPlanListRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void DescribeBackupPlanListRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeBackupPlanListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeBackupPlanListRequest::getBackupPlanStatus()const -{ - return backupPlanStatus_; +void DescribeBackupPlanListRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void DescribeBackupPlanListRequest::setBackupPlanStatus(const std::string& backupPlanStatus) -{ - backupPlanStatus_ = backupPlanStatus; - setParameter("BackupPlanStatus", backupPlanStatus); +std::string DescribeBackupPlanListRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeBackupPlanListRequest::getBackupPlanName()const -{ - return backupPlanName_; +void DescribeBackupPlanListRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeBackupPlanListRequest::setBackupPlanName(const std::string& backupPlanName) -{ - backupPlanName_ = backupPlanName; - setParameter("BackupPlanName", backupPlanName); +std::string DescribeBackupPlanListRequest::getBackupPlanStatus() const { + return backupPlanStatus_; } -int DescribeBackupPlanListRequest::getPageSize()const -{ - return pageSize_; +void DescribeBackupPlanListRequest::setBackupPlanStatus(const std::string &backupPlanStatus) { + backupPlanStatus_ = backupPlanStatus; + setParameter(std::string("BackupPlanStatus"), backupPlanStatus); } -void DescribeBackupPlanListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string DescribeBackupPlanListRequest::getBackupPlanName() const { + return backupPlanName_; } -std::string DescribeBackupPlanListRequest::getRegion()const -{ - return region_; +void DescribeBackupPlanListRequest::setBackupPlanName(const std::string &backupPlanName) { + backupPlanName_ = backupPlanName; + setParameter(std::string("BackupPlanName"), backupPlanName); } -void DescribeBackupPlanListRequest::setRegion(const std::string& region) -{ - region_ = region; - setParameter("Region", region); +int DescribeBackupPlanListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeBackupPlanListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeBackupPlanListRequest::getRegion() const { + return region_; +} + +void DescribeBackupPlanListRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); } diff --git a/dbs/src/model/DescribeBackupPlanListResult.cc b/dbs/src/model/DescribeBackupPlanListResult.cc index 1dc3e0e9b..ef3a2046e 100644 --- a/dbs/src/model/DescribeBackupPlanListResult.cc +++ b/dbs/src/model/DescribeBackupPlanListResult.cc @@ -43,107 +43,109 @@ void DescribeBackupPlanListResult::parse(const std::string &payload) for (auto valueItemsBackupPlanDetail : allItemsNode) { BackupPlanDetail itemsObject; - if(!valueItemsBackupPlanDetail["BackupPlanId"].isNull()) - itemsObject.backupPlanId = valueItemsBackupPlanDetail["BackupPlanId"].asString(); - if(!valueItemsBackupPlanDetail["SourceEndpointInstanceType"].isNull()) - itemsObject.sourceEndpointInstanceType = valueItemsBackupPlanDetail["SourceEndpointInstanceType"].asString(); - if(!valueItemsBackupPlanDetail["SourceEndpointRegion"].isNull()) - itemsObject.sourceEndpointRegion = valueItemsBackupPlanDetail["SourceEndpointRegion"].asString(); - if(!valueItemsBackupPlanDetail["SourceEndpointInstanceID"].isNull()) - itemsObject.sourceEndpointInstanceID = valueItemsBackupPlanDetail["SourceEndpointInstanceID"].asString(); - if(!valueItemsBackupPlanDetail["SourceEndpointIpPort"].isNull()) - itemsObject.sourceEndpointIpPort = valueItemsBackupPlanDetail["SourceEndpointIpPort"].asString(); - if(!valueItemsBackupPlanDetail["SourceEndpointDatabaseName"].isNull()) - itemsObject.sourceEndpointDatabaseName = valueItemsBackupPlanDetail["SourceEndpointDatabaseName"].asString(); - if(!valueItemsBackupPlanDetail["SourceEndpointUserName"].isNull()) - itemsObject.sourceEndpointUserName = valueItemsBackupPlanDetail["SourceEndpointUserName"].asString(); - if(!valueItemsBackupPlanDetail["BackupObjects"].isNull()) - itemsObject.backupObjects = valueItemsBackupPlanDetail["BackupObjects"].asString(); - if(!valueItemsBackupPlanDetail["BackupGatewayId"].isNull()) - itemsObject.backupGatewayId = std::stol(valueItemsBackupPlanDetail["BackupGatewayId"].asString()); - if(!valueItemsBackupPlanDetail["OSSBucketRegion"].isNull()) - itemsObject.oSSBucketRegion = valueItemsBackupPlanDetail["OSSBucketRegion"].asString(); - if(!valueItemsBackupPlanDetail["OSSBucketName"].isNull()) - itemsObject.oSSBucketName = valueItemsBackupPlanDetail["OSSBucketName"].asString(); - if(!valueItemsBackupPlanDetail["BackupPeriod"].isNull()) - itemsObject.backupPeriod = valueItemsBackupPlanDetail["BackupPeriod"].asString(); - if(!valueItemsBackupPlanDetail["BackupStartTime"].isNull()) - itemsObject.backupStartTime = valueItemsBackupPlanDetail["BackupStartTime"].asString(); - if(!valueItemsBackupPlanDetail["EnableBackupLog"].isNull()) - itemsObject.enableBackupLog = valueItemsBackupPlanDetail["EnableBackupLog"].asString() == "true"; - if(!valueItemsBackupPlanDetail["BackupRetentionPeriod"].isNull()) - itemsObject.backupRetentionPeriod = std::stoi(valueItemsBackupPlanDetail["BackupRetentionPeriod"].asString()); - if(!valueItemsBackupPlanDetail["DuplicationInfrequentAccessPeriod"].isNull()) - itemsObject.duplicationInfrequentAccessPeriod = std::stoi(valueItemsBackupPlanDetail["DuplicationInfrequentAccessPeriod"].asString()); - if(!valueItemsBackupPlanDetail["DuplicationArchivePeriod"].isNull()) - itemsObject.duplicationArchivePeriod = std::stoi(valueItemsBackupPlanDetail["DuplicationArchivePeriod"].asString()); - if(!valueItemsBackupPlanDetail["BackupPlanName"].isNull()) - itemsObject.backupPlanName = valueItemsBackupPlanDetail["BackupPlanName"].asString(); - if(!valueItemsBackupPlanDetail["SourceEndpointOracleSID"].isNull()) - itemsObject.sourceEndpointOracleSID = valueItemsBackupPlanDetail["SourceEndpointOracleSID"].asString(); - if(!valueItemsBackupPlanDetail["InstanceClass"].isNull()) - itemsObject.instanceClass = valueItemsBackupPlanDetail["InstanceClass"].asString(); - if(!valueItemsBackupPlanDetail["BackupMethod"].isNull()) - itemsObject.backupMethod = valueItemsBackupPlanDetail["BackupMethod"].asString(); - if(!valueItemsBackupPlanDetail["BackupPlanCreateTime"].isNull()) - itemsObject.backupPlanCreateTime = std::stol(valueItemsBackupPlanDetail["BackupPlanCreateTime"].asString()); - if(!valueItemsBackupPlanDetail["BackupPlanStatus"].isNull()) - itemsObject.backupPlanStatus = valueItemsBackupPlanDetail["BackupPlanStatus"].asString(); - if(!valueItemsBackupPlanDetail["BeginTimestampForRestore"].isNull()) - itemsObject.beginTimestampForRestore = std::stol(valueItemsBackupPlanDetail["BeginTimestampForRestore"].asString()); - if(!valueItemsBackupPlanDetail["EndTimestampForRestore"].isNull()) - itemsObject.endTimestampForRestore = std::stol(valueItemsBackupPlanDetail["EndTimestampForRestore"].asString()); - if(!valueItemsBackupPlanDetail["OpenBackupSetAutoDownload"].isNull()) - itemsObject.openBackupSetAutoDownload = valueItemsBackupPlanDetail["OpenBackupSetAutoDownload"].asString() == "true"; - if(!valueItemsBackupPlanDetail["BackupSetDownloadTargetType"].isNull()) - itemsObject.backupSetDownloadTargetType = valueItemsBackupPlanDetail["BackupSetDownloadTargetType"].asString(); - if(!valueItemsBackupPlanDetail["BackupSetDownloadDir"].isNull()) - itemsObject.backupSetDownloadDir = valueItemsBackupPlanDetail["BackupSetDownloadDir"].asString(); - if(!valueItemsBackupPlanDetail["BackupSetDownloadGatewayId"].isNull()) - itemsObject.backupSetDownloadGatewayId = std::stol(valueItemsBackupPlanDetail["BackupSetDownloadGatewayId"].asString()); - if(!valueItemsBackupPlanDetail["BackupSetDownloadFullDataFormat"].isNull()) - itemsObject.backupSetDownloadFullDataFormat = valueItemsBackupPlanDetail["BackupSetDownloadFullDataFormat"].asString(); - if(!valueItemsBackupPlanDetail["BackupSetDownloadIncrementDataFormat"].isNull()) - itemsObject.backupSetDownloadIncrementDataFormat = valueItemsBackupPlanDetail["BackupSetDownloadIncrementDataFormat"].asString(); - if(!valueItemsBackupPlanDetail["CrossAliyunId"].isNull()) - itemsObject.crossAliyunId = valueItemsBackupPlanDetail["CrossAliyunId"].asString(); if(!valueItemsBackupPlanDetail["CrossRoleName"].isNull()) itemsObject.crossRoleName = valueItemsBackupPlanDetail["CrossRoleName"].asString(); + if(!valueItemsBackupPlanDetail["SourceEndpointInstanceType"].isNull()) + itemsObject.sourceEndpointInstanceType = valueItemsBackupPlanDetail["SourceEndpointInstanceType"].asString(); + if(!valueItemsBackupPlanDetail["BackupSetDownloadDir"].isNull()) + itemsObject.backupSetDownloadDir = valueItemsBackupPlanDetail["BackupSetDownloadDir"].asString(); + if(!valueItemsBackupPlanDetail["SourceEndpointIpPort"].isNull()) + itemsObject.sourceEndpointIpPort = valueItemsBackupPlanDetail["SourceEndpointIpPort"].asString(); + if(!valueItemsBackupPlanDetail["CrossAliyunId"].isNull()) + itemsObject.crossAliyunId = valueItemsBackupPlanDetail["CrossAliyunId"].asString(); + if(!valueItemsBackupPlanDetail["DuplicationArchivePeriod"].isNull()) + itemsObject.duplicationArchivePeriod = std::stoi(valueItemsBackupPlanDetail["DuplicationArchivePeriod"].asString()); + if(!valueItemsBackupPlanDetail["BackupPlanId"].isNull()) + itemsObject.backupPlanId = valueItemsBackupPlanDetail["BackupPlanId"].asString(); + if(!valueItemsBackupPlanDetail["EndTimestampForRestore"].isNull()) + itemsObject.endTimestampForRestore = std::stol(valueItemsBackupPlanDetail["EndTimestampForRestore"].asString()); + if(!valueItemsBackupPlanDetail["BackupPlanStatus"].isNull()) + itemsObject.backupPlanStatus = valueItemsBackupPlanDetail["BackupPlanStatus"].asString(); + if(!valueItemsBackupPlanDetail["BackupSetDownloadFullDataFormat"].isNull()) + itemsObject.backupSetDownloadFullDataFormat = valueItemsBackupPlanDetail["BackupSetDownloadFullDataFormat"].asString(); + if(!valueItemsBackupPlanDetail["BackupRetentionPeriod"].isNull()) + itemsObject.backupRetentionPeriod = std::stoi(valueItemsBackupPlanDetail["BackupRetentionPeriod"].asString()); + if(!valueItemsBackupPlanDetail["OSSBucketRegion"].isNull()) + itemsObject.oSSBucketRegion = valueItemsBackupPlanDetail["OSSBucketRegion"].asString(); + if(!valueItemsBackupPlanDetail["SourceEndpointOracleSID"].isNull()) + itemsObject.sourceEndpointOracleSID = valueItemsBackupPlanDetail["SourceEndpointOracleSID"].asString(); if(!valueItemsBackupPlanDetail["BackupStorageType"].isNull()) itemsObject.backupStorageType = valueItemsBackupPlanDetail["BackupStorageType"].asString(); + if(!valueItemsBackupPlanDetail["BackupMethod"].isNull()) + itemsObject.backupMethod = valueItemsBackupPlanDetail["BackupMethod"].asString(); + if(!valueItemsBackupPlanDetail["SourceEndpointRegion"].isNull()) + itemsObject.sourceEndpointRegion = valueItemsBackupPlanDetail["SourceEndpointRegion"].asString(); + if(!valueItemsBackupPlanDetail["BackupPeriod"].isNull()) + itemsObject.backupPeriod = valueItemsBackupPlanDetail["BackupPeriod"].asString(); + if(!valueItemsBackupPlanDetail["SourceEndpointDatabaseName"].isNull()) + itemsObject.sourceEndpointDatabaseName = valueItemsBackupPlanDetail["SourceEndpointDatabaseName"].asString(); + if(!valueItemsBackupPlanDetail["BackupSetDownloadGatewayId"].isNull()) + itemsObject.backupSetDownloadGatewayId = std::stol(valueItemsBackupPlanDetail["BackupSetDownloadGatewayId"].asString()); + if(!valueItemsBackupPlanDetail["BackupPlanCreateTime"].isNull()) + itemsObject.backupPlanCreateTime = std::stol(valueItemsBackupPlanDetail["BackupPlanCreateTime"].asString()); + if(!valueItemsBackupPlanDetail["InstanceClass"].isNull()) + itemsObject.instanceClass = valueItemsBackupPlanDetail["InstanceClass"].asString(); + if(!valueItemsBackupPlanDetail["BackupSetDownloadTargetType"].isNull()) + itemsObject.backupSetDownloadTargetType = valueItemsBackupPlanDetail["BackupSetDownloadTargetType"].asString(); + if(!valueItemsBackupPlanDetail["DuplicationInfrequentAccessPeriod"].isNull()) + itemsObject.duplicationInfrequentAccessPeriod = std::stoi(valueItemsBackupPlanDetail["DuplicationInfrequentAccessPeriod"].asString()); + if(!valueItemsBackupPlanDetail["BackupStartTime"].isNull()) + itemsObject.backupStartTime = valueItemsBackupPlanDetail["BackupStartTime"].asString(); if(!valueItemsBackupPlanDetail["ErrMessage"].isNull()) itemsObject.errMessage = valueItemsBackupPlanDetail["ErrMessage"].asString(); + if(!valueItemsBackupPlanDetail["BackupObjects"].isNull()) + itemsObject.backupObjects = valueItemsBackupPlanDetail["BackupObjects"].asString(); + if(!valueItemsBackupPlanDetail["BeginTimestampForRestore"].isNull()) + itemsObject.beginTimestampForRestore = std::stol(valueItemsBackupPlanDetail["BeginTimestampForRestore"].asString()); + if(!valueItemsBackupPlanDetail["SourceEndpointInstanceID"].isNull()) + itemsObject.sourceEndpointInstanceID = valueItemsBackupPlanDetail["SourceEndpointInstanceID"].asString(); + if(!valueItemsBackupPlanDetail["OpenBackupSetAutoDownload"].isNull()) + itemsObject.openBackupSetAutoDownload = valueItemsBackupPlanDetail["OpenBackupSetAutoDownload"].asString() == "true"; + if(!valueItemsBackupPlanDetail["BackupPlanName"].isNull()) + itemsObject.backupPlanName = valueItemsBackupPlanDetail["BackupPlanName"].asString(); + if(!valueItemsBackupPlanDetail["OSSBucketName"].isNull()) + itemsObject.oSSBucketName = valueItemsBackupPlanDetail["OSSBucketName"].asString(); + if(!valueItemsBackupPlanDetail["BackupGatewayId"].isNull()) + itemsObject.backupGatewayId = std::stol(valueItemsBackupPlanDetail["BackupGatewayId"].asString()); + if(!valueItemsBackupPlanDetail["SourceEndpointUserName"].isNull()) + itemsObject.sourceEndpointUserName = valueItemsBackupPlanDetail["SourceEndpointUserName"].asString(); + if(!valueItemsBackupPlanDetail["BackupSetDownloadIncrementDataFormat"].isNull()) + itemsObject.backupSetDownloadIncrementDataFormat = valueItemsBackupPlanDetail["BackupSetDownloadIncrementDataFormat"].asString(); + if(!valueItemsBackupPlanDetail["EnableBackupLog"].isNull()) + itemsObject.enableBackupLog = valueItemsBackupPlanDetail["EnableBackupLog"].asString() == "true"; + if(!valueItemsBackupPlanDetail["ResourceGroupId"].isNull()) + itemsObject.resourceGroupId = valueItemsBackupPlanDetail["ResourceGroupId"].asString(); items_.push_back(itemsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNum"].isNull()) pageNum_ = std::stoi(value["PageNum"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["TotalElements"].isNull()) totalElements_ = std::stoi(value["TotalElements"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); } -int DescribeBackupPlanListResult::getPageSize()const -{ - return pageSize_; -} - int DescribeBackupPlanListResult::getPageNum()const { return pageNum_; } +int DescribeBackupPlanListResult::getPageSize()const +{ + return pageSize_; +} + int DescribeBackupPlanListResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/DescribeBackupSetDownloadTaskListRequest.cc b/dbs/src/model/DescribeBackupSetDownloadTaskListRequest.cc index 7fe6ae575..c14e331d4 100644 --- a/dbs/src/model/DescribeBackupSetDownloadTaskListRequest.cc +++ b/dbs/src/model/DescribeBackupSetDownloadTaskListRequest.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::Dbs::Model::DescribeBackupSetDownloadTaskListRequest; - -DescribeBackupSetDownloadTaskListRequest::DescribeBackupSetDownloadTaskListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupSetDownloadTaskList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBackupSetDownloadTaskListRequest::~DescribeBackupSetDownloadTaskListRequest() -{} - -std::string DescribeBackupSetDownloadTaskListRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeBackupSetDownloadTaskListRequest; + +DescribeBackupSetDownloadTaskListRequest::DescribeBackupSetDownloadTaskListRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupSetDownloadTaskList") { + setMethod(HttpRequest::Method::Post); } -void DescribeBackupSetDownloadTaskListRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DescribeBackupSetDownloadTaskListRequest::~DescribeBackupSetDownloadTaskListRequest() {} + +std::string DescribeBackupSetDownloadTaskListRequest::getClientToken() const { + return clientToken_; } -std::string DescribeBackupSetDownloadTaskListRequest::getBackupSetDownloadTaskId()const -{ - return backupSetDownloadTaskId_; +void DescribeBackupSetDownloadTaskListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeBackupSetDownloadTaskListRequest::setBackupSetDownloadTaskId(const std::string& backupSetDownloadTaskId) -{ - backupSetDownloadTaskId_ = backupSetDownloadTaskId; - setParameter("BackupSetDownloadTaskId", backupSetDownloadTaskId); +std::string DescribeBackupSetDownloadTaskListRequest::getBackupSetDownloadTaskId() const { + return backupSetDownloadTaskId_; } -std::string DescribeBackupSetDownloadTaskListRequest::getBackupPlanId()const -{ - return backupPlanId_; +void DescribeBackupSetDownloadTaskListRequest::setBackupSetDownloadTaskId(const std::string &backupSetDownloadTaskId) { + backupSetDownloadTaskId_ = backupSetDownloadTaskId; + setParameter(std::string("BackupSetDownloadTaskId"), backupSetDownloadTaskId); } -void DescribeBackupSetDownloadTaskListRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string DescribeBackupSetDownloadTaskListRequest::getBackupPlanId() const { + return backupPlanId_; } -int DescribeBackupSetDownloadTaskListRequest::getPageNum()const -{ - return pageNum_; +void DescribeBackupSetDownloadTaskListRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void DescribeBackupSetDownloadTaskListRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int DescribeBackupSetDownloadTaskListRequest::getPageNum() const { + return pageNum_; } -std::string DescribeBackupSetDownloadTaskListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBackupSetDownloadTaskListRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void DescribeBackupSetDownloadTaskListRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeBackupSetDownloadTaskListRequest::getOwnerId() const { + return ownerId_; } -int DescribeBackupSetDownloadTaskListRequest::getPageSize()const -{ - return pageSize_; +void DescribeBackupSetDownloadTaskListRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void DescribeBackupSetDownloadTaskListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeBackupSetDownloadTaskListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeBackupSetDownloadTaskListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dbs/src/model/DescribeBackupSetDownloadTaskListResult.cc b/dbs/src/model/DescribeBackupSetDownloadTaskListResult.cc index 06950bde6..75f68bd59 100644 --- a/dbs/src/model/DescribeBackupSetDownloadTaskListResult.cc +++ b/dbs/src/model/DescribeBackupSetDownloadTaskListResult.cc @@ -43,75 +43,75 @@ void DescribeBackupSetDownloadTaskListResult::parse(const std::string &payload) for (auto valueItemsBackupSetDownloadTaskDetail : allItemsNode) { BackupSetDownloadTaskDetail itemsObject; + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadStatus"].isNull()) + itemsObject.backupSetDownloadStatus = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadStatus"].asString(); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDataSize"].isNull()) + itemsObject.backupSetDataSize = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupSetDataSize"].asString()); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTargetType"].isNull()) + itemsObject.backupSetDownloadTargetType = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTargetType"].asString(); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadDir"].isNull()) + itemsObject.backupSetDownloadDir = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadDir"].asString(); + if(!valueItemsBackupSetDownloadTaskDetail["ErrMessage"].isNull()) + itemsObject.errMessage = valueItemsBackupSetDownloadTaskDetail["ErrMessage"].asString(); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadCreateTime"].isNull()) + itemsObject.backupSetDownloadCreateTime = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadCreateTime"].asString()); if(!valueItemsBackupSetDownloadTaskDetail["BackupPlanId"].isNull()) itemsObject.backupPlanId = valueItemsBackupSetDownloadTaskDetail["BackupPlanId"].asString(); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDbType"].isNull()) + itemsObject.backupSetDbType = valueItemsBackupSetDownloadTaskDetail["BackupSetDbType"].asString(); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadInternetUrl"].isNull()) + itemsObject.backupSetDownloadInternetUrl = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadInternetUrl"].asString(); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetId"].isNull()) + itemsObject.backupSetId = valueItemsBackupSetDownloadTaskDetail["BackupSetId"].asString(); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadIntranetUrl"].isNull()) + itemsObject.backupSetDownloadIntranetUrl = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadIntranetUrl"].asString(); + if(!valueItemsBackupSetDownloadTaskDetail["BackupGatewayId"].isNull()) + itemsObject.backupGatewayId = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupGatewayId"].asString()); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadWay"].isNull()) + itemsObject.backupSetDownloadWay = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadWay"].asString(); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadFinishTime"].isNull()) + itemsObject.backupSetDownloadFinishTime = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadFinishTime"].asString()); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetJobType"].isNull()) + itemsObject.backupSetJobType = valueItemsBackupSetDownloadTaskDetail["BackupSetJobType"].asString(); if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTaskId"].isNull()) itemsObject.backupSetDownloadTaskId = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTaskId"].asString(); if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTaskName"].isNull()) itemsObject.backupSetDownloadTaskName = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTaskName"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadStatus"].isNull()) - itemsObject.backupSetDownloadStatus = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadStatus"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadCreateTime"].isNull()) - itemsObject.backupSetDownloadCreateTime = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadCreateTime"].asString()); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadFinishTime"].isNull()) - itemsObject.backupSetDownloadFinishTime = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadFinishTime"].asString()); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetId"].isNull()) - itemsObject.backupSetId = valueItemsBackupSetDownloadTaskDetail["BackupSetId"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetCode"].isNull()) - itemsObject.backupSetCode = valueItemsBackupSetDownloadTaskDetail["BackupSetCode"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetJobType"].isNull()) - itemsObject.backupSetJobType = valueItemsBackupSetDownloadTaskDetail["BackupSetJobType"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDataSize"].isNull()) - itemsObject.backupSetDataSize = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupSetDataSize"].asString()); if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDataFormat"].isNull()) itemsObject.backupSetDataFormat = valueItemsBackupSetDownloadTaskDetail["BackupSetDataFormat"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDbType"].isNull()) - itemsObject.backupSetDbType = valueItemsBackupSetDownloadTaskDetail["BackupSetDbType"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadWay"].isNull()) - itemsObject.backupSetDownloadWay = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadWay"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadDir"].isNull()) - itemsObject.backupSetDownloadDir = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadDir"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTargetType"].isNull()) - itemsObject.backupSetDownloadTargetType = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTargetType"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["BackupGatewayId"].isNull()) - itemsObject.backupGatewayId = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupGatewayId"].asString()); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadIntranetUrl"].isNull()) - itemsObject.backupSetDownloadIntranetUrl = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadIntranetUrl"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadInternetUrl"].isNull()) - itemsObject.backupSetDownloadInternetUrl = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadInternetUrl"].asString(); - if(!valueItemsBackupSetDownloadTaskDetail["ErrMessage"].isNull()) - itemsObject.errMessage = valueItemsBackupSetDownloadTaskDetail["ErrMessage"].asString(); + if(!valueItemsBackupSetDownloadTaskDetail["BackupSetCode"].isNull()) + itemsObject.backupSetCode = valueItemsBackupSetDownloadTaskDetail["BackupSetCode"].asString(); items_.push_back(itemsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNum"].isNull()) pageNum_ = std::stoi(value["PageNum"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["TotalElements"].isNull()) totalElements_ = std::stoi(value["TotalElements"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); } -int DescribeBackupSetDownloadTaskListResult::getPageSize()const -{ - return pageSize_; -} - int DescribeBackupSetDownloadTaskListResult::getPageNum()const { return pageNum_; } +int DescribeBackupSetDownloadTaskListResult::getPageSize()const +{ + return pageSize_; +} + int DescribeBackupSetDownloadTaskListResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/DescribeDLAServiceRequest.cc b/dbs/src/model/DescribeDLAServiceRequest.cc index 8af83a30f..939ebce9a 100644 --- a/dbs/src/model/DescribeDLAServiceRequest.cc +++ b/dbs/src/model/DescribeDLAServiceRequest.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::Dbs::Model::DescribeDLAServiceRequest; - -DescribeDLAServiceRequest::DescribeDLAServiceRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeDLAService") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDLAServiceRequest::~DescribeDLAServiceRequest() -{} - -std::string DescribeDLAServiceRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeDLAServiceRequest; + +DescribeDLAServiceRequest::DescribeDLAServiceRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeDLAService") { + setMethod(HttpRequest::Method::Post); } -void DescribeDLAServiceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DescribeDLAServiceRequest::~DescribeDLAServiceRequest() {} + +std::string DescribeDLAServiceRequest::getClientToken() const { + return clientToken_; } -std::string DescribeDLAServiceRequest::getBackupPlanId()const -{ - return backupPlanId_; +void DescribeDLAServiceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeDLAServiceRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string DescribeDLAServiceRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string DescribeDLAServiceRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDLAServiceRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void DescribeDLAServiceRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeDLAServiceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDLAServiceRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } diff --git a/dbs/src/model/DescribeDLAServiceResult.cc b/dbs/src/model/DescribeDLAServiceResult.cc index b8aa64c04..0dc8af2e9 100644 --- a/dbs/src/model/DescribeDLAServiceResult.cc +++ b/dbs/src/model/DescribeDLAServiceResult.cc @@ -39,16 +39,16 @@ void DescribeDLAServiceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["State"].isNull()) state_ = value["State"].asString(); + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["AutoAdd"].isNull()) autoAdd_ = value["AutoAdd"].asString() == "true"; if(!value["HaveJobFailed"].isNull()) diff --git a/dbs/src/model/DescribeFullBackupListRequest.cc b/dbs/src/model/DescribeFullBackupListRequest.cc index c45e53066..34022a48a 100644 --- a/dbs/src/model/DescribeFullBackupListRequest.cc +++ b/dbs/src/model/DescribeFullBackupListRequest.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::Dbs::Model::DescribeFullBackupListRequest; - -DescribeFullBackupListRequest::DescribeFullBackupListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeFullBackupList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeFullBackupListRequest::~DescribeFullBackupListRequest() -{} - -std::string DescribeFullBackupListRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeFullBackupListRequest; + +DescribeFullBackupListRequest::DescribeFullBackupListRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeFullBackupList") { + setMethod(HttpRequest::Method::Post); } -void DescribeFullBackupListRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DescribeFullBackupListRequest::~DescribeFullBackupListRequest() {} + +std::string DescribeFullBackupListRequest::getClientToken() const { + return clientToken_; } -std::string DescribeFullBackupListRequest::getBackupPlanId()const -{ - return backupPlanId_; +void DescribeFullBackupListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeFullBackupListRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string DescribeFullBackupListRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string DescribeFullBackupListRequest::getBackupSetId()const -{ - return backupSetId_; +void DescribeFullBackupListRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void DescribeFullBackupListRequest::setBackupSetId(const std::string& backupSetId) -{ - backupSetId_ = backupSetId; - setParameter("BackupSetId", backupSetId); +std::string DescribeFullBackupListRequest::getBackupSetId() const { + return backupSetId_; } -int DescribeFullBackupListRequest::getPageNum()const -{ - return pageNum_; +void DescribeFullBackupListRequest::setBackupSetId(const std::string &backupSetId) { + backupSetId_ = backupSetId; + setParameter(std::string("BackupSetId"), backupSetId); } -void DescribeFullBackupListRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int DescribeFullBackupListRequest::getPageNum() const { + return pageNum_; } -std::string DescribeFullBackupListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeFullBackupListRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void DescribeFullBackupListRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeFullBackupListRequest::getOwnerId() const { + return ownerId_; } -long DescribeFullBackupListRequest::getStartTimestamp()const -{ - return startTimestamp_; +void DescribeFullBackupListRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void DescribeFullBackupListRequest::setStartTimestamp(long startTimestamp) -{ - startTimestamp_ = startTimestamp; - setParameter("StartTimestamp", std::to_string(startTimestamp)); +long DescribeFullBackupListRequest::getStartTimestamp() const { + return startTimestamp_; } -long DescribeFullBackupListRequest::getEndTimestamp()const -{ - return endTimestamp_; +void DescribeFullBackupListRequest::setStartTimestamp(long startTimestamp) { + startTimestamp_ = startTimestamp; + setParameter(std::string("StartTimestamp"), std::to_string(startTimestamp)); } -void DescribeFullBackupListRequest::setEndTimestamp(long endTimestamp) -{ - endTimestamp_ = endTimestamp; - setParameter("EndTimestamp", std::to_string(endTimestamp)); +long DescribeFullBackupListRequest::getEndTimestamp() const { + return endTimestamp_; } -bool DescribeFullBackupListRequest::getShowStorageType()const -{ - return showStorageType_; +void DescribeFullBackupListRequest::setEndTimestamp(long endTimestamp) { + endTimestamp_ = endTimestamp; + setParameter(std::string("EndTimestamp"), std::to_string(endTimestamp)); } -void DescribeFullBackupListRequest::setShowStorageType(bool showStorageType) -{ - showStorageType_ = showStorageType; - setParameter("ShowStorageType", showStorageType ? "true" : "false"); +bool DescribeFullBackupListRequest::getShowStorageType() const { + return showStorageType_; } -int DescribeFullBackupListRequest::getPageSize()const -{ - return pageSize_; +void DescribeFullBackupListRequest::setShowStorageType(bool showStorageType) { + showStorageType_ = showStorageType; + setParameter(std::string("ShowStorageType"), showStorageType ? "true" : "false"); } -void DescribeFullBackupListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeFullBackupListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeFullBackupListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dbs/src/model/DescribeFullBackupListResult.cc b/dbs/src/model/DescribeFullBackupListResult.cc index fd74ba514..3a7ec5926 100644 --- a/dbs/src/model/DescribeFullBackupListResult.cc +++ b/dbs/src/model/DescribeFullBackupListResult.cc @@ -43,61 +43,61 @@ void DescribeFullBackupListResult::parse(const std::string &payload) for (auto valueItemsFullBackupFile : allItemsNode) { FullBackupFile itemsObject; - if(!valueItemsFullBackupFile["BackupSetId"].isNull()) - itemsObject.backupSetId = valueItemsFullBackupFile["BackupSetId"].asString(); - if(!valueItemsFullBackupFile["SourceEndpointIpPort"].isNull()) - itemsObject.sourceEndpointIpPort = valueItemsFullBackupFile["SourceEndpointIpPort"].asString(); - if(!valueItemsFullBackupFile["StartTime"].isNull()) - itemsObject.startTime = std::stol(valueItemsFullBackupFile["StartTime"].asString()); - if(!valueItemsFullBackupFile["EndTime"].isNull()) - itemsObject.endTime = std::stol(valueItemsFullBackupFile["EndTime"].asString()); + if(!valueItemsFullBackupFile["FinishTime"].isNull()) + itemsObject.finishTime = std::stol(valueItemsFullBackupFile["FinishTime"].asString()); if(!valueItemsFullBackupFile["BackupStatus"].isNull()) itemsObject.backupStatus = valueItemsFullBackupFile["BackupStatus"].asString(); - if(!valueItemsFullBackupFile["BackupSetExpiredTime"].isNull()) - itemsObject.backupSetExpiredTime = std::stol(valueItemsFullBackupFile["BackupSetExpiredTime"].asString()); - if(!valueItemsFullBackupFile["BackupSize"].isNull()) - itemsObject.backupSize = std::stol(valueItemsFullBackupFile["BackupSize"].asString()); - if(!valueItemsFullBackupFile["StorageMethod"].isNull()) - itemsObject.storageMethod = valueItemsFullBackupFile["StorageMethod"].asString(); + if(!valueItemsFullBackupFile["SourceEndpointIpPort"].isNull()) + itemsObject.sourceEndpointIpPort = valueItemsFullBackupFile["SourceEndpointIpPort"].asString(); + if(!valueItemsFullBackupFile["CreateTime"].isNull()) + itemsObject.createTime = std::stol(valueItemsFullBackupFile["CreateTime"].asString()); if(!valueItemsFullBackupFile["ErrMessage"].isNull()) itemsObject.errMessage = valueItemsFullBackupFile["ErrMessage"].asString(); if(!valueItemsFullBackupFile["BackupObjects"].isNull()) itemsObject.backupObjects = valueItemsFullBackupFile["BackupObjects"].asString(); - if(!valueItemsFullBackupFile["CreateTime"].isNull()) - itemsObject.createTime = std::stol(valueItemsFullBackupFile["CreateTime"].asString()); - if(!valueItemsFullBackupFile["FinishTime"].isNull()) - itemsObject.finishTime = std::stol(valueItemsFullBackupFile["FinishTime"].asString()); + if(!valueItemsFullBackupFile["EndTime"].isNull()) + itemsObject.endTime = std::stol(valueItemsFullBackupFile["EndTime"].asString()); + if(!valueItemsFullBackupFile["StartTime"].isNull()) + itemsObject.startTime = std::stol(valueItemsFullBackupFile["StartTime"].asString()); + if(!valueItemsFullBackupFile["BackupSetExpiredTime"].isNull()) + itemsObject.backupSetExpiredTime = std::stol(valueItemsFullBackupFile["BackupSetExpiredTime"].asString()); + if(!valueItemsFullBackupFile["StorageMethod"].isNull()) + itemsObject.storageMethod = valueItemsFullBackupFile["StorageMethod"].asString(); + if(!valueItemsFullBackupFile["BackupSetId"].isNull()) + itemsObject.backupSetId = valueItemsFullBackupFile["BackupSetId"].asString(); + if(!valueItemsFullBackupFile["BackupSize"].isNull()) + itemsObject.backupSize = std::stol(valueItemsFullBackupFile["BackupSize"].asString()); items_.push_back(itemsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNum"].isNull()) pageNum_ = std::stoi(value["PageNum"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["TotalElements"].isNull()) totalElements_ = std::stoi(value["TotalElements"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); } -int DescribeFullBackupListResult::getPageSize()const -{ - return pageSize_; -} - int DescribeFullBackupListResult::getPageNum()const { return pageNum_; } +int DescribeFullBackupListResult::getPageSize()const +{ + return pageSize_; +} + int DescribeFullBackupListResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/DescribeFullBackupSetRequest.cc b/dbs/src/model/DescribeFullBackupSetRequest.cc deleted file mode 100644 index 8a1f4ac8e..000000000 --- a/dbs/src/model/DescribeFullBackupSetRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Dbs::Model::DescribeFullBackupSetRequest; - -DescribeFullBackupSetRequest::DescribeFullBackupSetRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeFullBackupSet") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeFullBackupSetRequest::~DescribeFullBackupSetRequest() -{} - -std::string DescribeFullBackupSetRequest::getClientToken()const -{ - return clientToken_; -} - -void DescribeFullBackupSetRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::string DescribeFullBackupSetRequest::getBackupPlanId()const -{ - return backupPlanId_; -} - -void DescribeFullBackupSetRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); -} - -std::string DescribeFullBackupSetRequest::getBackupsetId()const -{ - return backupsetId_; -} - -void DescribeFullBackupSetRequest::setBackupsetId(const std::string& backupsetId) -{ - backupsetId_ = backupsetId; - setParameter("BackupsetId", backupsetId); -} - -std::string DescribeFullBackupSetRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeFullBackupSetRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); -} - diff --git a/dbs/src/model/DescribeFullBackupSetResult.cc b/dbs/src/model/DescribeFullBackupSetResult.cc deleted file mode 100644 index 427448ae2..000000000 --- a/dbs/src/model/DescribeFullBackupSetResult.cc +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -DescribeFullBackupSetResult::DescribeFullBackupSetResult() : - ServiceResult() -{} - -DescribeFullBackupSetResult::DescribeFullBackupSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeFullBackupSetResult::~DescribeFullBackupSetResult() -{} - -void DescribeFullBackupSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["BackupSetId"].isNull()) - backupSetId_ = value["BackupSetId"].asString(); - if(!value["SourceEndpointIpPort"].isNull()) - sourceEndpointIpPort_ = value["SourceEndpointIpPort"].asString(); - if(!value["StartTime"].isNull()) - startTime_ = std::stol(value["StartTime"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = std::stol(value["EndTime"].asString()); - if(!value["BackupStatus"].isNull()) - backupStatus_ = value["BackupStatus"].asString(); - if(!value["BackupSetExpiredTime"].isNull()) - backupSetExpiredTime_ = std::stol(value["BackupSetExpiredTime"].asString()); - if(!value["BackupSize"].isNull()) - backupSize_ = std::stol(value["BackupSize"].asString()); - if(!value["StorageMethod"].isNull()) - storageMethod_ = value["StorageMethod"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage1_ = value["ErrMessage"].asString(); - if(!value["BackupObjects"].isNull()) - backupObjects_ = value["BackupObjects"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = std::stol(value["CreateTime"].asString()); - if(!value["FinishTime"].isNull()) - finishTime_ = std::stol(value["FinishTime"].asString()); - -} - -std::string DescribeFullBackupSetResult::getStorageMethod()const -{ - return storageMethod_; -} - -std::string DescribeFullBackupSetResult::getBackupObjects()const -{ - return backupObjects_; -} - -long DescribeFullBackupSetResult::getEndTime()const -{ - return endTime_; -} - -long DescribeFullBackupSetResult::getBackupSize()const -{ - return backupSize_; -} - -long DescribeFullBackupSetResult::getCreateTime()const -{ - return createTime_; -} - -long DescribeFullBackupSetResult::getStartTime()const -{ - return startTime_; -} - -long DescribeFullBackupSetResult::getBackupSetExpiredTime()const -{ - return backupSetExpiredTime_; -} - -std::string DescribeFullBackupSetResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeFullBackupSetResult::getBackupSetId()const -{ - return backupSetId_; -} - -bool DescribeFullBackupSetResult::getSuccess()const -{ - return success_; -} - -std::string DescribeFullBackupSetResult::getErrMessage1()const -{ - return errMessage1_; -} - -std::string DescribeFullBackupSetResult::getErrCode()const -{ - return errCode_; -} - -std::string DescribeFullBackupSetResult::getSourceEndpointIpPort()const -{ - return sourceEndpointIpPort_; -} - -long DescribeFullBackupSetResult::getFinishTime()const -{ - return finishTime_; -} - -int DescribeFullBackupSetResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DescribeFullBackupSetResult::getBackupStatus()const -{ - return backupStatus_; -} - diff --git a/dbs/src/model/DescribeIncrementBackupListRequest.cc b/dbs/src/model/DescribeIncrementBackupListRequest.cc index 453950d2c..d1384afd8 100644 --- a/dbs/src/model/DescribeIncrementBackupListRequest.cc +++ b/dbs/src/model/DescribeIncrementBackupListRequest.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::Dbs::Model::DescribeIncrementBackupListRequest; - -DescribeIncrementBackupListRequest::DescribeIncrementBackupListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeIncrementBackupList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIncrementBackupListRequest::~DescribeIncrementBackupListRequest() -{} - -std::string DescribeIncrementBackupListRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeIncrementBackupListRequest; + +DescribeIncrementBackupListRequest::DescribeIncrementBackupListRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeIncrementBackupList") { + setMethod(HttpRequest::Method::Post); } -void DescribeIncrementBackupListRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DescribeIncrementBackupListRequest::~DescribeIncrementBackupListRequest() {} + +std::string DescribeIncrementBackupListRequest::getClientToken() const { + return clientToken_; } -std::string DescribeIncrementBackupListRequest::getBackupPlanId()const -{ - return backupPlanId_; +void DescribeIncrementBackupListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeIncrementBackupListRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string DescribeIncrementBackupListRequest::getBackupPlanId() const { + return backupPlanId_; } -int DescribeIncrementBackupListRequest::getPageNum()const -{ - return pageNum_; +void DescribeIncrementBackupListRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void DescribeIncrementBackupListRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int DescribeIncrementBackupListRequest::getPageNum() const { + return pageNum_; } -std::string DescribeIncrementBackupListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeIncrementBackupListRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void DescribeIncrementBackupListRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeIncrementBackupListRequest::getOwnerId() const { + return ownerId_; } -long DescribeIncrementBackupListRequest::getStartTimestamp()const -{ - return startTimestamp_; +void DescribeIncrementBackupListRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void DescribeIncrementBackupListRequest::setStartTimestamp(long startTimestamp) -{ - startTimestamp_ = startTimestamp; - setParameter("StartTimestamp", std::to_string(startTimestamp)); +long DescribeIncrementBackupListRequest::getStartTimestamp() const { + return startTimestamp_; } -long DescribeIncrementBackupListRequest::getEndTimestamp()const -{ - return endTimestamp_; +void DescribeIncrementBackupListRequest::setStartTimestamp(long startTimestamp) { + startTimestamp_ = startTimestamp; + setParameter(std::string("StartTimestamp"), std::to_string(startTimestamp)); } -void DescribeIncrementBackupListRequest::setEndTimestamp(long endTimestamp) -{ - endTimestamp_ = endTimestamp; - setParameter("EndTimestamp", std::to_string(endTimestamp)); +long DescribeIncrementBackupListRequest::getEndTimestamp() const { + return endTimestamp_; } -bool DescribeIncrementBackupListRequest::getShowStorageType()const -{ - return showStorageType_; +void DescribeIncrementBackupListRequest::setEndTimestamp(long endTimestamp) { + endTimestamp_ = endTimestamp; + setParameter(std::string("EndTimestamp"), std::to_string(endTimestamp)); } -void DescribeIncrementBackupListRequest::setShowStorageType(bool showStorageType) -{ - showStorageType_ = showStorageType; - setParameter("ShowStorageType", showStorageType ? "true" : "false"); +bool DescribeIncrementBackupListRequest::getShowStorageType() const { + return showStorageType_; } -int DescribeIncrementBackupListRequest::getPageSize()const -{ - return pageSize_; +void DescribeIncrementBackupListRequest::setShowStorageType(bool showStorageType) { + showStorageType_ = showStorageType; + setParameter(std::string("ShowStorageType"), showStorageType ? "true" : "false"); } -void DescribeIncrementBackupListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeIncrementBackupListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeIncrementBackupListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dbs/src/model/DescribeIncrementBackupListResult.cc b/dbs/src/model/DescribeIncrementBackupListResult.cc index 4950d18fb..d7633ba56 100644 --- a/dbs/src/model/DescribeIncrementBackupListResult.cc +++ b/dbs/src/model/DescribeIncrementBackupListResult.cc @@ -43,55 +43,55 @@ void DescribeIncrementBackupListResult::parse(const std::string &payload) for (auto valueItemsIncrementBackupFile : allItemsNode) { IncrementBackupFile itemsObject; - if(!valueItemsIncrementBackupFile["BackupSetId"].isNull()) - itemsObject.backupSetId = valueItemsIncrementBackupFile["BackupSetId"].asString(); - if(!valueItemsIncrementBackupFile["BackupSetJobId"].isNull()) - itemsObject.backupSetJobId = valueItemsIncrementBackupFile["BackupSetJobId"].asString(); - if(!valueItemsIncrementBackupFile["SourceEndpointIpPort"].isNull()) - itemsObject.sourceEndpointIpPort = valueItemsIncrementBackupFile["SourceEndpointIpPort"].asString(); - if(!valueItemsIncrementBackupFile["StartTime"].isNull()) - itemsObject.startTime = std::stol(valueItemsIncrementBackupFile["StartTime"].asString()); if(!valueItemsIncrementBackupFile["EndTime"].isNull()) itemsObject.endTime = std::stol(valueItemsIncrementBackupFile["EndTime"].asString()); - if(!valueItemsIncrementBackupFile["BackupStatus"].isNull()) - itemsObject.backupStatus = valueItemsIncrementBackupFile["BackupStatus"].asString(); if(!valueItemsIncrementBackupFile["BackupSetExpiredTime"].isNull()) itemsObject.backupSetExpiredTime = std::stol(valueItemsIncrementBackupFile["BackupSetExpiredTime"].asString()); - if(!valueItemsIncrementBackupFile["BackupSize"].isNull()) - itemsObject.backupSize = std::stol(valueItemsIncrementBackupFile["BackupSize"].asString()); + if(!valueItemsIncrementBackupFile["StartTime"].isNull()) + itemsObject.startTime = std::stol(valueItemsIncrementBackupFile["StartTime"].asString()); if(!valueItemsIncrementBackupFile["StorageMethod"].isNull()) itemsObject.storageMethod = valueItemsIncrementBackupFile["StorageMethod"].asString(); + if(!valueItemsIncrementBackupFile["BackupSetJobId"].isNull()) + itemsObject.backupSetJobId = valueItemsIncrementBackupFile["BackupSetJobId"].asString(); + if(!valueItemsIncrementBackupFile["BackupSetId"].isNull()) + itemsObject.backupSetId = valueItemsIncrementBackupFile["BackupSetId"].asString(); + if(!valueItemsIncrementBackupFile["BackupStatus"].isNull()) + itemsObject.backupStatus = valueItemsIncrementBackupFile["BackupStatus"].asString(); + if(!valueItemsIncrementBackupFile["SourceEndpointIpPort"].isNull()) + itemsObject.sourceEndpointIpPort = valueItemsIncrementBackupFile["SourceEndpointIpPort"].asString(); + if(!valueItemsIncrementBackupFile["BackupSize"].isNull()) + itemsObject.backupSize = std::stol(valueItemsIncrementBackupFile["BackupSize"].asString()); items_.push_back(itemsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNum"].isNull()) pageNum_ = std::stoi(value["PageNum"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["TotalElements"].isNull()) totalElements_ = std::stoi(value["TotalElements"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); } -int DescribeIncrementBackupListResult::getPageSize()const -{ - return pageSize_; -} - int DescribeIncrementBackupListResult::getPageNum()const { return pageNum_; } +int DescribeIncrementBackupListResult::getPageSize()const +{ + return pageSize_; +} + int DescribeIncrementBackupListResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/DescribeJobErrorCodeRequest.cc b/dbs/src/model/DescribeJobErrorCodeRequest.cc index 82022af52..66d2e0ad2 100644 --- a/dbs/src/model/DescribeJobErrorCodeRequest.cc +++ b/dbs/src/model/DescribeJobErrorCodeRequest.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::Dbs::Model::DescribeJobErrorCodeRequest; - -DescribeJobErrorCodeRequest::DescribeJobErrorCodeRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeJobErrorCode") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeJobErrorCodeRequest::~DescribeJobErrorCodeRequest() -{} - -std::string DescribeJobErrorCodeRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeJobErrorCodeRequest; + +DescribeJobErrorCodeRequest::DescribeJobErrorCodeRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeJobErrorCode") { + setMethod(HttpRequest::Method::Post); } -void DescribeJobErrorCodeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DescribeJobErrorCodeRequest::~DescribeJobErrorCodeRequest() {} + +std::string DescribeJobErrorCodeRequest::getClientToken() const { + return clientToken_; } -std::string DescribeJobErrorCodeRequest::getLanguage()const -{ - return language_; +void DescribeJobErrorCodeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeJobErrorCodeRequest::setLanguage(const std::string& language) -{ - language_ = language; - setParameter("Language", language); +std::string DescribeJobErrorCodeRequest::getLanguage() const { + return language_; } -std::string DescribeJobErrorCodeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeJobErrorCodeRequest::setLanguage(const std::string &language) { + language_ = language; + setParameter(std::string("Language"), language); } -void DescribeJobErrorCodeRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeJobErrorCodeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeJobErrorCodeRequest::getTaskId()const -{ - return taskId_; +void DescribeJobErrorCodeRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void DescribeJobErrorCodeRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string DescribeJobErrorCodeRequest::getTaskId() const { + return taskId_; +} + +void DescribeJobErrorCodeRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/dbs/src/model/DescribeJobErrorCodeResult.cc b/dbs/src/model/DescribeJobErrorCodeResult.cc index 01047e04d..16099909b 100644 --- a/dbs/src/model/DescribeJobErrorCodeResult.cc +++ b/dbs/src/model/DescribeJobErrorCodeResult.cc @@ -40,26 +40,26 @@ void DescribeJobErrorCodeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto itemNode = value["Item"]; - if(!itemNode["JobId"].isNull()) - item_.jobId = itemNode["JobId"].asString(); - if(!itemNode["Language"].isNull()) - item_.language = itemNode["Language"].asString(); - if(!itemNode["ErrorCode"].isNull()) - item_.errorCode = itemNode["ErrorCode"].asString(); - if(!itemNode["ErrorMessage"].isNull()) - item_.errorMessage = itemNode["ErrorMessage"].asString(); - if(!itemNode["JobType"].isNull()) - item_.jobType = itemNode["JobType"].asString(); if(!itemNode["JobState"].isNull()) item_.jobState = itemNode["JobState"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); + if(!itemNode["ErrorMessage"].isNull()) + item_.errorMessage = itemNode["ErrorMessage"].asString(); + if(!itemNode["ErrorCode"].isNull()) + item_.errorCode = itemNode["ErrorCode"].asString(); + if(!itemNode["JobId"].isNull()) + item_.jobId = itemNode["JobId"].asString(); + if(!itemNode["JobType"].isNull()) + item_.jobType = itemNode["JobType"].asString(); + if(!itemNode["Language"].isNull()) + item_.language = itemNode["Language"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); } diff --git a/dbs/src/model/DescribeLogicalBackupSetRequest.cc b/dbs/src/model/DescribeLogicalBackupSetRequest.cc deleted file mode 100644 index b487cdbad..000000000 --- a/dbs/src/model/DescribeLogicalBackupSetRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Dbs::Model::DescribeLogicalBackupSetRequest; - -DescribeLogicalBackupSetRequest::DescribeLogicalBackupSetRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeLogicalBackupSet") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeLogicalBackupSetRequest::~DescribeLogicalBackupSetRequest() -{} - -std::string DescribeLogicalBackupSetRequest::getClientToken()const -{ - return clientToken_; -} - -void DescribeLogicalBackupSetRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::string DescribeLogicalBackupSetRequest::getBackupPlanId()const -{ - return backupPlanId_; -} - -void DescribeLogicalBackupSetRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); -} - -std::string DescribeLogicalBackupSetRequest::getBackupsetId()const -{ - return backupsetId_; -} - -void DescribeLogicalBackupSetRequest::setBackupsetId(const std::string& backupsetId) -{ - backupsetId_ = backupsetId; - setParameter("BackupsetId", backupsetId); -} - -std::string DescribeLogicalBackupSetRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeLogicalBackupSetRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); -} - diff --git a/dbs/src/model/DescribeLogicalBackupSetResult.cc b/dbs/src/model/DescribeLogicalBackupSetResult.cc deleted file mode 100644 index f4e039d01..000000000 --- a/dbs/src/model/DescribeLogicalBackupSetResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Dbs; -using namespace AlibabaCloud::Dbs::Model; - -DescribeLogicalBackupSetResult::DescribeLogicalBackupSetResult() : - ServiceResult() -{} - -DescribeLogicalBackupSetResult::DescribeLogicalBackupSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLogicalBackupSetResult::~DescribeLogicalBackupSetResult() -{} - -void DescribeLogicalBackupSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["RowNum"].isNull()) - rowNum_ = std::stol(value["RowNum"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - -} - -std::string DescribeLogicalBackupSetResult::getStatus()const -{ - return status_; -} - -int DescribeLogicalBackupSetResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DescribeLogicalBackupSetResult::getErrMessage()const -{ - return errMessage_; -} - -long DescribeLogicalBackupSetResult::getRowNum()const -{ - return rowNum_; -} - -bool DescribeLogicalBackupSetResult::getSuccess()const -{ - return success_; -} - -std::string DescribeLogicalBackupSetResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dbs/src/model/DescribeNodeCidrListRequest.cc b/dbs/src/model/DescribeNodeCidrListRequest.cc index 59e8ac450..8dbaf8020 100644 --- a/dbs/src/model/DescribeNodeCidrListRequest.cc +++ b/dbs/src/model/DescribeNodeCidrListRequest.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::Dbs::Model::DescribeNodeCidrListRequest; - -DescribeNodeCidrListRequest::DescribeNodeCidrListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeNodeCidrList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNodeCidrListRequest::~DescribeNodeCidrListRequest() -{} - -std::string DescribeNodeCidrListRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeNodeCidrListRequest; + +DescribeNodeCidrListRequest::DescribeNodeCidrListRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeNodeCidrList") { + setMethod(HttpRequest::Method::Post); } -void DescribeNodeCidrListRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DescribeNodeCidrListRequest::~DescribeNodeCidrListRequest() {} + +std::string DescribeNodeCidrListRequest::getClientToken() const { + return clientToken_; } -std::string DescribeNodeCidrListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeNodeCidrListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeNodeCidrListRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeNodeCidrListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeNodeCidrListRequest::getRegion()const -{ - return region_; +void DescribeNodeCidrListRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void DescribeNodeCidrListRequest::setRegion(const std::string& region) -{ - region_ = region; - setParameter("Region", region); +std::string DescribeNodeCidrListRequest::getRegion() const { + return region_; +} + +void DescribeNodeCidrListRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); } diff --git a/dbs/src/model/DescribeNodeCidrListResult.cc b/dbs/src/model/DescribeNodeCidrListResult.cc index 0f9037be0..a98108b5f 100644 --- a/dbs/src/model/DescribeNodeCidrListResult.cc +++ b/dbs/src/model/DescribeNodeCidrListResult.cc @@ -39,20 +39,20 @@ void DescribeNodeCidrListResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allInternetIPs = value["InternetIPs"]["InternetIP"]; - for (const auto &item : allInternetIPs) - internetIPs_.push_back(item.asString()); auto allIntranetIPs = value["IntranetIPs"]["IntranetIP"]; for (const auto &item : allIntranetIPs) intranetIPs_.push_back(item.asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); + auto allInternetIPs = value["InternetIPs"]["InternetIP"]; + for (const auto &item : allInternetIPs) + internetIPs_.push_back(item.asString()); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); } diff --git a/dbs/src/model/DescribePreCheckProgressListRequest.cc b/dbs/src/model/DescribePreCheckProgressListRequest.cc index 36725f9aa..53c12a4aa 100644 --- a/dbs/src/model/DescribePreCheckProgressListRequest.cc +++ b/dbs/src/model/DescribePreCheckProgressListRequest.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::Dbs::Model::DescribePreCheckProgressListRequest; - -DescribePreCheckProgressListRequest::DescribePreCheckProgressListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribePreCheckProgressList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePreCheckProgressListRequest::~DescribePreCheckProgressListRequest() -{} - -std::string DescribePreCheckProgressListRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribePreCheckProgressListRequest; + +DescribePreCheckProgressListRequest::DescribePreCheckProgressListRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribePreCheckProgressList") { + setMethod(HttpRequest::Method::Post); } -void DescribePreCheckProgressListRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DescribePreCheckProgressListRequest::~DescribePreCheckProgressListRequest() {} + +std::string DescribePreCheckProgressListRequest::getClientToken() const { + return clientToken_; } -std::string DescribePreCheckProgressListRequest::getBackupPlanId()const -{ - return backupPlanId_; +void DescribePreCheckProgressListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribePreCheckProgressListRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string DescribePreCheckProgressListRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string DescribePreCheckProgressListRequest::getOwnerId()const -{ - return ownerId_; +void DescribePreCheckProgressListRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void DescribePreCheckProgressListRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribePreCheckProgressListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribePreCheckProgressListRequest::getRestoreTaskId()const -{ - return restoreTaskId_; +void DescribePreCheckProgressListRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void DescribePreCheckProgressListRequest::setRestoreTaskId(const std::string& restoreTaskId) -{ - restoreTaskId_ = restoreTaskId; - setParameter("RestoreTaskId", restoreTaskId); +std::string DescribePreCheckProgressListRequest::getRestoreTaskId() const { + return restoreTaskId_; +} + +void DescribePreCheckProgressListRequest::setRestoreTaskId(const std::string &restoreTaskId) { + restoreTaskId_ = restoreTaskId; + setParameter(std::string("RestoreTaskId"), restoreTaskId); } diff --git a/dbs/src/model/DescribePreCheckProgressListResult.cc b/dbs/src/model/DescribePreCheckProgressListResult.cc index 872ad7d10..77ca45601 100644 --- a/dbs/src/model/DescribePreCheckProgressListResult.cc +++ b/dbs/src/model/DescribePreCheckProgressListResult.cc @@ -43,36 +43,36 @@ void DescribePreCheckProgressListResult::parse(const std::string &payload) for (auto valueItemsPreCheckProgressDetail : allItemsNode) { PreCheckProgressDetail itemsObject; - if(!valueItemsPreCheckProgressDetail["JobId"].isNull()) - itemsObject.jobId = valueItemsPreCheckProgressDetail["JobId"].asString(); - if(!valueItemsPreCheckProgressDetail["State"].isNull()) - itemsObject.state = valueItemsPreCheckProgressDetail["State"].asString(); - if(!valueItemsPreCheckProgressDetail["OrderNum"].isNull()) - itemsObject.orderNum = valueItemsPreCheckProgressDetail["OrderNum"].asString(); - if(!valueItemsPreCheckProgressDetail["ErrMsg"].isNull()) - itemsObject.errMsg = valueItemsPreCheckProgressDetail["ErrMsg"].asString(); - if(!valueItemsPreCheckProgressDetail["Names"].isNull()) - itemsObject.names = valueItemsPreCheckProgressDetail["Names"].asString(); - if(!valueItemsPreCheckProgressDetail["Item"].isNull()) - itemsObject.item = valueItemsPreCheckProgressDetail["Item"].asString(); - if(!valueItemsPreCheckProgressDetail["BootTime"].isNull()) - itemsObject.bootTime = std::stol(valueItemsPreCheckProgressDetail["BootTime"].asString()); if(!valueItemsPreCheckProgressDetail["FinishTime"].isNull()) itemsObject.finishTime = std::stol(valueItemsPreCheckProgressDetail["FinishTime"].asString()); + if(!valueItemsPreCheckProgressDetail["State"].isNull()) + itemsObject.state = valueItemsPreCheckProgressDetail["State"].asString(); + if(!valueItemsPreCheckProgressDetail["BootTime"].isNull()) + itemsObject.bootTime = std::stol(valueItemsPreCheckProgressDetail["BootTime"].asString()); + if(!valueItemsPreCheckProgressDetail["JobId"].isNull()) + itemsObject.jobId = valueItemsPreCheckProgressDetail["JobId"].asString(); + if(!valueItemsPreCheckProgressDetail["Item"].isNull()) + itemsObject.item = valueItemsPreCheckProgressDetail["Item"].asString(); + if(!valueItemsPreCheckProgressDetail["ErrMsg"].isNull()) + itemsObject.errMsg = valueItemsPreCheckProgressDetail["ErrMsg"].asString(); + if(!valueItemsPreCheckProgressDetail["OrderNum"].isNull()) + itemsObject.orderNum = valueItemsPreCheckProgressDetail["OrderNum"].asString(); + if(!valueItemsPreCheckProgressDetail["Names"].isNull()) + itemsObject.names = valueItemsPreCheckProgressDetail["Names"].asString(); items_.push_back(itemsObject); } if(!value["Status"].isNull()) status_ = value["Status"].asString(); - if(!value["Progress"].isNull()) - progress_ = std::stoi(value["Progress"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Progress"].isNull()) + progress_ = std::stoi(value["Progress"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); } diff --git a/dbs/src/model/DescribeRegionsRequest.cc b/dbs/src/model/DescribeRegionsRequest.cc index 24b2d95a2..d0045facc 100644 --- a/dbs/src/model/DescribeRegionsRequest.cc +++ b/dbs/src/model/DescribeRegionsRequest.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::Dbs::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeRegions") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - -std::string DescribeRegionsRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeRegions") { + setMethod(HttpRequest::Method::Post); } -void DescribeRegionsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DescribeRegionsRequest::~DescribeRegionsRequest() {} + +std::string DescribeRegionsRequest::getClientToken() const { + return clientToken_; } -std::string DescribeRegionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRegionsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeRegionsRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeRegionsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeRegionsRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } diff --git a/dbs/src/model/DescribeRegionsResult.cc b/dbs/src/model/DescribeRegionsResult.cc index 681a80007..d8acb2ec7 100644 --- a/dbs/src/model/DescribeRegionsResult.cc +++ b/dbs/src/model/DescribeRegionsResult.cc @@ -42,14 +42,14 @@ void DescribeRegionsResult::parse(const std::string &payload) auto allRegions = value["Regions"]["RegionCode"]; for (const auto &item : allRegions) regions_.push_back(item.asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); } diff --git a/dbs/src/model/DescribeRestoreRangeInfoRequest.cc b/dbs/src/model/DescribeRestoreRangeInfoRequest.cc index 547794bec..d41aa6c4a 100644 --- a/dbs/src/model/DescribeRestoreRangeInfoRequest.cc +++ b/dbs/src/model/DescribeRestoreRangeInfoRequest.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::Dbs::Model::DescribeRestoreRangeInfoRequest; - -DescribeRestoreRangeInfoRequest::DescribeRestoreRangeInfoRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeRestoreRangeInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRestoreRangeInfoRequest::~DescribeRestoreRangeInfoRequest() -{} - -long DescribeRestoreRangeInfoRequest::getBeginTimestampForRestore()const -{ - return beginTimestampForRestore_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeRestoreRangeInfoRequest; + +DescribeRestoreRangeInfoRequest::DescribeRestoreRangeInfoRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeRestoreRangeInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeRestoreRangeInfoRequest::setBeginTimestampForRestore(long beginTimestampForRestore) -{ - beginTimestampForRestore_ = beginTimestampForRestore; - setParameter("BeginTimestampForRestore", std::to_string(beginTimestampForRestore)); +DescribeRestoreRangeInfoRequest::~DescribeRestoreRangeInfoRequest() {} + +long DescribeRestoreRangeInfoRequest::getBeginTimestampForRestore() const { + return beginTimestampForRestore_; } -long DescribeRestoreRangeInfoRequest::getEndTimestampForRestore()const -{ - return endTimestampForRestore_; +void DescribeRestoreRangeInfoRequest::setBeginTimestampForRestore(long beginTimestampForRestore) { + beginTimestampForRestore_ = beginTimestampForRestore; + setParameter(std::string("BeginTimestampForRestore"), std::to_string(beginTimestampForRestore)); } -void DescribeRestoreRangeInfoRequest::setEndTimestampForRestore(long endTimestampForRestore) -{ - endTimestampForRestore_ = endTimestampForRestore; - setParameter("EndTimestampForRestore", std::to_string(endTimestampForRestore)); +long DescribeRestoreRangeInfoRequest::getEndTimestampForRestore() const { + return endTimestampForRestore_; } -std::string DescribeRestoreRangeInfoRequest::getClientToken()const -{ - return clientToken_; +void DescribeRestoreRangeInfoRequest::setEndTimestampForRestore(long endTimestampForRestore) { + endTimestampForRestore_ = endTimestampForRestore; + setParameter(std::string("EndTimestampForRestore"), std::to_string(endTimestampForRestore)); } -void DescribeRestoreRangeInfoRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribeRestoreRangeInfoRequest::getClientToken() const { + return clientToken_; } -std::string DescribeRestoreRangeInfoRequest::getBackupPlanId()const -{ - return backupPlanId_; +void DescribeRestoreRangeInfoRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeRestoreRangeInfoRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string DescribeRestoreRangeInfoRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string DescribeRestoreRangeInfoRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRestoreRangeInfoRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void DescribeRestoreRangeInfoRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeRestoreRangeInfoRequest::getOwnerId() const { + return ownerId_; } -bool DescribeRestoreRangeInfoRequest::getRecentlyRestore()const -{ - return recentlyRestore_; +void DescribeRestoreRangeInfoRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void DescribeRestoreRangeInfoRequest::setRecentlyRestore(bool recentlyRestore) -{ - recentlyRestore_ = recentlyRestore; - setParameter("RecentlyRestore", recentlyRestore ? "true" : "false"); +bool DescribeRestoreRangeInfoRequest::getRecentlyRestore() const { + return recentlyRestore_; +} + +void DescribeRestoreRangeInfoRequest::setRecentlyRestore(bool recentlyRestore) { + recentlyRestore_ = recentlyRestore; + setParameter(std::string("RecentlyRestore"), recentlyRestore ? "true" : "false"); } diff --git a/dbs/src/model/DescribeRestoreRangeInfoResult.cc b/dbs/src/model/DescribeRestoreRangeInfoResult.cc index 2d1a52883..7dd22e670 100644 --- a/dbs/src/model/DescribeRestoreRangeInfoResult.cc +++ b/dbs/src/model/DescribeRestoreRangeInfoResult.cc @@ -43,38 +43,38 @@ void DescribeRestoreRangeInfoResult::parse(const std::string &payload) for (auto valueItemsDBSRecoverRange : allItemsNode) { DBSRecoverRange itemsObject; - if(!valueItemsDBSRecoverRange["SourceEndpointInstanceType"].isNull()) - itemsObject.sourceEndpointInstanceType = valueItemsDBSRecoverRange["SourceEndpointInstanceType"].asString(); - if(!valueItemsDBSRecoverRange["SourceEndpointInstanceID"].isNull()) - itemsObject.sourceEndpointInstanceID = valueItemsDBSRecoverRange["SourceEndpointInstanceID"].asString(); - if(!valueItemsDBSRecoverRange["BeginTimestampForRestore"].isNull()) - itemsObject.beginTimestampForRestore = std::stol(valueItemsDBSRecoverRange["BeginTimestampForRestore"].asString()); if(!valueItemsDBSRecoverRange["EndTimestampForRestore"].isNull()) itemsObject.endTimestampForRestore = std::stol(valueItemsDBSRecoverRange["EndTimestampForRestore"].asString()); + if(!valueItemsDBSRecoverRange["SourceEndpointInstanceType"].isNull()) + itemsObject.sourceEndpointInstanceType = valueItemsDBSRecoverRange["SourceEndpointInstanceType"].asString(); if(!valueItemsDBSRecoverRange["RangeType"].isNull()) itemsObject.rangeType = valueItemsDBSRecoverRange["RangeType"].asString(); + if(!valueItemsDBSRecoverRange["BeginTimestampForRestore"].isNull()) + itemsObject.beginTimestampForRestore = std::stol(valueItemsDBSRecoverRange["BeginTimestampForRestore"].asString()); + if(!valueItemsDBSRecoverRange["SourceEndpointInstanceID"].isNull()) + itemsObject.sourceEndpointInstanceID = valueItemsDBSRecoverRange["SourceEndpointInstanceID"].asString(); auto allFullBackupListNode = valueItemsDBSRecoverRange["FullBackupList"]["FullBackupDetail"]; for (auto valueItemsDBSRecoverRangeFullBackupListFullBackupDetail : allFullBackupListNode) { DBSRecoverRange::FullBackupDetail fullBackupListObject; - if(!valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["BackupSetId"].isNull()) - fullBackupListObject.backupSetId = valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["BackupSetId"].asString(); - if(!valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["StartTime"].isNull()) - fullBackupListObject.startTime = std::stol(valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["StartTime"].asString()); if(!valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["EndTime"].isNull()) fullBackupListObject.endTime = std::stol(valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["EndTime"].asString()); + if(!valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["StartTime"].isNull()) + fullBackupListObject.startTime = std::stol(valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["StartTime"].asString()); + if(!valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["BackupSetId"].isNull()) + fullBackupListObject.backupSetId = valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["BackupSetId"].asString(); itemsObject.fullBackupList.push_back(fullBackupListObject); } items_.push_back(itemsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); } diff --git a/dbs/src/model/DescribeRestoreTaskListRequest.cc b/dbs/src/model/DescribeRestoreTaskListRequest.cc index e78d21268..0e098a465 100644 --- a/dbs/src/model/DescribeRestoreTaskListRequest.cc +++ b/dbs/src/model/DescribeRestoreTaskListRequest.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::Dbs::Model::DescribeRestoreTaskListRequest; - -DescribeRestoreTaskListRequest::DescribeRestoreTaskListRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DescribeRestoreTaskList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRestoreTaskListRequest::~DescribeRestoreTaskListRequest() -{} - -std::string DescribeRestoreTaskListRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DescribeRestoreTaskListRequest; + +DescribeRestoreTaskListRequest::DescribeRestoreTaskListRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DescribeRestoreTaskList") { + setMethod(HttpRequest::Method::Post); } -void DescribeRestoreTaskListRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DescribeRestoreTaskListRequest::~DescribeRestoreTaskListRequest() {} + +std::string DescribeRestoreTaskListRequest::getClientToken() const { + return clientToken_; } -std::string DescribeRestoreTaskListRequest::getBackupPlanId()const -{ - return backupPlanId_; +void DescribeRestoreTaskListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeRestoreTaskListRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string DescribeRestoreTaskListRequest::getBackupPlanId() const { + return backupPlanId_; } -int DescribeRestoreTaskListRequest::getPageNum()const -{ - return pageNum_; +void DescribeRestoreTaskListRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void DescribeRestoreTaskListRequest::setPageNum(int pageNum) -{ - pageNum_ = pageNum; - setParameter("PageNum", std::to_string(pageNum)); +int DescribeRestoreTaskListRequest::getPageNum() const { + return pageNum_; } -std::string DescribeRestoreTaskListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRestoreTaskListRequest::setPageNum(int pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), std::to_string(pageNum)); } -void DescribeRestoreTaskListRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DescribeRestoreTaskListRequest::getOwnerId() const { + return ownerId_; } -long DescribeRestoreTaskListRequest::getStartTimestamp()const -{ - return startTimestamp_; +void DescribeRestoreTaskListRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void DescribeRestoreTaskListRequest::setStartTimestamp(long startTimestamp) -{ - startTimestamp_ = startTimestamp; - setParameter("StartTimestamp", std::to_string(startTimestamp)); +long DescribeRestoreTaskListRequest::getStartTimestamp() const { + return startTimestamp_; } -long DescribeRestoreTaskListRequest::getEndTimestamp()const -{ - return endTimestamp_; +void DescribeRestoreTaskListRequest::setStartTimestamp(long startTimestamp) { + startTimestamp_ = startTimestamp; + setParameter(std::string("StartTimestamp"), std::to_string(startTimestamp)); } -void DescribeRestoreTaskListRequest::setEndTimestamp(long endTimestamp) -{ - endTimestamp_ = endTimestamp; - setParameter("EndTimestamp", std::to_string(endTimestamp)); +long DescribeRestoreTaskListRequest::getEndTimestamp() const { + return endTimestamp_; } -std::string DescribeRestoreTaskListRequest::getRestoreTaskId()const -{ - return restoreTaskId_; +void DescribeRestoreTaskListRequest::setEndTimestamp(long endTimestamp) { + endTimestamp_ = endTimestamp; + setParameter(std::string("EndTimestamp"), std::to_string(endTimestamp)); } -void DescribeRestoreTaskListRequest::setRestoreTaskId(const std::string& restoreTaskId) -{ - restoreTaskId_ = restoreTaskId; - setParameter("RestoreTaskId", restoreTaskId); +std::string DescribeRestoreTaskListRequest::getRestoreTaskId() const { + return restoreTaskId_; } -int DescribeRestoreTaskListRequest::getPageSize()const -{ - return pageSize_; +void DescribeRestoreTaskListRequest::setRestoreTaskId(const std::string &restoreTaskId) { + restoreTaskId_ = restoreTaskId; + setParameter(std::string("RestoreTaskId"), restoreTaskId); } -void DescribeRestoreTaskListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeRestoreTaskListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeRestoreTaskListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/dbs/src/model/DescribeRestoreTaskListResult.cc b/dbs/src/model/DescribeRestoreTaskListResult.cc index d956e02c3..c1cea4fd5 100644 --- a/dbs/src/model/DescribeRestoreTaskListResult.cc +++ b/dbs/src/model/DescribeRestoreTaskListResult.cc @@ -43,87 +43,87 @@ void DescribeRestoreTaskListResult::parse(const std::string &payload) for (auto valueItemsRestoreTaskDetail : allItemsNode) { RestoreTaskDetail itemsObject; + if(!valueItemsRestoreTaskDetail["RestoreStatus"].isNull()) + itemsObject.restoreStatus = valueItemsRestoreTaskDetail["RestoreStatus"].asString(); + if(!valueItemsRestoreTaskDetail["FullStruAfterRestoreProgress"].isNull()) + itemsObject.fullStruAfterRestoreProgress = std::stoi(valueItemsRestoreTaskDetail["FullStruAfterRestoreProgress"].asString()); + if(!valueItemsRestoreTaskDetail["CrossRoleName"].isNull()) + itemsObject.crossRoleName = valueItemsRestoreTaskDetail["CrossRoleName"].asString(); + if(!valueItemsRestoreTaskDetail["RestoreDir"].isNull()) + itemsObject.restoreDir = valueItemsRestoreTaskDetail["RestoreDir"].asString(); + if(!valueItemsRestoreTaskDetail["CrossAliyunId"].isNull()) + itemsObject.crossAliyunId = valueItemsRestoreTaskDetail["CrossAliyunId"].asString(); + if(!valueItemsRestoreTaskDetail["RestoreObjects"].isNull()) + itemsObject.restoreObjects = valueItemsRestoreTaskDetail["RestoreObjects"].asString(); if(!valueItemsRestoreTaskDetail["BackupPlanId"].isNull()) itemsObject.backupPlanId = valueItemsRestoreTaskDetail["BackupPlanId"].asString(); - if(!valueItemsRestoreTaskDetail["DestinationEndpointInstanceType"].isNull()) - itemsObject.destinationEndpointInstanceType = valueItemsRestoreTaskDetail["DestinationEndpointInstanceType"].asString(); if(!valueItemsRestoreTaskDetail["DestinationEndpointRegion"].isNull()) itemsObject.destinationEndpointRegion = valueItemsRestoreTaskDetail["DestinationEndpointRegion"].asString(); - if(!valueItemsRestoreTaskDetail["DestinationEndpointInstanceID"].isNull()) - itemsObject.destinationEndpointInstanceID = valueItemsRestoreTaskDetail["DestinationEndpointInstanceID"].asString(); + if(!valueItemsRestoreTaskDetail["RestoreTaskCreateTime"].isNull()) + itemsObject.restoreTaskCreateTime = std::stol(valueItemsRestoreTaskDetail["RestoreTaskCreateTime"].asString()); + if(!valueItemsRestoreTaskDetail["DestinationEndpointUserName"].isNull()) + itemsObject.destinationEndpointUserName = valueItemsRestoreTaskDetail["DestinationEndpointUserName"].asString(); + if(!valueItemsRestoreTaskDetail["RestoreTaskFinishTime"].isNull()) + itemsObject.restoreTaskFinishTime = std::stol(valueItemsRestoreTaskDetail["RestoreTaskFinishTime"].asString()); if(!valueItemsRestoreTaskDetail["DestinationEndpointIpPort"].isNull()) itemsObject.destinationEndpointIpPort = valueItemsRestoreTaskDetail["DestinationEndpointIpPort"].asString(); if(!valueItemsRestoreTaskDetail["DestinationEndpointDatabaseName"].isNull()) itemsObject.destinationEndpointDatabaseName = valueItemsRestoreTaskDetail["DestinationEndpointDatabaseName"].asString(); - if(!valueItemsRestoreTaskDetail["DestinationEndpointUserName"].isNull()) - itemsObject.destinationEndpointUserName = valueItemsRestoreTaskDetail["DestinationEndpointUserName"].asString(); + if(!valueItemsRestoreTaskDetail["DestinationEndpointInstanceType"].isNull()) + itemsObject.destinationEndpointInstanceType = valueItemsRestoreTaskDetail["DestinationEndpointInstanceType"].asString(); if(!valueItemsRestoreTaskDetail["DestinationEndpointOracleSID"].isNull()) itemsObject.destinationEndpointOracleSID = valueItemsRestoreTaskDetail["DestinationEndpointOracleSID"].asString(); - if(!valueItemsRestoreTaskDetail["RestoreObjects"].isNull()) - itemsObject.restoreObjects = valueItemsRestoreTaskDetail["RestoreObjects"].asString(); - if(!valueItemsRestoreTaskDetail["BackupGatewayId"].isNull()) - itemsObject.backupGatewayId = std::stol(valueItemsRestoreTaskDetail["BackupGatewayId"].asString()); - if(!valueItemsRestoreTaskDetail["RestoreDir"].isNull()) - itemsObject.restoreDir = valueItemsRestoreTaskDetail["RestoreDir"].asString(); - if(!valueItemsRestoreTaskDetail["RestoreTaskName"].isNull()) - itemsObject.restoreTaskName = valueItemsRestoreTaskDetail["RestoreTaskName"].asString(); - if(!valueItemsRestoreTaskDetail["BackupSetId"].isNull()) - itemsObject.backupSetId = valueItemsRestoreTaskDetail["BackupSetId"].asString(); - if(!valueItemsRestoreTaskDetail["RestoreTime"].isNull()) - itemsObject.restoreTime = std::stol(valueItemsRestoreTaskDetail["RestoreTime"].asString()); - if(!valueItemsRestoreTaskDetail["RestoreTaskCreateTime"].isNull()) - itemsObject.restoreTaskCreateTime = std::stol(valueItemsRestoreTaskDetail["RestoreTaskCreateTime"].asString()); - if(!valueItemsRestoreTaskDetail["RestoreTaskFinishTime"].isNull()) - itemsObject.restoreTaskFinishTime = std::stol(valueItemsRestoreTaskDetail["RestoreTaskFinishTime"].asString()); - if(!valueItemsRestoreTaskDetail["RestoreStatus"].isNull()) - itemsObject.restoreStatus = valueItemsRestoreTaskDetail["RestoreStatus"].asString(); - if(!valueItemsRestoreTaskDetail["RestoreTaskId"].isNull()) - itemsObject.restoreTaskId = valueItemsRestoreTaskDetail["RestoreTaskId"].asString(); if(!valueItemsRestoreTaskDetail["FullStruforeRestoreProgress"].isNull()) itemsObject.fullStruforeRestoreProgress = std::stoi(valueItemsRestoreTaskDetail["FullStruforeRestoreProgress"].asString()); + if(!valueItemsRestoreTaskDetail["ErrMessage"].isNull()) + itemsObject.errMessage = valueItemsRestoreTaskDetail["ErrMessage"].asString(); + if(!valueItemsRestoreTaskDetail["RestoreTaskId"].isNull()) + itemsObject.restoreTaskId = valueItemsRestoreTaskDetail["RestoreTaskId"].asString(); if(!valueItemsRestoreTaskDetail["FullDataRestoreProgress"].isNull()) itemsObject.fullDataRestoreProgress = std::stoi(valueItemsRestoreTaskDetail["FullDataRestoreProgress"].asString()); if(!valueItemsRestoreTaskDetail["ContinuousRestoreProgress"].isNull()) itemsObject.continuousRestoreProgress = std::stoi(valueItemsRestoreTaskDetail["ContinuousRestoreProgress"].asString()); - if(!valueItemsRestoreTaskDetail["FullStruAfterRestoreProgress"].isNull()) - itemsObject.fullStruAfterRestoreProgress = std::stoi(valueItemsRestoreTaskDetail["FullStruAfterRestoreProgress"].asString()); - if(!valueItemsRestoreTaskDetail["CrossAliyunId"].isNull()) - itemsObject.crossAliyunId = valueItemsRestoreTaskDetail["CrossAliyunId"].asString(); - if(!valueItemsRestoreTaskDetail["CrossRoleName"].isNull()) - itemsObject.crossRoleName = valueItemsRestoreTaskDetail["CrossRoleName"].asString(); - if(!valueItemsRestoreTaskDetail["ErrMessage"].isNull()) - itemsObject.errMessage = valueItemsRestoreTaskDetail["ErrMessage"].asString(); + if(!valueItemsRestoreTaskDetail["DestinationEndpointInstanceID"].isNull()) + itemsObject.destinationEndpointInstanceID = valueItemsRestoreTaskDetail["DestinationEndpointInstanceID"].asString(); + if(!valueItemsRestoreTaskDetail["BackupSetId"].isNull()) + itemsObject.backupSetId = valueItemsRestoreTaskDetail["BackupSetId"].asString(); + if(!valueItemsRestoreTaskDetail["BackupGatewayId"].isNull()) + itemsObject.backupGatewayId = std::stol(valueItemsRestoreTaskDetail["BackupGatewayId"].asString()); + if(!valueItemsRestoreTaskDetail["RestoreTaskName"].isNull()) + itemsObject.restoreTaskName = valueItemsRestoreTaskDetail["RestoreTaskName"].asString(); + if(!valueItemsRestoreTaskDetail["RestoreTime"].isNull()) + itemsObject.restoreTime = std::stol(valueItemsRestoreTaskDetail["RestoreTime"].asString()); items_.push_back(itemsObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["TotalPages"].isNull()) - totalPages_ = std::stoi(value["TotalPages"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNum"].isNull()) pageNum_ = std::stoi(value["PageNum"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); + if(!value["TotalPages"].isNull()) + totalPages_ = std::stoi(value["TotalPages"].asString()); if(!value["TotalElements"].isNull()) totalElements_ = std::stoi(value["TotalElements"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); } -int DescribeRestoreTaskListResult::getPageSize()const -{ - return pageSize_; -} - int DescribeRestoreTaskListResult::getPageNum()const { return pageNum_; } +int DescribeRestoreTaskListResult::getPageSize()const +{ + return pageSize_; +} + int DescribeRestoreTaskListResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/dbs/src/model/DisableBackupLogRequest.cc b/dbs/src/model/DisableBackupLogRequest.cc index c40216d8e..58739a7d8 100644 --- a/dbs/src/model/DisableBackupLogRequest.cc +++ b/dbs/src/model/DisableBackupLogRequest.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::Dbs::Model::DisableBackupLogRequest; - -DisableBackupLogRequest::DisableBackupLogRequest() : - RpcServiceRequest("dbs", "2019-03-06", "DisableBackupLog") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableBackupLogRequest::~DisableBackupLogRequest() -{} - -std::string DisableBackupLogRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::DisableBackupLogRequest; + +DisableBackupLogRequest::DisableBackupLogRequest() + : RpcServiceRequest("dbs", "2019-03-06", "DisableBackupLog") { + setMethod(HttpRequest::Method::Post); } -void DisableBackupLogRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DisableBackupLogRequest::~DisableBackupLogRequest() {} + +std::string DisableBackupLogRequest::getClientToken() const { + return clientToken_; } -std::string DisableBackupLogRequest::getBackupPlanId()const -{ - return backupPlanId_; +void DisableBackupLogRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DisableBackupLogRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string DisableBackupLogRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string DisableBackupLogRequest::getOwnerId()const -{ - return ownerId_; +void DisableBackupLogRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void DisableBackupLogRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DisableBackupLogRequest::getOwnerId() const { + return ownerId_; +} + +void DisableBackupLogRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } diff --git a/dbs/src/model/DisableBackupLogResult.cc b/dbs/src/model/DisableBackupLogResult.cc index 48073c243..ad049e111 100644 --- a/dbs/src/model/DisableBackupLogResult.cc +++ b/dbs/src/model/DisableBackupLogResult.cc @@ -39,14 +39,14 @@ void DisableBackupLogResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["NeedPrecheck"].isNull()) diff --git a/dbs/src/model/EnableBackupLogRequest.cc b/dbs/src/model/EnableBackupLogRequest.cc index 3fbd72695..31c14a0d9 100644 --- a/dbs/src/model/EnableBackupLogRequest.cc +++ b/dbs/src/model/EnableBackupLogRequest.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::Dbs::Model::EnableBackupLogRequest; - -EnableBackupLogRequest::EnableBackupLogRequest() : - RpcServiceRequest("dbs", "2019-03-06", "EnableBackupLog") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableBackupLogRequest::~EnableBackupLogRequest() -{} - -std::string EnableBackupLogRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::EnableBackupLogRequest; + +EnableBackupLogRequest::EnableBackupLogRequest() + : RpcServiceRequest("dbs", "2019-03-06", "EnableBackupLog") { + setMethod(HttpRequest::Method::Post); } -void EnableBackupLogRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +EnableBackupLogRequest::~EnableBackupLogRequest() {} + +std::string EnableBackupLogRequest::getClientToken() const { + return clientToken_; } -std::string EnableBackupLogRequest::getBackupPlanId()const -{ - return backupPlanId_; +void EnableBackupLogRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void EnableBackupLogRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string EnableBackupLogRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string EnableBackupLogRequest::getOwnerId()const -{ - return ownerId_; +void EnableBackupLogRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void EnableBackupLogRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string EnableBackupLogRequest::getOwnerId() const { + return ownerId_; +} + +void EnableBackupLogRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } diff --git a/dbs/src/model/EnableBackupLogResult.cc b/dbs/src/model/EnableBackupLogResult.cc index 653e520b7..6e52a8a65 100644 --- a/dbs/src/model/EnableBackupLogResult.cc +++ b/dbs/src/model/EnableBackupLogResult.cc @@ -39,14 +39,14 @@ void EnableBackupLogResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["NeedPrecheck"].isNull()) diff --git a/dbs/src/model/GetDBListFromAgentRequest.cc b/dbs/src/model/GetDBListFromAgentRequest.cc index 0c2fd6948..c4c9545bb 100644 --- a/dbs/src/model/GetDBListFromAgentRequest.cc +++ b/dbs/src/model/GetDBListFromAgentRequest.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::Dbs::Model::GetDBListFromAgentRequest; - -GetDBListFromAgentRequest::GetDBListFromAgentRequest() : - RpcServiceRequest("dbs", "2019-03-06", "GetDBListFromAgent") -{ - setMethod(HttpRequest::Method::Post); -} - -GetDBListFromAgentRequest::~GetDBListFromAgentRequest() -{} - -std::string GetDBListFromAgentRequest::getSourceEndpointRegion()const -{ - return sourceEndpointRegion_; + */ + +#include + +using AlibabaCloud::Dbs::Model::GetDBListFromAgentRequest; + +GetDBListFromAgentRequest::GetDBListFromAgentRequest() + : RpcServiceRequest("dbs", "2019-03-06", "GetDBListFromAgent") { + setMethod(HttpRequest::Method::Post); } -void GetDBListFromAgentRequest::setSourceEndpointRegion(const std::string& sourceEndpointRegion) -{ - sourceEndpointRegion_ = sourceEndpointRegion; - setParameter("SourceEndpointRegion", sourceEndpointRegion); +GetDBListFromAgentRequest::~GetDBListFromAgentRequest() {} + +std::string GetDBListFromAgentRequest::getSourceEndpointRegion() const { + return sourceEndpointRegion_; } -long GetDBListFromAgentRequest::getBackupGatewayId()const -{ - return backupGatewayId_; +void GetDBListFromAgentRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) { + sourceEndpointRegion_ = sourceEndpointRegion; + setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion); } -void GetDBListFromAgentRequest::setBackupGatewayId(long backupGatewayId) -{ - backupGatewayId_ = backupGatewayId; - setParameter("BackupGatewayId", std::to_string(backupGatewayId)); +long GetDBListFromAgentRequest::getBackupGatewayId() const { + return backupGatewayId_; } -std::string GetDBListFromAgentRequest::getClientToken()const -{ - return clientToken_; +void GetDBListFromAgentRequest::setBackupGatewayId(long backupGatewayId) { + backupGatewayId_ = backupGatewayId; + setParameter(std::string("BackupGatewayId"), std::to_string(backupGatewayId)); } -void GetDBListFromAgentRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string GetDBListFromAgentRequest::getClientToken() const { + return clientToken_; } -std::string GetDBListFromAgentRequest::getOwnerId()const -{ - return ownerId_; +void GetDBListFromAgentRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void GetDBListFromAgentRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string GetDBListFromAgentRequest::getOwnerId() const { + return ownerId_; } -long GetDBListFromAgentRequest::getTaskId()const -{ - return taskId_; +void GetDBListFromAgentRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void GetDBListFromAgentRequest::setTaskId(long taskId) -{ - taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); +long GetDBListFromAgentRequest::getTaskId() const { + return taskId_; +} + +void GetDBListFromAgentRequest::setTaskId(long taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), std::to_string(taskId)); } diff --git a/dbs/src/model/GetDBListFromAgentResult.cc b/dbs/src/model/GetDBListFromAgentResult.cc index e47755eb0..2cb37e896 100644 --- a/dbs/src/model/GetDBListFromAgentResult.cc +++ b/dbs/src/model/GetDBListFromAgentResult.cc @@ -42,14 +42,14 @@ void GetDBListFromAgentResult::parse(const std::string &payload) auto allDbList = value["DbList"]["dbName"]; for (const auto &item : allDbList) dbList_.push_back(item.asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); } diff --git a/dbs/src/model/InitializeDbsServiceLinkedRoleRequest.cc b/dbs/src/model/InitializeDbsServiceLinkedRoleRequest.cc index 0183282a3..792e576a4 100644 --- a/dbs/src/model/InitializeDbsServiceLinkedRoleRequest.cc +++ b/dbs/src/model/InitializeDbsServiceLinkedRoleRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Dbs::Model::InitializeDbsServiceLinkedRoleRequest; - -InitializeDbsServiceLinkedRoleRequest::InitializeDbsServiceLinkedRoleRequest() : - RpcServiceRequest("dbs", "2019-03-06", "InitializeDbsServiceLinkedRole") -{ - setMethod(HttpRequest::Method::Post); -} - -InitializeDbsServiceLinkedRoleRequest::~InitializeDbsServiceLinkedRoleRequest() -{} - + */ + +#include + +using AlibabaCloud::Dbs::Model::InitializeDbsServiceLinkedRoleRequest; + +InitializeDbsServiceLinkedRoleRequest::InitializeDbsServiceLinkedRoleRequest() + : RpcServiceRequest("dbs", "2019-03-06", "InitializeDbsServiceLinkedRole") { + setMethod(HttpRequest::Method::Post); +} + +InitializeDbsServiceLinkedRoleRequest::~InitializeDbsServiceLinkedRoleRequest() {} + diff --git a/dbs/src/model/InitializeDbsServiceLinkedRoleResult.cc b/dbs/src/model/InitializeDbsServiceLinkedRoleResult.cc index 6947af099..a8fbca1d1 100644 --- a/dbs/src/model/InitializeDbsServiceLinkedRoleResult.cc +++ b/dbs/src/model/InitializeDbsServiceLinkedRoleResult.cc @@ -39,14 +39,14 @@ void InitializeDbsServiceLinkedRoleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); } diff --git a/dbs/src/model/ModifyBackupObjectsRequest.cc b/dbs/src/model/ModifyBackupObjectsRequest.cc index 8469d9ea7..69c0393ca 100644 --- a/dbs/src/model/ModifyBackupObjectsRequest.cc +++ b/dbs/src/model/ModifyBackupObjectsRequest.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::Dbs::Model::ModifyBackupObjectsRequest; - -ModifyBackupObjectsRequest::ModifyBackupObjectsRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupObjects") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBackupObjectsRequest::~ModifyBackupObjectsRequest() -{} - -std::string ModifyBackupObjectsRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::ModifyBackupObjectsRequest; + +ModifyBackupObjectsRequest::ModifyBackupObjectsRequest() + : RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupObjects") { + setMethod(HttpRequest::Method::Post); } -void ModifyBackupObjectsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +ModifyBackupObjectsRequest::~ModifyBackupObjectsRequest() {} + +std::string ModifyBackupObjectsRequest::getClientToken() const { + return clientToken_; } -std::string ModifyBackupObjectsRequest::getBackupPlanId()const -{ - return backupPlanId_; +void ModifyBackupObjectsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyBackupObjectsRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string ModifyBackupObjectsRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string ModifyBackupObjectsRequest::getBackupObjects()const -{ - return backupObjects_; +void ModifyBackupObjectsRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void ModifyBackupObjectsRequest::setBackupObjects(const std::string& backupObjects) -{ - backupObjects_ = backupObjects; - setParameter("BackupObjects", backupObjects); +std::string ModifyBackupObjectsRequest::getBackupObjects() const { + return backupObjects_; } -std::string ModifyBackupObjectsRequest::getOwnerId()const -{ - return ownerId_; +void ModifyBackupObjectsRequest::setBackupObjects(const std::string &backupObjects) { + backupObjects_ = backupObjects; + setParameter(std::string("BackupObjects"), backupObjects); } -void ModifyBackupObjectsRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string ModifyBackupObjectsRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyBackupObjectsRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } diff --git a/dbs/src/model/ModifyBackupObjectsResult.cc b/dbs/src/model/ModifyBackupObjectsResult.cc index 865408284..eaa90a044 100644 --- a/dbs/src/model/ModifyBackupObjectsResult.cc +++ b/dbs/src/model/ModifyBackupObjectsResult.cc @@ -39,14 +39,14 @@ void ModifyBackupObjectsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["NeedPrecheck"].isNull()) diff --git a/dbs/src/model/ModifyBackupPlanNameRequest.cc b/dbs/src/model/ModifyBackupPlanNameRequest.cc index 75c39862a..a6ba8dc5e 100644 --- a/dbs/src/model/ModifyBackupPlanNameRequest.cc +++ b/dbs/src/model/ModifyBackupPlanNameRequest.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::Dbs::Model::ModifyBackupPlanNameRequest; - -ModifyBackupPlanNameRequest::ModifyBackupPlanNameRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupPlanName") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBackupPlanNameRequest::~ModifyBackupPlanNameRequest() -{} - -std::string ModifyBackupPlanNameRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::ModifyBackupPlanNameRequest; + +ModifyBackupPlanNameRequest::ModifyBackupPlanNameRequest() + : RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupPlanName") { + setMethod(HttpRequest::Method::Post); } -void ModifyBackupPlanNameRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +ModifyBackupPlanNameRequest::~ModifyBackupPlanNameRequest() {} + +std::string ModifyBackupPlanNameRequest::getClientToken() const { + return clientToken_; } -std::string ModifyBackupPlanNameRequest::getBackupPlanId()const -{ - return backupPlanId_; +void ModifyBackupPlanNameRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyBackupPlanNameRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string ModifyBackupPlanNameRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string ModifyBackupPlanNameRequest::getOwnerId()const -{ - return ownerId_; +void ModifyBackupPlanNameRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void ModifyBackupPlanNameRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string ModifyBackupPlanNameRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyBackupPlanNameRequest::getBackupPlanName()const -{ - return backupPlanName_; +void ModifyBackupPlanNameRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void ModifyBackupPlanNameRequest::setBackupPlanName(const std::string& backupPlanName) -{ - backupPlanName_ = backupPlanName; - setParameter("BackupPlanName", backupPlanName); +std::string ModifyBackupPlanNameRequest::getBackupPlanName() const { + return backupPlanName_; +} + +void ModifyBackupPlanNameRequest::setBackupPlanName(const std::string &backupPlanName) { + backupPlanName_ = backupPlanName; + setParameter(std::string("BackupPlanName"), backupPlanName); } diff --git a/dbs/src/model/ModifyBackupPlanNameResult.cc b/dbs/src/model/ModifyBackupPlanNameResult.cc index 221c86b70..954633104 100644 --- a/dbs/src/model/ModifyBackupPlanNameResult.cc +++ b/dbs/src/model/ModifyBackupPlanNameResult.cc @@ -39,14 +39,14 @@ void ModifyBackupPlanNameResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); diff --git a/dbs/src/model/ModifyBackupSetDownloadRulesRequest.cc b/dbs/src/model/ModifyBackupSetDownloadRulesRequest.cc index fdb3e9e31..b474ff172 100644 --- a/dbs/src/model/ModifyBackupSetDownloadRulesRequest.cc +++ b/dbs/src/model/ModifyBackupSetDownloadRulesRequest.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::Dbs::Model::ModifyBackupSetDownloadRulesRequest; - -ModifyBackupSetDownloadRulesRequest::ModifyBackupSetDownloadRulesRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupSetDownloadRules") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBackupSetDownloadRulesRequest::~ModifyBackupSetDownloadRulesRequest() -{} - -std::string ModifyBackupSetDownloadRulesRequest::getFullDataFormat()const -{ - return fullDataFormat_; + */ + +#include + +using AlibabaCloud::Dbs::Model::ModifyBackupSetDownloadRulesRequest; + +ModifyBackupSetDownloadRulesRequest::ModifyBackupSetDownloadRulesRequest() + : RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupSetDownloadRules") { + setMethod(HttpRequest::Method::Post); } -void ModifyBackupSetDownloadRulesRequest::setFullDataFormat(const std::string& fullDataFormat) -{ - fullDataFormat_ = fullDataFormat; - setParameter("FullDataFormat", fullDataFormat); +ModifyBackupSetDownloadRulesRequest::~ModifyBackupSetDownloadRulesRequest() {} + +std::string ModifyBackupSetDownloadRulesRequest::getFullDataFormat() const { + return fullDataFormat_; } -long ModifyBackupSetDownloadRulesRequest::getBackupGatewayId()const -{ - return backupGatewayId_; +void ModifyBackupSetDownloadRulesRequest::setFullDataFormat(const std::string &fullDataFormat) { + fullDataFormat_ = fullDataFormat; + setParameter(std::string("FullDataFormat"), fullDataFormat); } -void ModifyBackupSetDownloadRulesRequest::setBackupGatewayId(long backupGatewayId) -{ - backupGatewayId_ = backupGatewayId; - setParameter("BackupGatewayId", std::to_string(backupGatewayId)); +long ModifyBackupSetDownloadRulesRequest::getBackupGatewayId() const { + return backupGatewayId_; } -std::string ModifyBackupSetDownloadRulesRequest::getClientToken()const -{ - return clientToken_; +void ModifyBackupSetDownloadRulesRequest::setBackupGatewayId(long backupGatewayId) { + backupGatewayId_ = backupGatewayId; + setParameter(std::string("BackupGatewayId"), std::to_string(backupGatewayId)); } -void ModifyBackupSetDownloadRulesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyBackupSetDownloadRulesRequest::getClientToken() const { + return clientToken_; } -std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadTargetType()const -{ - return backupSetDownloadTargetType_; +void ModifyBackupSetDownloadRulesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadTargetType(const std::string& backupSetDownloadTargetType) -{ - backupSetDownloadTargetType_ = backupSetDownloadTargetType; - setParameter("BackupSetDownloadTargetType", backupSetDownloadTargetType); +std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadTargetType() const { + return backupSetDownloadTargetType_; } -std::string ModifyBackupSetDownloadRulesRequest::getBackupPlanId()const -{ - return backupPlanId_; +void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadTargetType(const std::string &backupSetDownloadTargetType) { + backupSetDownloadTargetType_ = backupSetDownloadTargetType; + setParameter(std::string("BackupSetDownloadTargetType"), backupSetDownloadTargetType); } -void ModifyBackupSetDownloadRulesRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string ModifyBackupSetDownloadRulesRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string ModifyBackupSetDownloadRulesRequest::getOwnerId()const -{ - return ownerId_; +void ModifyBackupSetDownloadRulesRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void ModifyBackupSetDownloadRulesRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string ModifyBackupSetDownloadRulesRequest::getOwnerId() const { + return ownerId_; } -bool ModifyBackupSetDownloadRulesRequest::getOpenAutoDownload()const -{ - return openAutoDownload_; +void ModifyBackupSetDownloadRulesRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void ModifyBackupSetDownloadRulesRequest::setOpenAutoDownload(bool openAutoDownload) -{ - openAutoDownload_ = openAutoDownload; - setParameter("OpenAutoDownload", openAutoDownload ? "true" : "false"); +bool ModifyBackupSetDownloadRulesRequest::getOpenAutoDownload() const { + return openAutoDownload_; } -std::string ModifyBackupSetDownloadRulesRequest::getIncrementDataFormat()const -{ - return incrementDataFormat_; +void ModifyBackupSetDownloadRulesRequest::setOpenAutoDownload(bool openAutoDownload) { + openAutoDownload_ = openAutoDownload; + setParameter(std::string("OpenAutoDownload"), openAutoDownload ? "true" : "false"); } -void ModifyBackupSetDownloadRulesRequest::setIncrementDataFormat(const std::string& incrementDataFormat) -{ - incrementDataFormat_ = incrementDataFormat; - setParameter("IncrementDataFormat", incrementDataFormat); +std::string ModifyBackupSetDownloadRulesRequest::getIncrementDataFormat() const { + return incrementDataFormat_; } -std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadTargetTypeLocation()const -{ - return backupSetDownloadTargetTypeLocation_; +void ModifyBackupSetDownloadRulesRequest::setIncrementDataFormat(const std::string &incrementDataFormat) { + incrementDataFormat_ = incrementDataFormat; + setParameter(std::string("IncrementDataFormat"), incrementDataFormat); } -void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadTargetTypeLocation(const std::string& backupSetDownloadTargetTypeLocation) -{ - backupSetDownloadTargetTypeLocation_ = backupSetDownloadTargetTypeLocation; - setParameter("BackupSetDownloadTargetTypeLocation", backupSetDownloadTargetTypeLocation); +std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadTargetTypeLocation() const { + return backupSetDownloadTargetTypeLocation_; } -std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadDir()const -{ - return backupSetDownloadDir_; +void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadTargetTypeLocation(const std::string &backupSetDownloadTargetTypeLocation) { + backupSetDownloadTargetTypeLocation_ = backupSetDownloadTargetTypeLocation; + setParameter(std::string("BackupSetDownloadTargetTypeLocation"), backupSetDownloadTargetTypeLocation); } -void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadDir(const std::string& backupSetDownloadDir) -{ - backupSetDownloadDir_ = backupSetDownloadDir; - setParameter("BackupSetDownloadDir", backupSetDownloadDir); +std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadDir() const { + return backupSetDownloadDir_; +} + +void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadDir(const std::string &backupSetDownloadDir) { + backupSetDownloadDir_ = backupSetDownloadDir; + setParameter(std::string("BackupSetDownloadDir"), backupSetDownloadDir); } diff --git a/dbs/src/model/ModifyBackupSetDownloadRulesResult.cc b/dbs/src/model/ModifyBackupSetDownloadRulesResult.cc index 1eeee8275..1b6d68357 100644 --- a/dbs/src/model/ModifyBackupSetDownloadRulesResult.cc +++ b/dbs/src/model/ModifyBackupSetDownloadRulesResult.cc @@ -39,14 +39,14 @@ void ModifyBackupSetDownloadRulesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); diff --git a/dbs/src/model/ModifyBackupSourceEndpointRequest.cc b/dbs/src/model/ModifyBackupSourceEndpointRequest.cc index 42d52859d..e200c3af8 100644 --- a/dbs/src/model/ModifyBackupSourceEndpointRequest.cc +++ b/dbs/src/model/ModifyBackupSourceEndpointRequest.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::Dbs::Model::ModifyBackupSourceEndpointRequest; - -ModifyBackupSourceEndpointRequest::ModifyBackupSourceEndpointRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupSourceEndpoint") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBackupSourceEndpointRequest::~ModifyBackupSourceEndpointRequest() -{} - -std::string ModifyBackupSourceEndpointRequest::getSourceEndpointRegion()const -{ - return sourceEndpointRegion_; + */ + +#include + +using AlibabaCloud::Dbs::Model::ModifyBackupSourceEndpointRequest; + +ModifyBackupSourceEndpointRequest::ModifyBackupSourceEndpointRequest() + : RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupSourceEndpoint") { + setMethod(HttpRequest::Method::Post); } -void ModifyBackupSourceEndpointRequest::setSourceEndpointRegion(const std::string& sourceEndpointRegion) -{ - sourceEndpointRegion_ = sourceEndpointRegion; - setParameter("SourceEndpointRegion", sourceEndpointRegion); +ModifyBackupSourceEndpointRequest::~ModifyBackupSourceEndpointRequest() {} + +std::string ModifyBackupSourceEndpointRequest::getSourceEndpointRegion() const { + return sourceEndpointRegion_; } -long ModifyBackupSourceEndpointRequest::getBackupGatewayId()const -{ - return backupGatewayId_; +void ModifyBackupSourceEndpointRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) { + sourceEndpointRegion_ = sourceEndpointRegion; + setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion); } -void ModifyBackupSourceEndpointRequest::setBackupGatewayId(long backupGatewayId) -{ - backupGatewayId_ = backupGatewayId; - setParameter("BackupGatewayId", std::to_string(backupGatewayId)); +long ModifyBackupSourceEndpointRequest::getBackupGatewayId() const { + return backupGatewayId_; } -std::string ModifyBackupSourceEndpointRequest::getSourceEndpointInstanceID()const -{ - return sourceEndpointInstanceID_; +void ModifyBackupSourceEndpointRequest::setBackupGatewayId(long backupGatewayId) { + backupGatewayId_ = backupGatewayId; + setParameter(std::string("BackupGatewayId"), std::to_string(backupGatewayId)); } -void ModifyBackupSourceEndpointRequest::setSourceEndpointInstanceID(const std::string& sourceEndpointInstanceID) -{ - sourceEndpointInstanceID_ = sourceEndpointInstanceID; - setParameter("SourceEndpointInstanceID", sourceEndpointInstanceID); +std::string ModifyBackupSourceEndpointRequest::getSourceEndpointInstanceID() const { + return sourceEndpointInstanceID_; } -std::string ModifyBackupSourceEndpointRequest::getSourceEndpointUserName()const -{ - return sourceEndpointUserName_; +void ModifyBackupSourceEndpointRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) { + sourceEndpointInstanceID_ = sourceEndpointInstanceID; + setParameter(std::string("SourceEndpointInstanceID"), sourceEndpointInstanceID); } -void ModifyBackupSourceEndpointRequest::setSourceEndpointUserName(const std::string& sourceEndpointUserName) -{ - sourceEndpointUserName_ = sourceEndpointUserName; - setParameter("SourceEndpointUserName", sourceEndpointUserName); +std::string ModifyBackupSourceEndpointRequest::getSourceEndpointUserName() const { + return sourceEndpointUserName_; } -std::string ModifyBackupSourceEndpointRequest::getClientToken()const -{ - return clientToken_; +void ModifyBackupSourceEndpointRequest::setSourceEndpointUserName(const std::string &sourceEndpointUserName) { + sourceEndpointUserName_ = sourceEndpointUserName; + setParameter(std::string("SourceEndpointUserName"), sourceEndpointUserName); } -void ModifyBackupSourceEndpointRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyBackupSourceEndpointRequest::getClientToken() const { + return clientToken_; } -std::string ModifyBackupSourceEndpointRequest::getBackupPlanId()const -{ - return backupPlanId_; +void ModifyBackupSourceEndpointRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyBackupSourceEndpointRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string ModifyBackupSourceEndpointRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string ModifyBackupSourceEndpointRequest::getSourceEndpointDatabaseName()const -{ - return sourceEndpointDatabaseName_; +void ModifyBackupSourceEndpointRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void ModifyBackupSourceEndpointRequest::setSourceEndpointDatabaseName(const std::string& sourceEndpointDatabaseName) -{ - sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; - setParameter("SourceEndpointDatabaseName", sourceEndpointDatabaseName); +std::string ModifyBackupSourceEndpointRequest::getSourceEndpointDatabaseName() const { + return sourceEndpointDatabaseName_; } -std::string ModifyBackupSourceEndpointRequest::getSourceEndpointIP()const -{ - return sourceEndpointIP_; +void ModifyBackupSourceEndpointRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) { + sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; + setParameter(std::string("SourceEndpointDatabaseName"), sourceEndpointDatabaseName); } -void ModifyBackupSourceEndpointRequest::setSourceEndpointIP(const std::string& sourceEndpointIP) -{ - sourceEndpointIP_ = sourceEndpointIP; - setParameter("SourceEndpointIP", sourceEndpointIP); +std::string ModifyBackupSourceEndpointRequest::getSourceEndpointIP() const { + return sourceEndpointIP_; } -std::string ModifyBackupSourceEndpointRequest::getCrossRoleName()const -{ - return crossRoleName_; +void ModifyBackupSourceEndpointRequest::setSourceEndpointIP(const std::string &sourceEndpointIP) { + sourceEndpointIP_ = sourceEndpointIP; + setParameter(std::string("SourceEndpointIP"), sourceEndpointIP); } -void ModifyBackupSourceEndpointRequest::setCrossRoleName(const std::string& crossRoleName) -{ - crossRoleName_ = crossRoleName; - setParameter("CrossRoleName", crossRoleName); +std::string ModifyBackupSourceEndpointRequest::getCrossRoleName() const { + return crossRoleName_; } -std::string ModifyBackupSourceEndpointRequest::getCrossAliyunId()const -{ - return crossAliyunId_; +void ModifyBackupSourceEndpointRequest::setCrossRoleName(const std::string &crossRoleName) { + crossRoleName_ = crossRoleName; + setParameter(std::string("CrossRoleName"), crossRoleName); } -void ModifyBackupSourceEndpointRequest::setCrossAliyunId(const std::string& crossAliyunId) -{ - crossAliyunId_ = crossAliyunId; - setParameter("CrossAliyunId", crossAliyunId); +std::string ModifyBackupSourceEndpointRequest::getCrossAliyunId() const { + return crossAliyunId_; } -std::string ModifyBackupSourceEndpointRequest::getSourceEndpointPassword()const -{ - return sourceEndpointPassword_; +void ModifyBackupSourceEndpointRequest::setCrossAliyunId(const std::string &crossAliyunId) { + crossAliyunId_ = crossAliyunId; + setParameter(std::string("CrossAliyunId"), crossAliyunId); } -void ModifyBackupSourceEndpointRequest::setSourceEndpointPassword(const std::string& sourceEndpointPassword) -{ - sourceEndpointPassword_ = sourceEndpointPassword; - setParameter("SourceEndpointPassword", sourceEndpointPassword); +std::string ModifyBackupSourceEndpointRequest::getSourceEndpointPassword() const { + return sourceEndpointPassword_; } -std::string ModifyBackupSourceEndpointRequest::getBackupObjects()const -{ - return backupObjects_; +void ModifyBackupSourceEndpointRequest::setSourceEndpointPassword(const std::string &sourceEndpointPassword) { + sourceEndpointPassword_ = sourceEndpointPassword; + setParameter(std::string("SourceEndpointPassword"), sourceEndpointPassword); } -void ModifyBackupSourceEndpointRequest::setBackupObjects(const std::string& backupObjects) -{ - backupObjects_ = backupObjects; - setParameter("BackupObjects", backupObjects); +std::string ModifyBackupSourceEndpointRequest::getBackupObjects() const { + return backupObjects_; } -std::string ModifyBackupSourceEndpointRequest::getOwnerId()const -{ - return ownerId_; +void ModifyBackupSourceEndpointRequest::setBackupObjects(const std::string &backupObjects) { + backupObjects_ = backupObjects; + setParameter(std::string("BackupObjects"), backupObjects); } -void ModifyBackupSourceEndpointRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string ModifyBackupSourceEndpointRequest::getOwnerId() const { + return ownerId_; } -int ModifyBackupSourceEndpointRequest::getSourceEndpointPort()const -{ - return sourceEndpointPort_; +void ModifyBackupSourceEndpointRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void ModifyBackupSourceEndpointRequest::setSourceEndpointPort(int sourceEndpointPort) -{ - sourceEndpointPort_ = sourceEndpointPort; - setParameter("SourceEndpointPort", std::to_string(sourceEndpointPort)); +int ModifyBackupSourceEndpointRequest::getSourceEndpointPort() const { + return sourceEndpointPort_; } -std::string ModifyBackupSourceEndpointRequest::getSourceEndpointInstanceType()const -{ - return sourceEndpointInstanceType_; +void ModifyBackupSourceEndpointRequest::setSourceEndpointPort(int sourceEndpointPort) { + sourceEndpointPort_ = sourceEndpointPort; + setParameter(std::string("SourceEndpointPort"), std::to_string(sourceEndpointPort)); } -void ModifyBackupSourceEndpointRequest::setSourceEndpointInstanceType(const std::string& sourceEndpointInstanceType) -{ - sourceEndpointInstanceType_ = sourceEndpointInstanceType; - setParameter("SourceEndpointInstanceType", sourceEndpointInstanceType); +std::string ModifyBackupSourceEndpointRequest::getSourceEndpointInstanceType() const { + return sourceEndpointInstanceType_; } -std::string ModifyBackupSourceEndpointRequest::getSourceEndpointOracleSID()const -{ - return sourceEndpointOracleSID_; +void ModifyBackupSourceEndpointRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) { + sourceEndpointInstanceType_ = sourceEndpointInstanceType; + setParameter(std::string("SourceEndpointInstanceType"), sourceEndpointInstanceType); } -void ModifyBackupSourceEndpointRequest::setSourceEndpointOracleSID(const std::string& sourceEndpointOracleSID) -{ - sourceEndpointOracleSID_ = sourceEndpointOracleSID; - setParameter("SourceEndpointOracleSID", sourceEndpointOracleSID); +std::string ModifyBackupSourceEndpointRequest::getSourceEndpointOracleSID() const { + return sourceEndpointOracleSID_; +} + +void ModifyBackupSourceEndpointRequest::setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID) { + sourceEndpointOracleSID_ = sourceEndpointOracleSID; + setParameter(std::string("SourceEndpointOracleSID"), sourceEndpointOracleSID); } diff --git a/dbs/src/model/ModifyBackupSourceEndpointResult.cc b/dbs/src/model/ModifyBackupSourceEndpointResult.cc index 834f8203b..a8ce5dedb 100644 --- a/dbs/src/model/ModifyBackupSourceEndpointResult.cc +++ b/dbs/src/model/ModifyBackupSourceEndpointResult.cc @@ -39,14 +39,14 @@ void ModifyBackupSourceEndpointResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["NeedPrecheck"].isNull()) diff --git a/dbs/src/model/ModifyBackupStrategyRequest.cc b/dbs/src/model/ModifyBackupStrategyRequest.cc index 30a9fab74..32bcd4ddf 100644 --- a/dbs/src/model/ModifyBackupStrategyRequest.cc +++ b/dbs/src/model/ModifyBackupStrategyRequest.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::Dbs::Model::ModifyBackupStrategyRequest; - -ModifyBackupStrategyRequest::ModifyBackupStrategyRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBackupStrategyRequest::~ModifyBackupStrategyRequest() -{} - -int ModifyBackupStrategyRequest::getBackupLogIntervalSeconds()const -{ - return backupLogIntervalSeconds_; + */ + +#include + +using AlibabaCloud::Dbs::Model::ModifyBackupStrategyRequest; + +ModifyBackupStrategyRequest::ModifyBackupStrategyRequest() + : RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupStrategy") { + setMethod(HttpRequest::Method::Post); } -void ModifyBackupStrategyRequest::setBackupLogIntervalSeconds(int backupLogIntervalSeconds) -{ - backupLogIntervalSeconds_ = backupLogIntervalSeconds; - setParameter("BackupLogIntervalSeconds", std::to_string(backupLogIntervalSeconds)); +ModifyBackupStrategyRequest::~ModifyBackupStrategyRequest() {} + +int ModifyBackupStrategyRequest::getBackupLogIntervalSeconds() const { + return backupLogIntervalSeconds_; } -std::string ModifyBackupStrategyRequest::getClientToken()const -{ - return clientToken_; +void ModifyBackupStrategyRequest::setBackupLogIntervalSeconds(int backupLogIntervalSeconds) { + backupLogIntervalSeconds_ = backupLogIntervalSeconds; + setParameter(std::string("BackupLogIntervalSeconds"), std::to_string(backupLogIntervalSeconds)); } -void ModifyBackupStrategyRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyBackupStrategyRequest::getClientToken() const { + return clientToken_; } -std::string ModifyBackupStrategyRequest::getBackupPlanId()const -{ - return backupPlanId_; +void ModifyBackupStrategyRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyBackupStrategyRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string ModifyBackupStrategyRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string ModifyBackupStrategyRequest::getOwnerId()const -{ - return ownerId_; +void ModifyBackupStrategyRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void ModifyBackupStrategyRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string ModifyBackupStrategyRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyBackupStrategyRequest::getBackupPeriod()const -{ - return backupPeriod_; +void ModifyBackupStrategyRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void ModifyBackupStrategyRequest::setBackupPeriod(const std::string& backupPeriod) -{ - backupPeriod_ = backupPeriod; - setParameter("BackupPeriod", backupPeriod); +std::string ModifyBackupStrategyRequest::getBackupPeriod() const { + return backupPeriod_; } -std::string ModifyBackupStrategyRequest::getBackupStartTime()const -{ - return backupStartTime_; +void ModifyBackupStrategyRequest::setBackupPeriod(const std::string &backupPeriod) { + backupPeriod_ = backupPeriod; + setParameter(std::string("BackupPeriod"), backupPeriod); } -void ModifyBackupStrategyRequest::setBackupStartTime(const std::string& backupStartTime) -{ - backupStartTime_ = backupStartTime; - setParameter("BackupStartTime", backupStartTime); +std::string ModifyBackupStrategyRequest::getBackupStartTime() const { + return backupStartTime_; } -std::string ModifyBackupStrategyRequest::getBackupStrategyType()const -{ - return backupStrategyType_; +void ModifyBackupStrategyRequest::setBackupStartTime(const std::string &backupStartTime) { + backupStartTime_ = backupStartTime; + setParameter(std::string("BackupStartTime"), backupStartTime); } -void ModifyBackupStrategyRequest::setBackupStrategyType(const std::string& backupStrategyType) -{ - backupStrategyType_ = backupStrategyType; - setParameter("BackupStrategyType", backupStrategyType); +std::string ModifyBackupStrategyRequest::getBackupStrategyType() const { + return backupStrategyType_; +} + +void ModifyBackupStrategyRequest::setBackupStrategyType(const std::string &backupStrategyType) { + backupStrategyType_ = backupStrategyType; + setParameter(std::string("BackupStrategyType"), backupStrategyType); } diff --git a/dbs/src/model/ModifyBackupStrategyResult.cc b/dbs/src/model/ModifyBackupStrategyResult.cc index 748cee29b..d4bbc4cfa 100644 --- a/dbs/src/model/ModifyBackupStrategyResult.cc +++ b/dbs/src/model/ModifyBackupStrategyResult.cc @@ -39,14 +39,14 @@ void ModifyBackupStrategyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["NeedPrecheck"].isNull()) diff --git a/dbs/src/model/ModifyStorageStrategyRequest.cc b/dbs/src/model/ModifyStorageStrategyRequest.cc index 5a2ead162..2dd06b301 100644 --- a/dbs/src/model/ModifyStorageStrategyRequest.cc +++ b/dbs/src/model/ModifyStorageStrategyRequest.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::Dbs::Model::ModifyStorageStrategyRequest; - -ModifyStorageStrategyRequest::ModifyStorageStrategyRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ModifyStorageStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyStorageStrategyRequest::~ModifyStorageStrategyRequest() -{} - -int ModifyStorageStrategyRequest::getDuplicationArchivePeriod()const -{ - return duplicationArchivePeriod_; + */ + +#include + +using AlibabaCloud::Dbs::Model::ModifyStorageStrategyRequest; + +ModifyStorageStrategyRequest::ModifyStorageStrategyRequest() + : RpcServiceRequest("dbs", "2019-03-06", "ModifyStorageStrategy") { + setMethod(HttpRequest::Method::Post); } -void ModifyStorageStrategyRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod) -{ - duplicationArchivePeriod_ = duplicationArchivePeriod; - setParameter("DuplicationArchivePeriod", std::to_string(duplicationArchivePeriod)); +ModifyStorageStrategyRequest::~ModifyStorageStrategyRequest() {} + +int ModifyStorageStrategyRequest::getDuplicationArchivePeriod() const { + return duplicationArchivePeriod_; } -std::string ModifyStorageStrategyRequest::getClientToken()const -{ - return clientToken_; +void ModifyStorageStrategyRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod) { + duplicationArchivePeriod_ = duplicationArchivePeriod; + setParameter(std::string("DuplicationArchivePeriod"), std::to_string(duplicationArchivePeriod)); } -void ModifyStorageStrategyRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyStorageStrategyRequest::getClientToken() const { + return clientToken_; } -std::string ModifyStorageStrategyRequest::getBackupPlanId()const -{ - return backupPlanId_; +void ModifyStorageStrategyRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyStorageStrategyRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string ModifyStorageStrategyRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string ModifyStorageStrategyRequest::getOwnerId()const -{ - return ownerId_; +void ModifyStorageStrategyRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void ModifyStorageStrategyRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string ModifyStorageStrategyRequest::getOwnerId() const { + return ownerId_; } -int ModifyStorageStrategyRequest::getBackupRetentionPeriod()const -{ - return backupRetentionPeriod_; +void ModifyStorageStrategyRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void ModifyStorageStrategyRequest::setBackupRetentionPeriod(int backupRetentionPeriod) -{ - backupRetentionPeriod_ = backupRetentionPeriod; - setParameter("BackupRetentionPeriod", std::to_string(backupRetentionPeriod)); +int ModifyStorageStrategyRequest::getBackupRetentionPeriod() const { + return backupRetentionPeriod_; } -int ModifyStorageStrategyRequest::getDuplicationInfrequentAccessPeriod()const -{ - return duplicationInfrequentAccessPeriod_; +void ModifyStorageStrategyRequest::setBackupRetentionPeriod(int backupRetentionPeriod) { + backupRetentionPeriod_ = backupRetentionPeriod; + setParameter(std::string("BackupRetentionPeriod"), std::to_string(backupRetentionPeriod)); } -void ModifyStorageStrategyRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod) -{ - duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod; - setParameter("DuplicationInfrequentAccessPeriod", std::to_string(duplicationInfrequentAccessPeriod)); +int ModifyStorageStrategyRequest::getDuplicationInfrequentAccessPeriod() const { + return duplicationInfrequentAccessPeriod_; +} + +void ModifyStorageStrategyRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod) { + duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod; + setParameter(std::string("DuplicationInfrequentAccessPeriod"), std::to_string(duplicationInfrequentAccessPeriod)); } diff --git a/dbs/src/model/ModifyStorageStrategyResult.cc b/dbs/src/model/ModifyStorageStrategyResult.cc index 6eb5ca811..9ade84738 100644 --- a/dbs/src/model/ModifyStorageStrategyResult.cc +++ b/dbs/src/model/ModifyStorageStrategyResult.cc @@ -39,14 +39,14 @@ void ModifyStorageStrategyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["NeedPrecheck"].isNull()) diff --git a/dbs/src/model/ReleaseBackupPlanRequest.cc b/dbs/src/model/ReleaseBackupPlanRequest.cc index 9b44be336..e892bfee0 100644 --- a/dbs/src/model/ReleaseBackupPlanRequest.cc +++ b/dbs/src/model/ReleaseBackupPlanRequest.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::Dbs::Model::ReleaseBackupPlanRequest; - -ReleaseBackupPlanRequest::ReleaseBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "ReleaseBackupPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -ReleaseBackupPlanRequest::~ReleaseBackupPlanRequest() -{} - -std::string ReleaseBackupPlanRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::ReleaseBackupPlanRequest; + +ReleaseBackupPlanRequest::ReleaseBackupPlanRequest() + : RpcServiceRequest("dbs", "2019-03-06", "ReleaseBackupPlan") { + setMethod(HttpRequest::Method::Post); } -void ReleaseBackupPlanRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +ReleaseBackupPlanRequest::~ReleaseBackupPlanRequest() {} + +std::string ReleaseBackupPlanRequest::getClientToken() const { + return clientToken_; } -std::string ReleaseBackupPlanRequest::getBackupPlanId()const -{ - return backupPlanId_; +void ReleaseBackupPlanRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ReleaseBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string ReleaseBackupPlanRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string ReleaseBackupPlanRequest::getOwnerId()const -{ - return ownerId_; +void ReleaseBackupPlanRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void ReleaseBackupPlanRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string ReleaseBackupPlanRequest::getOwnerId() const { + return ownerId_; +} + +void ReleaseBackupPlanRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } diff --git a/dbs/src/model/ReleaseBackupPlanResult.cc b/dbs/src/model/ReleaseBackupPlanResult.cc index 2d4b3ebdc..727bbaa41 100644 --- a/dbs/src/model/ReleaseBackupPlanResult.cc +++ b/dbs/src/model/ReleaseBackupPlanResult.cc @@ -39,14 +39,14 @@ void ReleaseBackupPlanResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); diff --git a/dbs/src/model/RenewBackupPlanRequest.cc b/dbs/src/model/RenewBackupPlanRequest.cc index b9cc93c90..056b52de3 100644 --- a/dbs/src/model/RenewBackupPlanRequest.cc +++ b/dbs/src/model/RenewBackupPlanRequest.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::Dbs::Model::RenewBackupPlanRequest; - -RenewBackupPlanRequest::RenewBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "RenewBackupPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -RenewBackupPlanRequest::~RenewBackupPlanRequest() -{} - -std::string RenewBackupPlanRequest::getPeriod()const -{ - return period_; + */ + +#include + +using AlibabaCloud::Dbs::Model::RenewBackupPlanRequest; + +RenewBackupPlanRequest::RenewBackupPlanRequest() + : RpcServiceRequest("dbs", "2019-03-06", "RenewBackupPlan") { + setMethod(HttpRequest::Method::Post); } -void RenewBackupPlanRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +RenewBackupPlanRequest::~RenewBackupPlanRequest() {} + +std::string RenewBackupPlanRequest::getPeriod() const { + return period_; } -std::string RenewBackupPlanRequest::getClientToken()const -{ - return clientToken_; +void RenewBackupPlanRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -void RenewBackupPlanRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RenewBackupPlanRequest::getClientToken() const { + return clientToken_; } -std::string RenewBackupPlanRequest::getBackupPlanId()const -{ - return backupPlanId_; +void RenewBackupPlanRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RenewBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string RenewBackupPlanRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string RenewBackupPlanRequest::getOwnerId()const -{ - return ownerId_; +void RenewBackupPlanRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void RenewBackupPlanRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string RenewBackupPlanRequest::getOwnerId() const { + return ownerId_; } -int RenewBackupPlanRequest::getUsedTime()const -{ - return usedTime_; +void RenewBackupPlanRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void RenewBackupPlanRequest::setUsedTime(int usedTime) -{ - usedTime_ = usedTime; - setParameter("UsedTime", std::to_string(usedTime)); +int RenewBackupPlanRequest::getUsedTime() const { + return usedTime_; +} + +void RenewBackupPlanRequest::setUsedTime(int usedTime) { + usedTime_ = usedTime; + setParameter(std::string("UsedTime"), std::to_string(usedTime)); } diff --git a/dbs/src/model/RenewBackupPlanResult.cc b/dbs/src/model/RenewBackupPlanResult.cc index ea02a4a8f..cc174776d 100644 --- a/dbs/src/model/RenewBackupPlanResult.cc +++ b/dbs/src/model/RenewBackupPlanResult.cc @@ -39,14 +39,14 @@ void RenewBackupPlanResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["OrderId"].isNull()) diff --git a/dbs/src/model/StartBackupPlanRequest.cc b/dbs/src/model/StartBackupPlanRequest.cc index a70d83433..8ad3becf7 100644 --- a/dbs/src/model/StartBackupPlanRequest.cc +++ b/dbs/src/model/StartBackupPlanRequest.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::Dbs::Model::StartBackupPlanRequest; - -StartBackupPlanRequest::StartBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "StartBackupPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -StartBackupPlanRequest::~StartBackupPlanRequest() -{} - -std::string StartBackupPlanRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::StartBackupPlanRequest; + +StartBackupPlanRequest::StartBackupPlanRequest() + : RpcServiceRequest("dbs", "2019-03-06", "StartBackupPlan") { + setMethod(HttpRequest::Method::Post); } -void StartBackupPlanRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +StartBackupPlanRequest::~StartBackupPlanRequest() {} + +std::string StartBackupPlanRequest::getClientToken() const { + return clientToken_; } -std::string StartBackupPlanRequest::getBackupPlanId()const -{ - return backupPlanId_; +void StartBackupPlanRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void StartBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string StartBackupPlanRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string StartBackupPlanRequest::getOwnerId()const -{ - return ownerId_; +void StartBackupPlanRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void StartBackupPlanRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string StartBackupPlanRequest::getOwnerId() const { + return ownerId_; +} + +void StartBackupPlanRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } diff --git a/dbs/src/model/StartBackupPlanResult.cc b/dbs/src/model/StartBackupPlanResult.cc index 0bcb06bd8..32286d3a8 100644 --- a/dbs/src/model/StartBackupPlanResult.cc +++ b/dbs/src/model/StartBackupPlanResult.cc @@ -39,14 +39,16 @@ void StartBackupPlanResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); + if(!value["CreatedFullBackupsetId"].isNull()) + createdFullBackupsetId_ = value["CreatedFullBackupsetId"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); @@ -57,6 +59,11 @@ int StartBackupPlanResult::getHttpStatusCode()const return httpStatusCode_; } +std::string StartBackupPlanResult::getCreatedFullBackupsetId()const +{ + return createdFullBackupsetId_; +} + std::string StartBackupPlanResult::getBackupPlanId()const { return backupPlanId_; diff --git a/dbs/src/model/StartRestoreTaskRequest.cc b/dbs/src/model/StartRestoreTaskRequest.cc index 19f6142c9..5a2b3463d 100644 --- a/dbs/src/model/StartRestoreTaskRequest.cc +++ b/dbs/src/model/StartRestoreTaskRequest.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::Dbs::Model::StartRestoreTaskRequest; - -StartRestoreTaskRequest::StartRestoreTaskRequest() : - RpcServiceRequest("dbs", "2019-03-06", "StartRestoreTask") -{ - setMethod(HttpRequest::Method::Post); -} - -StartRestoreTaskRequest::~StartRestoreTaskRequest() -{} - -std::string StartRestoreTaskRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::StartRestoreTaskRequest; + +StartRestoreTaskRequest::StartRestoreTaskRequest() + : RpcServiceRequest("dbs", "2019-03-06", "StartRestoreTask") { + setMethod(HttpRequest::Method::Post); } -void StartRestoreTaskRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +StartRestoreTaskRequest::~StartRestoreTaskRequest() {} + +std::string StartRestoreTaskRequest::getClientToken() const { + return clientToken_; } -std::string StartRestoreTaskRequest::getOwnerId()const -{ - return ownerId_; +void StartRestoreTaskRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void StartRestoreTaskRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string StartRestoreTaskRequest::getOwnerId() const { + return ownerId_; } -std::string StartRestoreTaskRequest::getRestoreTaskId()const -{ - return restoreTaskId_; +void StartRestoreTaskRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void StartRestoreTaskRequest::setRestoreTaskId(const std::string& restoreTaskId) -{ - restoreTaskId_ = restoreTaskId; - setParameter("RestoreTaskId", restoreTaskId); +std::string StartRestoreTaskRequest::getRestoreTaskId() const { + return restoreTaskId_; +} + +void StartRestoreTaskRequest::setRestoreTaskId(const std::string &restoreTaskId) { + restoreTaskId_ = restoreTaskId; + setParameter(std::string("RestoreTaskId"), restoreTaskId); } diff --git a/dbs/src/model/StartRestoreTaskResult.cc b/dbs/src/model/StartRestoreTaskResult.cc index dda7d11d3..3e6f270f5 100644 --- a/dbs/src/model/StartRestoreTaskResult.cc +++ b/dbs/src/model/StartRestoreTaskResult.cc @@ -39,14 +39,14 @@ void StartRestoreTaskResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["RestoreTaskId"].isNull()) restoreTaskId_ = value["RestoreTaskId"].asString(); diff --git a/dbs/src/model/StopBackupPlanRequest.cc b/dbs/src/model/StopBackupPlanRequest.cc index 9266c627c..6ac9c666c 100644 --- a/dbs/src/model/StopBackupPlanRequest.cc +++ b/dbs/src/model/StopBackupPlanRequest.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::Dbs::Model::StopBackupPlanRequest; - -StopBackupPlanRequest::StopBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "StopBackupPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -StopBackupPlanRequest::~StopBackupPlanRequest() -{} - -std::string StopBackupPlanRequest::getStopMethod()const -{ - return stopMethod_; + */ + +#include + +using AlibabaCloud::Dbs::Model::StopBackupPlanRequest; + +StopBackupPlanRequest::StopBackupPlanRequest() + : RpcServiceRequest("dbs", "2019-03-06", "StopBackupPlan") { + setMethod(HttpRequest::Method::Post); } -void StopBackupPlanRequest::setStopMethod(const std::string& stopMethod) -{ - stopMethod_ = stopMethod; - setParameter("StopMethod", stopMethod); +StopBackupPlanRequest::~StopBackupPlanRequest() {} + +std::string StopBackupPlanRequest::getStopMethod() const { + return stopMethod_; } -std::string StopBackupPlanRequest::getClientToken()const -{ - return clientToken_; +void StopBackupPlanRequest::setStopMethod(const std::string &stopMethod) { + stopMethod_ = stopMethod; + setParameter(std::string("StopMethod"), stopMethod); } -void StopBackupPlanRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string StopBackupPlanRequest::getClientToken() const { + return clientToken_; } -std::string StopBackupPlanRequest::getBackupPlanId()const -{ - return backupPlanId_; +void StopBackupPlanRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void StopBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string StopBackupPlanRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string StopBackupPlanRequest::getOwnerId()const -{ - return ownerId_; +void StopBackupPlanRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void StopBackupPlanRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string StopBackupPlanRequest::getOwnerId() const { + return ownerId_; +} + +void StopBackupPlanRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } diff --git a/dbs/src/model/StopBackupPlanResult.cc b/dbs/src/model/StopBackupPlanResult.cc index 69dfff895..4ecc471dd 100644 --- a/dbs/src/model/StopBackupPlanResult.cc +++ b/dbs/src/model/StopBackupPlanResult.cc @@ -39,14 +39,14 @@ void StopBackupPlanResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); diff --git a/dbs/src/model/UpgradeBackupPlanRequest.cc b/dbs/src/model/UpgradeBackupPlanRequest.cc index a2853088f..9f18649d8 100644 --- a/dbs/src/model/UpgradeBackupPlanRequest.cc +++ b/dbs/src/model/UpgradeBackupPlanRequest.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::Dbs::Model::UpgradeBackupPlanRequest; - -UpgradeBackupPlanRequest::UpgradeBackupPlanRequest() : - RpcServiceRequest("dbs", "2019-03-06", "UpgradeBackupPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -UpgradeBackupPlanRequest::~UpgradeBackupPlanRequest() -{} - -std::string UpgradeBackupPlanRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Dbs::Model::UpgradeBackupPlanRequest; + +UpgradeBackupPlanRequest::UpgradeBackupPlanRequest() + : RpcServiceRequest("dbs", "2019-03-06", "UpgradeBackupPlan") { + setMethod(HttpRequest::Method::Post); } -void UpgradeBackupPlanRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +UpgradeBackupPlanRequest::~UpgradeBackupPlanRequest() {} + +std::string UpgradeBackupPlanRequest::getClientToken() const { + return clientToken_; } -std::string UpgradeBackupPlanRequest::getBackupPlanId()const -{ - return backupPlanId_; +void UpgradeBackupPlanRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpgradeBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId) -{ - backupPlanId_ = backupPlanId; - setParameter("BackupPlanId", backupPlanId); +std::string UpgradeBackupPlanRequest::getBackupPlanId() const { + return backupPlanId_; } -std::string UpgradeBackupPlanRequest::getOwnerId()const -{ - return ownerId_; +void UpgradeBackupPlanRequest::setBackupPlanId(const std::string &backupPlanId) { + backupPlanId_ = backupPlanId; + setParameter(std::string("BackupPlanId"), backupPlanId); } -void UpgradeBackupPlanRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string UpgradeBackupPlanRequest::getOwnerId() const { + return ownerId_; } -std::string UpgradeBackupPlanRequest::getInstanceClass()const -{ - return instanceClass_; +void UpgradeBackupPlanRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void UpgradeBackupPlanRequest::setInstanceClass(const std::string& instanceClass) -{ - instanceClass_ = instanceClass; - setParameter("InstanceClass", instanceClass); +std::string UpgradeBackupPlanRequest::getInstanceClass() const { + return instanceClass_; +} + +void UpgradeBackupPlanRequest::setInstanceClass(const std::string &instanceClass) { + instanceClass_ = instanceClass; + setParameter(std::string("InstanceClass"), instanceClass); } diff --git a/dbs/src/model/UpgradeBackupPlanResult.cc b/dbs/src/model/UpgradeBackupPlanResult.cc index 6cc224050..5315d37f8 100644 --- a/dbs/src/model/UpgradeBackupPlanResult.cc +++ b/dbs/src/model/UpgradeBackupPlanResult.cc @@ -39,14 +39,14 @@ void UpgradeBackupPlanResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["ErrCode"].isNull()) + errCode_ = value["ErrCode"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); if(!value["BackupPlanId"].isNull()) backupPlanId_ = value["BackupPlanId"].asString(); if(!value["OrderId"].isNull())